How to use USB for sending data from Romi 32U4 to Pi

I want to use the Romi 32U4 control board’s I2C connection to the Pi to command the motors, but the USB connection for streaming sensor data at a fairly high rate. I have the i2c working.

  1. How do I get the 32U4 to show up as /dev/ttyACM0 etc on my Pi

  2. Any pitfalls I should be aware of? For example, will the USB activity (and whatever interrupts are involved in this in the background) interfere w/ encoder interrupts and result in bad encoder readings? I’m also using interrupts to time the echo of a Ultrasonic ping…

Hello.

  1. We expect the device node to show up automatically.

  2. The timing for your interrupts might be affected a little, but we generally expect the effect on sensor readings to be inconsequential. I did not immediately think of any other potential pitfalls.

- Patrick