r/ArduinoProjects • • Dec 31 '23

Control motordriver SX3R

Post image

Hello, I try to control the motordriver SX3R over an ATmega2650 on an custom PCB.

I use the Servo library and Servo.write.

My problem is, that i can do max front and max reverse, but i can't do less throttle.

How can I do half throttle, when I write half values its also max throttle.

There are extra features see the picture on the driver, but I don't know how to use them.

Maybe someone can help me

Moritz

1 Upvotes

17 comments sorted by

2

u/Eulafski Dec 31 '23

No circuit, no code. How exactly do you expect people to help you?

-1

u/MorliPro Dec 31 '23

I think if they know were the problem is they can help me.

but here is the code:

speedServo.attach(8);
const int CONFIG_DELAY = 2800; // Zeit, wie lange das Config-Signal anliegt
speedServo.write(0); // 100% rückwärts
delay(CONFIG_DELAY);
speedServo.write(90); // 0% vorwärts
delay(CONFIG_DELAY);
speedServo.write(180); // 100% vorwärts
delay(CONFIG_DELAY);
speedServo.write(45);
the circut is relativ simple:

motor to the motordriver, data cable to PWM pin

1

u/Eulafski Dec 31 '23

I think if people can actually provide proper information about their setup others can help you better.
Did you setup your speed controller properly using the manual? From what I can find about it you have to let the speed controller know what pwm value is 100% and what is 0% . Timing on pwm varies. You can't assume the default Arduino values are correct.

1

u/MorliPro Jan 01 '24

https://www.manualslib.com/manual/1558940/Graupner-Navy-V40r.html?page=13

Here is the manual.

Do I have to initialize the 0% and 100% in the code or directly on the driver? If you look, there are the spezial functions. Does this have anything to do with it?

1

u/Eulafski Jan 01 '24

Page 14: radio adjustment. Treat the arduino as the transmitter in this procedure

1

u/MorliPro Jan 01 '24

Mine is already set up, so the Led already is on and when I press SET nothing happens, the Led doesn't turn off. Can I reset the driver some how or configure it new?

1

u/Eulafski Jan 01 '24

Yes, follow the manual.

1

u/MorliPro Jan 01 '24

There is no explanation for this case, only for completely new ones.

1

u/Eulafski Jan 01 '24

Can you describe step by step how you tried to adjust the radio setting? The manual is a bit vague so just checking if you followed the instructions.

1

u/MorliPro Jan 01 '24

First thing when I switch on 5he drive the Led is on but it shouldn't Second when I press the button the led is not flashing.

So i conclude, its not working

→ More replies (0)