EFeru / hoverboard-firmware-hack-FOC

With Field Oriented Control (FOC)
GNU General Public License v3.0
1.17k stars 965 forks source link

Pwm variant please help! #490

Closed KONGFPV closed 5 months ago

KONGFPV commented 6 months ago

Variant

PWM

Control type

FOC

Control mode

Voltage

Description

Hi guys I’m trying to make a rc lawnmower project using 4wd I have issues across both boards where the pwm control isn’t smooth I currently have a crossfire rx in pwm mode connected to the right side port Boards are f103rct6 I’ve tried 100nf caps on the signal lines and ferrite rings everywhere but still no real improvement so I’m thinking it maybe something to do with the setup? I tried the ibus variant with a flysky rx and had no luck aswell fsia6b rx

My phase wires are all colour to colour and I still had choppy output when trying sinusoidal mode aswell, I’ve done a lot of reading and learnt a lot but I think it’s time I ask for some better help!

feel free to add me on Facebook to chat over messenger aswell! Brady Heathcote, Australia

Candas1 commented 6 months ago

Hi,

If you can use ibus with your equipment, use it. You need the right number if channels in config.h, and to activate ppm on your radio. This is described in the wiki page for the ibus variant.

KONGFPV commented 6 months ago

Hi,

If you can use ibus with your equipment, use it. You need the right number if channels in config.h, and to activate ppm on your radio. This is described in the wiki page for the ibus variant.

Hi mate I’m glad you’re still active! I’ve read in the wiki the channels are set to 14ch which is correct Any help with setting the radio?

KONGFPV commented 6 months ago

Hi, If you can use ibus with your equipment, use it. You need the right number if channels in config.h, and to activate ppm on your radio. This is described in the wiki page for the ibus variant.

Hi mate I’m glad you’re still active! I’ve read in the wiki the channels are set to 14ch which is correct Any help with setting the radio?

I just looked and I can’t set the radio to ppm it’s an eachine i6 (flysky copy) so I’m outta luck there! I’ve seemed to lost the steering channel aswell now going back to pwm! I lost it last night while trying the 5 second button hold calibration

Candas1 commented 6 months ago

I can do it on a flysky i6

KONGFPV commented 6 months ago

I can do it on a flysky i6

I tried several times tonight I think my issue is not being able to set ppm on the radio, would it be possible at all for an sbus mode?

Candas1 commented 6 months ago

Maybe you require a more recent firmware on the radio. No sbus is not supported.

KONGFPV commented 6 months ago

Maybe you require a more recent firmware on the radio. No sbus is not supported.

Ok so I have my reciever now outputting ppm and ppm variant flashed, I believe my rx is sending 12 channels and I have ppm_num_channels set to 12 and still no action, any advice?

Candas1 commented 6 months ago

As long as there are beeps, the setup is not correct.

KONGFPV commented 6 months ago

I’m still getting 4 beeps but I won’t give up! Currently trying to get a arduino nano to convert sbus to ibus and still getting nowhere lol

Candas1 commented 6 months ago

But I am confused, if you use ibus, you should use the ibus variant, not ppm. It's using the right/short cable by default, to the ibus rx pin. image

ppm is a different variant, and it's using a different pin on the receiver.

Both need ppm to be ON on the radio.

KONGFPV commented 6 months ago

I am switching between variants as I try new things, I can’t turn on ppm with this radio so I was trying to use a different (crossfire) reciever and have it output sbus into an sbus-ibus converter that I would feed into the right port

KONGFPV commented 6 months ago

Okay all is now working with the sbus-ibus adapter on the ibus variant I believe most of my ppm/ibus problems may have been because I still had the 100nf caps installed from when I was trying to smooth the pwm variant, can we please adjust the documentation about the capacitors possibly to say that capacitors cannot be used with any other varient as I believe this would have saved me a lot of time! Thankyou so much for your help so far candas