Arduino TollGate with ultrasonic & rfid & servo


hello guys.

im doing project school , started doing arduino smart tollgate. i'v been doing fine far until got stuck in while loop. want ultrasonic sensor protect car toll. great thanks.



i assume while loop stuck in one:

code: [select]
        while ( distance < 4){
         
           delay(500);
         
        }


if loop entered value of distance never changes , yes, stuck in it.  there block of code @ beginning of loop() sets value of distance, need include in while loop, it's chance you'll have of getting out of it.


Arduino Forum > Using Arduino > Programming Questions > Arduino TollGate with ultrasonic & rfid & servo


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor