Home 2018 Forums Crumble General What sensors can I use? Reply To: What sensors can I use?


I’ve got the lego rcx touch button sensor working now – just connect as if it were a normal switch in the crumble getting started guide and read input as high or low.

After further research the Lego RCX IR light sensor needs to be “charged” – a capacitor stores energy and then the value needs to be read from the input shortly after. Can anyone sugges a way of doing this in the crumble software? Can I set an output as High and then back to an input to read a value into a variable?

Here is some sample code I found online and a description of the timing – https://seriousrobotics.wordpress.com/2011/11/20/using-rcx-lego-sensors-with-arduino/