This thing plugs into the external electronics port on the RoboRio, but it could talk to about anything including a PC on the Nano's USB port. It just needs +5, ground, and a TTL level serial connection (UART.RX on the RIO port). The code is a straight ripoff of the sample in the NewPing library, which also fully documents how to wire the whole thing up.One of the photos shows the little prototyping board that I used to hold the connector to the RIO. Be sure to insulate that well, as it's going directly to the data bus on the RIO; if it shorts out, you may have a not-good day. I'm planning on either smothering it in hot glue or if time permits, making a 3D printed box with a handle to facilitate removal from the RIO.The box is made from my generic PCB box SCAD, with extra thick walls (4mm). I hope this is rugged enough to stand up to FIRST competition conditions; it feels easily strong enough to park a car on top of without bothering it any.The wires exiting the board are strain relieved with a simple knot and a 10-32 washer.
I'm a computer person who grew up on a farm. I enjoy all kinds of making. Programming, electronics design, rough carpentry, whatever.I am a mentor for FIRST Robotics FRC team 1502, "Technical Difficulties" at Chelsea High School.