Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with control #3

Open
blusius opened this issue Apr 16, 2022 · 18 comments
Open

Help with control #3

blusius opened this issue Apr 16, 2022 · 18 comments

Comments

@blusius
Copy link

blusius commented Apr 16, 2022

Hi guys I have trouble to control motors.
I built and flashed using Keil successfully, even tried to debug.
Seems even hardcoded values SetEnable(SET); and SetPWM(300); does nothing.
Tried inputs on usart and external sockets, potentiometer, PWM, UART sent command packets from arduino.
Can anyone kick some info about wiring or working example pinout or something.
Do those boards has to be connected together or can work as separate masters?

All info from other branches still not makes more sense. maybe need some soldering on the board?
@phpkadir
@JohMah

Thank you

image
image
image

@phpkadir
Copy link

phpkadir commented Apr 24, 2022

blusius
JohMah
i have prepared the software which turns the bldc motor with this awesome board.
https://github.com/phpkadir/Hoverboard-JC2015.7.31.V2.0-Hack
proof https://www.youtube.com/watch?v=XIqb7e3k_FA

@blusius
Copy link
Author

blusius commented Apr 25, 2022

nice man. I gave up and ordered separate controllers :) Tested your firmware. It works. Had to find correct phase wiring for original motors. YG GB BY for me spins but not with default wiring by color. Motor has some vibrations. strange but backwards goes smoother and has more speed. tested on multiple motors the same behaviour. tryed to change pwm_freq but not helps to run smoother. anyway appreciate your work.

@phpkadir
Copy link

phpkadir commented Apr 25, 2022

i cant find any usable pins to attach a potentiometer to control the speed of the motor. for smooth motor run i can check it later.

@blusius
Copy link
Author

blusius commented May 1, 2022

did you find a way to control with potenciometer or pwm? that would be enough to control from raspberry.

@Ability-dis
Copy link

blusius JohMah i have prepared the software which turns the bldc motor with this awesome board. https://github.com/phpkadir/Hoverboard-JC2015.7.31.V2.0-Hack proof https://www.youtube.com/watch?v=XIqb7e3k_FA

Great I was looking for it. But the links are not working.
If you still working on it then please let me know.

@phpkadir
Copy link

phpkadir commented Dec 16, 2022

yes its all working. the code only turns motor with hall sensors. the gyro sensor code not included by my needs. the start stop button pushes is used for speed up and speed down. u can remove the buzzer+buzzer transistor+r22 of buzzer and add a potentiometer center pin on pb1 ground and +3.3v than adjust the speed of bldc motor.

@Chuma1986
Copy link

yes its all working. the code only turns motor with hall sensors. the gyro sensor code not included by my needs. the start stop button pushes is used for speed up and speed down. u can remove the buzzer+buzzer transistor+r22 of buzzer and add a potentiometer center pin on pb1 ground and +3.3v than adjust the speed of bldc motor.

phpkadir, can you help me. i try to use Hoverboard-JC2015.7.31.V2.0-Hack code but it doesn't work at all. can you send your working code or put it on github?

@QGB
Copy link

QGB commented Apr 19, 2023

TIMER_BLDC_CHANNEL_G TIMER_CCXN_ENABLE

@L1mp4
Copy link

L1mp4 commented Jul 10, 2023

Hi! Is there anyone who has gotten these boards to work? I dont know where to put anything and cant even flash the firmware. Appriciate if anyone can give me any pointers!
Thanks!

@QGB
Copy link

QGB commented Jul 11, 2023

@L1mp4 GD32 must use GD_Link_CLI.exe to SetRDP 0 first

@L1mp4
Copy link

L1mp4 commented Jul 12, 2023

Thank you for answering. Greatly appreciated!
Tho i am very confused of what you mean. Right now my card just beeps and shuts of, so i cant even flash. Then i wonder if you got a schematic for the headers to program? So i dont do anything wrong. The layout seams to differ?
Thanks!
IMG_7767

@phpkadir
Copy link

you

Thank you for answering. Greatly appreciated! Tho i am very confused of what you mean. Right now my card just beeps and shuts of, so i cant even flash. Then i wonder if you got a schematic for the headers to program? So i dont do anything wrong. The layout seams to differ? Thanks! IMG_7767
your bldc driver is different than gd32 board. its original stm32f103c8t6. the difference for gd32f103c have timer0=timer1 at stm32 etc. you can find working stm32f103c bldc controller codes from casainho github user

@L1mp4
Copy link

L1mp4 commented Jul 17, 2023

Hi!
Thanks. I will check this link. Thank you for answering!

@L1mp4
Copy link

L1mp4 commented Jul 20, 2023

Thanks. Sorry. Which one would you use for my board? Also, how can i get it flashable. It just beeps, i guess since i dont have anything connected... :/

@phpkadir
Copy link

you use for my board? Also, how can i get it flashable. It just beeps, i guess since i dont have anything connected... :/

dear friend you should find programming pins and pwm pins. i can give you modified bldc codes. i have

@zimmii91
Copy link

hi @L1mp4, did you find something working no this board? i seem to have the same one

@L1mp4
Copy link

L1mp4 commented Jun 12, 2024

Hi. Nah, sorry. I have no idea what to do. :-/

@zimmii91
Copy link

Hi. Nah, sorry. I have no idea what to do. :-/

ah ok, sorry to hear that. i have 4 sets of these boards so i guess i will continue trying to figure it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants