Comments (11)
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.
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.
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.
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.
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.
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.
@joseguerr please update your library with the latest version I just pushed.
from vescuartcontrol.
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.
Is this a common situation? Thank you once again.
from vescuartcontrol.
@joseguerr Could you open an issue on my fork for this ?
from vescuartcontrol.
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.
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)
- 'fdevopen' was not declared in this scope HOT 2
- getting additional values with VescUart HOT 3
- Update for new VESC4 Firmware incl w/ Beta VESC-Tool HOT 6
- ToDo: Add Message Handling > 255 (starting with 3) HOT 10
- Debugging on a Arduino Nano
- Support fw 3.28 HOT 6
- Tester wanted HOT 14
- Arduino/libraries/VescUart/VescUart.h:45:21: fatal error: arduino.h: No such file or directory #include "arduino.h" HOT 3
- Warning converting to non-pointer type
- VescUartControl for Vesc tool working with Teensy 3.6 Error HOT 2
- Compatibility with Arduino Uno HOT 1
- Help appreciated for ESP32 HOT 2
- Getting "Failed to get data!" help? HOT 1
- Reading rpm out of struct HOT 6
- How to use COMM_FORWARD_CAN to send commands to slave VESC HOT 1
- HOW TO USE FUNCTION SETPOSITION (MOTOR CONTROL)
- An error occurred while uploading the sketch Invalid library found
- Changing maximum duty cycle
- Issue when trying ti initiate the VescUART class
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vescuartcontrol.