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
?
Light Sensor
-
- Matrix Staff
- Posts: 1921
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 623 times
- Been thanked: 645 times
-
- Matrix Staff
- Posts: 1921
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 623 times
- Been thanked: 645 times
Re: Light Sensor
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.
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 343 times
Martin