How to make Miniature flag | Hoisting Miniature Flag | Majestic King M K Get link Facebook X Pinterest Email Other Apps July 31, 2021 Material Used: White PVC Sheet, Paper Pin, Mask Cloth, Chopstick, Thread. Get link Facebook X Pinterest Email Other Apps Comments
Servo motor controlled by Joystick using Arduino & Transceiver - Wireles... December 19, 2019 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 Read more
DC motor controlled by Joystick using Arduino & L298N Motor driver - Wireless Connection December 31, 2019 Circuit Diagram: Required Components: Arduino uno/nano - 1 Nos Battery - 1 Nos DC Motor - 2 Nos L298N Motor Driver - 1 Nos Joystick - 1 Nos Transceiver - 2 Nos Program Code: Transmitter Code: #include <SPI.h> #include "RF24.h" int x_axis = A1; int y_axis = A2; int xvalue; int yvalue; int data[2]; RF24 radio(9,10); const uint64_t pipe=0xE8E8F0F0E1LL; void setup() { Serial.begin(9600); radio.begin(); radio.openWritingPipe(pipe); } void loop() {{ xvalue=analogRead(x_axis); xvalue=map(xvalue,0,1023,0,127); data[0]=xvalue; radio.write(data,1); } { yvalue=analogRead(y_axis); yvalue=map(yvalue,0,1023,128,255); data[0]=yvalue; radio.write(data,1); } Serial.println(xvalue); Serial.println(yvalue); } Receiver Code: #include <SPI.h> #include "RF24.h" const int motorforward = A1; const int motorbackward = A2; const int motorleft = A3; const int motorright = A4; int data[2]; RF24 radio(9,10); // CE,CS Read more
DC motor controlled by Gyro MPU 6050 using Arduino & L298N Motor driver - Wired Connection December 31, 2019 Circuit Diagram: Required Components: Arduino uno/nano - 1 Nos Battery - 1 Nos DC Motor - 2 Nos L298N Motor Driver - 1 Nos Gyro MPU6050 - 1 Nos Program Code: #include <Wire.h> #include <MPU6050.h> #define motor1_pin1 5 //PWM - Digital Pins #define motor1_pin2 6 //PWM - Digital Pins #define motor2_pin1 9 //PWM - Digital Pins #define motor2_pin2 10 //PWM - Digital Pins MPU6050 gy_521; int16_t ax, ay, az; int16_t gx, gy, gz; int motor1_speed1; int motor2_speed1; int motor1_speed2; int motor2_speed2; void setup ( ){ Wire.begin( ); Serial.begin (9600); Serial.println ("Initializing MPU and testing connections"); gy_521.initialize ( ); Serial.println(gy_521.testConnection( ) ? "Successfully Connected" : "Connection failed"); delay(1000); Serial.println("Reading Values"); delay(1000); } void loop ( ){ gy_521.getMotion6(&ax, &ay, &az, &gx, &gy, &gz); ax = map(ax, -17000, 1 Read more
Comments
Post a Comment