Automatic tollbooth
This is an automatic tollbooth. It opens when it detects something in front of it.
Components and supplies
Arduino sensor shield
Arduino UNO
Lidar sensor
SG90 Micro-servo motor
Female/Female Jumper Wires
Project description
Code
Code for automatic tollbooth
c_cpp
Down below is the code for the automatic tollbooth. If you are having any troubles, please comment down below and I'll be happy to help.
Downloadable files
circuit diagram
This is a diagram of the circuit. I was not able to find any website which allowed me to add a lidar sensor and hence I removed it. You can connect the power of the lidar to the power on the breadboard, the ground of the lidar to the ground on the breadboard and the RX(green wire) and TX(white wire) to the ports that you have given in the code. If you have any other lidar sensor, you can google connections for that specific lidar and follow the steps.
circuit diagram

circuit diagram
This is a diagram of the circuit. I was not able to find any website which allowed me to add a lidar sensor and hence I removed it. You can connect the power of the lidar to the power on the breadboard, the ground of the lidar to the ground on the breadboard and the RX(green wire) and TX(white wire) to the ports that you have given in the code. If you have any other lidar sensor, you can google connections for that specific lidar and follow the steps.
circuit diagram

Comments
Only logged in users can leave comments