RollingGecko
100 W
- Joined
- Jul 14, 2015
- Messages
- 110
Hi,
I want to present you my new remote for the VESC Controller. As I started to develope it,I had some requirements in mind:
- Arduino based
- Conection via nRF24
- Feedback of all measured values of the VESC
- Reliability
- Indication of remaining capacity of VESC and TX
- extensibility
- Different designs of the remote possible
And what I get?
Well lock at the pictures.
The enclosure is from a Nunchuk. (still! Later an own design maybe 3D printed)
The electronic are
- arduino nano
- 2S Lipo
- nRF24 Transmitter
- 4 WS2812 RGB lights
- Vibrator from a cellphone
I emptied the complete Nunchuck including all plastic parts from the inside (A Dremel helps a lot) Then was plenty of place inside. Look at the pictures for details.
On the remote site I will also use an Arduino Nano with a nRF24.
I communicate to the VESC over UART. I can control the nunchuk app as well as directly current and break. I read out all measured data and send them to the remote.
Here is the complete current feature list as I wrote also on github to the prerelease 0.2b:
Features:
UART connection to VESC with control of Nunchuk app and reading of relevant values (Voltage, rpm, etc)
Bidirectional conection to remote over nRF24
Remote Features
supports nRF24 bidirectional connection
reads 2 potentiometers and 2 buttons
state indication over 4 x WS 2812
measuring of the lipoVoltage and check for remaining capacity
Vibrator alert
all measured values from vesc are transfered to remote
Configurability over Config.h
rudimentary direct current control and break on vesc over UART possible
On arduino nano:
Binary sketch size: 11.098 bytes (used 36% of a 30.720 byte maximum)
Minimum Memory Usage: 690 bytes (34% of a 2048 byte maximum)
Open points
Many features to be added
Problem with nunchuck app on vesc: No acceleration or break in PID mode
reverse does not work
remote still a Mega2560 because of Serial ports for debug. Must be changed to a Nano.
To be able to use the nunchuk app on the vesc I made some small changes on the BLDC FW. I will send a pull request soon to vedder. Meanwhile you can get the forked firmware here:
https://github.com/RollingGecko/bldc
The complete code of my ArduboardControl is open source and available here:
http://rollinggecko.github.io/ArduBoardControler/
As you can see at open points I've still some smaller issues to be solved. I still don't know where the problem is. So reviewers welcome.
Because of the fact, that I've all measured data already on the TX, one next desired feature is an OLED display. Currently I can state only over 4 RGB LED's.
Current States:
LED 1: remaining TX capacity in different colors
LED 2: connection TX > RX
LED 3: remaining VESC capacity
LED: free
For the traveled distance I've already a 4^x display with the 4 RGB's in mind.
From next week on I'm in holidays. I hope I will find some time to give a better documentation to the project on github.
I want to present you my new remote for the VESC Controller. As I started to develope it,I had some requirements in mind:
- Arduino based
- Conection via nRF24
- Feedback of all measured values of the VESC
- Reliability
- Indication of remaining capacity of VESC and TX
- extensibility
- Different designs of the remote possible
And what I get?
Well lock at the pictures.
The enclosure is from a Nunchuk. (still! Later an own design maybe 3D printed)
The electronic are
- arduino nano
- 2S Lipo
- nRF24 Transmitter
- 4 WS2812 RGB lights
- Vibrator from a cellphone
I emptied the complete Nunchuck including all plastic parts from the inside (A Dremel helps a lot) Then was plenty of place inside. Look at the pictures for details.
On the remote site I will also use an Arduino Nano with a nRF24.
I communicate to the VESC over UART. I can control the nunchuk app as well as directly current and break. I read out all measured data and send them to the remote.
Here is the complete current feature list as I wrote also on github to the prerelease 0.2b:
Features:
UART connection to VESC with control of Nunchuk app and reading of relevant values (Voltage, rpm, etc)
Bidirectional conection to remote over nRF24
Remote Features
supports nRF24 bidirectional connection
reads 2 potentiometers and 2 buttons
state indication over 4 x WS 2812
measuring of the lipoVoltage and check for remaining capacity
Vibrator alert
all measured values from vesc are transfered to remote
Configurability over Config.h
rudimentary direct current control and break on vesc over UART possible
On arduino nano:
Binary sketch size: 11.098 bytes (used 36% of a 30.720 byte maximum)
Minimum Memory Usage: 690 bytes (34% of a 2048 byte maximum)
Open points
Many features to be added
Problem with nunchuck app on vesc: No acceleration or break in PID mode
reverse does not work
remote still a Mega2560 because of Serial ports for debug. Must be changed to a Nano.
To be able to use the nunchuk app on the vesc I made some small changes on the BLDC FW. I will send a pull request soon to vedder. Meanwhile you can get the forked firmware here:
https://github.com/RollingGecko/bldc
The complete code of my ArduboardControl is open source and available here:
http://rollinggecko.github.io/ArduBoardControler/
As you can see at open points I've still some smaller issues to be solved. I still don't know where the problem is. So reviewers welcome.
Because of the fact, that I've all measured data already on the TX, one next desired feature is an OLED display. Currently I can state only over 4 RGB LED's.
Current States:
LED 1: remaining TX capacity in different colors
LED 2: connection TX > RX
LED 3: remaining VESC capacity
LED: free
For the traveled distance I've already a 4^x display with the 4 RGB's in mind.
From next week on I'm in holidays. I hope I will find some time to give a better documentation to the project on github.