#Support for ATmega 328P

1 messages · Page 1 of 1 (latest)

stiff girder
#

Hi, I am trying to build a quadcopter flight controller using ATmega328p MCU with brushed motors.
Still, I don't have an idea whether this is doable or not.
Does Betaflight support ATmega328p?

Highly appreciate the input of this community.

calm nymph
#

see diagram and explanation here

#

Betaflight will not run on an ATmega328p

stiff girder
#

I understand now, thank you for your clarification. I will check MultiWii for more information for my project.

rose harbor
#

Why do you want build drone on a arduino?

stiff girder
stiff girder
rose harbor
rose harbor
#

idk it's a good decision or no but be careful of weight. I firstly also built with brushless motors but drone overall had too much weight

#

so I built 5inch

#

(tip: use arduino promicro if you have, on atmega 32u4)

rose harbor
#

I can send you what I made finally

#

that was a year ago

stiff girder
stiff girder
rose harbor
#

ahh half year of work

#

you are going to use IBUS or PPM?

stiff girder
rose harbor
#

here is video and presentation in link, I was doing it as a "exam" in school

stiff girder
# rose harbor you are going to use IBUS or PPM?

I plan to use brushed motors like 8520 coreless motors (Assuming it is possible to use them for drones) and control the speed using A2SHB MOSFET. I have already made and tested the circuit part for speed control.

rose harbor
#

okey, have you good lipo for this?

rose harbor
#

and flying like sh...

stiff girder
rose harbor
#

sure, what part u have now?

#

with radio controller included

stiff girder
rose harbor
#

something cheap from ali, I'll find a picture

stiff girder
# rose harbor sure, what part u have now?

I have built an x-axis structure with 2 motors. I started writing code with PID control(Most of the parts are taken from crazyflie-firmware). My initial plan was to test it for one axis and extend it. But It was not successful. That is why I raised my question here. I will send some photos of my structure.

rose harbor
#

so you don't have any radio controller, drone parts etc.

#

@stiff girder

rose harbor
stiff girder
rose harbor
#

so you have arduino promicro and gyro?

#

mpu6050 gyro is probably the most affordable

#

show on pictures all your gear what you have now to be use for drone

#

then I'm going to create the simplest way to build the drone

#

and show me your circuit with motor and mosfet what you tested

rose harbor
#

I don't see any point in building a drone on Multiwii/Arduino other than as a hobby

stiff girder
#

This circuit is used to control the motors

rose harbor
#

k

rose harbor
#

because there may be problems using the atmega328

#

also the big UNO board won't fit in small drone

stiff girder
#

Is that fine to use promini?

rose harbor
#

sometimes there is a problem with it, sometimes not

#

the problem what you may come across: "one motor is always producing less thrust compared to others causing that to continuously yaw around that motor". I came across this sometimes, I don't know why it happens, but on atmega32u4 the problem did not occur

rose harbor
# stiff girder Is that fine to use promini?

btw makeshift if you do not want to buy a controller right away, you can connect another module such as wemos d1 mini with wifi module and control from a phone, I did it that way, it is difficult to control it, but for testing ok