Provides direct control over the aircraft's rotation rates.
Provides direct control over the aircraft's rotation rates.
Enforces a set angle of rotation, allowing for aerobatic maneuvers.
Maintains a consistent orientation, ideal for stable flight.
| 3-Axis Gyroscope | Measures the aircraft's rotational rates. |
| 3-Axis Accelerometer | Determines the aircraft's acceleration and orientation. |
Measures altitude and air pressure.
Technical Specifications
16-bit STM32F103RC microcontroller
16 MHz
5V to 12V
Up to 500mA
50mm x 50mm
20g
Conclusion
The KK Board 2.1.5 Multi-Rotor LCD Flight Control Board is a highly advanced and feature-rich flight control system, designed to provide exceptional performance, stability, and reliability for multi-rotor aircraft. Its integrated LCD display, stabilization modes, and sensor suite make it an ideal choice for drone enthusiasts and professionals seeking a comprehensive and customizable flight control solution.
KK board 2.1.5 Multi-Rotor LCD Flight Control Board DocumentationOverviewThe KK board 2.1.5 is a versatile flight control board designed for multi-rotor drones and other unmanned aerial vehicles (UAVs). It features a built-in LCD display, multiple sensor interfaces, and a powerful ATmega328P microcontroller. This documentation provides an overview of the board's features, specifications, and code examples to help developers and hobbyists integrate the KK board 2.1.5 into their projects.FeaturesATmega328P microcontroller
Built-in LCD display (128x64 pixels)
Supports up to 8 motors
Built-in accelerometer and gyroscope
Barometer and GPS interfaces
UART, I2C, and SPI interfaces
Micro-USB programming interface
Compatible with Arduino IDESpecificationsOperating voltage: 5V
Operating frequency: 16 MHz
Flash memory: 32 KB
SRAM: 2 KB
EEPROM: 1 KBCode Examples### Example 1: Basic Motor Control using KK board 2.1.5This example demonstrates how to control a single motor using the KK board 2.1.5. It uses the built-in PWM output to drive a brushless motor ESC.```cpp
#include <KKBoard.h>#define MOTOR_PIN 3 // motor connected to digital pin 3void setup() {
Serial.begin(9600);
pinMode(MOTOR_PIN, OUTPUT);
}void loop() {
// Set motor speed to 50% (128/255)
analogWrite(MOTOR_PIN, 128);
delay(1000);// Set motor speed to 100% (255/255)
analogWrite(MOTOR_PIN, 255);
delay(1000);// Set motor speed to 0% (0/255)
analogWrite(MOTOR_PIN, 0);
delay(1000);
}
```### Example 2: Reading Sensor Data using KK board 2.1.5This example demonstrates how to read data from the built-in accelerometer and gyroscope sensors using the KK board 2.1.5.```cpp
#include <KKBoard.h>
#include <Wire.h>#define ACCEL_ADDRESS 0x1D // accelerometer address
#define GYRO_ADDRESS 0x68 // gyroscope addressvoid setup() {
Serial.begin(9600);
Wire.begin();
}void loop() {
// Read accelerometer data
int x, y, z;
Wire.beginTransmission(ACCEL_ADDRESS);
Wire.write(0x00); // register address
Wire.endTransmission();
Wire.requestFrom(ACCEL_ADDRESS, 6);
x = Wire.read() << 8 | Wire.read();
y = Wire.read() << 8 | Wire.read();
z = Wire.read() << 8 | Wire.read();
Serial.print("Accel: ");
Serial.print(x);
Serial.print(", ");
Serial.print(y);
Serial.print(", ");
Serial.println(z);// Read gyroscope data
int gx, gy, gz;
Wire.beginTransmission(GYRO_ADDRESS);
Wire.write(0x00); // register address
Wire.endTransmission();
Wire.requestFrom(GYRO_ADDRESS, 6);
gx = Wire.read() << 8 | Wire.read();
gy = Wire.read() << 8 | Wire.read();
gz = Wire.read() << 8 | Wire.read();
Serial.print("Gyro: ");
Serial.print(gx);
Serial.print(", ");
Serial.print(gy);
Serial.print(", ");
Serial.println(gz);delay(100);
}
```Note: These examples assume the KK board 2.1.5 is connected to a computer via a micro-USB cable and programmed using the Arduino IDE.This documentation provides a comprehensive overview of the KK board 2.1.5's features, specifications, and code examples to help developers and hobbyists integrate the board into their projects.