IoT Experiment to read the temperature from the sensor TMP36, which is connected to an Arduino UNO. The Arduino UNO is connected via serial port with a PC where the data is logged via a B4J application.
Read the temperature
Log the temperature
Download the B4J Project Source
Apr 05, 2016: First Version
Log the temperature values in a graph.
Log the temperature on a B4A application.
The temperature sensor TMP36 is placed with its 3 pins on a breadboard. Looking at the flat side of the sensor, the pins are connected:
Pin 1 (left) +5V
Pin 2 (middle) Analog 0 (A0)
Pin 3 (right) Ground (GND)
The Arduino UNO is connected with a PC via USB. The PC Port is COM4. The data is logged every 5 seconds on the Arduino and send to the serial line. The B4J application on the PC waits for data and when data received, it is being logged.
Lookup the Arduino Sketchbook and the B4J project code for details.
Experiments & prototyping with the Arduino.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest