Introduction
The system consists of mechanical component and electronics component the integration between them is required to design and implement any robotic system to be able to perform it function correctly without errors to reach a system the work with high performance high accuracy and high efficiently. See figure
Arduino Mega is a microcontroller board on the Atmega2560.It has54 digital input/output pins 16 analog inputs and a larger space for your sketch it is the recommended board for 3D printers and robotics project.
Ethernet Shield connects your Arduino to the internet in mere minutes. Just plug this module onto your Arduino Board, connect it to your network with an RJ45 cable (not included) and follow a few simple steps to start controlling your world through the internet.
Accelerometer sensor contains a MEMS accelerometer and a MEMS gyro in a single chip. It is very accurate as it contains 16-bits analog to digital conversion hardware for each channel. Therefor it captures the x, y, and z channel at the same time.
GPS module is a small size low weight module that comes with embedded Antenna.
Flame Sensor is one of detector which is mainly designed for detection as well as responding to the occurrence of a fire or flame.
LCD stand for liquid crystal display. Character and graphical LCD’s are most common among hobbyist and diy electronic circuit/project makers.
LED a semiconductor device that emits visible light when an electric current passes through it.
Buzzer is a simple device that can generate basic beeps and tones.
Accelerometer Sensor MPU5060
IMU sensors are one of the most common types of sensors used today in all kinds of electronic gadgets. IMU sensors help us in getting the attitude of an object, attached to the sensor in three-dimensional space. These values are usually in angles to help us to determine its attitude. They are used in smartphones to detect their orientation or in wearable gadgets like the Fit Bit, which use IMU sensors to track movement.
Arduino
Arduino is an open source computer hardware and software company project and user community that designs and manufactures microcontroller based kits for building digital devices and interaction objects that can sense and control objects the physical world.
Arduino Mega
The Arduino Mega is a microcontroller board based on the ATmega2560 (Appendix B). It has 54 digital input/output pins (of which 15 can be used as PWM outputs),16 analog input/output pins, 4UARTs (hardware serial ports), a16MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a reset button see. figure,.
It contains everything needed to support the microcontroller simply connect it to a computer with a USB cable or power it with an AC-to-DC adapter or battery to get started. The Mega 2560 board is compatible with most shields designed for the Uno and the former boards Duemilanove or Diecimila.
Features of Arduino Mega
- Microcontroller: ATmega2560
- Operating Voltage:
- Input Voltage: 7-12V.
- Digital I/O pins: 54 (of which 15 provide PWM output).
- Analog 1/O pins:
- DC Current: 40
- Flash Memory: 256kB (of which 8k is used for the boot loader).
- SROM:
- EEPROM: 4KB.
- Clock Speed:16MHz.
Circuit Design Connection
This system is designed using Arduino robot car as showing in figure 4-1, the Arduino no act as the core of the system. It has 54 digital input/output, 16 analog input, 16 MHz crystal oscillator, USB connection, power jack and a reset button. It contains everything needed to support the microcontroller within it. The Accelerometer Sensor is connected to pins (5 volts, GND, SCL, SDA), (note that the accelerometer has VCC, GND, SCL, SDA, XDA, XCL, ADO, and one pin interrupt connected to any INT pins in Arduino). The GPS module is connected to pins (TX=2, RX=3). The Flame sensor has one wire which is connected to the Arduino analog pin (A0),
The LCD has 12 wire (VSS, VDD, VEE, RS, R/W, E, D4, D5, D6, D7, A, K)
connected to the Arduino digital pins (GND, VCC, 5, 6, 9, 10, 12, 13, 5 Volt, GND), (note VSS, VEE and R/W are connected to GND, VDD is connected to potentiometer 10K ohm), The red led connected to pin (24), green led to pin (25) and buzzer to pin (26). The DC motor use to drive the car which is connected to driver (L293D) in pins (22, 23, 24, 25).
The Ethernet shield connects to an Arduino board using long wire-wrap headers which extend through the shield. This keeps the pin layout intact and allows another shield to be stacked on top. Arduino uses digital pins 10, 11, 12, and 13 (SPI) to communicate with the W5100 on the Ethernet shield. These pins cannot be used for general i/o. The shield provides a standard RJ45 Ethernet jack.
System Operation
The Arduino Mega acts the core of the system, first the LCD display “system is in progress !!”
LCD display system is progress
the system start connected to the internet. Then LCD display “system is run”. and start receiving the information from the satellite about the location.
then the GPS detection the location (Latitude and Longitude), the location will display in the LCD and the green led is turn on, in the normal mode the value of accelerometer sensor will by static so in serial monitor display “No Action”.
When the value change so the “The vehicle has collided” then display in LCD “sending Email” so the red led and buzzer turn on, in this moment the Arduino prepares the email and sends it to the collision location.
When flame sensor value change so the “vehicle is burning” then display in LCD “sending Flame Email” so the red led and buzzer turn on, in this moment the Arduino prepares the email and sends it to the collision location.
Software Description
The software written in Arduino development environment contains a text editor for written code, a message area, a text console, a toolbar with buttons for common function, and series of menus, it connects to the Arduino hardware to upload program and communicate with them, in the writing sketch the software written using Arduino are call sketch. This sketch is write in the text editor, it saves with the file extension (ino), Program write with assembly and one C function for writing to the EEROM.
Result
When installing the accelerometer sensor in a real car, it’s necessary to take into account the amount of vibration it registers and set to higher readings. Because in cases of falling into a hole, reading it’s equivalent to reading of Then Arduino send email in both cases.
The GPS does not respond in closed places or is late because it blocks the signal of satellites.
The time to receive the message depends on the network condition and takes at least a minute.
COMMENTS