HOVERBOARD MOTHERBOARD HACK - how to controll the motors PART 2 - Hover Board Hack

preview_player
Показать описание
The second part of hacking a hoverboard motherboard, in this video i show you which wires to connect to what to make the motors move how you want,

I cant put the code here so i will put it in a comment for you

make sure you also get the Adafruit_MCP4725 and WIRE libraries or it wont work, feel free to ask questions in the comments

Рекомендации по теме
Комментарии
Автор

The arduino code from the video:


#include <Wire.h>
#include <SPI.h>
#include <Adafruit_MCP4725.h>

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
Автор

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.

dansquires
Автор

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.

TheMebak
Автор

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?

automoto
Автор

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?

rainbowpoop
Автор

Good video! Thanks. What about a video controlling the motors with a Bluetooth connection via Arduino and app inventor? 🤩

smartlui
Автор

nice . did you manage to use this with ebike throttle ? and use regen braking ?

pxl
Автор

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.

talon
Автор

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!

WorkWithoutHuman
Автор

congratulations! my board has the at AT32F403RCT6 component. do you have the procedure to apply on this type of board?

TheLordbruh
Автор

Thank you for great video! Can it be used for simulator steering wheel force feedback?

samirsuleymanov
Автор

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

johnsnykers
Автор

Hello again, great vid used it for a few projects. Is there a reverse function?.

willworkforfood
Автор

amigo, onde consigo esse firmeware, vc tem um link ?

digitalvideoshow
Автор

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

LifewithLewy
Автор

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!!

cleeeen
Автор

Can 50k potentiometer work for this process??

AmonAnos
Автор

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?

petarilic
Автор

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)

giorgiolelmi
Автор

can i use throttle insted of potentiometer Please answer

abuzarnoob