Can't figure out how it works.

hej

New Member
Hey, im trying to build my first D.I.Y quadcopter and got some questions I can't get go solve.
My setup is
4x simon emex series 20A ESC
4x A2212/13T 1000KV Brushless Outrunner motors
4x direct drive props. 2ccv 2cv
2200mAh, 30c 11.V, 3S-1P LipoBattery
Arduino Uno
Raspberry pi b or 2 idk...

I've calibrated the esc's via a arduino/raspberry.
I've done the code on the arduino IDE in on the raspberry and uploaded the code to the arduino
and used the serial monitor for output .

When I go the lowest (5 in a scale of 5-180), all 4 starts to spinning, 1 acts kinda weird in the start but catches up. (I Know one of the esc's have 1 different settings from the other so I know the problem for that, anyhow. When I go max, (180) The motors goes really fast, so it should lift, but it dosn't
(I know the props are spinning in the right way and I know they are facing the right way.)

After alot of reading I've tried some software for the arduino, and I tried their calibration.
Without thinking about it I clicked start (props on) and it lift of.
What am I doing wrong?

My goal is to be able to control the adrduino via a raspberry with a webserver & netdongle from a PC with a xbox controller.

Atm I got apache running on the raspberry so I can reach it from my pc.
I want the be able to view the raspberrys camera, is it possible to control the arduino with a xbox controller from there aswell?

My second approach will be in c#/python. I will create a client for my PC that will send the controllers output to the raspberry and somehow create a host that gets this output. The problem here is, Im used to upload my shitty script in the arduino IDE in the raspberry and use the serial monitor for communication. So I'm not really sure how to solve this..

Im not really sure what to do. Do anyone have some idéas or anything?
 
You REALLY need to get a simple control board like a KK2.1.5 at first as it will be hard enough to get flying with that, then after you know your hardware is good THEN you can start working on code. Seen a lot of experienced people give up or get burned out trying to get one flying starting with an Arduino, Pi, Beagle Bone, PICs, ect.

One idea after you have tried to get one stable is to use the KK or another simple board as a stabilizer, and use your Arduino to go between the receiver and the controller board. This will allow you to work with the signal coming in instead of trying to stabilize and get a working stabilization algorithm.
 
Okej, I were planning of buying a Sense hat for the raspberry pi wich include accelerometer, gyroscope etc. Is this a bad Idéa, do I need it to the arduino instead of the raspberry?
I kinda had a feeling I did need a control board but I were'nt sure. Is Hobbyking a good choise here?
( Hobbyking KK2.1.5 Multi-rotor LCD Flight Control Board With 6050MPU And Atmel 644PA )
Do I need additional hardware for the communication or is it possible to to PC - > Web/C# for sending output to the raspberry who sends it to the arduinovia usb?
 
Hey hej. Instead of trying to re-invent the wheel, just get the KK board installed and flying, THEN start refining your add ons. The KK already has a good accelerometer and gyro for example but could use help in the altimeter area. GJH105775 has added on and modified KK boards extensively. I think he has one on his coffee maker now;). Anyway, I think you'll find it will make a good base for all your mods.
 
Okej, I were planning of buying a Sense hat for the raspberry pi wich include accelerometer, gyroscope etc. Is this a bad Idéa, do I need it to the arduino instead of the raspberry?
I kinda had a feeling I did need a control board but I were'nt sure. Is Hobbyking a good choise here?
( Hobbyking KK2.1.5 Multi-rotor LCD Flight Control Board With 6050MPU And Atmel 644PA )
Do I need additional hardware for the communication or is it possible to to PC - > Web/C# for sending output to the raspberry who sends it to the arduinovia usb?
You could probably establish a serial connection with the KK board, but a Raspberry Pi is not designed to be a micro-processor, it is a micro-computer. At the very least you need an Arduino Nano. If you plan to add a bunch of sensors for colision detection and whatnot you will need a bigger one with more inputs and outputs.
 
Hdtallrider, I noticed it had thoose futures aswell. So Im skipping the hat for the raspberry and getting a flight controller instead.
GJH105775, im planning of having sensors in the future but first I only want it to fly.. Arduino nano, I have a uno, isn't that better?
the first goal is to get everything working, hovering. Isn't this possible to do over internet?

Isn't thooise KK boards in need of a transmitter & reciver?

It feels like that i'm missing some of the knowledge for getting the whole project to run ;/

I were like - Im gonna get this up and running on the first day, so I bought the raspberry Pi, motors, esc's and a battery.
The raspberry have male serials (I think) so I thought, where do I connect the esc's to. so I got an arduino so I whould be able to connect to the esc's ( I think this was an bad idéa.) to get the motors up and running.
I looked for some guides for running thoose motors on the arduino but everyone seemed to have a real flight joystick.
After some time I found a video of someone doing this via a PC. So I tried the same thing but failed....
After failing endlessly I try max output and then min output via the arduino pin, and the esc got it and here I notice the menu.
some more reading about calibration and im ready to go.
all 4 esc's are now ready and i'm getting a feeling this will work.
Get everything in position, check blade rot/pos, weight, power etc.
Starting up the raspberry, loading up the arduino ide, serial monitor and then I sent maximum output on that pin.
The motors started to spin really really fast but it didn't lift of. I tried AeroQuad a software for something, im not really sure what.
Anyhow the calibration in that made the quad lift of.

So here I am today and not really sure what to get to be able to get it up and running correctly.
I want it to be able to fly long distances without me being close to it so a transmitter/reciver is a big nono.

What does the flightcontroller really do? Do I connect the escs to the flightcontroller, eg KK board I wrote before(with display and everything....) and then connect the board to the arduino or raspberry?

Is there any better alternativ for Hobbyking KK2.1.5 Multi-rotor LCD Flight Control Board With 6050MPU And Atmel 644PA in my case?

Im really new to this stuff, thanks for pointing some things out for me, really helps me out.

Jackson, yeah that's looks like a nice build. Something like that whould be really fun to do. But my maingoal is to be able to control the quad when im like 420miles away, so I can't use an remote control like that. It has to go over internet :P
 
In a certification class now, I'll read your entire message when I get out haha.

But yes KK board requires a Receiver and transmitter, you can simulate it with a Arduino, but the low range is dangerous and VERY limiting. Here is a cheap full range Tx and Rx if you want it just to get it working and possibly cannibalize into a xbox controller Tx/Rx system later. Yes the Uno is better, I did not know if you had an Arduino yet.

I'll give a more complete reply after I get out of class haha, it is a 3-4 hour class so I should be out in 2 hours or so.
 
Back
Top