Pages: [1]   Go Down
Author Topic: Nano Strange things happening  (Read 518 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a Nano ATMega328 in fact I have 2, I ran a  simple servo sweep program on it just to test it and it has a strange habbit of making the USB connect and disconnect sound after each command. Also I have a 2 server sketch with a processing mouse interface that works perfectly ok on my UNO and Mega but wont run at all via the Nano , exacly the same setup.. anyone any ideas ? And I have also tried it with the  2nd nano and a lower power set of micro servos still same result. Just another thing, when I plug the nano in it goes to com4 my uno and mega run on 3 and it says installing USB serial converter and in devices thats what is displayed.
Logged

Dubuque, Iowa, USA
Offline Offline
Edison Member
*
Karma: 44
Posts: 2455
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

More than likely the servos are sucking too much power and causing the Nano to reset.

See: http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think your totally right , thanks for the link smiley
Logged

0
Offline Offline
Shannon Member
****
Karma: 199
Posts: 11639
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

USB power is not enough for servos - the computer USB hardware will be detecting over-current draw on the USB power and disconnecting automatically, the software drivers note this error condition and probably retry to establish the link some short time later.

Assume every servo can pull spike currents of a few amps and design accordingly.  Almost always a bad idea to share power to a servo or motor with a microcontroller.  In fact ~90% of posting on servos here are because of this.
Logged

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: