It’s possible there’s a problem with the code you started with. As it’s 5 years old, I think it only works on old VESC FW (< 3.4) Try this updated version:
I get: Test display No data from VESC and that fills the whole page
I have tried that and I got no output too.
So this means that the function: vesc_get_values(VescMeasuredValues) is failing.
Is your ESC on?
yes the vesc is on
Could the TX/RX be backward?
Arduino TX should connect to VESC pin 5
Arduino RX VESC pin 6
Just tried swapping them but the display outputs: No data from vesc
There’s a high chance this library will not work for your setup. Since you have a different type of Arduino, it may not be supported.
My bad from earlier, it should be using this again in setup
Since VESC library requires SERIALIO (which may not work for SAMD chips). I suggest you get the SolidGeek library to work, as that has a better serial port implemetatation, so is more likely to be compatible for you.
Got it. Let me retry that and see if I have any luck getting it working. Thanks a ton Louis for all the help and suggestion!!! Will update the post once I test the SolidGeek library
Excellent.
Install the library. Open the getVescValues Example. Add your TFT stuff. Keep your fingers crossed.
Good luck