Question: build a circuit based on this code with lcd and IR sensor use any software to implmented, attach like please #define Park_capc 50 #define Entry_sensor

build a circuit based on this code with lcd and IR sensor use any software to implmented, attach like please

#define Park_capc 50 #define Entry_sensor 2 #define Exit_sensor 3 #define entry_door_motor 4 #define exit_door_motor 5 int carCount = 0; void setup() { pinMode(Entry_sensor, INPUT); pinMode(Exit_sensor, INPUT); pinMode(entry_door_motor, OUTPUT); pinMode(exit_door_motor, OUTPUT); } void loop() { if(digitalRead(Entry_sensor) == HIGH) { if(carCount < Park_capc) { digitalWrite(entry_door_motor, HIGH); delay(1000); digitalWrite(entry_door_motor, LOW); carCount++; } } if(digitalRead(Exit_sensor) == HIGH) { if(carCount > 0) { digitalWrite(exit_door_motor, HIGH); delay(1000); digitalWrite(exit_door_motor, LOW); carCount--; } } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!