You are on page 1of 1

EE40LX Code Flowchart

sketch_7.ino
Initialize
pin mapping

Let motors
Turn run for
motors off 500 ms
no

Is R. photocell yes Turn on PWM


Beep four
times output high? to R. Motor

no
Read mic
voltage level yes
Is L. photocell Turn on PWM
output high? to L. Motor

Is mic level no Turn on power


> 600? blocked rail,
wait briefly

yes

Shake Play “beep


Play siren
motors pyramid”

You might also like