You are here

VESC OLED Display without arduino

4 posts / 0 new
Last post
georgeli293
Offline
Last seen: 10 months 1 week ago
VESC Free
Joined: 2024-01-07 23:24
Posts: 4
VESC OLED Display without arduino

I'm fairly new to firmware, however I am trying to display the current speed to a OLED display, using only the VESC and an OLED display. I found a tutorial online that uses an arduino nano as an intermediary however I was wondering how I might be able to achieve this without the arduino. Since the VESC has a microcontroller on it wouldn't it be possible to directly calculate the speed and read that data to the display?
Below is the tutorial im referencing: VESC LCD Display - YouTube

vadicus
Offline
Last seen: 1 month 2 weeks ago
VESC Free
Joined: 2018-08-17 07:26
Posts: 431

It would help to know the specific hardware you are referring to. OLED display doesn't say a lot about what it actually is other than it's something that it uses OLED tech. Many displays come with MCU on board these days, so even though they are still called displays, they have a full blown computer on board. So assuming we are talking about a barebone display with I2C or UART interface, it would be fairly easy to drive a display directly from VESC code provided you have free pins on the MCU you can use for that. One way to do it is using lisp and there are already libraries and example available in latest version of the firmware. Just because it can be done, however, it may not be a good idea to do it that way if your display will be more than a few inches away from the controller. If the display is placed somewhat away from the controller, the right way to do it is to use CAN for reliable operation.

 

 

NextGen FOC High voltage 144v/34s, 30kw (https://vesc-project.com/node/1477)

georgeli293
Offline
Last seen: 10 months 1 week ago
VESC Free
Joined: 2024-01-07 23:24
Posts: 4

Hi thanks for the response,

The hardware I am using are

Display: SSD1309 V 4.3
VESC: FSESC mini V 6.7

If possible are there any guides that you can provide that may help me
 

vadicus
Offline
Last seen: 1 month 2 weeks ago
VESC Free
Joined: 2018-08-17 07:26
Posts: 431

As I mentioned, if the display goes on a handlebar or somewhere away from the controller, it would not be a good idea to run long wires to it direct from the MCU. You will compromise the controller operation and the display is likely not going to work reliably either. It's worthwhile to use a display that has a MCU in it, like atmega or esp32, or similar. The cost difference will be minimal. If you do some googling, you'll find tons of libraries and code that can be easily adapted to read, interpret vesc comm protocol and show data on the display. This might be a good place to start: https://github.com/SolidGeek/VescUart

 

 

 

 

NextGen FOC High voltage 144v/34s, 30kw (https://vesc-project.com/node/1477)