Strange lockups caused by several things, underlying electrical issue?


hi,

i've made simple quadcopter flight controller (schematic included) arduino nano, has curious (likely)electric problem has me confused pretty well.

tldr: among other things, putting 5cm wires on wireless module "fixes" random resets when touching battery wire insulation. photos, code , schematics included.



it's pretty simple thing, , have decoupling caps on logic ic:s (arduino, apc220 wireless, mpu6050 imu). connected, arduino lock after few seconds, unless physically touch battery wire insulators. i'm thinking it's curious capacitive problem, don't have experience  :o

i've gone through connections continuity checker , solid, can shake board around without problems doubt there loose connections. board gets it's 5v arduino's regulator fed 3s lipo. regulator keeps steady @ 4.98v @ times when measured multimeter. mosfet's f12n10l, these issues crop when ignored (arduino pin on gate set low, , never changed), , work great. think it's not them either.

the program simple, testing reads raw gyro values mpu , sends them through wireless serial module. has run without crashes hours on end, , on breadboard wireless serial , mpu6050 work code without hitch.

some odd results of trying debug thing:

if apc220 wireless module not connected actual rx/tx pins, runs , serial data can read through usb without issues. touching arduino's tx pin module's rx freezes it. arduino doesn't listen serial, don't see how cause problems, trigger issue somehow.
it not crash if apc220 module connected ~5cm long wires it's socket on board.

if serial data not sent, again runs well. sending locks up. not reading gyro allows else run without lockups, including wireless serial.
i have tested 3 different arduino's, of show same behaviour.

having board run 4 brushed motors of ~4 amps each @ variable pwm frequencies (tested prescalers) , @ variable duty cycles never causes problems. yet when person lets go of battery wires, crash instant. have managed cause crashes having arduino pull digital pin high that's not connected anything, , touching board edge. how can happen?

i'm pretty out of ideas @ point, appreciated  :) atic

is apc220 connected correctly? vcc arduino's tx pin; rx connected arduino's 5v.


Arduino Forum > Using Arduino > General Electronics > Strange lockups caused by several things, underlying electrical issue?


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor