Hi everyone, this is Madhu Govindarajan from MathWorks with the next blog in a series to help you get started with MATLAB and sensors from the kit (TMP36 and MCP3008) for the road test. TMP36 is an analog sensor and Raspberry Pi can measure only digital input signals, we can use MCP3008 as our Analog to Digital Converter (ADC) and then measure the analog signals from MATLAB.
After making these connections, we need to power up the TMP36 sensor to measure temperature as an analog signal using Raspberry Pi.
- Connect Pin 1 on the TMP36 sensor to 5 V on the Raspberry Pi
- Connect Pin 3 on the TMP36 sensor to GND on the Raspberry Pi
Download this file and use it after installing the MATLAB Support Package for Raspberry Pi. If you do not have the Support package installed, please follow the instructions on this tutorial to get started.
Feel free to post any questions or comments here.
