Mind Controlled Drone - Tutorial
Summary
TLDRThis tutorial guides you through the innovative process of controlling a drone with your mind using the Neurosky MindWave Mobile. It covers the essentials, from disassembling a drone controller and setting up potentiometers to building a circuit with an Arduino MKR1000 and creating a Processing sketch for mind-controlled flight. The video demonstrates how to connect the mindwave sensor, calibrate attention levels, and safely operate the drone with a focus on concentration, ensuring a hands-free, thought-driven flying experience.
Takeaways
- π οΈ The project requires a drone, its controller, a soldering station, a multimeter, Neurosky MindWave Mobile, Arduino MKR1000, and various electronic components.
- π Disassembling the drone controller is the first step, being careful not to damage the internal circuit board.
- π§ Desoldering is necessary to remove the joysticks from the controller, revealing the potentiometers within.
- β‘ The multimeter is used to measure and match the resistance of the potentiometers, typically 10k ohms.
- π Soldering is performed to attach resistors and wires to the potentiometers to facilitate PWM to analog voltage conversion.
- π A digital to analog converter circuit is constructed using capacitors and resistors to filter the PWM output from the Arduino.
- π€ The Arduino MKR1000 is the central component for building the main circuit, requiring careful wiring and connection to the controller.
- π Proper wiring of the Arduino to the controller is crucial to avoid short circuits, with attention to VCC and GND connections.
- π± The Arduino sketch is uploaded to control the drone's throttle, yaw, pitch, and roll variables.
- π§ The Neurosky MindWave Mobile is used as a brainwave sensor to control the drone, requiring Bluetooth pairing with a computer.
- π‘ The Processing code is essential for translating brainwave data into drone control signals, with a focus on the 'attention' value.
- π A kill-switch feature is included in the Processing sketch to ensure safety by setting the throttle to zero in case of an emergency.
Q & A
What is the main objective of the video tutorial?
-The main objective of the video tutorial is to teach viewers how to lift-off a drone using their mind.
What are the required materials for this project?
-The required materials include a drone and its controller, a soldering station and accessories, a multimeter, the Neurosky MindWave Mobile, a micro USB cable, the Arduino MKR1000, a breadboard, 4 100uF capacitors, 4 220Ξ© resistors, 12 jumper wires, and 6 crocodile clip wires.
Can any drone be used for this project?
-The script suggests that this project should work with any drone, and even a cheap drone costing β¬10 from an outlet store can be used.
What is the first step in modifying the drone's controller?
-The first step is to open the case of the controller using any necessary force without damaging the circuit board inside.
Why is a multimeter used in this project?
-A multimeter is used to measure the resistance of the potentiometers in the joystick to ensure they have the correct resistance of 10k ohms.
How many resistors are needed to replace the potentiometers in the joysticks?
-Four 10k ohm resistors are needed, one for each outer end of the two potentiometers in the joysticks.
What is the purpose of building a digital to analogue converter (DAC) with a low pass filter?
-The purpose is to convert the PWM output from the Arduino to an analogue voltage, which is necessary for controlling the drone's controller.
How does the Arduino circuit provide power to the controller?
-The Arduino circuit provides power to the controller by connecting the red wire to the VCC for a 3.3-volt output and the ground (GND) with a black wire.
What is the role of the Neurosky MindWave Mobile in controlling the drone?
-The Neurosky MindWave Mobile is used to detect the user's brainwave activity, specifically the attention level, which is then sent to the Arduino to control the throttle of the drone.
What is the minimum attention level required to lift-off the drone according to the Processing sketch?
-A minimum attention level of 40 is needed to initiate the lift-off of the drone.
How does the 'kill-switch' function in the Processing sketch work?
-The 'kill-switch' function terminates the program and sets the throttle to 0 in case something goes wrong, ensuring safety during experimentation. It can be activated by pressing the 'K' key.
Outlines
π οΈ Drone Control with MindWave Setup
This tutorial introduces a project where a drone is controlled using the Neurosky MindWave Mobile device. The process begins with the necessary tools and materials, including a drone, a soldering station, a multimeter, and electronic components like capacitors, resistors, and jumper wires. The controller is disassembled to access the joystick's potentiometers, which are then measured and matched with appropriate resistors. The Arduino MKR1000 is used to convert PWM signals to analog voltages, creating a digital to analog converter circuit with a low pass filter. The Arduino is connected to the modified controller, and a sketch is uploaded to control the drone's throttle, yaw, pitch, and roll. The mindwave sensor is set up for Bluetooth pairing, and Processing code is used to map attention values to drone control, with a safety kill-switch included.
π§ Mind-Powered Drone Lift-Off and Landing
The second paragraph explains the operational aspect of the mind-controlled drone. It details how the drone responds to the user's concentration levels, lifting off when the attention level is high and landing when it drops. The Processing sketch is used to visualize the attention levels required for the drone to take flight, with a minimum threshold of 40. The tutorial concludes with an invitation for viewers to apply the knowledge gained to their own projects, expressing enthusiasm for the creative potential of this technology.
Mindmap
Keywords
π‘Drone
π‘Controller
π‘Soldering Station
π‘Multimeter
π‘Neurosky MindWave Mobile
π‘Arduino MKR1000
π‘Breadboard
π‘Capacitors
π‘Resistors
π‘Jumper Wires
π‘Crocodile Clip Wires
π‘PWM (Pulse Width Modulation)
π‘Processing
π‘MindSet Library
π‘Attention Value
π‘Kill-Switch
Highlights
Introduction to a tutorial on using mind control to operate a drone.
List of required materials including a drone, soldering station, multimeter, Neurosky MindWave Mobile, Arduino MKR1000, and various electronic components.
The project's compatibility with any drone, suggesting a β¬10 drone from an outlet store.
Instructions for opening the drone controller's case without damaging internal components.
Desoldering the joysticks from the controller's PCB and identifying the potentiometers within.
Using a multimeter to measure and verify the resistance of the potentiometers.
Soldering resistors to the potentiometers to simulate joystick movement.
Building a simple digital to analog converter (DAC) using a low pass filter for PWM output conversion.
Assembling the main circuit on a breadboard with capacitors, resistors, and jumper wires.
Connecting the Arduino MKR1000 to power the controller and set up the circuit.
Creating a non-permanent circuit using crocodile clip wires to connect the Arduino to the controller.
Uploading the Arduino sketch to control the drone's throttle, yaw, pitch, and roll.
Setting up the mindwave sensor for Bluetooth pairing and head placement for mind control.
Using the Processing software to establish serial connections with the mindwave sensor and Arduino.
Mapping the attention value from the mindwave sensor to control the drone's throttle.
Implementation of a kill-switch in the Processing sketch for safety during experimentation.
Demonstration of the mind-controlled drone lift-off based on the user's concentration level.
Visual representation of the attention level needed for the drone to lift-off in the Processing sketch.
Conclusion summarizing the tutorial's educational value and the creator's enthusiasm for the project.
Transcripts
Hello and welcome to this video tutorial.
You will learn how to lift-off a drone using your mind.
For this project, we need a drone and its controller.
A soldering station and its accessories.
A multimeter.
The Neurosky MindWave Mobile
A micro USB cable.
The Arduino MKR1000.
One breadboard. 4 100uF capacitors.
4 220Ξ© resistors.
12 Jumper wires and 6 Crocodile Clip Wires.
This project should work with any drone.
You can buy a cheap drone for β¬10 in an outlet store.
Frist, we open the case of the controller.
Use any force necessary, but don't break the circuit board inside.
You will end up whit something like this.
Don't mind the wires, we'll add them later.
Use a desoldering pump or braided copper wire to remove the tin from the PCB to disconnect the joysticks.
You will end up whit something like this.
Actually this joystick contains two potentiometers.
One in the x-axis and one in the y-axis.
We can measure the resistance of the potentiometers with a multimeter.
This multimeter comes with handy clamps to attach to the potentiometers.
First, we check the resistance of a potentiometer with an know resistance,
to make sure the multimeter is working correctly.
This standard potentiometer should have 10k resistance.
When we measure the resistance of the joystick component we see that the resistance is also 10k.
This result may vary on your controller.
Find 4 resistors of this same value and solder them to the outer ends of each potentiometer.
In this case there are four 10k resistors needed.
Solder solid core wires to the open middle holes.
Also solder the postive (+) and negative (-) wires.
We need to convert the PWM output from the Arduino to an analogue voltage.
You can build a simple digital to analogue converter (DAC) with a low pass filter.
Using a capacitor and an resistor.
This will be the main part of the circuit.
Next, we will build a receiver that will generate the output to the controller.
Grab your Arduino MKR1000,
breadboard, jumper wires, capacitors and resistors to start building the main circuit.
Connect the red wire to the VCC which gives a 3.3-volt output and connect the ground (GND) with a black wire.
This will be used as power for the controller.
Make a row of polarized capacitors.
The long pin goes in to the ground (GND).
Use the 220-ohm resistors to connect the capacitors to the other side of the breadboard.
Place the jumper wires between the resistors and capacitors.
These will give the output of the analogue voltages.
Lastly, connect pins 2 - 5 to the front end of the resistors.
The circuit will look like this.
Now is the time to connect the Arduino circuit to the hacked controller.
I use Crocodile clip wires to make an non-permanent circuit.
Make sure you connect the ground and the VCC correctly.
Or you will get a short circuit.
When you connected all the pins to the correct inputs on the controller it's time to upload the Arduino sketch.
There are four variables that control the output.
Throttle, Yaw, Pitch and Roll.
In the setup, we start Serial communication and set all the pins to OUTPUT.
The Arduino recieves 4 8-bit values at a time and sends them with analogWrite() to the controller.
When the sketch is uploaded you can turn on the controller and connect to the drone.
Now we will look into the mindwave sensor to control the drone.
Install the drivers from CD on your laptop or PC.
To activate Bluetooth pairing mode on the mindwave sensor you have to hold the switch for 3 seconds until the led is flashing twice.
When the mindwave sensor is connected put in on your head.
Now we will look into the processing code.
Make sure you have connected the Arduino via USB and the mindwave sensor connected via Bluetooth.
Also, make sure you have the MindSet library installed in your Processing libraries folder.
This sketch will make a Bluetooth serial connection with the mindwave sensor.
And an normal Serial connection with the Arduino.
You can find the com-ports in your device manager.
The MindSet libary wil give you periodically an attention value between 0 an 100.
This value gets mapped and will be sent to the Arduino to control the throttle of the drone.
Also, there is a kill-switch build in that terminates the program.
And sets the throttle to 0 in case something goes wrong while experimenting.
Press K to terminate the program.
Run the sketch and concentrate on your drone.
When you concentrating enough the drone will lift-off.
When you stop concentrating, the drone will land.
The Processing sketch will visualise the amount of attention needed
to lift-off the drone.
A minimum attention level of 40 is needed to start an lift-off.
I hope you have learned something today.
I had great fun building this project.
And I look forward to seeing what you will do with this knowledge.
Thanks for watching!
Browse More Related Video
Parrot ANAFI Ai - Flight Plan Mode | DSLRPros Support
Mavic 3 Thermal Raptor Maps Solar Inspection Flight Planning for Standard Inspections (DJI M3T)
pH meter Arduino, pH Meter Calibration, DIYMORE pH Sensor, pH Sensor Arduino Code, pH of liquids
How to fly drones for beginners
INTEGRATION OF SENSOR AND ACTUATORS WITH ARDUINO-I
VERY EASY Arduino IR Sensor Tutorial for Beginners | IR Sensor Arduino Tutorial | Infrared Sensor
5.0 / 5 (0 votes)