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
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.
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
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.
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.