TMP36 Temp [MQTT]

Experiments & prototyping with the Arduino.
rwblinn
Site Admin
Posts: 224
Joined: 07 Oct 2017, 12:16

TMP36 Temp [MQTT]

Postby rwblinn » 08 Oct 2017, 18:37

Read Analog Data from the Temperature Sensor TMP36 and publish via MQTT.
The Arduino Ethernet Shield is used for the communication with the B4J Server.
Note
Tested also on an Android MQTT Client by connecting to the B4J server and subscribing to topic "temperature".

Parts Needed
• 1x Arduino MEGA
• 1x Arduino Ethernet Shield
• 1x TMP36 Temperature Sensor

Wiring
Arduino = TMP36 (looking at the flat side of the sensore from left To right)
5v = Pin 1 (left) (Red)
A0 = Pin 2 (middle) (Yellow)
GND = Pin 3 (right) (Black)
(Wirecolor)

Circuit
Image

Download Source Code

ToDo
• Experiment is completed.

Version
20160412

Return to “Arduino”



Who is online