You are here

ADC & UART. Bluetooth not working.

6 posts / 0 new
Last post
simon.rawlings
Offline
Last seen: 2 months 2 days ago
VESC Free
Joined: 2018-09-20 20:04
Posts: 3
ADC & UART. Bluetooth not working.

I've got a vesc6 running the latest firmware, in my E-bike (DD hub) using 2 hall sensor throttles on ADC 1 & 2 for brakes and throttle. (No reverse). A nrf51xxx Bluetooth adapter wired into Rx and TX. 

I'm trying to connect the android version of the vesc tool.  I see the bluetooth adapter and it initally connects but then gives the error "could not read firmware version..."

I've tried changing the baudrate from the default to 9600. And tried switching the Rx & TX cables on both baudrates. The error was the same. 

Have I missed something. Other than not being able to use bluetooth for real time monitoring and changing setting. The vesc is working flawlessly. 

Cheers

wkt
Offline
Last seen: 9 months 1 week ago
Joined: 2018-03-27 18:23
Posts: 5

I am facing the same issue also tried to connect a FTDI adapter directly from the UART to the PC and nothing gets out. Also I tried with an Arduino and two different libraries: VescUart and VescUartControl.

Running FW version 3.40. I am not sure where te issue comes from.

simon.rawlings
Offline
Last seen: 2 months 2 days ago
VESC Free
Joined: 2018-09-20 20:04
Posts: 3

Is this a firmware issue or do I have the setup incorrect?

Maybe I'll try slightly faster baudrates 14.4k or 28.8k. 

Is there a way of downgrading the firmware? Maybe that worth a go. 

 

simon.rawlings
Offline
Last seen: 2 months 2 days ago
VESC Free
Joined: 2018-09-20 20:04
Posts: 3

Another thought. Is it worth updating the bootloader. Could this cause problems.

zoppp
Offline
Last seen: 8 months 1 week ago
Joined: 2018-09-24 04:24
Posts: 10

I have noticed that when I am running Ackmaniac's Vesc Firmware, my BT05 board connects with his app perfectly. When running Vedder's Vesc tool and firmware, I am unable to connect to my bluetooth module. Maybe Ben's integration of bluetooth is slightly different?

-zoppp

benjamin
Offline
Last seen: 3 days 4 hours ago
Joined: 2016-12-26 15:20
Posts: 354

The BT05 will not work with the VESC Tool app, as the module must use a certain service and be aware of the packet structure to get good throughput. If you use the NRF51, it needs to run this firmware:

https://github.com/vedderb/nrf51_vesc

If you have an ST-link v2 and a linux computer it is quite easy to upload the firmware to the NRF51. There is even a script included on github that only needs openocd installed from the repository of most linux distros, and uploads the precompiled firmware.

If you don't want to build the module yourself, you can buy them ready to use here:

http://www.trampaboards.com/vesc-connect-nrf-wireless-dongle-p-26767.html

The VESC has to use the UART or something+UART app, with a baud rate of 115200.