A-Tech Hello Sir. First of all It’s a great Job. Very clear video. I have only one question why reverse is so slow and is there any why to increase it? Thank you so much.
@@A-tech Hello master! I looked at two parts of your video yesterday, and today I redone the gyroscooter with the firmware presented. As a result, it sometimes does not work stably with potentiometers, and as already noted, the use of DAC is required. I will also note a slow and insecure reverse. But he definitely is:) If you 're a firmware author for stm32, I have a question: Is there any firmware for implementation of the three H-bridge for brushed dc motor throught one hoverboard mainboard? I 'll follow the project closely! Certainly a great job has been done!
@@igormorozov6801 Hi yes DAC does make it a lot better, the reverse is really slow i know, i havnt been able to fix that yet. i like your idea for controlling dc motors with the mainboard but im not sure if its possible. Thanks for your nice comments its very motivating to hear them, thanks
@@A-tech hi, thank you so Much! i'm making a motorized chair for my dad! I really liked the project! does this code work to control the wheels correct? can you make available the last code you used to test here? Thank you again.
This is awesome!! Just followed your guide and I now have it running on an old amp volume knob and two makita batteries. I am hoping to use this to drive a small milling machine I have. Can't wait to test it in a woods somewhere. Thanks Bud.
Thanks for the tutorial. I have a question, it goes so much slower in reverse and the torque drops significantly. Is there a way to solve this, so that it has the same power forvard and reverse.
Hi could you please make a more detailed video on how to connect the Arduino to the mother board and how to use ps3 controller to control the motors. Also can this work with Arduino uno?
Can you help me? What pins do I have to solder on the Digital-to-analog converter to change its address of it? I found 8 pins on it but I don't know which one is the right one. I'd be really happy if you would take a moment to help me :D (It was said in 10:56)
hi, oh ye the very very very important thing, if i remember correctly the pins are already soldered together and you need to get a stanley blade or something to cut the link, i think, thanks
hi, im planning on a part 3 version to show other controllers, they do make good skateboards because the wheels are so big, they go over cobbled streets and bumpy tiles no problem, thanks
Thank you so much for the great video. Do I have to make any code changes to connect an RC receiver to the arduino?Also, which arduino pin should be connected to RX signal wire? If you could reply to this, that would be of really great help. Thank You in advance
hi, yes you will need to make some alterations to the outputs, instead of writing to the DAC you need to write like you would to a servo, then an rc transmitter should be fine, i wasnt using an rx wire in my setup, i think thats only if you are using serial communication, thanks
Can You help me something, looks like You've studied the board. Where is located the switch or the jumper or the wire for "locking" the 2 wheels, to turn synchronized? To control both from one control? Thanks!
hi, haha if it was that easy, im not sure if thats even possible with both the wheels being sensored, you can control them both together, with the 2x potentiometer method one does the speed and the other is balance between the 2 motors
Please bear with me because I am a beginner, but I have a few questions. I see you are using two break out boards, one for each potentiometer. If I’m wiring two motors to one joystick do I need 4 breakout boards or just 2? It seems to me like I would need 4
After rewatching this video I now believe I understand that 2 of the breakout boards can power the analog joystick controlling 2 motors. I would love to see a video of this if you have time. I know it’s basic I just want to make sure I’m understating it thoroughly
@@LifewithLewy hi, yes you would only need 2 of them, one for each wheel, but they dont control each wheel, one does the overall speed for both and the other adjusts the difference between the 2 motors, hope this helps, thanks
Nice work, I've done this to my motherboard, but i conected only one motor, and tested it. It was fine until i sensed some heat coming from the wires of the motor phases, and also motor sounded like something was cracking. Can you asume what might be wrong?
hmm, it could be a broken wire that is not always connected? its hard to say, you may be able to test different parts with a meter to pinpoint the issue, thanks
Could i replace the potentiometer with a thumb throttle? I just want to make a drift trike but im getting confused. And, do i need the steering potentiometer? I want both wheels to always to rotate the opposite direction same speed to be like my rear axle.
Dear Sir thank you for all the explanation for modifying the board but i have a question how can i program the original firmware for the hover board and can i get it from another working board
Simple alternative with esp32 using esp32's own dac, without using mcp4725, pins in esp32 -> 25 and 26. CODE: #include #define DAC1 25 #define DAC2 26
void setup() { Serial.begin(115200);
}
void loop() { // Generate a Sine wave int Value = 130; //255= 3.3V 128=1.65V this value change to speed int Value2 = 150; //255= 3.3V 128=1.65V this value turn left or right
This has to be the best tutorials for hacking hoverboard firmware, am using this, just one question, do you think you could hook up rc equipment directly? Thanks so much for these two videos
hi, thanks that means a lot, apparently they can but i think you need to edit the firmware file to enable it but not 100%, if you need to use rc stuff i know you can run that through an arduino if that helps, thanks
Thanks for this wonderful video. I'm having trouble with the wiring etc. The battery wires attached to the board is cut off. When I try to attach it to the battery it sparks. I tested the battery with another board and that works fine. Can you gimme some tips? Also is it possible to have a chat with you? I need some more direction. Thanks in advance
hi, they usually spark as its charging the capacitors, i use a switch so its a bit better, do you have another battery to try in the suspect board? what are you making? thanks
Say if I want one of the pentiometers to be a foot pedal, it has the three wires but the only thing is it says 12 to 48v, will I be able to use it PLEASE RESPOND!!
hmm, its hard to say, if you get this working with a potentiometer then swap the potentiometer for the pedal and see if it works, there will be only low voltage going through the potentiometer
Hi, nice video. I have a few questions: 1. How can I set it for reverse? like for go-cart. In your video the steering pot seems only control either one wheel and turn into a different speed and direction. What I want is actually simple, I want to steer it forward with the same speed, and I can also drive it reverse (with a switch or else). Can you tell me how can I do that? 2. Does the battery charging feature still work? 3. How fast the maximum speed can we set in the code? Thanks before.
hi, ok there are 2 pots, one does speed difference, the other does speed for both, so for reverse you just turn the speed one down further than when its stopped and it will go backwards and bleep, for example the 1024 pot value would be something like 0-300 = reverse - stop, 300 - 1024 = stop - full speed, do for your DAC if you are using one you need to split it like that if you are controlling forwards and reverse with 2 buttons / sticks. Apparently the battery charger does still work, however i am yet to test it. Max speed depends on what firmware you are using and if you change stuff in it, the fastest one i have tested myself is the bobbycar version, it has a speed setting you can set when starting up, i think with a 12s battery it can get upto 30mph, its a feature called field weakening, there is more info on this online if you google it, i just set it in the firmware to run off a 10s battery and its fast enough, maby 20mph. There is a guy who hosts an online firmware compiler that i have used a few times, you can edit the code online, compile it and download the .hex file to upload to the motherboard, here is his channel: ua-cam.com/channels/LUfNuoSML-vkLYiO0vBUHQ.html, hope this helps! thanks
Hi, According to the wiring diagram I found, the hoverboard has 2 sets of gyro inputs, the diagram you showed only uses one blue wire and one green wire. How does that work? Thank you!
hi, sorry for the slow reply, yes in part 1 it shows a bit better, you only need to use 1 sensor cable because that does both, the other is just for the leds and stuff
hi, is there anything specific you need assistance with? the DACs are controlled through the I2c of the arduino, they connect to the longest sensor cable of the hoverboard motherboard, using the blue and green wires, also dont forget to connect the grounds together too, and definitely dont use the red wire because its 14v, hope this helps
@@upload58404 ok so like with a tv remote? so you see in the video about using a DAC to pretend to the motherboard its getting a potentiometer signal, you need a couple of them, for your IR sensor i would not recommend that because they can only accept 1 signal at a time so controlling would be tricky
hi, these motherboards support lots of different input types, pwm being one of them, I like to use the DAC as a safety thing, I have tried serial coms before but the motors would continue to spin if the controller crashed
Hello, I'm a bit late. Anyways, I want to build a go kart with an old overboard thus I don't need the steer on the rear wheels,if I just leave the steer wires unplugged will the motors just steer in one direction or will they have equal speed(remaining locked in "forward mode with no steering")? By the way, your channel is so underrated
hi, if you dont need steering i recommend the 'bobby car' version of the firmware, this makes the wheels go the same speed and has 2 throttles, one for brakes and one for speed, it also has different running modes, so you can have a fast mode which is about 20mph, on my video where i convert a mobility scooter into a go kart this uses the bobby car firmware, hope this helps, and thanks!
I don't know what i'm doing wrong, i hooked up my potentiometer to the long cable for speed like in the drawing(3.3v to left pin blue to middle pin gnd to right pin), and i have my firmware set to variant_adc, i'm not sure what to put the values at, but in the firmware it says it can be auto calibrated, so i just left it at the defaults and have tried the auto calibration, but the motors don't turn when i try the potentiometer out. I really wish there was a discord channel for discussing hoverboard firmware related stuff.
hi, did you get it sorted out? i dont think we need to change any values just upload the new software and should be good to go, i would like to set up a discord for this kind of thing but not sure how it works, thanks
Hello, i've watched your video several times and i just cant figure out why you used the DAC boards if you're going to get a USB Host Shield which would be connected to the arduino UNO from the top, therefore i wouldn't be able to connect the DAC boards, so why did you use the boards here and how are you going to connect the USB Host shield afterwards? Thanks
hi, the usb shield clips on top yes, it also has output pins on it like the arduino, it uses some pins (9,10,11,12) for usb functions but all the others are free i think, the DAC run through I2C so that makes it even easier, im my case i have a sensor shield on top of the usb shield, this just makes things a little easier connecting, so just to round up, its arduino board, usb shield on top, then a sensor shield, then the DAC connect to the SDA and SCL pins for the I2C, hope this helps, thanks
hi, i think you would need one to set them to be the same, if none is connected im not sure what would happen, they might go the same by default, you could probably connect a potentiometer to the steering for a bit of electronic differential, i think even with a trike the rear wheels would want to go different speeds, hope this helps
@@A-tech agreed. Just rather not have extra dials a kid can play with. Maybe i mount on steering column with gear to accomplish the differencial when steering. But from what i see in your video this would also mean if steering is turned with no throttle it would still activate which is why i rather not have it at all
ok, do you mean a 2 axis analogue joystick? because they self center you would need to map the values or maby use some resistors somehow, hope this helps
Hello, I have a couple of questions. I dont understand the setup at around 7:07 . Like the gears you used and if I would still need them if I would use an Arduino and controller. Also could you please elaborate on controller the configuration and how you connected it to the arduino? Thank you
And what arduino did you use (the one in the picture ( 8:35 ))? Or can I use my normal Arduino? (www.amazon.de/dp/B01EWOE0UU/ref=sr_1_7?keywords=arduino&qid=1583182710&sr=8-7)
hi, that was just a joke, its really not a way you should control a potentiometer, ok the controller is a ps3 controller connected via bluetooth, you will need the ps3bt library, hope this helps
For me after the software change as soon as i give it any voltage, 0-3.3,to blue or green it only spins both wheels on 1 constant speed. Tried it with the dacs as well as simple potentiometer..
Hi, looking for an idea on what might be wrong, flashed the firmware from the link in the first video and all is good, no errors, but when I turn the board on with everything connected, it will slowly rotate the motor clockwise a couple times, stop and do the same counterclockwise, stop and the board turns off. All by itself. Pots have no effect whatsoever. It will do this with or without any pots connected to input wires. Im using the 3.3v pin for them. I flashed the board again, no change, everything was done to the letter from the first vid. Halp?
ok not sure if you have sorted this now, what firmware you are using is the wrong one and just does test mode, you may be able to change it but i think there are lots of different versions
Hey, I want to use a PWM receiver as the input. I have got the code for it but I am unsure of how I should go about adding it. I'm also not sure how the wiring is required for the DAC's. Thanks
hi, do you mean like an RC receiver? im sure there is a way to do it direct, you can do it with an arduino which might be easier with the mapping of the throttle and steering ranges, the DAC is pretty straight forward, they use i2c to communicate with the arduino and need a 3.3v input so they only output 3.3v max to the hoverboard, does this help? thanks
@@A-tech Yeah I want to an RC receiver, there was a custom firmware to make it work directly but I could for the life of me get it to work. I am very new to Arduino so I'm not sure what pins to put the DAC's according to the code on. A wiring diagram for the DAC's would be awesome. I know I am asking for a lot but just a look over the code to see if my implementation for the pwm is correct. Thanks for the reply.
ok im not sure, havnt done much with rc receivers and hoverboards, arduino pins for the i2c communication are named SCL and SDA or A4 and A5, im going to do a Firmware Hack part 3 video soon so i will make sure to include that
@@A-tech That would be so good. Thank you. I am building a driving esky. Already got the frame and everything built and just trying to get the electronics to work. Thanks once again!
Nice work. Can I connect a Nintendo nunchuck joystick instead of the two potentiometer direct to the motherboard ? Does this work the same? Could you guide me about this?
When I turn on the motors and start to control them the board makes beeping noises and turns off by itself. Do you have any idea what might be causing it?
@@Biblogie ok great, happy to help, feel free to let me know how its going, i need to get my hoverboard car controlled over the internet, something like 4g from a wifi hotspot maby, thanks
It is possible to control motors by sending commands to stm32 microcontroler on driver? Id like to send command ex. Drive pwm 162 to mc from arduino by uart or i2c or spi
@@A-tech I forgot to add 1 wheel failed to run but think it only needs 1 sensor then it looks for the level sensor is it a accelerometer I have to tilt the PCB for forward and reverse also speed control mmm There's a bit of damp and corrosion on that PCB .... I've checked few components aiming for SMT capacitors capacity of the one was below 2uf and the rest was 5uf would that stop it from moving mm
@@davey2k12 ok yes thats right i think it does only look for one pressure sensor, im not sure if it would stop it moving, but corrosion is usually bad for a pcb, do you need to tilt both sensors at the same time?
@@A-tech oh yeh maybe that's why only 1 wheel runs board might be trying to turn one way mmm, might be 2 accelerometers on each PCB working independently for steering good call bro 👍
Hello, I have successfully changed the software in the Mainboard, but i must adapt the values of the throttle in code. Could you tell me which value should i change for lower max voltage on throttle? Best regards Jakub
hi, do you mean to set a max speed? find this line of code: "dac2_value = map(set2, 120,0,1600,4095); //forwards" so the 4095 is the number for max speed, 1600 is stop, so any number between them two instead of the 4095 should reduce the max speed, hope this helps
@@A-tech hello, thanks for your reply. I want to increase the max speed.... I have made some test mit motus Scooter. Motus has 350W motor and in our project the motors have 2x540. Motus was faster, greater max speed and so one... So I think the throttle don't give full 3.3v at max load. i have to measure the max voltage of the throttle and adapt the code for my throttle. 4095 is 3.3v?
hi sir In your previous videos, you are using an motor controller called flipsky. Is the Hoverboard motherboard as good as this motor controller. Also did you try any encoder with these motors. Thank you for answers.
hi, the main reason for the change was they are so much cheaper, the flipsky ones are about £50 each and that does 1 motor, the hoverboard ones are around £20 each and they do both motors and also handle the charging of the batteries, all connectors are already fitted, and the flipsky ones can be tricky to set up, none have been used with encoders only the internal hall sensors, hope this helps
Hi! New subscriber. I am interested in hacking hoverboard main control boards using your method and code to reflash the board processor, for use on a kids gokart. One question please: Can the brake function be made graduated, like a car hydraulic brake, so the motor(s) brake over say 3-4 seconds, rather than instantly? I'm not smart enough to alter the code to do this myself, if it's even possible. Ken
Hi, im not sure if it is possible, for the brakes it might be best to use a mechanical brake just in case something was to go wrong, hope this helps :)
OK, thanks. I am trying to avoid doing that. The instantaneous stop is a bit hard on the driver. Getting rid of the heat over 3-4 seconds may be a problem for the control board components. Cheers Ken
im not familiar with the stop you mention, it sounds like an emergency stop, is it with a switch or just when you are going forwards then put it in reverse? thanks
Hello this was a very helpful video, I actually did it but I am controlling the motors with an analog joystick which is the same as 2 potiwntiometers. It worked fine for a while but then it stopped working, the motors stopped moving. I have checked and everything is fine it should work fine but it doesn't. Do you have any idea why this is happening?
@@A-tech I thought of that too but I checked the battery and it has 35v I recharge it and I still have the same problem. The motor test does work so I tried another joystick but still the same problem. Is there another easy way I can use as an input instead of the joystick?
@@fabianarevalo2198 yes you could try testing it with potentiometers? i used a DAC with mine so i could map out the ranges, it may because the joystick is always in the middle when its untouched, hope this helps
Nice tutorial A-Tech. Is it possible to control both directions by potentiometer or maybe some additional switch? I actually don't need the differential. I would rather avoid the motor phase switching. It would be better to control this at input site. Nice work again!
ok on the cables that go to the foot sensors, the shorter cable, connect the blue and green wires to potentiometers, using the ground off the board and 3.3v from something, if using 3.3v from another power source to the motherboard make sure you connect the grounds together
@@A-tech thanks for great video. but sorry sir, you did connect potentiometers to longer cable and taped to avoid any contact shorter one. So it's a little confusing if you say now to connect to shorter cables foot sensor?
@@A-tech Yes I'm using Arduino. I want to control the wheels with nrf module.. There's a transmitter and receiver, I recieve the joystick values from transmitter and the try to control the motors via dac.... But the motors keep spinning move randomly with joystick..... Can you upload a video showing how to control it with joystick and nrf... It would be very helpful..... Thank you
hi, i have the code that works, im currently using it with the mobility scooter part 2, that is rc, video should be up shortly and i will put the code in with that one, thanks
Nice video! I see you are using a DAC to be able to control it from the Arduino. Can you tell me why did you choose this solution? Because you could also establish a serial communication between hoverboard and Arduino. This would avoid additional components and in the end less wiring.
hi, i think the different inputs for the board have to be set to a type in the firmware itself, so instead of editing the firmware files and making a different version I went the DAC way, thanks
@@A-tech ok. So you let the firmware untouched, ok. by the way, what do you think about the motor control itself? For me feels a bit noisy... Have you tried using my firmware? github.com/EmanuelFeru/hoverboard-firmware-hack It is an improved controller, with much less noise and vibrations. All the interfaces/connections are the same as in the original firmware. Maybe, it worth trying it. Let me know what you think if you try. PS: I am almost finished with even a better control FOC (Field Oriented Control) which will offer more features. I will post it soon on github.
Hi, sorry for this late reply i didnt get a notification about it, yes i havnt edited the firmware, i tried but i was having trouble editing and compiling so i went with the cube programmer instead of the CLI, is there a .hex file in that firmware folder? would it work me just uploading that onto my motherboards? Please let me know when you have the FOC mode that will be awsome, thanks
@@A-tech You can already try the sinusoidal control with similar setting as the original firmware. You just need to flash the firmware.bin from here github.com/EmanuelFeru/hoverboard-firmware-hack/tree/master/build It is a *.bin file, but it can be flashed same way as a *.hex file. I also released the FOC control here: github.com/EmanuelFeru/hoverboard-firmware-hack-FOC the only thing is that by default the build expects a joystick ADC input (so middle centered), maybe I will put it back as original firmware for consistency.
hi, its hard to say in a comment, but it would need data from a gps and or sensors or lidar, and be able to adjust its route depending on what is around it, i will be making one eventually but im not quite at that level yet, thanks
Hey, I'm curious what code you downloaded to the board before using arduino. Just with the two potentiometers? Also, what sources did you use for this?
hi, its the same code, just using the arduino allows you to offset the potentiometer values, there are lots of people who have put things online, blogs, projects, some of the github libraries have detailed records of their projects, hope this helps
Hello, these are great videos you have done on hoverboard hacking. I definitely want to use the arduino like you have to control the motors using a wireless joystick. Will an arduino UNO rev 3 board work well for this? I already ordered the breakout modules and am looking for the controller that fits my need. I'd like to use the 2 axis joystick you showed - but only make it wireless. I'm just a bit fuzzy on how to integrate the arduino as I've never used one before. It doesnt look all that hard, I just want to make sure I get the right stuff. Thanks for posting all these ow to vids - the tank is super awesome!
hi, yes arduino uno is fine, i think i have had these running off a few different arduinos, as long as you set up the DAC in the code it should be fine, i have another video about using a ps3 controller with arduino, you will probably find that helpful, thanks
The arduino code from the video:
#include
#include
#include
int pot1 = A0;
int pot2 = A1;
int set1 = 0;
int set2 = 0;
uint32_t dac_value = 0;
uint32_t dac2_value = 0;
Adafruit_MCP4725 dac;
Adafruit_MCP4725 dac2;
void setup()
{
Wire.begin(1); // Activate I2C link
Serial.begin(115200);
dac.begin(0x60);
dac2.begin(0x61);
}
void loop()
{
set1 = map(pot1, 0,1024, 0, 255); //steer 0 - 255
set2 = map(pot2, 0,1024, 0, 255); //throttle 0 - 255
if(set1 < 131 && set1 > 120){ //no steer
dac_value = 2045;
}else{
dac_value = map(set1, 255,0,0,4095); //steer amount 0 - 4095
dac.setVoltage(dac_value, false);
}
if(set2 < 120){
dac2_value = map(set2, 120,0,1600,4095); //forwards
dac2.setVoltage(dac2_value, false);
}
if(set2 > 130){
dac2_value = map(set2, 131,255,1600,1059); //reverse
dac2.setVoltage(dac2_value, false);
}
if(set2 > 119 && set2 < 131){ //stop
dac2_value = 1600; // 0-4095
dac2.setVoltage(dac2_value, false);
}
delay(0);
}
A-Tech Hello Sir. First of all It’s a great Job. Very clear video. I have only one question why reverse is so slow and is there any why to increase it? Thank you so much.
@@zeko120 hi, im not too sure whats going on with the reverse, as soon as i know and get it sorted i will share it, thanks
@@A-tech Hello master!
I looked at two parts of your video yesterday, and today I redone the gyroscooter with the firmware presented.
As a result, it sometimes does not work stably with potentiometers, and as already noted, the use of DAC is required.
I will also note a slow and insecure reverse. But he definitely is:)
If you 're a firmware author for stm32, I have a question:
Is there any firmware for implementation of the three H-bridge for brushed dc motor throught one hoverboard mainboard?
I 'll follow the project closely!
Certainly a great job has been done!
@@igormorozov6801 Hi yes DAC does make it a lot better, the reverse is really slow i know, i havnt been able to fix that yet.
i like your idea for controlling dc motors with the mainboard but im not sure if its possible.
Thanks for your nice comments its very motivating to hear them, thanks
@@A-tech hi, thank you so Much! i'm making a motorized chair for my dad! I really liked the project! does this code work to control the wheels correct? can you make available the last code you used to test here? Thank you again.
This is awesome!! Just followed your guide and I now have it running on an old amp volume knob and two makita batteries. I am hoping to use this to drive a small milling machine I have. Can't wait to test it in a woods somewhere. Thanks Bud.
Thanks for the tutorial. I have a question, it goes so much slower in reverse and the torque drops significantly. Is there a way to solve this, so that it has the same power forvard and reverse.
hi, there is a way, but im not sure how to do it, thanks
Hi could you please make a more detailed video on how to connect the Arduino to the mother board and how to use ps3 controller to control the motors. Also can this work with Arduino uno?
Hi i got a question i saw on auctions there exist 2 diffrent pcb boards green and dark blue of that board with one is better or newest?
Hey..Nice job.i had a question..if i want to connect a ethrottle on a hoverboard.i only want it to go forward.the throttle has 3wires.thank you john
hi, i think you would connect it up the same way as a potentiometer, you may need to adjust it somehow so it can stay in the middle, hope this helps
@@A-tech or you could put an arduino ( maybe pro micro, it's very small ) and use it to map the ethrottle using an ADC like in the video.
Where can I find the Mount that you use for your wheels thanks? Love your videos.
ok they are just 16mm shaft support brackets, thanks
Thank you for great video! Can it be used for simulator steering wheel force feedback?
hi, thats a cool idea, they are pretty powerful so probably, just a bit big in size
Can you help me? What pins do I have to solder on the Digital-to-analog converter to change its address of it? I found 8 pins on it but I don't know which one is the right one. I'd be really happy if you would take a moment to help me :D
(It was said in 10:56)
hi, oh ye the very very very important thing, if i remember correctly the pins are already soldered together and you need to get a stanley blade or something to cut the link, i think, thanks
@@A-tech Oh thank you a lot!!
A question: Why not map potentiometer input directly to dac output? (i.e. map(pot1, 1024,0,0,4095);) It would give you much greater resolution.
hi, yes i see what you mean, i didnt notice that, thanks
congratulations! my board has the at AT32F403RCT6 component. do you have the procedure to apply on this type of board?
i dont know sorry
I'd love to see how you make it work with other things like RC controller's, I'm thinking about making a electric skate board out of a hover board.
hi, im planning on a part 3 version to show other controllers, they do make good skateboards because the wheels are so big, they go over cobbled streets and bumpy tiles no problem, thanks
Thank you so much for the great video. Do I have to make any code changes to connect an RC receiver to the arduino?Also, which arduino pin should be connected to RX signal wire? If you could reply to this, that would be of really great help. Thank You in advance
hi, yes you will need to make some alterations to the outputs, instead of writing to the DAC you need to write like you would to a servo, then an rc transmitter should be fine, i wasnt using an rx wire in my setup, i think thats only if you are using serial communication, thanks
Can You help me something, looks like You've studied the board. Where is located the switch or the jumper or the wire for "locking" the 2 wheels, to turn synchronized? To control both from one control?
Thanks!
hi, haha if it was that easy, im not sure if thats even possible with both the wheels being sensored, you can control them both together, with the 2x potentiometer method one does the speed and the other is balance between the 2 motors
Please bear with me because I am a beginner, but I have a few questions. I see you are using two break out boards, one for each potentiometer. If I’m wiring two motors to one joystick do I need 4 breakout boards or just 2? It seems to me like I would need 4
After rewatching this video I now believe I understand that 2 of the breakout boards can power the analog joystick controlling 2 motors. I would love to see a video of this if you have time. I know it’s basic I just want to make sure I’m understating it thoroughly
@@LifewithLewy hi, yes you would only need 2 of them, one for each wheel, but they dont control each wheel, one does the overall speed for both and the other adjusts the difference between the 2 motors, hope this helps, thanks
A-Tech thanks for the clarification! Thats what I assumed after i rewatched it. If you get a chance to make a video I would love to see it.
Good video! Thanks. What about a video controlling the motors with a Bluetooth connection via Arduino and app inventor? 🤩
I Solved it! thanks! now I am into the nunchuck control now!
hi, i looked into it, it might be easier using an esp32, they have bluetooth and built in DAC
nice . did you manage to use this with ebike throttle ? and use regen braking ?
hi, still havnt tried it yet or the braking, i will try and do a part 3 video soon
Nice work, I've done this to my motherboard, but i conected only one motor, and tested it. It was fine until i sensed some heat coming from the wires of the motor phases, and also motor sounded like something was cracking. Can you asume what might be wrong?
hmm, it could be a broken wire that is not always connected? its hard to say, you may be able to test different parts with a meter to pinpoint the issue, thanks
Can we implement dual functionality, like use hoverboard as a hoverboard along with a physical controller? If yes could you please let me know.
hi, i dont see why not but you would need to set up a balance sensor and an arduino or something similar, thanks
Thank you very much for this share
Can you please send the hex code as I could flash using the st link
I am not able to do that
Hello again, great vid used it for a few projects. Is there a reverse function?.
hi, yes if you do the speed potentiometer past the stop point it will go in reverse
Could i replace the potentiometer with a thumb throttle? I just want to make a drift trike but im getting confused.
And, do i need the steering potentiometer? I want both wheels to always to rotate the opposite direction same speed to be like my rear axle.
i dont see why not
Thanks for the explication, is there possibiliy of flashing the hoverboard dual motherboard
I dont think so, thanks
Great Job, can you get full speed while in the reverse direction ? Or only half speed ?
hi, at the moment only about half speed but full speed would be good
Dear Sir thank you for all the explanation for modifying the board but i have a question how can i program the original firmware for the hover board and can i get it from another working board
Not possible
Great job, can I use it for a scooter with one or two electric motors?
Yes, of course
where did you get the motor mounts?
they are just 16mm shaft support brackets
Simple alternative with esp32 using esp32's own dac, without using mcp4725, pins in esp32 -> 25 and 26.
CODE:
#include
#define DAC1 25
#define DAC2 26
void setup() {
Serial.begin(115200);
}
void loop() { // Generate a Sine wave
int Value = 130; //255= 3.3V 128=1.65V
this value change to speed
int Value2 = 150; //255= 3.3V 128=1.65V
this value turn left or right
dacWrite(DAC1, Value);
dacWrite(DAC2, Value2);
delay(1000);
}
esp32 has 2 built in DAC??
@@A-tech Yes ESP 32 has two 8 bit DAC...
I tried the above code it works..
@@A-tech that's right friend, it is a method that makes things a little easier, thanks for inspiring me
This has to be the best tutorials for hacking hoverboard firmware, am using this, just one question, do you think you could hook up rc equipment directly?
Thanks so much for these two videos
hi, thanks that means a lot, apparently they can but i think you need to edit the firmware file to enable it but not 100%, if you need to use rc stuff i know you can run that through an arduino if that helps, thanks
amigo,onde consigo esse firmeware , vc tem um link ?
Thanks for this wonderful video. I'm having trouble with the wiring etc. The battery wires attached to the board is cut off. When I try to attach it to the battery it sparks. I tested the battery with another board and that works fine. Can you gimme some tips? Also is it possible to have a chat with you? I need some more direction. Thanks in advance
hi, they usually spark as its charging the capacitors, i use a switch so its a bit better, do you have another battery to try in the suspect board? what are you making? thanks
@A-Tech. You did an awesome Job. Would you be able to connect the Arduino UNO to a Flyshy FS I6? if it can. Can you please provide the wiring Please?
hi, im not sure i dont have one of them, is it a rc receiver? i did it with a futaba and a dumborc with good results
Can 50k potentiometer work for this process??
im not too sure, probably not
I would like to see a wireless joycon (hat thingy). The idea is to make it work with a wii controller
Say if I want one of the pentiometers to be a foot pedal, it has the three wires but the only thing is it says 12 to 48v, will I be able to use it
PLEASE RESPOND!!
hmm, its hard to say, if you get this working with a potentiometer then swap the potentiometer for the pedal and see if it works, there will be only low voltage going through the potentiometer
@@A-tech I thought 1 pentiometer and 1 pedal I also ordered the reprograming thingi
ok great good luck
Hi, nice video. I have a few questions:
1. How can I set it for reverse? like for go-cart. In your video the steering pot seems only control either one wheel and turn into a different speed and direction. What I want is actually simple, I want to steer it forward with the same speed, and I can also drive it reverse (with a switch or else). Can you tell me how can I do that?
2. Does the battery charging feature still work?
3. How fast the maximum speed can we set in the code?
Thanks before.
hi, ok there are 2 pots, one does speed difference, the other does speed for both, so for reverse you just turn the speed one down further than when its stopped and it will go backwards and bleep, for example the 1024 pot value would be something like 0-300 = reverse - stop, 300 - 1024 = stop - full speed, do for your DAC if you are using one you need to split it like that if you are controlling forwards and reverse with 2 buttons / sticks.
Apparently the battery charger does still work, however i am yet to test it.
Max speed depends on what firmware you are using and if you change stuff in it, the fastest one i have tested myself is the bobbycar version, it has a speed setting you can set when starting up, i think with a 12s battery it can get upto 30mph, its a feature called field weakening, there is more info on this online if you google it, i just set it in the firmware to run off a 10s battery and its fast enough, maby 20mph.
There is a guy who hosts an online firmware compiler that i have used a few times, you can edit the code online, compile it and download the .hex file to upload to the motherboard, here is his channel: ua-cam.com/channels/LUfNuoSML-vkLYiO0vBUHQ.html,
hope this helps!
thanks
@@A-tech thanks for your reply, I'll try it.
Why did you map 10 bit analog in to 8bits just to scale the numbers back up to 12bits for your DAC
hi, sometimes i just keep adding bits to the code and dont go back to refine it once its working, i really didnt notice, thanks
Hi, According to the wiring diagram I found, the hoverboard has 2 sets of gyro inputs, the diagram you showed only uses one blue wire and one green wire. How does that work? Thank you!
I'm fairly sure the custom firmware he installed bypasses the one gyro input, because in Part 1 he just cuts the wires for that input.
hi, sorry for the slow reply, yes in part 1 it shows a bit better, you only need to use 1 sensor cable because that does both, the other is just for the leds and stuff
Can you do a video connecting a nunchuck control
hi, im planning on doing a firmware hack part 3 video, this might be included, thanks
What kind of potenchiometer did you use?
just a standard 10k
Very good, it is possible to turn left or right using this arduino code
thanks and good video
Yes, you can
Yes pls make more vids on this with different sensors and joystick and PlayStation controller Thanks for this!
ok great they will be out soon, thanks
outstanding work and video!
every viewer of it should light a candle in a church for stm32 firmware programmer health and his long years living.
How did you connect the Green blue and black cables. Like you took the plastic off and then what
ok i took a plug of an old side sensor board and just wired the ends of that
can i use throttle insted of potentiometer Please answer
i think you can yes but i have never tried, i will make a part 3 video soon with e bike controller, nunchuck and rc receiver, thanks
Good job...
Could you show us more details of connecting to arduino ??
Please help
hi, is there anything specific you need assistance with? the DACs are controlled through the I2c of the arduino, they connect to the longest sensor cable of the hoverboard motherboard, using the blue and green wires, also dont forget to connect the grounds together too, and definitely dont use the red wire because its 14v, hope this helps
Sorry. But that was not helpful to much to me ...
I really need your help .
Please can you make one more video ?
Please .
Only the connection
@@upload58404 ok no problem, could you explain which bits you need help with? thanks
Well. Im trying to control it with arduino and using a sensor which is (IR) or ( ultrasonic ) .
@@upload58404 ok so like with a tv remote? so you see in the video about using a DAC to pretend to the motherboard its getting a potentiometer signal, you need a couple of them, for your IR sensor i would not recommend that because they can only accept 1 signal at a time so controlling would be tricky
Hi any chance you can make a video using a wii nunchuck to control the bored thanks in advance
hi, i will do sometime, that will be in the part 3 video :)
Couldn't PWM be used to change the speed of the wheels? changing the voltage from 5V to 3.3V with a MOSFET
hi, these motherboards support lots of different input types, pwm being one of them, I like to use the DAC as a safety thing, I have tried serial coms before but the motors would continue to spin if the controller crashed
Hello, I'm a bit late. Anyways, I want to build a go kart with an old overboard thus I don't need the steer on the rear wheels,if I just leave the steer wires unplugged will the motors just steer in one direction or will they have equal speed(remaining locked in "forward mode with no steering")?
By the way, your channel is so underrated
hi, if you dont need steering i recommend the 'bobby car' version of the firmware, this makes the wheels go the same speed and has 2 throttles, one for brakes and one for speed, it also has different running modes, so you can have a fast mode which is about 20mph, on my video where i convert a mobility scooter into a go kart this uses the bobby car firmware, hope this helps, and thanks!
@@A-tech thanks
@@A-techCan u use this firmware for only two motors because it's says it's for 4
What potentiometers do you use??
hi, 10k ones, thanks
I don't know what i'm doing wrong, i hooked up my potentiometer to the long cable for speed like in the drawing(3.3v to left pin blue to middle pin gnd to right pin), and i have my firmware set to variant_adc, i'm not sure what to put the values at, but in the firmware it says it can be auto calibrated, so i just left it at the defaults and have tried the auto calibration, but the motors don't turn when i try the potentiometer out. I really wish there was a discord channel for discussing hoverboard firmware related stuff.
hi, did you get it sorted out? i dont think we need to change any values just upload the new software and should be good to go, i would like to set up a discord for this kind of thing but not sure how it works, thanks
Hello, i've watched your video several times and i just cant figure out why you used the DAC boards if you're going to get a USB Host Shield which would be connected to the arduino UNO from the top, therefore i wouldn't be able to connect the DAC boards, so why did you use the boards here and how are you going to connect the USB Host shield afterwards?
Thanks
hi, the usb shield clips on top yes, it also has output pins on it like the arduino, it uses some pins (9,10,11,12) for usb functions but all the others are free i think, the DAC run through I2C so that makes it even easier, im my case i have a sensor shield on top of the usb shield, this just makes things a little easier connecting, so just to round up, its arduino board, usb shield on top, then a sensor shield, then the DAC connect to the SDA and SCL pins for the I2C, hope this helps, thanks
does one need to use steering pot? what if we making a trike and dont need that.
hi, i think you would need one to set them to be the same, if none is connected im not sure what would happen, they might go the same by default, you could probably connect a potentiometer to the steering for a bit of electronic differential, i think even with a trike the rear wheels would want to go different speeds, hope this helps
@@A-tech agreed. Just rather not have extra dials a kid can play with. Maybe i mount on steering column with gear to accomplish the differencial when steering.
But from what i see in your video this would also mean if steering is turned with no throttle it would still activate which is why i rather not have it at all
gracias, buen trabajo.
no tengo mucha experiencia en arduino y solo intento colocar un joystick, agradezco su ayuda. abrazo!
ok, do you mean a 2 axis analogue joystick? because they self center you would need to map the values or maby use some resistors somehow, hope this helps
@@A-tech yes 2 axis analogue joystick..
voy a intentar map para controlar forward and reverse.
ok i think you will need to use an arduino, hope this helps
Hello, I have a couple of questions. I dont understand the setup at around 7:07 . Like the gears you used and if I would still need them if I would use an Arduino and controller. Also could you please elaborate on controller the configuration and how you connected it to the arduino? Thank you
And what arduino did you use (the one in the picture ( 8:35 ))? Or can I use my normal Arduino? (www.amazon.de/dp/B01EWOE0UU/ref=sr_1_7?keywords=arduino&qid=1583182710&sr=8-7)
hi, that was just a joke, its really not a way you should control a potentiometer, ok the controller is a ps3 controller connected via bluetooth, you will need the ps3bt library, hope this helps
that one is an arduino uno, thanks
A-Tech so I can also use my Arduino which is also an Uno
@@relatedl35 thats it ye
can you make an update video with uart beside's i2c?
I did try uart but say if the arduino crashes the hoverboard keeps moving out of control haha
@@A-tech can you do an update video adding a ps3 controller to the same code
Yes, can you please?
Can I work two of these controller at the same time?
yes you can run as many as you like, i had a car with 2 of them driving 4 wheels and it was good
Can we control the motor separately by two different potentiometer?
i dont think we can, thanks
For me after the software change as soon as i give it any voltage, 0-3.3,to blue or green it only spins both wheels on 1 constant speed. Tried it with the dacs as well as simple potentiometer..
ok 1 should do speed and the other should do speed difference between the 2 motors
Hi, looking for an idea on what might be wrong, flashed the firmware from the link in the first video and all is good, no errors, but when I turn the board on with everything connected, it will slowly rotate the motor clockwise a couple times, stop and do the same counterclockwise, stop and the board turns off. All by itself. Pots have no effect whatsoever. It will do this with or without any pots connected to input wires. Im using the 3.3v pin for them. I flashed the board again, no change, everything was done to the letter from the first vid.
Halp?
ok not sure if you have sorted this now, what firmware you are using is the wrong one and just does test mode, you may be able to change it but i think there are lots of different versions
Hey, I want to use a PWM receiver as the input. I have got the code for it but I am unsure of how I should go about adding it. I'm also not sure how the wiring is required for the DAC's. Thanks
hi, do you mean like an RC receiver? im sure there is a way to do it direct, you can do it with an arduino which might be easier with the mapping of the throttle and steering ranges, the DAC is pretty straight forward, they use i2c to communicate with the arduino and need a 3.3v input so they only output 3.3v max to the hoverboard, does this help? thanks
@@A-tech Yeah I want to an RC receiver, there was a custom firmware to make it work directly but I could for the life of me get it to work. I am very new to Arduino so I'm not sure what pins to put the DAC's according to the code on. A wiring diagram for the DAC's would be awesome. I know I am asking for a lot but just a look over the code to see if my implementation for the pwm is correct. Thanks for the reply.
ok im not sure, havnt done much with rc receivers and hoverboards, arduino pins for the i2c communication are named SCL and SDA or A4 and A5, im going to do a Firmware Hack part 3 video soon so i will make sure to include that
@@A-tech That would be so good. Thank you. I am building a driving esky. Already got the frame and everything built and just trying to get the electronics to work. Thanks once again!
Nice work. Can I connect a Nintendo nunchuck joystick instead of the two potentiometer direct to the motherboard ? Does this work the same? Could you guide me about this?
Hi, thanks but I don’t have any Nintendo nunchucks
my hoverboard each side single bldc moter how to control with potentiometer which software i can use please guide
hi, is it the same motherboard as the one in the video?
hello i have question i dont have a green wire i have i white 1 what to do do i use the white one?
hi, is this for the sensor cable? so there should be red, black, blue and green, for yours you have red, black blue and white? thanks
When I turn on the motors and start to control them the board makes beeping noises and turns off by itself. Do you have any idea what might be causing it?
could be low power possibly?
I thought the new firmware allows direct serial line commands from arduino, no need for DACs ?
hi, apparently it does yes but im not sure how to do it and from what i have read it isnt as reliable, thanks
Can you make a video on how to control it with a joy stick
yes sure i will be doing a part 3 this year
when i saw rhe servo i was so disapointed , im so glad its not that.
i have been looking for such divice for so long, my project its to control a longmower via internet
@@Biblogie ok great, happy to help, feel free to let me know how its going, i need to get my hoverboard car controlled over the internet, something like 4g from a wifi hotspot maby, thanks
It is possible to control motors by sending commands to stm32 microcontroler on driver? Id like to send command ex. Drive pwm 162 to mc from arduino by uart or i2c or spi
hi, i tried spi once and it worked well until the arduino crashed and the motors kept going, you just have to put extra safety stuff inside, thanks
Hello. Great vid my ST link is in the post and can't wait to try it. Will the pot method work for just one motor?.
hi, thats good, yes i dont see why not, thanks
Hi! Is it work with normal ebike throttle (with hall sensor) ?
hi, i cant say yes or no, but if it works like a potentometer then it should do, you may need to map it with an arduino
How do I bypass the 4 feet optical sensors for forward and back
I got 2 separate controllers linked via 4 pin wire ....might try opto couplers
you could try using a servo with a blanking flap?
@@A-tech I forgot to add 1 wheel failed to run but think it only needs 1 sensor then it looks for the level sensor is it a accelerometer
I have to tilt the PCB for forward and reverse also speed control mmm
There's a bit of damp and corrosion on that PCB .... I've checked few components aiming for SMT capacitors capacity of the one was below 2uf and the rest was 5uf would that stop it from moving mm
@@davey2k12 ok yes thats right i think it does only look for one pressure sensor, im not sure if it would stop it moving, but corrosion is usually bad for a pcb, do you need to tilt both sensors at the same time?
@@A-tech oh yeh maybe that's why only 1 wheel runs board might be trying to turn one way mmm, might be 2 accelerometers on each PCB working independently for steering good call bro 👍
@@davey2k12 I think so yes, im pretty sure when i rode one before you could tilt one foot and only that side would move, no problem
Hello, I have successfully changed the software in the Mainboard, but i must adapt the values of the throttle in code. Could you tell me which value should i change for lower max voltage on throttle?
Best regards
Jakub
hi, do you mean to set a max speed?
find this line of code:
"dac2_value = map(set2, 120,0,1600,4095); //forwards"
so the 4095 is the number for max speed, 1600 is stop, so any number between them two instead of the 4095 should reduce the max speed, hope this helps
@@A-tech hello, thanks for your reply. I want to increase the max speed.... I have made some test mit motus Scooter. Motus has 350W motor and in our project the motors have 2x540. Motus was faster, greater max speed and so one... So I think the throttle don't give full 3.3v at max load. i have to measure the max voltage of the throttle and adapt the code for my throttle. 4095 is 3.3v?
Hi...
Were you able to move the motors in reverse in high speed......
hi, no but i think its possible
@@A-tech hi,
Would you know where can I get help regarding this....
I need to move it in reverse......
Thanks
@@VikasKumar-wz9ju hi, did you slove problem?
hi sir
In your previous videos, you are using an motor controller called flipsky. Is the Hoverboard motherboard as good as this motor controller.
Also did you try any encoder with these motors. Thank you for answers.
hi, the main reason for the change was they are so much cheaper, the flipsky ones are about £50 each and that does 1 motor, the hoverboard ones are around £20 each and they do both motors and also handle the charging of the batteries, all connectors are already fitted, and the flipsky ones can be tricky to set up, none have been used with encoders only the internal hall sensors, hope this helps
@@A-tech thank you sir. This was very informative for me
Hi! New subscriber. I am interested in hacking hoverboard main control boards using your method and code to reflash the board processor, for use on a kids gokart. One question please: Can the brake function be made graduated, like a car hydraulic brake, so the motor(s) brake over say 3-4 seconds, rather than instantly? I'm not smart enough to alter the code to do this myself, if it's even possible. Ken
Hi, im not sure if it is possible, for the brakes it might be best to use a mechanical brake just in case something was to go wrong, hope this helps :)
OK, thanks. I am trying to avoid doing that. The instantaneous stop is a bit hard on the driver. Getting rid of the heat over 3-4 seconds may be a problem for the control board components. Cheers Ken
im not familiar with the stop you mention, it sounds like an emergency stop, is it with a switch or just when you are going forwards then put it in reverse? thanks
Do you replace the potentiometers with a controller?
yes, arduino and 2x DAC, thanks
Hello, i like to get more speed. can i go to more than 48v ( i like to go to 60v)
hi, im pretty sure you can go to 12s battery but beyond that i dont know
@@A-tech so 50v max :) what do you think about rewinding ?
Hello this was a very helpful video, I actually did it but I am controlling the motors with an analog joystick which is the same as 2 potiwntiometers. It worked fine for a while but then it stopped working, the motors stopped moving. I have checked and everything is fine it should work fine but it doesn't. Do you have any idea why this is happening?
it could be the battery is getting low?
@@A-tech I thought of that too but I checked the battery and it has 35v I recharge it and I still have the same problem. The motor test does work so I tried another joystick but still the same problem. Is there another easy way I can use as an input instead of the joystick?
@@fabianarevalo2198 yes you could try testing it with potentiometers? i used a DAC with mine so i could map out the ranges, it may because the joystick is always in the middle when its untouched, hope this helps
@@A-tech I tried with a normal potentiometer and it didn't work, it is like if it wasn't even connected. Can the main board be ruined?
@@fabianarevalo2198 im not sure thats a strange one, were you using 3.3v or 5v for the joystick / potentiometers?
Hi ... Thank you so much... Your so helpful... We did this in our makerspace and we have some further questions... How can we contact you
hi, thats great im helping, any questions its edeped@yahoo.com, thanks
whats the hoverboard model and brand that you are using in this video?
hmm that would have been good to include, its a generic hoverboard, best way to tell is by the wheels i think, hope that helps
@@A-tech thank you, I see the generic is usually call Two Wheel Self Balancing Scooter
@A-Tech Is there a way for for the main motherboard to drive a sensorless motor and if so how would be
i dont think so, thanks
@@A-tech thanks for responding and if you do find a way please let me know
Nice tutorial A-Tech. Is it possible to control both directions by potentiometer or maybe some additional switch? I actually don't need the differential. I would rather avoid the motor phase switching. It would be better to control this at input site. Nice work again!
may i recommend using a different firmware?
@@A-tech yes. sure
which board to choose when you compiling sketch
hi, there should only be 1 board, thanks
What model potentiometer you use and can i usu trottle
10k potentiometer, depends on the throttle
@@A-tech thank you
@@ivanrumenov928 its ok no problem, just make sure its only 3.3v
Where exactly did you connect the potentiometers on the board?
ok on the cables that go to the foot sensors, the shorter cable, connect the blue and green wires to potentiometers, using the ground off the board and 3.3v from something, if using 3.3v from another power source to the motherboard make sure you connect the grounds together
@@A-tech thanks for great video.
but sorry sir,
you did connect potentiometers to longer cable and taped to avoid any contact shorter one.
So it's a little confusing if you say now to connect to shorter cables foot sensor?
I'm wondering if it's possible to use this as a scooter and to use a twist throttle
hi, yes definitely, the throttle should have the same control as a potentiometer would
@@A-tech great thanks, just need to work out how 😂😁 I guess it's just connect, nope I don't know
with the throttle it should come with a wiring diagram, they are basically a potentiometer with a lever on them
Hi...
Can we use this setup without the i2c in the circuit.....
hi, yes you can also use uart or potentiometers, thanks
@@A-tech hi..
When I'm connecting the dac VCC to 3.3v Arduino, the motors start to spin without the joystick being connected.....
Can you please help
@@VikasKumar-wz9ju i think it needs to be connected when you switch it on? are you using arduino?
@@A-tech Yes I'm using Arduino.
I want to control the wheels with nrf module..
There's a transmitter and receiver, I recieve the joystick values from transmitter and the try to control the motors via dac....
But the motors keep spinning move randomly with joystick.....
Can you upload a video showing how to control it with joystick and nrf...
It would be very helpful.....
Thank you
Did you have a version of this code that works with the ps2 wireless controller?
hi, i have the code that works, im currently using it with the mobility scooter part 2, that is rc, video should be up shortly and i will put the code in with that one, thanks
Bro you are awesome! You don’t know how much your videos are helping me! Btw.. damn you got fast shipping on those break out boards 😂
good to know they help, ye haha
it is possible to control the motor separately by a potentiometer?
the potentiometers control both motors together, but if you can disconnect 1 motor then yes
how about controlling each motor individually by adding new potentiometer, so that we can control each motor separately? possible?
No that does not work, maby someone can make a firmware that does
Is there any way to increase the speed of the circuit? thank you
hi, which circuit do you mean? the code loop? thanks
@@A-tech circuit as shown in the video. i want it to run faster.thanks
Nice video! I see you are using a DAC to be able to control it from the Arduino. Can you tell me why did you choose this solution? Because you could also establish a serial communication between hoverboard and Arduino. This would avoid additional components and in the end less wiring.
hi, i think the different inputs for the board have to be set to a type in the firmware itself, so instead of editing the firmware files and making a different version I went the DAC way, thanks
@@A-tech ok. So you let the firmware untouched, ok. by the way, what do you think about the motor control itself? For me feels a bit noisy...
Have you tried using my firmware?
github.com/EmanuelFeru/hoverboard-firmware-hack
It is an improved controller, with much less noise and vibrations. All the interfaces/connections are the same as in the original firmware. Maybe, it worth trying it. Let me know what you think if you try.
PS: I am almost finished with even a better control FOC (Field Oriented Control) which will offer more features. I will post it soon on github.
Hi, sorry for this late reply i didnt get a notification about it, yes i havnt edited the firmware, i tried but i was having trouble editing and compiling so i went with the cube programmer instead of the CLI, is there a .hex file in that firmware folder? would it work me just uploading that onto my motherboards? Please let me know when you have the FOC mode that will be awsome, thanks
@@A-tech You can already try the sinusoidal control with similar setting as the original firmware. You just need to flash the firmware.bin from here
github.com/EmanuelFeru/hoverboard-firmware-hack/tree/master/build
It is a *.bin file, but it can be flashed same way as a *.hex file.
I also released the FOC control here:
github.com/EmanuelFeru/hoverboard-firmware-hack-FOC
the only thing is that by default the build expects a joystick ADC input (so middle centered), maybe I will put it back as original firmware for consistency.
@@A-tech Same reason I didn't use it, couldn't find the .hex file
Hello, how would to code work for steering for an autonomous setup like this?
hi, its hard to say in a comment, but it would need data from a gps and or sensors or lidar, and be able to adjust its route depending on what is around it, i will be making one eventually but im not quite at that level yet, thanks
Hey, I'm curious what code you downloaded to the board before using arduino. Just with the two potentiometers? Also, what sources did you use for this?
hi, its the same code, just using the arduino allows you to offset the potentiometer values, there are lots of people who have put things online, blogs, projects, some of the github libraries have detailed records of their projects, hope this helps
What happens if you do this without downloading the software?
im not sure how you would do it without the software
Hello, these are great videos you have done on hoverboard hacking. I definitely want to use the arduino like you have to control the motors using a wireless joystick. Will an arduino UNO rev 3 board work well for this? I already ordered the breakout modules and am looking for the controller that fits my need. I'd like to use the 2 axis joystick you showed - but only make it wireless. I'm just a bit fuzzy on how to integrate the arduino as I've never used one before. It doesnt look all that hard, I just want to make sure I get the right stuff. Thanks for posting all these ow to vids - the tank is super awesome!
hi, yes arduino uno is fine, i think i have had these running off a few different arduinos, as long as you set up the DAC in the code it should be fine, i have another video about using a ps3 controller with arduino, you will probably find that helpful, thanks
Thank you for your video
what pot values did you use?
10k
the hooverboard i took apart didnt have a motherboard only the 2 balacne sensor bords
yes you need to find a video for your hoverboard