Hello all,
I managed to make my own eBoard, thanks to all people like you who share their knowledge online. My setup is very simple: 2 x 3s batteries (lipo 11.1V, 35rc, 6000mAh) in series, connected to the vesc. If I understand the theory correctly, this gives me 22.2V and 6000 mAh. This setup gives me a range of 13km (8 miles).
While riding, I would like to see the capacity of the batteries.
So, with an Arduino Nano, I made a circuit with a rgb LED and programmed it to different colors, depending on the Voltage it reads. Example: when battery is between 100 and 90% the LED is green, between 89 and 70% the LED is blue,…
Now I would like to add this setting (Arduino) to my eBoard, but I really don’t know how and where I must connect it. I guess it has to be connected to the VESC?
Sander,
THANK you for helping me.
Sorry, but I must confess that I don’t know anything about electronics and programming.
Could you please indicate what I should connect where, from the VESC to the Arduino?
What I wrote in Ardiono is:
int potPin = A0;
int LEDGroenPin = 7;
int LEDBlauwPin = 5;
int LEDRoodPin = 3;
int LEDlong = 2000;
int LEDshort = 200;
float readValue;
float writeValue;
int LEDGroenMin1 = 800; //995.37; 100% -> 90%
int LEDGroenMin2 = 600; //954.75; 89% -> 70%
int LEDBlauwMin1 = 400; //914.12; 69% -> 50%
int LEDBlauwMin2 = 200; //873.49; 49% -> 30%
int LEDRoodMin1 = 50 ; //832.86; 29% -> 10%
connect the RX of Arduino the the TX on the VESC, same with the Arduino TX to the RX on the VESC. On the underside of the VESC where the UART is, it stands what is TX and RX.
I believe its like this, 5V, 3.3V, GND, RX, TX, AD2, AD3.
You can use the 5V pin connect it to the VIN in the arduino and the GND to the GND.
But you cant upload the sketch if you are connected with the UART with the power on of the VESC.