Tutorial: Connecting Temperature Sensor TMP36 to a Raspberry Pi
Learn how to connect Temperature Sensor TMP36 to a Raspberry Pi Breadboard and collect real-time data on your Cayenne dashboard.
Let’s look at each dropdown field that will be used when adding your sensor.
Give your sensor a name.
Select your Arduino device.
Select your method of connectivity; is your sensor Analog, Digital, or Virtual? You’ll then select what pin the sensor will be connected to.
If you’re trying to read data from an analog sensor, the Arduino has 6 analog inputs that can be used. Simply connect your analog sensor to one of the 6 analog pins on the Arduino. Make sure you select the correct corresponding pin when adding a widget for your analog sensor.
*It’s worth noting that for most Arduino models, the analog pins may be configured, and used, in exactly the same manner as digital pins.
A digital pin can be used to read data from a non-analog sensor, but the data will need to be written to a virtual channel. If you’re trying to read data from a non-analog sensor, you’ll most likely use a virtual pin.
Virtual pins are channels to send and receive different data types from and to the Arduino (e.g. SPI, I2C, 1-Wire and devices connected to Arduino expansion boards). There are 26 virtual pins available for each Arduino board.
Select the Data type, the Units, and the Icon to be used for the widget. For example, a temperature sensor could have a Data type of temperature, Units of Celsius, and a thermometer Icon.
Input the minimum and maximum values that you’d like the line graph widget to use when displaying the range of data for your sensor. This can help improve the visualization of your sensor data as it displays on the line graph.
Now you can view the sketch file in your Arduino IDE and add your widget. Don’t worry, you can always edit these settings after your widget is added to the dashboard.
Not sure what to do with the sketch file? Check out this sketch file overview.
Let’s look at each dropdown field that will be used when adding your actuator.
Give your actuator a name.
Select your Arduino device.
Select your method of connectivity; will the button widget be connected to a physical digital pin on the Arduino? Or will it make use of the Cayenne virtual pins?
You can control the actuator state (high / low) through the digital pin on the Arduino.
Virtual pins are channels to send and receive different data types from and to the Arduino (e.g. SPI, I2C, 1-Wire and devices connected to Arduino expansion boards). There are 26 virtual pins available for each Arduino board.
Select the Data type, the Units, and the Icon to be used for the widget. For example, a temperature sensor could have a Data type of temperature, Units of Celsius, and a thermometer Icon.
You’re all done! Now you can view the sketch file in your Arduino IDE and add your widget. Don’t worry, you can always edit these settings after your widget is added to the dashboard
Not sure what to do with the sketch file? Check out this sketch file overview.
Let’s look at each dropdown field that will be used when adding your sensor.
Give your sensor a name.
Select your Arduino device.
Select your method of connectivity; is your sensor Analog, Digital, or Virtual? You’ll then select what pin the sensor will be connected to.
If you’re trying to read data from an analog sensor, the Arduino has 6 analog inputs that can be used. Simply connect your analog sensor to one of the 6 analog pins on the Arduino. Make sure you select the correct corresponding pin when adding a widget for your analog sensor.
*It’s worth noting that for most Arduino models, the analog pins may be configured, and used, in exactly the same manner as digital pins.
A digital pin can be used to read data from a non-analog sensor, but the data will need to be written to a virtual channel. If you’re trying to read data from a non-analog sensor, you’ll most likely use a virtual pin.
Virtual pins are channels to send and receive different data types from and to the Arduino (e.g. SPI, I2C, 1-Wire and devices connected to Arduino expansion boards). There are 26 virtual pins available for each Arduino board.
Select the Data type, the Units, and the Icon to be used for the widget. For example, a temperature sensor could have a Data type of temperature, Units of Celsius, and a thermometer Icon.
Now you can view the sketch file in your Arduino IDE and add your widget. Don’t worry, you can always edit these settings after your widget is added to the dashboard.
Not sure what to do with the sketch file? Check out this sketch file overview.
Learn how to connect Temperature Sensor TMP36 to a Raspberry Pi Breadboard and collect real-time data on your Cayenne dashboard.