0% found this document useful (0 votes)
69 views1 page

Code Flowchart PDF

The document is a code flowchart for an Arduino sketch that controls motors and plays sounds based on light and sound sensor inputs. It initializes pin mappings, turns motors off by default, checks right and left photocell sensors to control separate motors with PWM if high, checks microphone voltage level to play a siren if over 600, otherwise plays power blocked and waits briefly, and will shake motors and play beep pyramid if microphone detects a shake.

Uploaded by

ra44993541
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views1 page

Code Flowchart PDF

The document is a code flowchart for an Arduino sketch that controls motors and plays sounds based on light and sound sensor inputs. It initializes pin mappings, turns motors off by default, checks right and left photocell sensors to control separate motors with PWM if high, checks microphone voltage level to play a siren if over 600, otherwise plays power blocked and waits briefly, and will shake motors and play beep pyramid if microphone detects a shake.

Uploaded by

ra44993541
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy