Automatic tollbooth

This is an automatic tollbooth. It opens when it detects something in front of it.

May 14, 2021

9779 views

3 respects

Components and supplies

1

Arduino sensor shield

1

Arduino UNO

1

Lidar sensor

1

SG90 Micro-servo motor

1

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

Image

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

Image

Comments

Only logged in users can leave comments

atharvkumar06

0 Followers

0 Projects

0