Banging my head against the wall - Arduino keeps Hanging


hello,

i'm hoping can tell me i'm doing wrong here i've banged head against wall on weeks.

as exercise in learning arduino , esp8266 trying build wifi enabled cat toy. concept have this:

- 2 servos (x , y)
- laser pointer (5v)
- esp8266
- atmega326pu

the idea this: have esp8266 programmed connect wifi , run micro http server. when visit http://ipaddress/power/on turns gpio2 on esp8266 on, , when visit http://ipaddress/power/off turns off. on atmega side, sketch inits servos, , monitors esp8266's gpio 2 pin go high. once does, runs it's program turn on laser (attached atmega gpio) , start moving servos around.

i built out on breadboard , worked. problem put prototype board circuit , when run it, runs fine until try turn servos on. might move them once or twice before apparently freezing , no longer accepting commands. have status led blinks in different patterns in different status can monitor chip , seems fine until turn on servos @ point led freezes high , stops working (except esp8266, keeps working fine)

my power supply 3a 5v, use l1117 step-down 3.3v esp8266.

prior building entire circuit, first built "breadboard arduino" on prototype board , plugged in chip running blink. when powered atmega chip ran fine , did supposed to. confident wiring of atmega chip in shape.

other information: servos controller pins 8 , 9, have status led running on pin 13, laser powered pin 11, , gpio2 of esp8266 connected pin 10. of course speaking pin numbers you'd find on uno board (not pin #s of atmega chip 13, 15, 19, 17 , 16 respectively)

i'm attaching photos of board well. can provide in solving mystery appreciated!

hi,
quick possibilities:

- common ground: servo ground directly power supply - terminal..
- bypass capacitors on 5v , 3.3v on protoboard?? 


Arduino Forum > Using Arduino > Project Guidance > Banging my head against the wall - Arduino keeps Hanging


arduino

Comments