Home        Store        Docs        Blog

Sensor data python to arduino


#1

How do I write the motor output data to an arduino connected to the controller laptop? We are able to view the sensor data on python but not sure how to send it to the arduino.


(Patrick José Pereira) #2

Hi,

Can you explain what is your setup ? It is not clear how the motor, laptop and arduino are connected and what you are aiming to do.
Are you controlling the motor via I2C and do you want to read and write data using an Arduino connected to the computer ?


#3

We’re getting inputs from QGC using a joystick and reading motor values using pymavlink. We want to be able to send those values to an arduino connected to the controlling laptop.


#4

Our end goal is to have some kind of haptic feedback for the user controlling the ROV which we aim to do by using the arduino


(Patrick José Pereira) #5

If you have already a pymavlink application running and you want to send data to an Arduino, you can use pyserial.