Servo motor controlled by Joystick using Arduino & Transceiver - Wireles...
Circuit Diagram: Required Components: Arduino uno/nano - 2 Nos Battery - 2 Nos Transceiver - 2 Nos Servo Motor - 2 Nos Joystick - 1 Nos Program Code: Transmitter Code: #include <SPI.h> #include "RF24.h" #include "nRF24L01.h" int potpin1 = A1; int potpin2 = A2; int data[2]; RF24 radio(9,10); const uint64_t pipe=0xE8E8F0F0E1LL; void setup() { Serial.begin(9600); radio.begin(); radio.openWritingPipe(pipe); } void loop(){ data[0] = analogRead(potpin1); data[1] = analogRead(potpin2); data[0] = map(data[0],0,1023,5,175); data[1] = map(data[1],0,1023,5,175); radio.write(data,sizeof(data)); { Serial.println(data[0]); Serial.println(data[1]); } } Receiver Code: #include <SPI.h> #include "RF24.h" #include "nRF24L01.h" #include <Servo.h> Servo servo1; Servo servo2; RF24 radio(9,10); const uint64_t pipe=0xE8E8F0F0E1LL; int data[2]; void setup() { servo1.attach(5); servo2.attach(6); Serial.begin(9
Sir Apne testing connections me 9 v provide Liya hai or actual circuit me Apne 5 v provide Liya hai
ReplyDeleteThis comment has been removed by the author.
DeleteHi, I am attempting to do the test for the Ht12-D and ht12-E. I am not getting anything in the LED's. I am getting voItage from pin 18 to pin 9 on the encoder, but no voltage from 18 to 9 on the decoder. I have switched out all components to check for bad components. Is there somewhere I could send a photo of my circuits to be checked?
ReplyDeleteHi
ReplyDeleteSir I have created same circuit but in my circuit Vt voltage is zero on the decoder IC what can be issue in my circuit?
in transmitter circuit there is some mistake written in Antenna circuit :
ReplyDeleteDATA
VCC
GND
ANT
please correct as
VCC
DATA
GND
ANT
kindly note and correct in your wiring diagram otherwise circuit will not be operative.
This comment has been removed by the author.
ReplyDeleteWhy reply delete please
ReplyDelete