Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Wireless Multi-Motor Drone Control System with Video Streaming

View and Edit Project In Cirkit DesignerImage of Wireless Multi-Motor Drone Control System with Video Streaming

Circuit Documentation

Summary

The circuit in question appears to be designed for a remote-controlled vehicle or drone, featuring brushless motors controlled by electronic speed controllers (ESCs), powered by a LiPo battery. It includes a microcontroller (NodeMCU V3 ESP8266) interfaced with an MPU-6050 sensor and an nRF24L01 wireless module for remote control capabilities. A Raspberry Pi 4B is used, possibly for higher-level control and processing, and an OV7725 camera module for vision capabilities. The RC receiver suggests the vehicle is controlled by a standard RC transmitter.

Component List

Brushless Motor

Electronic Speed Controller (ESC)

LiPo Battery 2200mAh 30C

RC Receiver 6 Channels

MPU-6050

NodeMCU V3 ESP8266

nRF24L01

Raspberry Pi 4B

OV7725

Wiring Details

Brushless Motors

Electronic Speed Controllers (ESCs)

LiPo Battery 2200mAh 30C

RC Receiver 6 Channels

MPU-6050

NodeMCU V3 ESP8266

nRF24L01

Raspberry Pi 4B

OV7725

Documented Code

NodeMCU V3 ESP8266 Code (sketch.ino)

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

RF24 radio(D2, D8); // CE, CSN
const byte address[5] = "00001";

struct Data_Package {
  int throttle;
  int yaw;
  int pitch;
  int roll;
};

Data_Package data;

void setup() {
  Serial.begin(9600);
  radio.begin();
  radio.openWritingPipe(address);
  radio.setPALevel(RF24_PA_MIN);
  radio.stopListening();
}

void loop() {
  // Read joystick values
  data.throttle = analogRead(A0); // X-axis
  data.yaw = analogRead(D1); // Y-axis
  data.pitch = 0; // Placeholder for pitch control
  data.roll = 0; // Placeholder for roll control

  // Print joystick values for debugging
  Serial.print("Throttle: ");
  Serial.print(data.throttle);
  Serial.print(" Yaw: ");
  Serial.print(data.yaw);
  Serial.print(" Pitch: ");
  Serial.print(data.pitch);
  Serial.print(" Roll: ");
  Serial.println(data.roll);

  // Send data package
  radio.write(&data, sizeof(Data_Package));
  delay(50); // Adjust delay as needed
}

This code is responsible for reading control inputs from an analog joystick connected to the NodeMCU, packaging the data into a structure, and transmitting it wirelessly via the nRF24L01 module. The Data_Package structure holds the throttle and yaw values, with placeholders for pitch and roll. The values are printed to the serial monitor for debugging purposes and sent out at a regular interval (50 ms).