altitude hold

I would like make arduino based quadcopter that would do just this:

  1. start 4 motors 30 sec after connection of battery
  2. lift up 100m
  3. remain there for x seconds
  4. get back to same lifting spot

no transmitters of any kind, just exact programed flight

how difficult this can be to achieve, what sensors would i need?

tehawk:
I would like make arduino based quadcopter that would do just this:

  1. start 4 motors 30 sec after connection of battery
  2. lift up 100m
  3. remain there for x seconds
  4. get back to same lifting spot

no transmitters of any kind, just exact programed flight

how difficult this can be to achieve, what sensors would i need?

Can you supply a link to a commercial quadcopter that will do this?

Paul

Sensors needed: GPS (for location), altitude (barometric - GPS can do this too but less accurate).

No idea how hard it is - will depend on the drone as well, how detailed commands it needs.

Like wwmarle said, I would recommend you use a barometric sensor to find out your altitude on the drone, you can put the atmospheric pressure value in this formula:

h - is the parameter you're looking for, this is the ASL altitude

Most pressure sensor libraries will have this function built in, as it's one of the most common uses of a pressure sensor.

dindibo4:
Like wwmarle said, I would recommend you use a barometric sensor to find out your altitude on the drone, you can put the atmospheric pressure value in this formula:

h - is the parameter you're looking for, this is the ASL altitude

Nah, just use a LiDar sensor (stabilized on a gimbal) such as the LiDar Lite V3. I've seen it used on research/experimental drones here at Virginia Tech and I use one on my Arduino RC airplane. It is much easier to use and more accurate than a barometric sensor.

They're also much bigger and heavier than a barometric sensor (the BMP280 is 2.0 × 2.5 mm², height: 0.95 mm - your smallest LiDAR will be several orders of magnitude larger - the datasheet doesn't mention weight, which is probably less than 1 gram). This sensor also costs only around 1 USD a piece so cheap to add to a PCB. On breakout board it's a bit bigger and heavier and costlier.

If the drone is big and strong enough to carry the weight, and it fits in the budget, LiDAR would definitely be the way to go indeed.

You don’t need a big copter to lift a LiDAR sensor. I have one and it is quite light.

thank you for answers

I'm completely new to drones and arduino

the concept is to 1st learn to flight on h36, afterwards modify it with arduino in a test way so it does not use transmitter, it can lift about 10g

I'm only 2 days into the subject, right now I prefer to build 250mm drone

read, that gyro sensor is used for stabilisation

lidar sensor costs 200usd and my project must cost 60usd or 70usd if im going to use it over transmitter

which gps to use?
and do you know code that can calculate (MPU9250) position in accordance with magnetometer + accelerometer and altitude gyro data so i dont have to use gps

Any GPS module will work.

For the MPU9250, by far the best open source IMU software is RTIMUlib for Arduino.

No consumer grade IMU can calculate position, just absolute orientation.

tehawk:
and do you know code that can calculate (MPU9250) position in accordance with magnetometer + accelerometer and altitude gyro data so i dont have to use gps

You'd be dead reckoning - and that won't get you very far without reference (it's one of the reason so many ships didn't make it to the other side of the ocean in the old days, or ended up half a continent away from where they thought they were). You get error upon error upon error, and before you know it the drone thinks you're in China while in reality you're still in the UK or so.

GPS (or some other beacon) are necessary for accuracy.

tehawk:
thank you for answers

I'm completely new to drones and arduino

There is a lot to learn, don't expect creating an autonomous drone to be easy.

read, that gyro sensor is used for stabilisation

You will need a full 10DoF IMU gving absolute orientation in space and atmospheric
pressure.

and do you know code that can calculate (MPU9250) position in accordance with magnetometer + accelerometer and altitude gyro data so i dont have to use gps

Completely infeasible on time scales of more than a few seconds, drift on double-integration is horrendous.

Learn about sensor fusion, control theory, PID loops, and many such things.

Thank you very much for answers and libraries, I decided not to invent hot water but build similar quadcopter

and use it with similar setup

.

At least that is my decision for today, I'll give thought until black friday before ordering parts so it can change. Suggestions are welcome for improvements.

btw. did you by lidar ment Ultrasonic Sonar Module

also MarkT I would prefer you do not reply to my threads thank you for consideration

tehawk:
btw. did you by lidar ment Ultrasonic Sonar Module

Two totally different things.
Lidar is light based.

wvmarle:
Two totally different things.
Lidar is light based.

thanks