Problem with car detecting servo with RFID

Good day to everyone,

I would to ask if anyone have any idea to make my project works.

Currently i have made the RFID scans card and open the servo at certain degree for a several seconds. But i want to implement the auto car detecting which use ultrasonic sensor at the gate.

The explanation is when a car arrived at the gate, the user will scan card at the RFID. Once access is granted, the ultrasonic will detects the car whether it has pass the servo gate or not. If the car is not passed yet, it will not closed as it promises safety for users.

I have enclose some parts of my coding.

PS: Sorry my english is bad and also please explain in most simplest words as i am a newbie in arduino

Thanks!

Test Coding.txt (1.54 KB)

azimdon:
Good day to everyone,

I would to ask if anyone have any idea to make my project works.

Currently i have made the RFID scans card and open the servo at certain degree for a several seconds. But i want to implement the auto car detecting which use ultrasonic sensor at the gate.

The explanation is when a car arrived at the gate, the user will scan card at the RFID. Once access is granted, the ultrasonic will detects the car whether it has pass the servo gate or not. If the car is not passed yet, it will not closed as it promises safety for users.

I have enclose some parts of my coding.

PS: Sorry my english is bad and also please explain in most simplest words as i am a newbie in arduino

Thanks!

What is your plan to decide if the ultrasonic reflection is a car or a person or a bicycle, or a dog or ?

Paul