Giter Site home page Giter Site logo

Comments (11)

joseguerr avatar joseguerr commented on September 12, 2024

Could not make it work for FW 3.56. If Anyone knows a way of reading data from the new firmware let me know. I'll post here if i know how to do it. In the meantime what version of FW shoud I use?

from vescuartcontrol.

Peemouse avatar Peemouse commented on September 12, 2024

Give my fork a try : https://github.com/Peemouse/VescUart
It works for me with FW3.57.
However, you'll have to modify the mask for requesting the data you need as I use COMM_GET_VALUES_SETUP_SELECTIVE.
For calculating the mask, use the tool "VESC COMMUNICATION.xlsx" available here

from vescuartcontrol.

joseguerr avatar joseguerr commented on September 12, 2024

Thanks for quick the replay @Peemouse

I tried the getFWversion, but no success.. I am using an Arduino mega and used Serial1 as well Rx1 -> 19 and Tx1 ->18. Both baud rates at 115200 and did not change the mask (I know little to nothing of c or c++ but i can learn it). Pins were correctly placed and are giving me 0.5 V for Vesc RX and 3.3V for Vesc Tx. Do you have any idea what can be the problem?

Thank you once again,
José

from vescuartcontrol.

Peemouse avatar Peemouse commented on September 12, 2024

Add UART.setDebugPort(&Serial); after UART.setSerialPort(&Serial1); in the example file getFWversion.ino. Load it on your Mega and open the Serial monitor.

from vescuartcontrol.

joseguerr avatar joseguerr commented on September 12, 2024

It is reading! Thank you so much. Also, the ground is making a poor connection with the Arduino board and the signal gets interrutped very often. I will try to read more data from other variables. In the meantime can you indicate me what are the basics of c++ that I need to know to setup up these masks values as well the structure behind this particular code? I only have experience with matlab but with a few guidelines I can learn the basics on my own. Again, thank you so much!

from vescuartcontrol.

Peemouse avatar Peemouse commented on September 12, 2024

Well, for the mask, just use the file I linked to you.
I need to add the lines for deserialization so you'll only need to uncomment he ones you're requesting.
Let me push it.

from vescuartcontrol.

Peemouse avatar Peemouse commented on September 12, 2024

@joseguerr please update your library with the latest version I just pushed.

from vescuartcontrol.

joseguerr avatar joseguerr commented on September 12, 2024

I have updated the library. When using the getVescValues the rpm and inpVolts are giving me strange values. I do not have the motor connected to the VESC atm.

vesc reading (1)

Is this a common situation? Thank you once again.

from vescuartcontrol.

Peemouse avatar Peemouse commented on September 12, 2024

@joseguerr Could you open an issue on my fork for this ?

from vescuartcontrol.

flegmatoid avatar flegmatoid commented on September 12, 2024

I second Joseguers conclusion. v3.58 returns huge values in both idle and running cases. Something about the packet format got changed.
I can see lots of integer overflow values (65535 etc.).

from vescuartcontrol.

joseguerr avatar joseguerr commented on September 12, 2024

The code provided is working properly. At the time I was having issues because the grounds were not properly connected. Also, I was using Arduino Mega and one thing it worked for me was to use TX and RX 3, since 1 and 2 were not giving me any decent output. Go check Peemuse's issues, I believe that is the place where the full discussion is. Cheers

from vescuartcontrol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.