Professional Documents
Culture Documents
09.04.20XX
─
Your Name
Your Company
123 Your Street
Your City, ST 12345
1
ALGORITHM:
Step 4: Set up a continuous inner loop until you press the button and
set the input variable
Step 14: Else check if counter > 0 && cruiseControl == 0 && adaptiveCC
== 0 to know if cruise control or adaptive cruise control mode is set, if
the above condition is true then go to step 15 else step 16
Step 16: If the adaptive cruise control is equal to 1, read the sensor
value from the ultrasonic pin, then check if the sensor value < 0.5 and
the counter > 0, then decrease the counter value by one, otherwise if
the counter < ACC speed, increase the counter value by 1
IMAGE REPRESENTATION:
Circuit Diagram: