I'm working with max, an arduino uno (loaded with standard firmata) with the maxuino object pretty happily to get two motors working for a robotics project, but I need to connect up an ulatrasonic sensor too.
The practical connecting seems pretty easy:
UCC to 5v
Trig to PWM pin (digital)
Echo to Normal (digital)
Gnd to Ground
But I can't seem to find anything about how to write the code to actually view the data. From what I understand I'll need to trig the sensor, and read the echo, but I'm struggling to find any code to help.
Anyone have a basic patch they could share?