openroberta-lab icon indicating copy to clipboard operation
openroberta-lab copied to clipboard

Calliope Mini: Using digital read (pulse time) causing light up pixels on the LED display.

Open MarkusBordihn opened this issue 2 years ago • 2 comments

Describe the bug If you using digital read (pulse time) for e.g. using an ultra sonic sensor on the Calliope Mini, it will cause light up pixels even if nothing is connect to the calliope mini at all.

To Reproduce Create a program with digital read (pulse time) like the following and run it on the Calliope Mini (even with nothing connected): image image

This will cause the following light up pixels: image

Expected behavior I would expect that using digital read (pulse time) is not causing any light up pixels or other visual side effects. This could lead to wrong conclusions for the users like a broken device, which is not really the case.

Additional context I tested the program without anything connected on two devices including a brand new Calliope Mini with the same result. Using other programs are not causing any light up pixels at all.

MarkusBordihn avatar Sep 04 '22 13:09 MarkusBordihn

This problem should be compared with Make Code Editor because it may be a hardware problem

bjost2s avatar Oct 13 '22 12:10 bjost2s

Thanks for the feedback, I was able to workaround this inside the program with the "switch LED matrix" block.

See: https://github.com/google/calliope-paper-robot/tree/main/hardware/ultrasonic_hc-sr04#e-switch-offon-the-led-matrix

Maybe it's possible to integrate some smart logic in the back-end to automatically use this in specific conditions to avoid this issue for the normal users.

Adding a "reset LED matrix" block would also an additional option, to simplify this workaround.

MarkusBordihn avatar Oct 13 '22 13:10 MarkusBordihn

Hey @MarkusBordihn as you found out turning the matrix off does help. To put this into context (for others) when using pins from the display/led-matrix you have to make sure to turn the matrix off beforehand. This way you can use this pins as well for other tasks.

joernalraun avatar Nov 28 '22 14:11 joernalraun