Hello there buccaneers!
I’ve been messing around with the Explorer pHat and one of the small Pololu track sets and I was wondering if anybody has any suggestions for a small, compact sensor I could use in order to do a little distance sensing?
I’ve tried using a HC-SR04 ultrasonic sensor, but I seem to be running into the same problem as this thread here where it doesn’t actually seem to give me any values at all (when running on battery power that is. I’m yet to try it actually using a power supply). I tried this by using the second piece of code found here. (thanks to ColinD!)
It was also mentioned in that thread about using this IR sensor, but I would have preferred to use a sensor from Pimoroni if possible ;)
So, any ideas? This sensor here seems to fulfil what I want it to do, but the support is mostly Arduino based, and being terrible at electronics in general as I am, figuring out which pins go where is a problem. It took me long enough to figure it out for the HC-SR04 and it only had four pins… Clearly labelled at that!
Thanks for all the help!