-
Notifications
You must be signed in to change notification settings - Fork 25
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
Gen2.1.18 (ex2.20) #58
Comments
This is the 1 USD slave board I guess. |
yes it is $1 board |
Why not autodetect ?? |
no motor on hand |
on this layout master and slave share the same pcb |
Maybe It will also run with 5V on master slave. The 15V might only be needed for the Led modules when the gate driver chip generates it's own gate voltages ... |
gate driver is using 15v |
despite there is a coil on the pcb this board is designed for linear 15v regulator it would not be hard to install |
@AILIFE4798 , i have added the 2.20 to repo and added a test binary. And did you test the uart0 with PA11 and PA12 ??? According to the datasheet, no hardware serial possible on these pins:
|
101 resistor to bottom right is connected to i2c/hardware serial |
for some reason this board must be flashed with serial(core reset fail) using master dummy hall2led works all voltage regulator heat up allot and motor does not spin |
How do you power this slave board ? Now with motor you could try my autodetect? Still high power consumption with no motor attached ? Check the six mosfet pins to be the standard ones. |
the board is drawing 100ma in idle at 3.3v and 150ma at 24v i think it is faulty |
turns out the gyroscope/imu is shorted after removing it(which is def easier said then done without a hot air gun) it draw 30ma and the stlink does not want to coroprate with st link utilities so i have to use pyocd |
ok kinda got it to the hall detect but motor just vibrate allot and cannot detect hall sensor |
I am still waiting for your YouTube tutorial. The motor should not vibrate but spin. Not smoothly but happily rotating. If autodetect only makes motor vibtate, then the six mosfet pins are not correct. |
I am making changes too fast it's not worth my time making video now The motor does spin kinda but the vibration is way more then I remembered from the 2.6.1 board test |
I already ran foc test open loop without current sensor and without hall sensor it worked so well at very low speed it is completely smooth it's very impressive |
it is technically possible to not use the standard pin for the lowside you can use normal io for that by only pwm one side but it will complicate the code so i do not think anyone will do it |
32 pin package does not have all 6 standard pins. I also think that only on such boards will there be a problem for autodetect. With your board I guess you need to check the output of the six mosfet with a dso. |
32 pin one can use |
the gate driver i have is lowside inverted idk if your auto detect can support that i think it may be the problem |
I guess the invert has to be set here: https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x-GD32/blob/main/HoverBoardGigaDevice/Src/setup.c#L274 |
i think so, but it is set to OC_POLARITY_HIGH and OCN_POLARITY_LOW which is correct for hin normal and lin inverted |
I came across this version of the board. Is it possible to make the second board the main one and use two boards in two different projects? Is it possible to work with the throttle trigger? The presence of free control ports will allow you to use the gas trigger and brakes. You just need to find 3.3V to power the hall sensor and correctly configure the firmware to work with the signal from the trigger. In the folder of ready to flash files, I did not find version 2.1.18 |
the pcb is bot both master and slave |
to use adc as input, you can check out this repo |
i am the one posted this thread originally, and a gen2 dev |
If I understand correctly, this repository is for controlling a motor controller via a uart. I was thinking of using an ADC in the GD32F130 microcontroller to work with the analog throttle trigger. |
Sorry @AILIFE4798 = @I-hate-2FA i could not help you make autodetect work. did you check the six mosfet pins with an oscilloscope ? |
These gen2 boards mostly do not offer adc pins on the headers. Only lots of digital outputs for the leds. |
the code i provided translate adc into uart |
i have not checked yet, in main the motor does not move at all and in autodetect it vibrate way more then it should be |
technically all gen2 have adc available as pa2 and pa3 always have adc, but as i said we should offload as much things as possible from the 32kb micro controller to esp32 |
It's very sad since you can't connect the throttle trigger directly to the motor board. I thought it was possible to use an output for controlling the throttle triggers instead of the UART. Since I don’t need anything more from the motor board. Only the gas trigger. |
Judging by the datasheet, the gd32f130c8t6 processor has an ADC. I wonder if they are free? |
i already said it would be possible but we wont consider adding it, but the code is available you can always modify it to your need |
@AILIFE4798 is correct (and i was wrong), when you do not want uart control, the PA2 and PA3 (which mostly are used for master-slave serial connection), then these two pins could be used in a RemoteAdc.c then reads the adc value to +-1000 speed value. |
he want to use 2 master and no slave |
@AILIFE4798 also dislikes my autodetect because his mm32 autodetect is better (which it is.). |
MCU:GD32F130CCCC8T6(128K)
Gate driver: fortior FD6287T
Voltage:3.3V
serial0 pin is none standard
The text was updated successfully, but these errors were encountered: