Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use kk2.1.5: Examples, Pinouts, and Specs

Image of kk2.1.5
Cirkit Designer LogoDesign with kk2.1.5 in Cirkit Designer

Introduction

The KK2.1.5 is a flight control board designed for multirotors and other unmanned aerial vehicles (UAVs). It features an integrated 3-axis gyroscope and accelerometer, enabling precise stabilization and control during flight. The board is equipped with a user-friendly LCD interface, allowing for easy configuration and tuning of flight parameters. Its versatility and affordability make it a popular choice for hobbyists and professionals alike.

Explore Projects Built with kk2.1.5

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
DC-DC Converter and Relay Module Power Distribution System
Image of relay: A project utilizing kk2.1.5 in a practical application
This circuit consists of a DC-DC converter powering a 6-channel power module, which in turn supplies 5V to a 2-relay module. The power module distributes the converted voltage to the relay module, enabling it to control external devices.
Cirkit Designer LogoOpen Project in Cirkit Designer
WeMos D1 R2 Controlled Relay Switching Circuit for AC Bulb and USB Charger
Image of Hand Gesture Light: A project utilizing kk2.1.5 in a practical application
This circuit uses a WeMos D1 R2 microcontroller to control a 5V 2-relay module, which in turn controls the power to an AC bulb and a cellphone charger. The microcontroller also interfaces with a line tracking sensor, which likely provides input to control the relay states. The AC bulb and cellphone charger are powered by an AC wire connection, with the relay acting as a switch for the bulb.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Adjustable Voltage Regulator with Li-ion 18650 Batteries and BMS
Image of mini ups: A project utilizing kk2.1.5 in a practical application
This circuit is a power management system that uses four Li-ion 18650 batteries connected to a 2S 30A BMS for battery management and protection. The system includes step-up and step-down voltage regulators to provide adjustable output voltages, controlled by a rocker switch, and multiple DC jacks for power input and output.
Cirkit Designer LogoOpen Project in Cirkit Designer
Cellular-Enabled IoT Device with Real-Time Clock and Power Management
Image of LRCM PHASE 2 BASIC: A project utilizing kk2.1.5 in a practical application
This circuit features a LilyGo-SIM7000G module for cellular communication and GPS functionality, interfaced with an RTC DS3231 for real-time clock capabilities. It includes voltage sensing through two voltage sensor modules, and uses an 8-channel opto-coupler for isolating different parts of the circuit. Power management is handled by a buck converter connected to a DC power source and batteries, with a fuse for protection and a rocker switch for on/off control. Additionally, there's an LED for indication purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with kk2.1.5

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of relay: A project utilizing kk2.1.5 in a practical application
DC-DC Converter and Relay Module Power Distribution System
This circuit consists of a DC-DC converter powering a 6-channel power module, which in turn supplies 5V to a 2-relay module. The power module distributes the converted voltage to the relay module, enabling it to control external devices.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Hand Gesture Light: A project utilizing kk2.1.5 in a practical application
WeMos D1 R2 Controlled Relay Switching Circuit for AC Bulb and USB Charger
This circuit uses a WeMos D1 R2 microcontroller to control a 5V 2-relay module, which in turn controls the power to an AC bulb and a cellphone charger. The microcontroller also interfaces with a line tracking sensor, which likely provides input to control the relay states. The AC bulb and cellphone charger are powered by an AC wire connection, with the relay acting as a switch for the bulb.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of mini ups: A project utilizing kk2.1.5 in a practical application
Battery-Powered Adjustable Voltage Regulator with Li-ion 18650 Batteries and BMS
This circuit is a power management system that uses four Li-ion 18650 batteries connected to a 2S 30A BMS for battery management and protection. The system includes step-up and step-down voltage regulators to provide adjustable output voltages, controlled by a rocker switch, and multiple DC jacks for power input and output.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of LRCM PHASE 2 BASIC: A project utilizing kk2.1.5 in a practical application
Cellular-Enabled IoT Device with Real-Time Clock and Power Management
This circuit features a LilyGo-SIM7000G module for cellular communication and GPS functionality, interfaced with an RTC DS3231 for real-time clock capabilities. It includes voltage sensing through two voltage sensor modules, and uses an 8-channel opto-coupler for isolating different parts of the circuit. Power management is handled by a buck converter connected to a DC power source and batteries, with a fuse for protection and a rocker switch for on/off control. Additionally, there's an LED for indication purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Multirotor drones (quadcopters, hexacopters, octocopters)
  • Fixed-wing UAVs
  • RC helicopters
  • Aerial photography and videography platforms
  • Educational and experimental UAV projects

Technical Specifications

The KK2.1.5 flight control board is designed to provide reliable performance and flexibility for a wide range of UAV applications. Below are its key technical details:

Key Technical Details

  • Processor: Atmel ATmega644PA 8-bit microcontroller
  • Sensors:
    • 3-axis gyroscope (6050 MPU)
    • 3-axis accelerometer (6050 MPU)
  • Input Voltage: 4.8V to 6.0V (via receiver or external BEC)
  • Dimensions: 50.5mm x 50.5mm x 12mm
  • Weight: 21 grams
  • Display: 128x64 pixel LCD screen
  • Firmware: Preloaded with KK2.1.5 firmware (upgradable via USBasp programmer)
  • Output: 8 motor outputs (PWM)
  • Input: 6-channel receiver input (PWM or PPM)

Pin Configuration and Descriptions

The KK2.1.5 board has several connectors for input and output. Below is a detailed description of its pin layout:

Motor Output Pins

Pin Number Label Description
1 M1 Motor 1 output (PWM signal)
2 M2 Motor 2 output (PWM signal)
3 M3 Motor 3 output (PWM signal)
4 M4 Motor 4 output (PWM signal)
5 M5 Motor 5 output (PWM signal)
6 M6 Motor 6 output (PWM signal)
7 M7 Motor 7 output (PWM signal)
8 M8 Motor 8 output (PWM signal)

Receiver Input Pins

Pin Number Label Description
1 AIL Aileron input (PWM/PPM signal)
2 ELE Elevator input (PWM/PPM signal)
3 THR Throttle input (PWM/PPM signal)
4 RUD Rudder input (PWM/PPM signal)
5 AUX Auxiliary input (e.g., flight mode)
6 AUX2 Second auxiliary input (optional)

Power and Other Connectors

Pin Label Description
BATT Power input (4.8V to 6.0V)
ISP In-System Programming header for firmware updates
BUZZER Connector for external buzzer

Usage Instructions

How to Use the KK2.1.5 in a Circuit

  1. Powering the Board: Connect a 4.8V to 6.0V power source to the BATT pins. This can be done via the receiver or an external BEC.
  2. Connecting Motors: Attach the ESC signal wires to the motor output pins (M1 to M8) based on your multirotor configuration (e.g., quadcopter, hexacopter).
  3. Connecting the Receiver: Connect the receiver channels (AIL, ELE, THR, RUD, AUX) to the corresponding input pins on the KK2.1.5.
  4. Calibrating the Sensors: Use the onboard LCD and buttons to navigate the menu and perform sensor calibration (e.g., accelerometer calibration).
  5. Configuring Flight Modes: Set up flight modes and adjust PID settings through the LCD interface for optimal performance.
  6. Firmware Updates: If needed, update the firmware using a USBasp programmer and the appropriate software (e.g., KK Multicopter Flash Tool).

Important Considerations and Best Practices

  • ESC Calibration: Ensure all ESCs are calibrated to provide consistent throttle response.
  • Propeller Orientation: Verify that propellers are installed correctly and match the motor rotation direction.
  • Vibration Dampening: Use vibration-dampening mounts to reduce noise affecting the gyroscope and accelerometer.
  • Failsafe Settings: Configure failsafe settings on your receiver to ensure safe operation in case of signal loss.
  • Firmware Compatibility: Always use firmware compatible with the KK2.1.5 to avoid bricking the board.

Example Code for Arduino UNO Integration

While the KK2.1.5 is a standalone flight controller, it can be interfaced with an Arduino UNO for additional functionality, such as telemetry or custom control. Below is an example of reading receiver signals using the Arduino:

// Example: Reading PWM signals from the KK2.1.5 receiver output
// Connect the receiver's AIL pin to Arduino pin 2

const int receiverPin = 2; // Pin connected to the receiver's AIL output
volatile unsigned long pulseStart = 0;
volatile unsigned long pulseWidth = 0;

void setup() {
  pinMode(receiverPin, INPUT);
  Serial.begin(9600);

  // Attach interrupt to measure PWM signal
  attachInterrupt(digitalPinToInterrupt(receiverPin), measurePulse, CHANGE);
}

void loop() {
  // Print the pulse width (in microseconds) to the Serial Monitor
  Serial.print("Pulse Width: ");
  Serial.print(pulseWidth);
  Serial.println(" us");
  delay(100);
}

void measurePulse() {
  if (digitalRead(receiverPin) == HIGH) {
    // Rising edge detected, record the start time
    pulseStart = micros();
  } else {
    // Falling edge detected, calculate the pulse width
    pulseWidth = micros() - pulseStart;
  }
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Board Not Powering On

    • Cause: Insufficient or incorrect power supply.
    • Solution: Ensure the input voltage is between 4.8V and 6.0V. Check all power connections.
  2. Motors Not Spinning

    • Cause: Incorrect motor connections or ESC calibration.
    • Solution: Verify motor connections to the correct output pins (M1 to M8). Calibrate the ESCs.
  3. Unstable Flight

    • Cause: Incorrect PID settings or sensor calibration.
    • Solution: Recalibrate the accelerometer and gyroscope. Adjust PID values for stability.
  4. No Display on LCD

    • Cause: Faulty LCD connection or damaged board.
    • Solution: Check the LCD connector for loose connections. Replace the LCD if necessary.
  5. Firmware Update Fails

    • Cause: Incorrect firmware or USBasp connection.
    • Solution: Ensure the firmware is compatible with the KK2.1.5. Verify the USBasp connections and drivers.

FAQs

  • Can the KK2.1.5 be used with GPS modules?

    • No, the KK2.1.5 does not natively support GPS functionality.
  • What is the maximum number of motors supported?

    • The KK2.1.5 supports up to 8 motors.
  • Can I use the KK2.1.5 for fixed-wing aircraft?

    • Yes, the KK2.1.5 can be configured for fixed-wing UAVs.
  • Is the KK2.1.5 compatible with PPM receivers?

    • Yes, the KK2.1.5 supports both PWM and PPM receiver inputs.