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.5 K Views
Gulshan
(@gulshan)
Member
Joined: 5 years ago
Posts: 127
Topic starter  

@pugwash

so 7,8,9 pins are not pwm pins ?


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

Ok so at least 3,5,6,9 pins of the uno are pwm pins so maximum 4 servo can be controlled with it. so how About i check it for them ?


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

@gulshan

In the picture I posted digital pin 9 is being used by the NRF24L01 module.


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

@gulshan

  1. I can't see any reason for the NRF24L01 module needing a PWM pin.
  2. As the pins 9 to 13 are not declared in the sketch, I assume this is being done in the library.
  3. The pins in the library could be edited, but that may be difficult. I don't know!!

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

@pugwash

actually it was connected to the 9 to 13 pins previously but I changed that configuration to 8 to 10(These can be modified)  and the pins connected to 11,12,13 are just permanent for nrf module. So if i am correct 9 pin is open so I can Give it A try for testing the code.


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

@gulshan

go for it ? 


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

@pugwash

but for that to Implement should I have to erase that Part of code in transmit and receive where the connections made to 10 and 11 pins ?


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

Like these, are they correct


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

@pugwash

but for that to Implement should I have to erase that Part of code in transmit and receive where the connections made to 10 and 11 pins ?

you only need to comment the lines out, you may need them with an Arduino Mega


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

@pugwash

No the Servos are not responding


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

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

@pugwash

No, not working, we might need to change the transmit code too


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

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

@pugwash

but I have to change the 180, 360 values  that were written in the previous transmit code right ?


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

no, Still not Responding


   
ReplyQuote
Page 4 / 5