In bus stand and also in under ground parking system for car we may occur some difficulty to park the car or bus . This can be overcome by this project using arduino , weight sensor and Bluetooth module or zigbee module. We want to do is that we want to place the weight sensor at the parking road when the vechicle stands on that platform it will display in the Bluetooth connection devices but Bluetooth is not used for more devices so WE CAN USE ZIGBEE it can access by the more members
void setup() {
Serial.begin(9600);
pinMode(A2,INPUT);
}
void loop() {
int weight=analogRead(A2);
if(weight>22)
{
Serial.println("parked");
Serial.println(weight);
delay(1000);
}
else
{
Serial.println("not parked");
Serial.println(weight);
delay(1000);
}
}
TO DOWNLOAD IT AS .ino CLICK HERE
This is the program for using two weight sensor we can use six weight sensor
void setup() {
Serial.begin(9600);
pinMode(A2,INPUT);
pinMode(A3,INPUT);
}
void loop() {
int weight1=analogRead(A2);
int weight2=analogRead(A3);
if(weight1>22)
{
Serial.println("platform 1 is filled");
Serial.println(weight1);
delay(1000);
}
else
{
Serial.println("platform 1 is free");
Serial.println(weight1);
delay(1000);
}
if(weight2>22)
{
Serial.println("platform 2 is filled");
Serial.println(weight2);
delay(1000);
}
else
{
Serial.println("platform 2 is free");
Serial.println(weight2);
delay(1000);
}
}
TO DOWNLOAD IT AS ARDUINO SOFTWARE SUPPORTING PROJECT CLICK HERE