|
arduino IDEArduino
|
Automatic Bus Stop Announcement System
When we travel by bus ,the route of the bus is unknown to a new passenger. It mostly affects the illiterate . Identification of routes in rural areas is always difficult, having the need to ask the bus conductors to clarify the route multiple times. This makes their work harder. To overcome the above drawbacks of bus services, we introduce an automated bus service for the clarification and ease of traveling and to reduce error. This reduces the drawbacks of an existing system we are presenting a Fully Automated bus stop announcement system, which helps to achieve quick delivery without any traffic congestion. The proposed system can provide comfortable travel to the passengers.The mentioned prototype is fully implementable in a real-time system, which shows a predefined station without any delay.
PROBLEM STATEMENT
Motivation is the reason for people’s actions, willingness and goals. Motivation is derived from the word motive in the English language which is defined as a need that requires satisfaction. These needs could also be wants or desires that are acquired through influence of culture, society, lifestyle, etc. or generally innate. Motivation is one’s direction to behaviour, or what causes a person to want to repeat a behaviour, a set of force that acts behind the motives. An individual’s motivation may be inspired by others or events (extrinsic motivation) or it may come from within the individual (intrinsic motivation) Motivation has been considered as one of the most important reasons that inspires a person to move forward in life. Motivation results from the interaction of both conscious and unconscious factors.
MATERIALS AND METHODS
List of components
Hardware
ARDUINO UNO
Arduino is an open source electronics platform based on easy to use hardware and software. Arduino boards are able to read can tell your board what to do by sending a set of instructions to the microcontroller on the board. The Arduino Uno is one kind of microcontroller board based on ATmega328.
NEO 6M GPS MODULE
The NEO-6M GPS module is a well-performing complete GPS receiver with a built-in 25 x 25 x 4mm ceramic antenna, which provides a strong satellite search capability. With the power and signal indicators, you can monitor the status of the module.
RASPBERRY PI
Raspberry Pi is a series of small single-board computers developed in the United Kingdom by the Raspberry Pi Foundation in association with Broadcom. The Raspberry Pi project originally leaned towards the promotion of teaching basic computer science in schools and in developing countries.
16*2 LCD DISPLAY
liquid-crystal display (LCD) is a flat-panel display or other electronically modulated optical device that uses the light-modulating properties of liquid crystals combined with polarizers. Liquid crystals do not emit light directly,[1] instead using a backlight or reflector to produce images in color or monochrome. LCDs are available to display arbitrary images or fixed images with low information content, which can be displayed or hidden.
SPEAKER
Work by converting electrical energy into mechanical energy(motion).The mechanical energy compresses air and converts the motion into sound energy or sound pressure level(SPL).When an electric current is sent through a coil of wire ,it induces a magnetic field.
ARDUINO SOFTWARE IDE
Arduino IDE is an open source software that is mainly used for writing and compiling the code into the Arduino Module. It is an official Arduino software, making code compilation too easy that even a common person with no prior technical knowledge can get their feet wet with the learning process.
Software
- Arduino IDE
- Fritzing
PROTOTYPING
- Bread boarding (In Hardware)
- Library used (In Software) arduinoFFT.h, SoftwareSerial.h, DHT.h
Flowchart
TEST PLAN
The above figure shows Block Diagram
The GPS module decodes and computes the precise location of the satellite. This
reading is transmitted to Arduino. The Arduino read and display the saved position
and the next position wanted to display. Audio files will also be obtained from
speaker. The same is recorded using Raspberrypi. The same audio file plays at the
moment when a message signal is obtained from Arduino. The message signal is obtained when it reaches the exact location.Why we use raspberry pi because itcan hold a large number of audio signals.
Step 1 : Construct The Circuit
CIRCUIT
The circuit diagram consists of Arduino UNO, Raspberry Pi, neo 6m GPS module,16*2 LCD, speaker, and power supply .5v battery is connected.VCC and ground of the Neo 6m GPS module connected to the 5volt pin and ground of Arduino Uno. Then the Rx and TX pin connected to pin 9 and pin 10 of Arduino Uno. , where we can get the information of exact places and get it from the GPS module. Raspberry Pi and Arduino are connected by USB port and the power supply is also given to the Raspberry Pi. The speaker is working through Bluetooth.Raspberry Pi is used to store the information which is coming from the GPS module. The signal which is coming from the Gps module is read by Arduino Uno and then the information will be displayed by LCD, also the raspberry Pi receives data from the Arduino then the speaker is used to announce the exact places.
Step 2 : Run The Command On Arduino Ide And Analyse
SOFTWARE CODE
#include <TinyGPSPlus.h>
#include <SoftwareSerial.h>
#include <LiquidCrystal.h>
int Contrast=90;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
/*
This sample sketch demonstrates the normal use of a TinyGPSPlus (TinyGPSPlus) object.
It requires the use of SoftwareSerial, and assumes that you have a
4800-baud serial GPS device hooked up on pins 4(rx) and 3(tx).
*/
static const int RXPin = 10, TXPin = 9;
static const uint32_t GPSBaud = 9600;
// The TinyGPSPlus object
TinyGPSPlus gps;
// The serial connection to the GPS device
SoftwareSerial ss(RXPin, TXPin);
void setup()
{
analogWrite(6,Contrast);
lcd.begin(16, 2);
Serial.begin(9600);
ss.begin(GPSBaud);
lcd.setCursor(0, 0);
lcd.print("Starting up..");
}
void loop()
{
// This sketch displays information every time a new sentence is correctly encoded.
while (ss.available() > 0)
if (gps.encode(ss.read()))
displayInfo();
if (millis() > 5000 && gps.charsProcessed() < 10)
{
Serial.println(F("No GPS detected: check wiring."));
while(true);
}
}
void displayInfo()
{
Serial.print(F("Location: "));
if (gps.location.isValid())
{
//Serial.print(gps.location.lat(), 6);
//Serial.print(F(","));
//Serial.print(gps.location.lng(), 6);
String place = getPlacename(gps.location.lat(), gps.location.lng());
if(place == "Painavu"){
sendToRpi(’p’);
} else if(place == "Cheruthoni"){
sendRpi(’c’);
}
//Serial.print(’\n’);
// Serial.print(place);
// Serial.print(’\n’);
lcd.setCursor(0, 0);
lcd.print(place);
}
else
{
//Serial.print(F("INVALID"));
}
Serial.println();
}
String getPlacename(double latt, double longt){
if(latt<9.8525 && latt>9.8522 && longt < 76.9399 && longt > 76.9395) return "Painavu";
else if(latt<9.8525 && latt>9.8522 && longt < 76.9399 && longt > 76.9395) return "Cheruthoni";
else "Unknown place";
}
void sendToRpi(char p) {
Serial.print(p); // send a capital p
}
void sendRpi(char c) {
Serial.print(c); // send a capital c
}
CODE TO STORE AUDIO SIGNALS
#!/usr/bin/env python3
import serial
import pygame
pygame.mixer.init()
pygame.mixer.music.load("/home/auto/Downloads/a.wav")
ser = serial.Serial(’/dev/ttyACM0’ , 9600)
while True:
input=ser.read()
inputLetter = input.decode("utf-8")
print(inputLetter)
if(inputLetter == ’p’):
pygame.mixer.music.play()
Step 3 : Unite The Circuit And Make The Station
#include <TinyGPSPlus.h>
#include <SoftwareSerial.h>
#include <LiquidCrystal.h>
int Contrast=90;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
/*
This sample sketch demonstrates the normal use of a TinyGPSPlus (TinyGPSPlus) object.
It requires the use of SoftwareSerial, and assumes that you have a
4800-baud serial GPS device hooked up on pins 4(rx) and 3(tx).
*/
static const int RXPin = 10, TXPin = 9;
static const uint32_t GPSBaud = 9600;
// The TinyGPSPlus object
TinyGPSPlus gps;
// The serial connection to the GPS device
SoftwareSerial ss(RXPin, TXPin);
void setup()
{
analogWrite(6,Contrast);
lcd.begin(16, 2);
Serial.begin(9600);
ss.begin(GPSBaud);
lcd.setCursor(0, 0);
lcd.print("Starting up..");
}
void loop()
{
// This sketch displays information every time a new sentence is correctly encoded.
while (ss.available() > 0)
if (gps.encode(ss.read()))
displayInfo();
if (millis() > 5000 && gps.charsProcessed() < 10)
{
Serial.println(F("No GPS detected: check wiring."));
while(true);
}
}
void displayInfo()
{
Serial.print(F("Location: "));
if (gps.location.isValid())
{
//Serial.print(gps.location.lat(), 6);
//Serial.print(F(","));
//Serial.print(gps.location.lng(), 6);
String place = getPlacename(gps.location.lat(), gps.location.lng());
if(place == "Painavu"){
sendToRpi(’p’);
} else if(place == "Cheruthoni"){
sendRpi(’c’);
}
//Serial.print(’\n’);
// Serial.print(place);
// Serial.print(’\n’);
lcd.setCursor(0, 0);
lcd.print(place);
}
else
{
//Serial.print(F("INVALID"));
}
Serial.println();
}
String getPlacename(double latt, double longt){
if(latt<9.8525 && latt>9.8522 && longt < 76.9399 && longt > 76.9395) return "Painavu";
else if(latt<9.8525 && latt>9.8522 && longt < 76.9399 && longt > 76.9395) return "Cheruthoni";
else "Unknown place";
}
void sendToRpi(char p) {
Serial.print(p); // send a capital p
}
void sendRpi(char c) {
Serial.print(c); // send a capital c
}
#!/usr/bin/env python3
import serial
import pygame
pygame.mixer.init()
pygame.mixer.music.load("/home/auto/Downloads/a.wav")
ser = serial.Serial(’/dev/ttyACM0’ , 9600)
while True:
input=ser.read()
inputLetter = input.decode("utf-8")
print(inputLetter)
if(inputLetter == ’p’):
pygame.mixer.music.play()
Automatic Bus Stop Announcement System
- Comments(0)
- Likes(1)
- Engineer Oct 01,2024
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by mohdazhar
- Automatic Bus Stop Announcement System When we travel by bus ,the route of the bus is unknown to a new passenger. It mostly affects the ill...
- Earthquake Alert System Based On IOT Many countries have implemented EEW(early earthquake warning) systems to save human lives. The earth...
- Smart Street Light Smart Street Light spotlights different restrictions and difficulties identified with traditional an...
- Line Break Detector With Alert System Line Break Detector With Alert System is a mechanism which helps the consumer and KSEB officers to d...
- Smart Railway Gate Opening System Using IOT The railway crossing accidents are increasing day by day due to human-manned railway crossings. Live...
- Advanced Biometric Finger Print Scanner We took the case of our hostel mess and concluded that there is no proper way to manage the hostel m...
- Baby Monitoring System We are very well familiar with the hurdles faced by Parents to nurture their infant and especially i...
- TOKEN MACHINE AND QUEUE MANAGEMENT SYSTEM FOR HOSPITALS ABSTRACTPatient wait times have a strong influence on patient satisfaction levels. A common scenario...
- Make your own branded ESP32 development board with PCBWay! What about making your own custom PCB boards with your own branding? Doesn't that sound nice? PCB ma...
- FOODIE BOT Automation has become an integral part of today's modern life. We are increasingly noticing that mor...
- A ESP32 BASED BLUETOOTH MINI ROBOT A simple mini robot that you can control with your phone. The robot can be improvised and implemente...
- IOT smart AC plug A smart plug is a home automation device and is a hot new thing. Several types of smart plugs are av...
- "A perfectly working line follower robot using arduino" LINE FOLLOWER ROBOT - THE EASIEST!This is a simple tutorial to make a line follower robot using Ardu...
- IOT PLANT - GROW YOUR PLANTS FROM ANYWHERE AROUND THE WORLD. Watch the video The device and plant setupWhat about growing any plants from anywhere around the wor...
- HOW TO PROGRAM ESP8266 - 01 In this tutorial, I am going to show how to program ESP8266 - 01 using an Arduino board or using FTD...
- Make Your First Arduino Robot - the Best Tutorial Out There Smartphone-controlled obstacle avoiding and wall follower robot.Are you a beginner in Arduino and ha...
- THE ULTIMATE OFFROAD RC ROVER Let's make an all-terrain remote-controlled rover bot. This is a great starter project for hobbyists...
- MAKE A 3.3 VOLT REGULATOR FOR ESP8266 The 3.3-volt power supply is one of the main issues when we use ESP8266 - 01 as a standalone board. ...
-
-
-
kmMiniSchield MIDI I/O - IN/OUT/THROUGH MIDI extension for kmMidiMini
125 0 0 -
DIY Laser Power Meter with Arduino
174 0 2 -
-
-
Box & Bolt, 3D Printed Cardboard Crafting Tools
164 0 2 -