Light Sensor

For general Flowcode discussion that does not belong in the other sections.
medelec35
Matrix Staff
Posts: 1449
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 509 times
Been thanked: 472 times

Re: Light Sensor

Post by medelec35 »

which post has the code are you referring to:
Post 1 @ Sun May 08, 2022 3:04 pm
or post 2 Mon May 09, 2022 12:28 pm
?
Martin

habba34
Posts: 4
Joined: Tue May 10, 2022 6:58 am

Re: Light Sensor

Post by habba34 »

Monday 09 2022 12:28 pm code

medelec35
Matrix Staff
Posts: 1449
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 509 times
Been thanked: 472 times

Re: Light Sensor

Post by medelec35 »

That code was a quick way to test on hardware only.
even though the simulation only shows 1 LED, it will work with all 8 on hardware.
For both hardware and simulation, the Count within led_array properties should be changed from 1 to 8.
I have done that on the attached Flowchart.
Instead of the light sensor component, a Potentiometer can be used.
the LED array was used as that was already connected.
Alternatively, the value can be sent to an LCD if you have one.
Attachments
Flowcode LDR test sim and hardware.fcfx
(10.23 KiB) Downloaded 73 times
Martin

Post Reply