Notifications
Clear all

How Can I modify this code to Control two or more servo motors using the nrf24l01 Module With These codes ?

69 Posts
2 Users
0 Likes
21.7 K Views
(@pugwash)
Sorcerers' Apprentice
Joined: 5 years ago
Posts: 923
 

@gulshan

I'm not sure but the error message tells me that the library needs it in this form. So just leave it in!

Tell me if all three servos are working properly!!


   
ReplyQuote
Gulshan
(@gulshan)
Member
Joined: 5 years ago
Posts: 127
Topic starter  

@pugwash

No it is not working


   
ReplyQuote
Gulshan
(@gulshan)
Member
Joined: 5 years ago
Posts: 127
Topic starter  

listen I have a different code for the same purpose If you like I can show you.


   
ReplyQuote
(@pugwash)
Sorcerers' Apprentice
Joined: 5 years ago
Posts: 923
 
Posted by: @gulshan

@pugwash

No it is not working

I think I would have to build the prototype here, because there may be some bugs I have missed. It is difficult to change other peoples code remotely.

Are you still getting errors, when I compile the code I get none. 


   
ReplyQuote
Gulshan
(@gulshan)
Member
Joined: 5 years ago
Posts: 127
Topic starter  

@pugwash

Here actually the servos are not responding


   
ReplyQuote
(@pugwash)
Sorcerers' Apprentice
Joined: 5 years ago
Posts: 923
 

@gulshan

Make sure the  receive Arduino is is connected to your computer, and in the receive sketch add

Serial.begin(9600);

And before the first "if" statement add

Serial.println(incomingData);

just check that data is arriving.


   
ReplyQuote
Gulshan
(@gulshan)
Member
Joined: 5 years ago
Posts: 127
Topic starter  

@pugwash

I think the data that is coming is not proper cause only the servo at pin 3 is responding only while the other servos at pin 5, 6 are not responding.


   
ReplyQuote
(@pugwash)
Sorcerers' Apprentice
Joined: 5 years ago
Posts: 923
 

@gulshan

Are you getting values between 0 and 180, or are you getting values above this when you use the turn the other pots?


   
ReplyQuote
Gulshan
(@gulshan)
Member
Joined: 5 years ago
Posts: 127
Topic starter  

@pugwash

yes but only for the servo connected at pin 3 


   
ReplyQuote
(@pugwash)
Sorcerers' Apprentice
Joined: 5 years ago
Posts: 923
 

@gulshan

Are your pots connected to A0, A1 and A2 on the Arduino?


   
ReplyQuote
Gulshan
(@gulshan)
Member
Joined: 5 years ago
Posts: 127
Topic starter  

@pugwash

Yes

 


   
ReplyQuote
(@pugwash)
Sorcerers' Apprentice
Joined: 5 years ago
Posts: 923
 

@gulshan

I think I will have to run up a prototype to debug this, we are pretty close but not close enough!

I'll get back to you soon on it!


   
ReplyQuote
Gulshan
(@gulshan)
Member
Joined: 5 years ago
Posts: 127
Topic starter  

@pugwash

Ok thanks


   
ReplyQuote
(@pugwash)
Sorcerers' Apprentice
Joined: 5 years ago
Posts: 923
 

   
ReplyQuote
Gulshan
(@gulshan)
Member
Joined: 5 years ago
Posts: 127
Topic starter  

@pugwash

servo at pin 3 and pin 5 are working but pin 6 is still not working.


   
ReplyQuote
Page 2 / 5