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

LED and Laser Control Logic Flow

The document describes initializing an LED, laser, and software serial before turning on the laser and reading a sensor value. If the value is above 900 and it is the first reading, the LED turns on, an SMS is sent to the owner, and the reading counter resets to 0. Otherwise, if the value is below 900, the LED turns off and the reading counter increments.

Uploaded by

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

LED and Laser Control Logic Flow

The document describes initializing an LED, laser, and software serial before turning on the laser and reading a sensor value. If the value is above 900 and it is the first reading, the LED turns on, an SMS is sent to the owner, and the reading counter resets to 0. Otherwise, if the value is below 900, the LED turns off and the reading counter increments.

Uploaded by

Anadi Ranjan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

START

Initialize LED,
LASER

Initialize Software
Serial and n = 1

Laser on

Read
sensor
value as a
Delay 50 ms

Delay 50 ms
a>900 LED on, send
&& SMS to owner, n
n==1? =0
YES

NO

NO
a<900?

YES
LED off, n = 1

You might also like