Scratch motors & ultrasonic sensor


#1

Hi Folks. Using the BrickPi in our Coder Dojo and the kids have really enjoyed the build and troubleshooting. We have car working in Scratch via VNC (great!). Having dificulty getting the US Sensor to work with the motors. Pasted in the US test example and adjusted some things (had to take the START command out). Getting a value from the sensor (so is working), it just seems that there is an interaction with the motors. Now, may be my code (I’m not a coder, but I try), would be great if someone had a car + US sensor example I could reference.

Thanks

Eamon


#2

Got an example going. Has 2 motors and US sensor working well. All set for next Coder Dojo session. Here is the link to the scratch program.