Circuit Documentation
Summary
This circuit is a Soldier Tracking System that utilizes various sensors and modules to monitor and report the location and status of a soldier. The system includes an Arduino Nano microcontroller, a GPS module, a GSM module, a temperature sensor, a photocell (LDR), a pushbutton, resistors, and an I2C LCD display. The Arduino Nano collects data from the sensors and modules, processes it, and sends the information via SMS using the GSM module. The GPS module provides location data, while the temperature sensor and photocell monitor environmental conditions.
Component List
Resistor
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
Photocell (LDR)
- Description: A light-dependent resistor used to measure light intensity.
- Pins: pin 0, pin 1
Temperature Sensor (LM35)
- Description: A temperature sensor that provides an analog output proportional to the temperature.
- Pins: +Vs, Vout, GND
GPS NEO 6M
- Description: A GPS module used to obtain location data.
- Pins: VCC, RX, TX, GND
SIM900A
- Description: A GSM module used for sending SMS messages.
- Pins: GND, DB9-3 (RXD), DB9-2 (TXD), 5V, 3VR, 5VR, 3VT, 5VT, VCC, Ring, RESTART, RESET, STATUS
Pushbutton
- Description: A pushbutton used for user input.
- Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
Arduino Nano
- Description: A microcontroller used to control the circuit and process data.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
16x2 I2C LCD
- Description: An LCD display with I2C interface used to display information.
- Pins: GND, VCC, SDA, SCL
Wiring Details
Resistor
pin2 is connected to:
- Photocell (LDR) pin 0
- Arduino Nano A0
pin1 is connected to:
- Temperature Sensor (LM35) GND
- Pushbutton Pin 1 (in)
- Arduino Nano GND
- 16x2 I2C LCD GND
- SIM900A GND
- GPS NEO 6M GND
Photocell (LDR)
pin 0 is connected to:
- Resistor pin2
- Arduino Nano A0
pin 1 is connected to:
- Temperature Sensor (LM35) +Vs
- Pushbutton Pin 3 (out)
- Arduino Nano 5V
- 16x2 I2C LCD VCC
- SIM900A 5V
- GPS NEO 6M VCC
Temperature Sensor (LM35)
+Vs is connected to:
- Photocell (LDR) pin 1
- Pushbutton Pin 3 (out)
- Arduino Nano 5V
- 16x2 I2C LCD VCC
- SIM900A 5V
- GPS NEO 6M VCC
Vout is connected to:
- Arduino Nano A1
GND is connected to:
- Resistor pin1
- Pushbutton Pin 1 (in)
- Arduino Nano GND
- 16x2 I2C LCD GND
- SIM900A GND
- GPS NEO 6M GND
GPS NEO 6M
RX is connected to:
- Arduino Nano D0/RX
TX is connected to:
- Arduino Nano D1/TX
VCC is connected to:
- Photocell (LDR) pin 1
- Temperature Sensor (LM35) +Vs
- Pushbutton Pin 3 (out)
- Arduino Nano 5V
- 16x2 I2C LCD VCC
- SIM900A 5V
GND is connected to:
- Resistor pin1
- Temperature Sensor (LM35) GND
- Pushbutton Pin 1 (in)
- Arduino Nano GND
- 16x2 I2C LCD GND
- SIM900A GND
SIM900A
DB9-3 (RXD) is connected to:
- Arduino Nano D8
DB9-2 (TXD) is connected to:
- Arduino Nano D7
5V is connected to:
- Photocell (LDR) pin 1
- Temperature Sensor (LM35) +Vs
- Pushbutton Pin 3 (out)
- Arduino Nano 5V
- 16x2 I2C LCD VCC
- GPS NEO 6M VCC
GND is connected to:
- Resistor pin1
- Temperature Sensor (LM35) GND
- Pushbutton Pin 1 (in)
- Arduino Nano GND
- 16x2 I2C LCD GND
- GPS NEO 6M GND
Pushbutton
Pin 3 (out) is connected to:
- Photocell (LDR) pin 1
- Temperature Sensor (LM35) +Vs
- Arduino Nano 5V
- 16x2 I2C LCD VCC
- SIM900A 5V
- GPS NEO 6M VCC
Pin 1 (in) is connected to:
- Resistor pin1
- Temperature Sensor (LM35) GND
- Arduino Nano GND
- 16x2 I2C LCD GND
- SIM900A GND
- GPS NEO 6M GND
Pin 2 (in) is connected to:
- Resistor pin2
Arduino Nano
A0 is connected to:
- Resistor pin2
- Photocell (LDR) pin 0
A1 is connected to:
- Temperature Sensor (LM35) Vout
A4 is connected to:
- 16x2 I2C LCD SDA
A5 is connected to:
- 16x2 I2C LCD SCL
D0/RX is connected to:
- GPS NEO 6M RX
D1/TX is connected to:
- GPS NEO 6M TX
D6 is connected to:
- Resistor pin1
D7 is connected to:
- SIM900A DB9-2 (TXD)
D8 is connected to:
- SIM900A DB9-3 (RXD)
5V is connected to:
- Photocell (LDR) pin 1
- Temperature Sensor (LM35) +Vs
- Pushbutton Pin 3 (out)
- 16x2 I2C LCD VCC
- SIM900A 5V
- GPS NEO 6M VCC
GND is connected to:
- Resistor pin1
- Temperature Sensor (LM35) GND
- Pushbutton Pin 1 (in)
- 16x2 I2C LCD GND
- SIM900A GND
- GPS NEO 6M GND
16x2 I2C LCD
GND is connected to:
- Resistor pin1
- Temperature Sensor (LM35) GND
- Pushbutton Pin 1 (in)
- Arduino Nano GND
- SIM900A GND
- GPS NEO 6M GND
VCC is connected to:
- Photocell (LDR) pin 1
- Temperature Sensor (LM35) +Vs
- Pushbutton Pin 3 (out)
- Arduino Nano 5V
- SIM900A 5V
- GPS NEO 6M VCC
SDA is connected to:
- Arduino Nano A4
SCL is connected to:
- Arduino Nano A5
Documented Code
#include <TinyGPS.h>
#include <SoftwareSerial.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
Liquid
