0
Offline
Newbie
Karma: 0
Posts: 45
Arduino rocks
|
 |
« on: May 27, 2010, 02:21:36 pm » |
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
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #1 on: May 27, 2010, 03:20:44 pm » |
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
Jr. Member
Karma: 0
Posts: 55
Arduino rocks
|
 |
« Reply #2 on: May 27, 2010, 03:29:24 pm » |
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
Newbie
Karma: 0
Posts: 45
Arduino rocks
|
 |
« Reply #3 on: May 27, 2010, 11:03:32 pm » |
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
Brattain Member
Karma: 277
Posts: 25566
Solder is electric glue
|
 |
« Reply #4 on: May 28, 2010, 03:45:49 am » |
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
God Member
Karma: 3
Posts: 985
Arduino rocks
|
 |
« Reply #5 on: May 28, 2010, 04:27:25 am » |
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
Jr. Member
Karma: 0
Posts: 55
Arduino rocks
|
 |
« Reply #6 on: May 28, 2010, 05:09:12 am » |
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
God Member
Karma: 18
Posts: 807
|
 |
« Reply #7 on: May 28, 2010, 05:19:07 am » |
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
Brattain Member
Karma: 277
Posts: 25566
Solder is electric glue
|
 |
« Reply #8 on: May 28, 2010, 05:53:08 am » |
Let us know if it works, it sounds rubbish to me.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Faraday Member
Karma: 15
Posts: 2852
Gorm deficient
|
 |
« Reply #9 on: May 28, 2010, 06:03:12 am » |
I think that it was a pull-down, rather than "between", which implies series connection to me.
|
|
|
|
|
Logged
|
Per Arduino ad Astra
|
|
|
|
Offline
God Member
Karma: 3
Posts: 985
Arduino rocks
|
 |
« Reply #10 on: May 28, 2010, 07:05:51 am » |
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
God Member
Karma: 18
Posts: 807
|
 |
« Reply #11 on: May 28, 2010, 07:34:00 am » |
I think that it was a pull-down, rather than "between", which implies series connection to me. I stand corrected.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 45
Arduino rocks
|
 |
« Reply #12 on: May 28, 2010, 09:25:07 am » |
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
Jr. Member
Karma: 0
Posts: 55
Arduino rocks
|
 |
« Reply #13 on: May 28, 2010, 01:02:14 pm » |
|
|
|
|
« Last Edit: May 28, 2010, 01:37:28 pm by Arnonh »
|
Logged
|
|
|
|
|
|