BLDC Hover Board Motor Controller | Arduino Mega | Part 2 | Tutorial # 36
Вставка
- Опубліковано 2 жов 2024
- Alexa Taking out the trash
www.youtube.co...
Arduino Code:
github.com/nas...
5V-36V 350W DC Brushless Motor Controller BLDC PWM Driver Board
goo.gl/qnQ32U
Specification :
Operating voltage: DC 12V-36V
Operating Current: less than or=15A
Driver Power: less than or =500W
Speed Voltage: 0.1V-5V
Operating Temperature:-40-85C
Humidity: 90%RH
Stall protection:Yes
Enable Control: Yes
Over-current protection: Yes
Steering control: Yes
Speed control signal: Yes
Size: 63*42*17mm(L*W*H); Probe size 3mm,length: fixing hole center distance 57mm; width:fixed hole center distance 36.5mm
Power terminal Out:
VCC(positive power supply)
GND(negative one)
MC(motor phases W)
MB(motor phases V)
MA(motor phase U)
Set for the control side:
GND control terminal ground
VR the governor end 0-5V(corresponding to 10% of motor speed -100%)
ZF reversing control(connected to 5V or ground can charge the motor rotation direction)
M tachometer pulse output(depending on the number of motor poles corresponding to the number of pulse per revolution of the output number)
EL enable control terminal(connected to 5V ot ground running then 5V, grounding the motor stops)
5V 5V control terminal
HALL for the hall terminals:
5V, Hall power positive
Ha, Hall signal
Hb, Hall signal
Hc, Hall Signal
GND, Hall negative
Wiring:
Control terminal for SET:
1. The motor speed control wiring methods: available potentiometer system speed can also be connected to the MCU control, when the potentiometer control wiring, the potentiometer middle pin is connected to VR speed port, a potentiometer connected to both ends of 5V and GND terminal voltage more high speed faster
2. Motor steering control wiring methods: you can switch control can also be connected to the MCU control, to GND in one direction, then in one direction 5V
3. Pulse speed signal: high and low output. IC can not understand the information with the customer request
Hall signal inputs for hall:
The wiring diagram is shown, one corresponding to the HA, HB,HC and on the motor, 5V power supply connected to the motor hal signals positive, GND power supply negative signal to the motor hall
Note: Due to different motor manufacturers to make the hall of hall line order does not necessarily follow the line on the board to match the sequence, need to be adjusted, please parents who pay attention! If the line sequence wrong, does not boot properly, current, or start other phenomena not open, forced to use the drive plate will burn!!!
Motor driver board 12-36V DC power input,
VCC positive power supply,
GND power supply is ground (0 Volt).
Electrical wiring methods:
Brushless DC motor for the three lines, corresponding MA/U,MB/V,MC/W
Tips: If you use less than 60W, without additional heat sink , be sure to add more than 60W heatsink fins drive efficiency without lowering the temperature is too high will shine into permanent damage! The size of the heat sink may be a bad environment based work(recommended cooling surface area greater than 200 square centimeters)!When installing the heat sink ,must pay attention to the back of the module 6 MOS pipe insulation, no insulation, it will be adhered to drive plate permanently damaged! Proposes to add insulation films, both sides of the insulating sheet plus thermal grease! - Наука та технологія
thank you but i received error code due to Arduinojson than i downgrade the library to ver 5.13 thanks
Hello, im just here to tell anyone whose gonna use this driver that the manufacturer say that "The 5V output port on the drive board is forbidden to connect to external power equipment. It is only applicable to an external potentiometer or switch for speed adjustment, commutation and enabling operation". So, don't connect the 5V.
Can you make it with Raspberry pi and python ?
nice work showing us all that you done with this. It's a lot sturdier solution for a robot than a worm gear motor and surprisingly, a lot cheaper as well.
thanks for a great video
anyway.. is it possible to use 2 bldc motor using two driver ? how to combine it with the code that you give ?
thanks
I'm currently working on this issue. I've got two wheels to spin....pretty easy, but the code doesn't allow for a lot of fine control.......I really have been trying to get six of these working together with the mega....We'll see
@@nikmische8456 hello Nik can you please upload the code here
I have built this project. However, with an ebike controller.
The motor runs as it should with a potentiometer.
If I give a PWM signal with an Arduino to the controller, the motor runs very irregularly.
Do you know what the problem could be?
Great video. Can I use this configuration for simulator steering wheel force feedback?
Did you use it?
Hello what’s next? Is there a hand controller for this?
Can you do a video exactly like this but instead of "Digital Write()" you work with Directly talking to the ports and register manipulation. Love the video, really awesome It seem like they run really slow, is their a way to adjust the speed? Changing the speed doesn't seem to really change it that much.
Hi! thanks for the video! I have some questions. Could I control the time that the motor is spinning instead of the steeps from the hall sensors? I want to modify your code in order to achieve certain rpm (speed) and certain spinning time (steeps). I want to regulate it with 2 pots, one for the rpm and the other for the spinning time. It´s possible?
Thanks in advance!
did you do it?
Sir, i try the code and it's work when i see at the serial monitor there's a step count. But the motor wont spin att all any idea what's wrong ? Thanks
Same problem here. Did you get the solution?
Howmany steps for one rotation?
Why need 1 second to command accept
Hi, what's the minimum power able to be applied with this control board? With the speed pot set at the smallest value to enable the controller output can the motor be powered but not enough to overcome the friction and turn?
i have a few questions, first one being what do i do if i want to use this with an ebike, i'd have to ocnnect it to a 36V battery but in the previous video you mentioned it would fry it up, loooking for a solution. second, is it possible to do the same using an arduino nano or uno
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?
I had the same problem did you find a solutions?
try changing wire phases
Hi I am doing same project using Odrive and hoverboard wheel, with Arduino and I have connected all connection but somehow I am unable to move wheels could you plz help me
I want to make ffb gaming wheel with bldc hoverboard motor. May ı use external encoder? Can I control this motor with arduino leonardo?
how about two, even four motors? a noob asking. :)
so, VR pin can take PWM signal just fine? I thought that pin require analog voltage
hye thx for the video I wanned to know if you have a feed back from the wheel encoder to controle the speed of the wheel?
Hi. Super Projekt, can you show how much is the torque at very low speeds. 0.2 rps
Thx Martin
Can I ask which version of library ArduinoJSON was used in this project?
thank you sir the explanation, I am a beginner to make bycycle e bike, but still i do not know the procedure using Arduino 1, i hope you could help me the information more.
Do you know how to add a wireless controller
hello @Netmedias it's really helpful,,,
can you please alse tell me or you can help me to make an video.....
how to control bldc motor use the pwm signal with the bldc hover board motor control.....
wahyu utomo Sure, I have it on my todo list. Thanks
@@netmedias7657
can you provide the link video to me?
@@netmedias7657 Could you please do a video on this, it would be insanely helpful.
How can your code work if you never set the VR pin as OUTPUT ?
when it reaches that part of the code (digitalWrite (m1_EL_Start_Stop, HIGH);), it serves as an electronic brake or just to disable the card.
It does not have breaking that is why I could not use it for my projects. it will stop powering the wheel.
your video is amazing it can help me but I have a question. how is the circuit if using 2 bldc motors with two drivers? please answer. Thanks
Is this driver have motor back emf protection
Is there specific a reason why you set the Signal wire to the pin#3 of the Arduino ? I do not succeed to figure out why, but it seems the pin#3 is the only connector where it works.
does this board control the position of the wheel? I mean if you program the microcontroller and depending what is been read it can run in close loop?
Hello,
only a confirmation.
When the (m1_EL_Start_Stop is set to LOW) the plate is then turned off, the engine stops as if it were a brake?
There is no electric break. If you are on down hill it will continue to move until you are on level ground. This is the reason I was unable to use it for my Trash Can project.
Great video I never see brief and clear cut explanation of hardware part and software program explanation.
thank you
can you make the same experiment with raspberry pi ?
There is nothing similar in internet
Hello, I bought the one in your description, but it’s not the same. Can this work with the arduino?
Wow, good tutorial sir, then what if you use mpu6050..??
I am looking to build the trash can so more on that please
what battery do u have? 36V?
for the driver, 5V-36V 350W DC Brushless Motor Controller BLDC PWM Driver Board, the driver plate i got is JYQD_V6.3E1. i cant find JYQD_V6.3E2. is it okay if i buy JYQD_V6.3E1
Both are fine but make sure you pick the one you need since one does not have hall sensor connectors.
Amazing!
Thank you
great video
can you attach connection diagram Arduino and BLDC motors and hoverboard
It is on github
@@netmedias7657 thank you
Hy, give me an idea how to use this motor for robotic arm.
do you have an updated code?
Great job. Need help - 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.
You need to implement PID. Please Google it there is lot of help on net. Good Luck
Hey buddy! I'm trying to build a self balancing unicycle with an Arduino Uno, mpu6050 gyro sensor and the same hub motor and the motor drive. I really need help with the programming part I am really new to it. I have tried all other options but no luck especially with the motor driver. Buddy pl. Help me in this in which ever way possible!!!
Malhar Wable This controller is not good for that since you can switch the direction without stopping the motor. You can use the following controller. Good Luck,
www.aliexpress.com/item/FREE-SHIPPING-Motherboard-for-wheel-balance-scooter-Balancing-scooter-mainboard-card-full-set-unicycle-control-board/32858438915.html?spm=2114.search0104.3.110.2dd83488nrNbw9&ws_ab_test=searchweb0_0,searchweb201602_5_10065_10068_10130_10890_10547_319_10546_317_10548_10545_10696_453_10084_454_10083_10618_431_10307_537_536_10059_10884_5736015_10887_100031_321_322_10103_5736115,searchweb201603_53,ppcSwitch_0&algo_expid=08c43b7a-9797-43c2-a26c-95b4469c9997-15&algo_pvid=08c43b7a-9797-43c2-a26c-95b4469c9997&transAbTest=ae803_4
Hero
Version of the ArduinoJson.h ???
I am using 5.13.2 and variables as DynamicJsonBuffer, JsonObject& and function .asString() are not coloured so i think my Arduino Due doesn't process them. When I compile it i have no errors and i pasted the expression "forward" in the Monitor Serie to do a test and it gives no results, no movement of the wheel. What you think is happenning?
Please upgrade to version 6 and use StaticJsonDocument. Good luck.
Really Thanks For You
Thak you.
Hello. I am trying control 2 wheels with an adaptation of your code. It works well but I have some issues of synchronization between the 2 wheels. Do you have an exemple of code to handle it properly? (i guess that it should use the hall sensors, but it’s quite hard to implement..).
Many thanks!
Please google for pid code to syncronise two wheels.
Hi can use raspberry Pi not use arduino??
Yes, but you will need to use level shifter. Pi gpio is 3.3 volts and board needs 5 volts.
@@netmedias7657 thanks for your info.
Hi, your tutorial was so helpful, but I'm having a problem with my motor. Everything works, the direction, the stop/start, but not the speed control. Whatever number I put in for VR the motor only spins at max speed. Do you know what could be the problem Thank you so much!
Make sure you are using 5v MCU
@@netmedias7657 Im using a raspberry pi instead of arduino, so the 5V pin on the controller board is connected to the 5V pin on the pi. I'm not sure what is wrong with it.
Question on motor controllers. I recently bought from ebay 4 hoverboard brushless motors i belive they are 36V 350W 6.5 inch - with the intention to build my own robot rover but i never played with brushless motors before. I like to be able to control them using Rasberry Pi eventually and/or Arduino. The controller(s) have to be able to interface with Raspberry Pi or Arduino. From an initial research i found 3 types of controllers ranging from very cheap China ones to 150 Euro Odrive. I intent to have the motors connected in pairs, left and right so that the rover turns by spinning/trurn left and right like a tank. The ask is which is the best controller for these type of motors so that i can have no freewheel when they stop on a slope and i can have reverse and won't t cost me an arm and a leg?
Niko Niko Try odriverobotics.com/. I am using this one since it has position hold and breaks. Good Luck.
@@netmedias7657 thanks for this even if is the most expensive solution i think i will go with ODrive too. One thing i am not clear. My motors are 36v and odrive comes in 24v and 48v variants. Would the 48v variant have an adjustable voltage output to bring it down to 36v?
Niko Niko They have 48v version. You should get that one.
Netmedias sure that’s what I wrote but can the voltage be adjusted to 36v ? My motors are 36v.
@@TheNikolaschoulakis Sorry I meant to say use 24v not 48v. You can not regulate the voltage on this board. Your hoverboard motor will work with 24v mine does.
Hello,
I bought the controller card in your description, but the card is a different from the one you show in the video. Ports EL, Signal and Z/F are missing and Instead I have CCW, CW and PWM. I'am a beginner, so I couldn't figure out if my controller card can make the Job with the Arduino. Do you know if there is any correspondence between those ports? Many Thanks
Same here
Did you manage to find a solution? I think I have the same board as well.
Hello! 12-36V is specified, but can it be used from a 36/42V battery?
in his tutorial #28, he had mentioned he burnt out his driver boards using 36v batteries
Hi, does the motor have the same torque as on the original controller?
Yes
would this work on a raspberry pi and python?
Yes
hi
can this Controller ....control ac servo 3 phase
This controller designed for dc 3 phase motor with hall sensors.
Good video! Is it the same for Arduino UNO?thanks? 😎
yes
great tutorial. does it need that 2 second delay when moving the wheel? can it be set to something like 100 or less?
逆にできないとかあるかな?
Thank you
Thank you so much
You welcome and thank you
Hello @Netmedias. I have a problem. My setup only works if I push the wheel initially. I use UNO instead of Mega. If I don't push- the wheel does not spin. Is this faulty controller or some other issues? I tried another wheel from other hoverboard - same problem. Help. Thanks in advance
Serge
Remove the uno and apply 5 volts to EL. If your motor spins them make sure uno GPIO is set to high on the pin that is connecting to EL.
I'm using your GitHub code
It was faulty controller board after all. Got a new one. Avoid "GeekTeches" one
Hey Thank you for this great tuto. Do you think is it possible to detect the direction of the wheel using the "m1_Signal_hall" ?. I'd like for exemple to have "pos++" if it is running forward and "pos--" if it is running backward.
You can tell the direction from hall sensor but you can check the direction pin GPIO for high/low value to figure out the direction. Good luck
Hello, thank you for your response. I tried to do so, but it seems that whatever the wheel goes backward or Forward, the hall sensor give a value High/Low depending on its previous state only High/low.
@@Ben55j Right, because then you'll know if it's high it's one direction if it's low...it's the other direction
Thanks a ton it's very helpful. Can you please also tell me or make a video of how to also connect the mpu 6050 sensors along with the setup and control the speed by tilting the sensor or unit.
The tutorial is coming soon. Stay tuned.
@@netmedias7657 when will be the tutorial uploaded sir
Hi, what shall we do to move the Motor backword?
Set the "ZF" pin to low or high to change motor direction.
Inertia will keep the wheels turning. How can I bring it to a standstill at the intended rotation speed?
That is the problem with this board. There are no breaks. That is why it is not suitable for most robotic projects. You have to build electronic
Regenerative Braking, please google it or buy a board that has built in breaking.
@@softwaretesting8043 I couldn't find a board with a brake function.
A four quadrant control board can drive and brake in either direction.
Hi, thank you so much that was a great video. I manage to jumper some wires from a different board version but I couldn't download the firmware if anybody can help me I will be very grateful.
Note that when I click on the link it gets me back to the same site.
YOU: Overenginering PWM singnal emulated by software in low-lvl hardware
Me: solder 3 pin on potentiometer...
Great works
Thank you