The inspiration came for this project.
A smart way station is used for passing cars and opening and closing the door when it senses cars coming.
This project solves the problem of a lot of paper, which harms the environment, because it will sense the car coming and run past it and count how many cars have passed today.
The reason I chose this project is that I was traveling to train in a company and the road was always blocked because we were accustomed to the human factor, so I decided to make a miniature model of the station.
For Electrical Design
Tinkercad Software for designing the electric circuit
Materials :
1- Breadboard and Jumpers to connect the components.
2- Ultrasonic Sensor.
3-Arduino UNO.
4- Arduino Cables.
5- Led.
6- LCD Screen.
7- Button Mode
8- Manual Button
Arduino Uno for implementation using Arduino board
LED
Arduino UNO
Ultrasonic sensor
Jumpers
Resistance
Arduino Cable
Breadboard
Crocodile Wires
Servo Motor
Cardboard
LCD Screen
I write a function for Automatic Mode and Manual Mode after searching on YouTube, and I also used DeepSeek to help me write.
Final Code using Arduino IDE
Definition of libraries
Initialize LCD
Define Ultrasonic Sensor Pins
Define Servo Motor Pin
Define Led Pin
Define Mode Selection Switch Pin
Define Manual Switch Pin
Define Variables
Loop, read mode switch and switch between two function operation as manual or automatic
Automatic Operation Function, write "Mode: Automatic" on LCD then measure the distance from distance sensor and compare the value and count number of cars path from smart toll station.
Manual Operation Function, write "Mode: Manual" on LCD then push on manual switch and car path then print "Door Closed" on LCD.
Cardboard Prototype
Ultrasonic Sensor installed
Mode Selection Button installed
LCD Screen installed
Tinkercad Software Test
Hardware Test
Hardware Test of Smart Door of Smart Toll Station
Manual Mode Switch Test
We designed an electrical circuit to create a smart house, and Basmala and I controlled the lighting and ventilation.
The problem:
The Hardware test of manual didn't work .
The reason :
ModeSwitch didn't connect ,so the state of the button isn't High or Low the system is interrupted.
The solution:
Edit the code on Arduino IDE and add PULLUP.
I learned more about coding, and I went to learn about functions and used them in the project, and I learned more about controlling the outputs, and thus it will help me measure the moisture in the soil.
I learned more about the CNC machine at Fab Lab
We were able to control the lighting of the smart house and also operate the fan at a specific temperature