I am tryign to work through the book projects in order. 2.3 uses the light sensor and the RGB LED. Everything seems to work except my LED flickers and is always green (led color is set to red).
My normal sensor range is 4 or 5 to about 90. stays fairly consistent (wtihin5%) and so set code to 70 rather than 90 to ensure it wasnt the sensor moving to cause the flicker.
I have changed the wiring so it is not the external cables. (I separated the components already).
stopped and started the microblocks program.
any more ideas?
If you click on the color dot in the "PicoBricks set RGB color" block, you can change the color displayed on the RGB LED.
I use a flashlight to test mine, and if I get the flashlight near, but not directly on the light sensor, it flickers. I have my work area fairly dark begin with.0
Do you still have the problem?
If so, please share your MicroBlocks IDE and Firmware levels displayed when clicking on Settings / about.
Also, for the LDR sensors, it is vey hard to get them to display values in the range shown in the spec sheets. Things vary depending on temperature, type of light source, type of LDR materials etc. Check out the link for more on the subject.
Here are a few examples of LDR behavior measured from MicroBlocks:
Reading with sensor open in my room:
Reading with sensor covered by my finger:
Reading with sensor totally enclosed in a multiple times folded cloth, covering it from top and bottom:1
- 96 All Categories
- 3 Community
- 3 Hello Maker!
- 83 PicoBricks - Make, Run, Split, Merge
- 26 Hardware Support
- 14 PicoBricks Backers Hub
- 41 MicroBlocks Support
- 2 Shipping Support
- 10 Products & Technology
- Raspberry Pi
- 10 Other