I am trying to controll a VESC 6.4 with an Arduino Nano. The Nano is setup and can successfully control a little servo. What connections do I need to the VESC?
The Nano needs to be always powered on, so it is powered by an UBEC. Therefore I cannot have the VESC power the Arduino.
Unfortunately one VESC already broke during my first attempt. Either it was my fault or it was already faulty. The VESC ended up powering the Nano over Signal and GND which is strange.
Not sure how the nano could be powered by the signal wire so maybe check your wiring to the Vesc. Also please search for answers as there are multiple threads already about remotes using arduino chips
Because this is for an electric surfboard and the Arduino controls a lot of components other than the VESC. Among others a big 12V relay to cutoff the lipos.
It is similar, but a boat could go in circles for 30min if it goes out of control. So I need safety features. I also need a lot of power for relays and I don’t know how much the VESC can supply and I need 12V. The Arduino also performs the Anti Spark Routine. So it naturally needs to be powered on first.
Yeah, I guess your vesc will detect servo library’s signal in range [1200, 2200]. Which is 200 ms off. But you can set that boundary inside bldc-tool -> App Configuration -> PPM window.
Thanks for the tip, that is easy to change. Have you got any ideas how to establish some safety in the circuit? Like diodes or 10k ohm resistors? I don’t want to blow another Vesc. Again not sure if I blew it or if it was blown already.
I think setting adequate (supplier recommended) Maximum Current for Battery & Motor should prevent any big damage.
Also, software-wise, set Maximum duty-cycle around 0.95. If you set it to 1.0, program will be unstable, and (in theory) the mosfets that get stuck being ON can draw too much current and burn out. Causing battery short, which in your case will be prevented by the Fuse(that’s massive).
Those are the 2 tips I remember being posted from people who had their VESCs blown.
About ‘safety’, hmm… I don’t have a good idea. Since VESC already has setting to ‘ignore’ PPM value if wrong inputs are made for certain period of time. So if you have PPM signal disconnected, VESC would stop the motors(I just tested it and it does).
So I think if you set up critical VESC settings properly, any BIG(Fire, Explosion, Surf-board running away from you) Problems would not happen .
Nice Fiberglass job by the way! is your job related to FRP, or did you learn it to make stuff?
I explain in the readme there a bit about how I set things up. Using Arduino pro mini 3.3V makes it easier to use the 5V from the VESC but from skimming the thread here it appears you’re powering it separately anyhow. If you are doing wireless control let me know there are some extra details for safeties you can add there, otherwise ignore parts of my code about radio.