1. Introduction Go to index
This tutorial allows the user to measure the temperature of an object. When the temperature is 0ºC or less, a text message is sent to a mobile phone in which the temperature and the position (laltitude and longitude) of the module is indicated.
Ingredients:
-
- – 1 x
- :
-
- 1x Platform
- 1x GPRS+GPS Quadband Module (SIM908)
- 1x GPRS antenna
- 1x GPS antenna
- 1x Temperature sensor (MCP9700A)
- 1x Breadboard
- 1x External power supply
- 1x Programming cable
- Jumper Wires
Preparation Time: 30 minutes
For further information about the GPRS+GPS (SIM908) Shield, consult the main tutorial.
Step 1: Connection Go to index
Connect the GPRS and GPS antenna to the shield and then, connect the shield to the Arduino or to Raspberry Pi connection bridge. Connect temperature sensor in the breadboard as you can see in the next diagram.
Connect two wires, red and black, to the two long rows on the side of the breadboard to provide access to the VCC supply (5V in Arduino and 3.3V in Raspberry Pi) and ground. Place the sensor with the flat part looking up like the diagram. Connect the left leg of the sensor to GND and the right to VCC. Connect the central leg to the first pin at bottom left of the shield (Analog 0).
WARNING: In Raspberry Pi, GPIO voltage levels are 3.3 V and are not 5 V tolerant. There is no over-voltage protection on the board. Digital inputs use a 3V3 logic level and are not tolerant of 5V levels, such as you might find on a 5V powered Arduino. Extreme caution when working with GPIO, you may damage your Raspberry Pi, your equipment and potentially yourself and others. Doing so is at your own risk!
Step 2: The Code Go to index
Arduino:
Raspberry Pi:
Code:
Intel Galileo:
Links and Documentation Go to index
Related Tutorials
- Geolocation Tracker (GPRS + GPS) with SIM908 over Arduino and Raspberry Pi
- How to Make a Call with Push Buttons Using Tracking Kit (GPRS + GPS)
- How to Send a Temperature Emergency SMS Using Tracking Kit (GPRS + GPS)
- How to Control a Servo with Text Messages Using Tracking Kit (GPRS + GPS)
- How to Display Latitude and Longitude on an LCD Using Tracking Kit (GPRS + GPS)
For more detail: How to Send a Temperature Emergency SMS Using Tracking Kit (GPRS + GPS)