how to control Hoverboard motor using Arduino and make it RC
Вставка
- Опубліковано 13 січ 2019
- For controlling motor remotely use rc_code.ino goo.gl/BiqZwo
Connect with me here on Social Media -
Instagram: / vinayraj010
LinkedIn: / vinayraj010
GitHub: github.com/vinayraj010
Music
Kool Kats by Kevin MacLeod is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/...)
Source: incompetech.com/music/royalty-...
Artist: incompetech.com/ - Наука та технологія
By far the best and simplest video to follow for this application. Thanks.
Thanks bud. I got mine going thanks to you. It doesn't seem to be running up to max speed but maybe it is. Can you advise on getting it to reverse with joystick down and forward joystick up? I thought the -255,255 took care of that but not what I'm getting
Hi
Is it posible with this setup to detect a transition through zerro and turn on another pin on arduino to change direction and how can I program that?
A great project. I am going to use similar ESC that has a brake which I intend to control with a separate channel.
Thank you.
Nice project with many useful application, well done 👍👍👍 keep doing interesting projects
Does it make much difference which arduino used? Would i need 2 esc to run 2 motors independant or would one esc handle the two and arduino code motors independent?
Thanks for the demonstration! Could you please share what wires you used and what connectors?
male - female jumper wire for the connection, XT60 for the battery connection etc etc or are you asking for the connections.
Can the motors be controlled only by potentiometers or are the programmable control board and hall sensors, etc. a must?
I am asking for bare-bones, absolute simplest controller with manual voltage regulator for different constant speeds. Or would that work on brushed motors only?
To run the motor first we have to connect it with hall sensor terminals which is on the motor controller. So just connecting with the programmable controller will not run the motor.
would work on brushed motors only.
Is it possible to control reverse and brake with arduino? Need it for simulator rig. Willing to use it with encoder.
Can I do the same with an 800 watt hub motor? And can you recommend a driver card suitable for this motor ?
How can this be done with 2 motors such that they can both rotate independently (i.e. implementing turning)? And does the method you demonstrated allow for reverse?
sir right now I don't have the controller but if I would have it then I would have experimented and would have also written code for reverse direction also. The controller provides us the reverse direction also. when we connect Z/F terminal with ground and give 0~5v to VR than wheel rotates in reverse direction.
Nicely done. Keep it up
Ji
So glad I found this tutorial, not had any joy hacking the firmware on the hoverboard firmware.
Question for you, can you run another motor from the andruno with another esc
Yes
thanks for this tutorial i need this
could you use sbus or spektrum dsmx serial instead of pwm and remove the arduino at all??
Don't know. And now I am not working on this project.
Thank you so much for this tutorial. I used this as the basis for my robot, which has two motors (and two ESCs). Both ESC grounds went to a common ground with the Arduino ground, but I found that you do not need to connect the ESC 5v to the Arduino Vin (as you do at 6:38) if you already have a separate power source for the Arduino (as it looks like you do through the USB connection).
My robot has the two motors "facing each other" on a common axle, so when moving the robot forward, you need to get creative in the Arduino code to set one of the motors to run in reverse by grounding the ZF pin on one of the ESCs. (I did this with a relay switch.)
Can 6 of these controllers be hook up for 6x6 tank drive with hoverboard motors?
@@thebassingtowtrucks105 You won't have enough PWM pins available on an Arduino Uno to handle the input plus six outputs (not to mention all of those ZF pins that you'll want to control), so you'll have to upgrade to an Arduino Mega. If you have enough battery power (amps) to drive the six ESCs and their associated motors, then you should be okay.
Another thing to keep in mind: make sure you apply heat sinks to the ESC modules. I neglected that in my first attempt and the ESCs would stop working after a few minutes -- a classic sign of overheating.
@@AtariTape54018 hello, I am looking to make a 8x8 using 8 motors and 8 ESC, do you know which Arduino board would I need to have enough slots ?
Did you use the code to ground zf pin or just a servo that would actuate a relay for ground ?
Can you suggest good motor driver for a small car project. I want to use these BLDC motors from my old hoverboard. The motherboard of the board is a different one and i can't find and firmware hack for it online and i am not capable of writing it from scratch on my own. But i want to use these motors for the project, so best option is to use some good motor driver.
use this controller
www.indiamart.com/proddetail/gogoa1-bldc-hub-motor-controller-36v-350w-450w-14876511030.html
or
www.indiamart.com/proddetail/gogoa1-dual-mode-holeless-motor-controller-36-48v-1000w-15189090412.html
Is it possibly to put the motor in reverse also using the RC controller?
Yes
Thanks for nice demo . What kind of 36 V battery have you used to power the motors ? Can you give more details ?
+1
Congratulation, good job. Your video is perfect.
Do like share and subscribe this channel for more information like this
@@vinayraj010 yes I did it.
Hello! Do you by chance not have the code for two such controllers to work from arduino?
Thanks for the code
Amazing!! I just wanted to know that will this code work for 2.4Ghz mini remote and other 2.4Ghz receiver for electric skateboard.
WOW thank alot bro
Dost !! -- this is very useful. I have a project to control a hoverboard motor using human thought.. your video will be useful .. thank you.. and keep it up!
Which arduino board/type is this?
Hi, where i can find transmit and receiver?
Hi, my hoverboard motors just vibrate when I try and control them via arduino or potentiometer. I tried this with two differents ESCs. Would you happen to know a fix to this?
Hall sensors
hi.great video.i have use dual esc controller with remote to control twin hoverboard motors on my longboard before gets me to 10mph.im looking to make remote control car with perhaps 4 motors which I have from overboard.i have just bought ardino uno r3 kit and I have plenty 18650 cells.made an ebike battery 48volt so can split that for car.i had receiver from a drone and also a monitor black pearl with recover aerials.so hope to figure this out and build mdf shell for go kart
have you seen my this playlist ua-cam.com/video/IaqbMhZaprE/v-deo.html
and do like share and subscribe my channel thanks
Thank you very much, i was looking for this because i want to use ebike controllers to power 2 hoverboard motors and build an eskateboard..... , now i can translate the rc output to the analog inputs on the controller that control the speed...... , the only part missing is brakes :-) , i guess i will try to change the code and if i detect negative input on the rc (lever going back) it will engage the braking pin on the ebike controller, thanks a lot :-)
i dont have much time at that time. I should also make reverse and brake system but just need forward direction of the motor and now the project is over. please write the code for backward direction and upload it here. thanks
do you have code with reverse and brake system ... please share ... i am also aply it to build rc car.
@@RobotNongNghiep-VietNam watch my this video ua-cam.com/video/-7HudGeO-mg/v-deo.html
I don't understand, with rc car esc it works? But other esc it didn't? So can I use a brushless esc to power these wheels? I want to make rc lawnmower. Thankyou
did you drive this motor with another esc
Can I use the 36-volt HoverBoard battery and use it with a 500W driver?
Can you elaborate more on what project are you working. Also the controller is not good (low quality)
if you use hoverboard battery then it destroys your controller don't use that battery.
Nice bro
whats the code the on the arduino when testing out the LED at 4:10 in the video
www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
So I figured out how to detect a transition through zerro and turn on pin 10 for my motor controller to reverse the direction.
What puzzles me now is how to invert the PWM of the left side of the channel. This is my attempt at it so far
I added this code before the: } return pulse; }
if (pulse
how to connect two engines on these controllers, you may have helpful materials, I will be very grateful
Very helpful.
What board are you using, do you have link ?
Also will this work with an arduino nano ?
Thank you :)
Your welcome yes also work with Arduino nano
pls where can I purchase the 36v esc?
Nice job 👍 I am trying to build a electric assisted bike with an hoverboard motor but will the sensor of the moteur will I be able to pedal or the motor will block me ? And can I use a pedaling sensor with arduino to run the motor when I am pedalling ?
Yes you can run the motor using pedaling sensor. But here i don't know which pedaling sensor you will used in your project. Listen read the output value of the pedaling sensor using arduino and convert/map this value for motor control using arduino{ in code}. In my video i used RC receiver. here you can replace rc receiver by pedaling sensor.
Still a great tutorial
thanks ! ;)
i follow your video, it work but it cannot reverse and brake . do you have code with reverse and brake system ... please share ... i am also apply it to build rc car using electric bike motor. i have no idea about code, just copy your. Thank you so much for this tutorial.
sorry i do not have code with reverse and brake system and currently i am not working on this.
at that time i only need forward direction for my project. So i did not write the code for brake. Many people ask for reverse direction. and this modules is not mine. So if i had a enough time to write code for reverse then i will write. and make video on it.
@@vinayraj010 THANK YOU FOR REPLY ME. HOPE YOU WILL UPLOAD IT SOON
There are two versions of this speed controller ... The more expensive version could do away with the ardiuno .... I think.......maybe im wrong but not often . . great vid
Hey, Do you think you could give me the parts list that you used? And how would I connect a second hoverboard motor to the same controller?
this is not a good controller. use second controller for second motor but can use single arduino, receiver.. & watch the video for part list
@@vinayraj010 How would I make two motors work in together to make a remote control car like the ones in your videos? I've been researching for hours and I have not figured out how to do it.
@@sythosz1571 using hoverboard motor or what type of motors(bldc / DC/servo motors) you will used in your project? tell me. first select the basic component/modules like motors.... which is according to the need/requirement/specification of your project and then start work on it.
start with tyre specification and then select motors then chassis. don't see to much videos (hahahha--not figured out how to do it)use your imagination/ vision --think about it... use imagination for making a project you learn more.
@@vinayraj010 What I'm looking to do is create a remote control shopping cart with two hoverboard motors. However I cant seem to figure out how to control two motors with one transmitter. I'd like to have one joystick control one motor, and the other to control the other. In my mind I see this as the easiest way to control the motors.
The wire you connected vr to pin #5 has raised a question. I have a riorand esc and it doesn't have a vr identifier but does have a pwm pin. Im new to this so forgive the ignorance. Would connecting the pwm on the riorand to pin 5 accomplish same thing or should I connect it to a different pin?
After searching all over I had a thought that due to language accent I may have misunderstood. Did you say vr or dr to pin 5
@@TheOldKid did it end up being dr after all?
@@MegaMarcuscooper he says vr. If you have the riorand i think its the 0-5v pin to pin #5. I cant remember off top of my head but ill be hooking it back up later and will confirm thats what I did. The remote also has some settings that need addressed for your application from what I understand but haven't gone through to see if it makes a difference yet
@@TheOldKid Wow thanks for the reply. On your arduino, which pin did you connect the "dir" wire coming from the riorand? I'm assuming that required to change directions. I don't know how to tell the code to reverse either.
@@MegaMarcuscooper i havent connected direction pin. I assumed -255,255 wouldve been automatic rev and forward. I think to make it work properly the jumper needs to be done and the side board pwm should be used but im of the older gen and just happy I havent seen smoke yet. I do have propulsion and now fabricating a steering mechanism to use a servo.
Nice job. Question - I have two hub motors on the front side, but they move with different speed when they are connected to same arduino and power supply. Any suggestions on how to ensure the wheels move with same speed if they are moving just forward or backwards. Thanks. Any help would be appreciated.
Connect 5v, gnd, and signal wire together of two motor controller on one Arduino signal channel.
or a better solution of this problem is to write a code which can do switching on channel example.. when vehicle moves forward is on one channel, when turn left or right is on another channel for different speed of the vehicle for turning the vehicle. Ok please do like share and subscribe for more information thanks.
@@vinayraj010 Can you write that code?
did you manage to reverse the rotation ?
The controller provides us the reverse direction also. when we connect Z/F terminal with ground and give 0~5v to VR than wheel rotate in reverse direction.
In code you can use if condition and limit the channel signal and use that some +value for forward direction and some -value for backward direction.
Also the controller is not to good (low quality)
You can mail me your project problem {vinayraj034@gmail.com}
Are there other motor controllers that will work with hover board wheels without the Arduino?
@@curtmorehouse1 I believe that an ebike controller would work. It would use the throttle or a suitable potentiometer for setting the speed. One similar to this (not this one in particular). www.ebay.com/itm/24V-36V-350W-6Mosfets-E-Bike-Scooter-Brushless-Hub-Motor-Controller-throttle/322385783453?hash=item4b0fb0aa9d:m:mdYa9fO6sdu_rP_7_zSUWjA&var=512584967279
@@curtmorehouse1 first see this all tinyurl.com/y2baac5n
watch my this video ua-cam.com/video/-7HudGeO-mg/v-deo.html
I need a help , in hoverboard configuration
Ok tell me
can this control use reverse and forward and break ??
this is controller not a good quality contoller. use flipsky VESC contoller instead of this contoller
yes using this you can control reverse forward and brake?
@@vinayraj010 how, you you make another video with that. And also controlling more than 1. I'm trying to run 6 off a remote
Opa consigo usar um joystick para controlar dois motores? Para um projeto de cadeira de rodas
please comment in english /hindi or hinglish
so your comment is -- Oops can I use a joystick to control two engines? For a wheelchair project.
Reply - yes you can. Use 2 channels to control two motors.
responda no seu idioma - sim você pode. Usar 2 canais para controlar dois motores.
I make dual motor dc with controler hoverbord, and i see your description,and i setup just make dual channel ino for coding or make coding for receiver too
Please reply my question please
Hello. On 4.46 its valid code or not??
yes Sir it is a valid code if you have any problem in that i can help you. Sir on 4.46 i just read the channel signal using arduino(its connection also mention/comment in the code) and for controlling motor i wrote rc_code.ino code.
@@vinayraj010 Thanks a lot dear for your reply. I understend your code!! Thats very cool. Have one questions - How change direction of motor rotation??
Are the esc’s switchable? As in can the motor turn clockwise then counter clockwise based on RC signal?
we can make it with the help of code/logic and circuit.
watch my this video ua-cam.com/video/-7HudGeO-mg/v-deo.html
hi, how do i connect 2 engines?
First Create 2 channel and then write code for read the value of 2 channel and connect wire
Thanks. My kids keep breaking their hoverboards. I took the wheels off and I will use them for my next robot!
how to reverse this engine
How can run without arduino
Hi.
I need to implement this. Can we spoke in private message?
The esc will blowup
rotates both ways the code has rotation reversal
have you taken mechatronics? if yes then from which college?
Why are you asking me this question{which college?}
You are in school? College? What?
@@shubhendraraj3761 why are you asking this type of questions here which college - college or school
What you want to ask. ask me directly
Why you want to know my college name
Actually I also want to take mechatronics after a year , so was just curious .
@@shubhendraraj3761 mail me at vinayraj034@gmail.com we can discuss there
Code pls
not all heroes wear capes...
Not working.
Esc link plaese
Just search
Brushless Motor Controller DC 12V-36V Hall BLDC Motor Balanced Driver Board
If your just trying to control the motor RC? why not just use an RC ESC? it's all ready figured out?
I used it before but it didn't work with the hall sensor motor. the RC ESC we use in drones does not contain hall sensor pin.
Boss code
It can forword and reword
"Is one Arduino, one ESC, and one receiver needed per wheel?"
You do control 1 motor and to control for 2 motors, so what?
read the value of the other RC channel using same receiver & arduino {in code with different variable name} and map it for controller as shown in the video above.
@@vinayraj010 Please can you make an other video with 2 motors.
How robust is this system. Can this handle loads as high as a standard hoverboard motherboard?
@@xxlalbatross3287 sorry I am no longer working on this project and i do not even have the goods for this project
this is a low quality controller.so use best quality controller for your project
I can do this without arduino.
If you have any idea ... I want to run car power steering motor with flysky RC control
one motor? how about two three four motors? everyone on youtube show only one motor :)
sorry I have no time right now
four or five motors were also shown running simultaneously
Hi there, I want to control my ZRS with a RC controlar... in other words, I need to do exactly what you are doing on this video. Can you send me a private message on my facebook page (facebook.com/ZipRush), I'd like to discuss that with you. Thanks in advance.