|
|
(29 révisions intermédiaires par le même utilisateur non affichées) |
Ligne 1 : |
Ligne 1 : |
− | =Attiny10=
| |
| | | |
− | * [https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/ATtiny4-5-9-10-Data-Sheet-DS40002060A.pdf datasheetAttiny10] | + | =Informatique embarquée= |
| + | *[[Cours:InfoEmbarqueeConcommationMicroC|Analyse de la consommation d'un µcontroleur]] |
| + | *[[Cours:InfoEmbarqueeScrutationInterruption|Analyse de la latence (et jitter)]] |
| + | *[[Cours:InfoEmbarqueeThread|Thread avec Qt]] |
| + | *[[Cours:InstallationLinux|installation d'une distribution Linux]] |
| + | *[[Cours:BashScript|scripts]] |
| + | *[[Cours:QtMqtt|mqtt : créer un capteur/actionneur sur HomeAssistant]] |
| | | |
− | | + | =CEM= |
− | | + | *https://resources.altium.com/fr/p/plongee-dans-les-contraintes-de-conception-et-de-fabrication-partie-1 |
− | =script shell= | + | *https://resources.altium.com/fr/p/diving-into-the-constraints-of-design-and-manufacturing-part-two#21-espacement-des-conducteurs---clearance- |
− | | + | *https://www.vishay.com/docs/28705/mcx0x0xpro.pdf |
− | | |
− | ==mqtt==
| |
− | | |
− | <source lang=bash>
| |
− | | |
− | /usr/local/bin/createHaSensor : | |
− | #!/bin/bash
| |
− | | |
− | echo "name : $1"
| |
− | echo "device class : $2"
| |
− | echo "unit : $3"
| |
− | | |
− | topic="homeassistant/sensor/$1/config"
| |
− | payload="{\"name\": \"$1\", \
| |
− | \"unique_id\": \"$1\", \
| |
− | \"state_topic\": \"homeassistant/sensor/$1/state\", \
| |
− | \"device_class\":\"$2\", \
| |
− | \"unit_of_measurement\":\"$4\" \
| |
− | }"
| |
− | | |
− | | |
− | mosquitto_pub -t "$topic" -m "$payload" -h 192.168.0.7
| |
− | | |
− | | |
− | /usr/local/bin/deleteHaSensor :
| |
− | #!/bin/bash | |
− | | |
− | echo "name : $1"
| |
− | echo "device class : $2"
| |
− | echo "unit : $3"
| |
− | | |
− | topic="homeassistant/sensor/$1/config"
| |
− | | |
− | mosquitto_pub -t "$topic" -m "" -h 192.168.0.7
| |
− | | |
− | | |
− | /usr/local/bin/publishHaSensor :
| |
− | #!/bin/bash
| |
− | | |
− | echo "name : $1"
| |
− | echo "valeur : $2"
| |
− | | |
− | topic="homeassistant/sensor/$1/state"
| |
− | payload="{\"name\": \"$1\", \
| |
− | \"unique_id\": \"$1\", \
| |
− | \"state_topic\": \"homeassistant/sensor/$1/state\", \
| |
− | \"device_class\":\"$2\", \
| |
− | \"unit_of_measurement\":\"$4\" \
| |
− | }"
| |
− | | |
− | | |
− | mosquitto_pub -t "$topic" -m "$2" -h 192.168.0.7
| |
− | | |
− | | |
− | </source>
| |