Pages: [1]   Go Down
Author Topic: Keep the Servo still, when I plug in the USB  (Read 1054 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 47
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys,


I've noticed each time I plug in my USB, the Arduino will kind of freaks (calibrates or whatever it does) and what I have plugged acts up (LED flashes, servo spins in random areas) then it does it program.  

Anyways, I want my servo to stay still when I plug in the USB.

Is there anyway to do this?


Thanks!
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you tried different pins? I am not sure of the technicalities of it but maybe it is only on certain pins...
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 55
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Plugging the usb might do a reset to the arduino
Look at the led on pin 13 if it lights up then you might have a problem with the reset and you can try to disable it,(you will have a problem prodraming it)

In one of my arduino's i put a two pin header so i can disable and enable the auto-reset
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 47
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ya it is resetting (the LED on pin 13 blinks like crazy when I plug the USB)

Can I have more information about programming it not to reset?
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 602
Posts: 33362
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Can I have more information about programming it not to reset?

No you can't program it not to reset, you can disable the auto reset by disconnecting the capacitor connecting the USB chip to the arduino's reset line.
Logged

Offline Offline
Edison Member
*
Karma: 3
Posts: 1001
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
No you can't program it not to reset...
Actually you can. If reset is neither required nor desired you can program the RSTDISBL fuse which will disable external reset and convert it to an IO pin.
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 55
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Its not wise to change. The RSTDISB fuse you need it to program the chip
The best option is to remove the capasitor conected to the reset line (and manualy reset the arduino on upload)
Logged

Wigan, UK
Offline Offline
God Member
*****
Karma: 19
Posts: 814
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I was reading about this somewhere else on here today.

Try a resistor between the arduino and and servo, it should remove the noise generated on reset but let actual commands go through.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 602
Posts: 33362
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Let us know if it works, it sounds rubbish to me.
Logged

UK
Offline Offline
Faraday Member
**
Karma: 17
Posts: 2884
Gorm deficient
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think that it was a pull-down, rather than "between", which implies series connection to me.
Logged

Per Arduino ad Astra

Offline Offline
Edison Member
*
Karma: 3
Posts: 1001
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The RSTDISB fuse you need it to program the chip
Reset is not needed for programming with a bootloader (a power off/on cycle synced to upload can be used to start the bootloader). You may however "desire" it.
Logged

Wigan, UK
Offline Offline
God Member
*****
Karma: 19
Posts: 814
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I think that it was a pull-down, rather than "between", which implies series connection to me.

I stand corrected.  
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 47
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Its not wise to change. The RSTDISB fuse you need it to program the chip
The best option is to remove the capasitor conected to the reset line (and manualy reset the arduino on upload)

So if I cut the capacitor, can I reset the audrino from my computer or do I always have to press the reset button?

My Arduino is going to be in a place that will be extremely hard to press the button, but I plan on connecting and disconnecting the USB to the arduino frequently.



Also....
How do I cut the capacitor?  Is the thing left of 'RESET-EN'?  Can I take a knife and score the little metal line between the two metal lumps?
« Last Edit: May 28, 2010, 10:42:05 am by mer7cer7 » Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 55
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Found a guide on Disabling AutoReset
http://www.arduino.cc/playground/Main/DisablingAutoResetOnSerialConnection
« Last Edit: May 28, 2010, 01:37:28 pm by Arnonh » Logged

Pages: [1]   Go Up
Jump to: