Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
NRF Based Servo Motor Control
Just Do Electronics
May 07, 2020
Circuit Diagram :-
Transmitter
Receiver
Transmitter Code :-
//Prateek //www.prateeks.in //Transmitter #include
#include
#include
RF24 radio(9, 10); // CE, CSN const byte addresses[][6] = {"00001", "00002"}; boolean buttonState = 0; void setup() { radio.begin(); radio.openWritingPipe(addresses[1]); // 00002 radio.openReadingPipe(1, addresses[0]); // 00001 radio.setPALevel(RF24_PA_MIN); } void loop() { delay(5); radio.stopListening(); int potValue = analogRead(A0); int angleValue = map(potValue, 0, 1023, 0, 180); radio.write(&angleValue, sizeof(angleValue)); delay(5); radio.startListening(); while (!radio.available()); }
Receiver Code :-
//Prateek //www.prateeks.in //Receiver #include
#include
#include
#include
RF24 radio(9, 10); // CE, CSN const byte addresses[][6] = {"00001", "00002"}; Servo myServo; void setup() { myServo.attach(5); radio.begin(); radio.openWritingPipe(addresses[0]); // 00001 radio.openReadingPipe(1, addresses[1]); // 00002 radio.setPALevel(RF24_PA_MIN); } void loop() { delay(5); radio.startListening(); if ( radio.available()) { while (radio.available()) { int angleV = 0; radio.read(&angleV, sizeof(angleV)); myServo.write(angleV); } delay(5); radio.stopListening(); } }
Project Photo
1 Comments
Unknown
22 December 2020 at 03:44
çalıştıramadım yardımcı olurmusunuz
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer
Older
ESP32 Led Blink With Push Button
ESP32 Interfacing With LDR Sensor
How To Make RFID & Keypad Based Door Lock
ESP32 Interfacing With Ultrasonic Sensor
ESP32 And Fingerprint Sensor Based Biometric Door Lock Security System
How to Make Gas Leak Detector & Auto Exhaust Fan Using Arduino
Door Lock Security System Using Arduino
Vehicle Accident Alert System Using Accelerometer GPS And GSM
Plant Watering System With The ESP8266 | Blynk App
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
1 Comments
çalıştıramadım yardımcı olurmusunuz
ReplyDelete