Arduino Distance sensor as an input ?
Hello All !
I have got a HC-SR04 Ultrasonic sensor wired up with an arduino.
Using the NewPing Library code I can get a read-out value in the serial window of milliseconds or centimetres. But I cannot figure out how to use MilliuminStream to send this data to Milliumin.
I've attached a picture of my code. (I am sure that I have got all of the MilliuminStream code wrong, so sorry in advance !)
Best Wishes,
Arran,


ard.png
1606 x 1842 - 251K
Comments
I'm interested in using this type of sensor. Wondering if you may have posted the 'tidy'd up' code you were able to get working?
Thanks
Kathleen