ordered | component | | link | quantity | price (€) | weight (g) | Current (mA) |
---|
HTML |
---|
<input disabled checked type="checkbox"></input> |
| Frame | F330 Glass Fiber Mini Quadcopter Frame 330mm | Hobbyking | 1 | 10,46 | 147 | - |
HTML |
---|
<input disabled checked type="checkbox"></input> |
| Microcontroller | Arduino Mega 2560 | | 1 | - | 37 | ~200 |
HTML |
---|
<input disabled checked type="checkbox"></input> |
| LiPo-Warner | HobbyKing LiPo Voltage Checker (2S~8S) | Hobbyking | 2 | 2,94 | 9 | ? |
HTML |
---|
<input disabled checked type="checkbox"></input> |
| Motor | Turnigy Aerodrive SK3 2822-1275 Brushless Outrunner | Hobbyking | 4 | 15,98 | 31 | 7000 (Max 8000) |
HTML |
---|
<input disabled checked type="checkbox"></input> |
| Gyro and Acceleration Sensors | MPU-9150 All in one kit | eBay | 1 | 15,99 | ?20? | ?30? 4,25mA |
|
HTML |
---|
<input disabled checked type="checkbox"></input> |
| Proximity Sensors | Ultrasonic-Module HC-SR04 | Amazon | 10 | 2,11 | 8,5 | 15 |
Expand |
---|
title | Click here for more info... |
---|
| 4-Pin Ultrasonic-Module HC-SR04Probably we will need 10 of this sensors, but maybe 6 will be enough.
Links: Amazon, datasheet, short instructions Cost: 10 x approx. 2€ ≈ 20€ Power Supply: +5VDV, 10 x 15mA working current weght: 8.5g Pins: 2 GPIO, VCC, GND - VCC = +5VDC (GPIO)
- Trig = Trigger input of Sensor (5V Digital GPIO)
- Echo = Echo output of Sensor (5V Digital GPIO)
Important: Outputs 5V. If the microcontroller can only handle 3.3V inputs, we need to build an easy voltage divider. - GND = GND (GPIO)
Code Block |
---|
language | cpp |
---|
title | Code Beispiel für Ardunio |
---|
linenumbers | true |
---|
collapse | true |
---|
| /*
HC-SR04 Ping distance sensor]
VCC to arduino 5v GND to arduino GND
Echo to Arduino pin 13 Trig to Arduino pin 12
Red POS to Arduino pin 11
Green POS to Arduino pin 10
560 ohm resistor to both LED NEG and GRD power rail
More info at: http://goo.gl/kJ8Gl
Original code improvements to the Ping sketch sourced from Trollmaker.com
Some code and wiring inspired by http://en.wikiversity.org/wiki/User:Dstaub/robotcar
*/
#define trigPin 13
#define echoPin 12
#define led 11
#define led2 10
void setup() {
Serial.begin (9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(led, OUTPUT);
pinMode(led2, OUTPUT);
}
void loop() {
long duration, distance;
digitalWrite(trigPin, LOW); // Added this line
delayMicroseconds(2); // Added this line
digitalWrite(trigPin, HIGH);
// delayMicroseconds(1000); - Removed this line
delayMicroseconds(10); // Added this line
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration/2) / 29.1;
if (distance < 4) { // This is where the LED On/Off happens
digitalWrite(led,HIGH); // When the Red condition is met, the Green LED should turn off
digitalWrite(led2,LOW);
}
else {
digitalWrite(led,LOW);
digitalWrite(led2,HIGH);
}
if (distance >= 200 || distance <= 0){
Serial.println("Out of range");
}
else {
Serial.print(distance);
Serial.println(" cm");
}
delay(500);
} |
|
|
HTML |
---|
<input disabled checked type="checkbox"></input> |
| Telemetry Kit | Aukru HC-06 | Amazon | 1 | 8,99 | 9 | 50 |
Expand |
---|
title | Click here for more info... |
---|
| Aukru HC-06 Wireless 4 Pins Bluetooth RF Transceiver Serial ModuleLinks: Amazon, instructions, instructions, instructions Cost: 9€ size: 4.3 * 1.6 * 0.7cm weight: 9g
Power Supply: 3.3V - 6V, approx. 50mA Pins: 2 GPIO, VCC, GND - VCC = +3.3VDC / +5VDC (GPIO)
- TXD = Trigger input of Sensor (RXD (serial) Digital 0)
- RXD = Echo output of Sensor (TXD (serial) Digital 1)
- GND = GND (GPIO)
|
|
HTML |
---|
<input disabled checked type="checkbox"></input> |
| Power Distribution | Hobbyking Multi-Rotor Power Distribution Board | Hobbyking | 1 | 7,6 | 1,96 | - |
HTML |
---|
<input disabled type="checkbox"></input> |
| Voltage converter 12V-3,3V | apo will buy them from Elektronik Schmidt | - | ? | - | - | - |
HTML |
---|
<input disabled checked type="checkbox"></input> |
| Voltage converter 12V-5V | Included in the ESCs | - | - | - | - | - |
HTML |
---|
<input disabled checked type="checkbox"></input> |
| ESC programming card | TURNIGY BESC Programming Card | Hobbyking | 1 | 6,19 | - | - |
HTML |
---|
<input disabled checked type="checkbox"></input> |
| ESC | TURNIGY Plush 12amp (2A BEC) BESC | Hobbyking | 4 | 8,99 | - | - |
HTML |
---|
<input disabled checked type="checkbox"></input> |
| Battery bag | Lithium Polymer Charge Pack 18x22cm Sack | Hobbyking | 2 | 1,77 | - | - |
HTML |
---|
<input disabled checked type="checkbox"></input> |
| Cable ties | - | - | - | - | - | - |
HTML |
---|
<input disabled checked type="checkbox"></input> |
| Velcro | Polyester Velcro Peel-n-stick (Black) (1 Meter) | Hobbyking | 1 | 2,42 | - | - |
HTML |
---|
<input disabled checked type="checkbox"></input> |
| Battery | Turnigy 2200mAh 3S 20C Lipo Pack | Hobbyking | 2 | 8,89 | 188 | |
HTML |
---|
<input disabled checked type="checkbox"></input> |
| Battery Charger | HobbyKing ECO6 50W 5A Balancer/Charger w/ accessories | Hobbyking | 1 | 16,91 | - | - |
HTML |
---|
<input disabled checked type="checkbox"></input> |
| Propeller Balancer | HobbyKing™ Universal Propeller Balancer, For T Style And Std Propellers | Hobbyking | 1 | 6,43 | - | - |
HTML |
---|
<input disabled checked type="checkbox"></input> |
| Propeller | Turnigy 8x4.5 Props For DJI and Walkera CCW Rotation (white) (4pcs/bag) | Hobbyking | 2 | 3,23 | 31 | |