View Code? Open in Web Editor
NEW
Read data from a DHT11 and send them to a CANbus using TJA1050 CAN traceiver then read from the bus using another ESp32
can-tja1050-with-esp32-and-dht11's Introduction
CAN-TJA1050-with-ESP32-and-DHT11
- The code reads the data from a DHT11 using an ESP32 and send the reading to a TJA1050 CAN tranceiver
- A second TJA1050 reads the data in canbus and and the data is read an printed using the serial monitor of the second ESP32
- This code works as a CAN Sender and as a CAN Receiver depending on the call in the loop function.
- Change the pins setting depending on your GPIO for both Can-Tranceiver and DHT11
- The VCC of the tranceiver is connected to the 3.3V of the ESP32
- The GND pin to the GND pin of the ESP32
- The TX pin to GPIO4
- The RX pin to GPIO5
can-tja1050-with-esp32-and-dht11's People
Contributors
Stargazers
Watchers