Go Down

Topic: 3 servos + nrf24l01 + arduino (Read 1 time) previous topic - next topic

SX0081107

Hi guys, I am trying to control 3 servos using arduino uno and nrf2401l radios. I am able to control two servos but when I connect third servo it does not work...
Can anyone help me out why is this happening...also let me know if more than three servos can be controlled with aurdino uno and nrf24l01 without using any other shield or hardware....hope someone will help me out.....thanks

JimboZA

Johannesburg hams call me: ZS6JMB on Highveld rep 145.7875 (-600 & 88.5 tone)
Dr Perry Cox: "Help me to help you, help me to help you...."
Your answer may already be here: https://forum.arduino.cc/index.php?topic=384198.0

JimboZA

This is a bit of a guess since I've never used a nrf thing but I think it uses SPI which might prevent using pins 10, 11, 12 and 13. Do you have your third servo on one of those?

Johannesburg hams call me: ZS6JMB on Highveld rep 145.7875 (-600 & 88.5 tone)
Dr Perry Cox: "Help me to help you, help me to help you...."
Your answer may already be here: https://forum.arduino.cc/index.php?topic=384198.0

SX0081107

#3
Mar 30, 2016, 09:02 pm Last Edit: Mar 30, 2016, 09:45 pm by SX0081107
Yes it uses SPI and my servos are connected on pins 3,5 and 6. I am posting through my smart phone it is tough to type all the codes...
Can u help without knowing the code...If required l'll do this but I want to resolve this...

Anyways thanks for your quick reply...

JimboZA

When you say it doesn't work, do you mean the third servo only doesn't work or do the other two stop working?

Have you tried different pins?

Have you swapped the servos around to check it's not faulty servo hardware?

Not a silly coding error? (We always like to see code.....)
Johannesburg hams call me: ZS6JMB on Highveld rep 145.7875 (-600 & 88.5 tone)
Dr Perry Cox: "Help me to help you, help me to help you...."
Your answer may already be here: https://forum.arduino.cc/index.php?topic=384198.0

SX0081107

Thanks Jim, when I connect third servo all servos stop working. I have tested my servos, there is no hardware fault in it. I can not use other pins because other PWM pins (9,10,11) are connected with radio as I am using RF24 Library.
Well I will post me code....

Robin2

You don't need to use PWM pins with a servo.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

SX0081107

Thanks Robin, actually I do not have much information about electronics....this is my fist arduino and I got some information from Internet... I am able to do some stuff but now I want to control 3 or 4 servo motors for my RC plane project...but I am not able to control more than 2 servos...
I will post my code so that you could analyze it and guide me accordingly...

I know you people are experts and surely you can resolve my problem....

Thanks....

JimboZA

I know you people are experts
Hobbyists just like you, by and large, but there is a wealth of experience here that's for sure.

When you post your code also give us a schematic. Hand draw it and take a pic with your phone. Use Reply not Quick Reply then there's an attachment link bottom left under the typing area.
Johannesburg hams call me: ZS6JMB on Highveld rep 145.7875 (-600 & 88.5 tone)
Dr Perry Cox: "Help me to help you, help me to help you...."
Your answer may already be here: https://forum.arduino.cc/index.php?topic=384198.0

SX0081107

Hey guys...I have done it....thanks for idea...
I just replaced one of my servo with a new one...and now all three servos are working perfectly....this faulty servo is working fine with arduino uno but not working with Arduino pro mini.... I have Uno on transmitter side and pro mini on receiver side...

I spent two days but could not get any clue and you guys caught it even without knowing the codes...it shows your experience and expertise. Salute to you guys......a big thanks to you.....

Go Up