SolidGeek / VescUart

An Arduino library for interfacing with the VESC over UART
GNU General Public License v3.0
177 stars 92 forks source link

Vesc #44

Open JavierDebon opened 1 year ago

JavierDebon commented 1 year ago

I am trying to make a display with arduino MEGA using the SolidGeek library but I am not getting good results. Could you tell me how to make the connections and how to do it thanks.

SolidGeek commented 1 year ago

You need to connect a serial port from your Arduino Mega, to the serial port on the VESC. RX goes to TX, and TX goes to RX. Remember to connect GND also. Then it should be a matter of selecting the correct Serial port, using the setSerialPort() function.

JavierDebon commented 1 year ago

thank you very much it was my mistake I had a broken cable. Thank you. I have another question I would like to know the independent temperature of each mosfet. In your code you do data.tempMosfet = buffer_get_get_float16(message, 10.0, &index); // 2 bytes - mc_interface_temp_fet_filtered() but I don't know which mosfet that temperature is from. could you help me?