hi I was actually playing with my motorcycle's indicator using Arduino Uno today making them blink together and in different patterns while I realised that I am not able to upload code anymore. I was using 2n222 transistors for switching 12v (maybe 8a) supply for indicators. Since I needed to power Arduino I directly connected the 12v 8a battery of my bike's battery to the the Arduino jack. Intially it was working fine but after a little time it stopped working . Though others lights are still on and Rx does flash and power pins are still working I can't upload my code.Also when I press the reset button the led on pin 13 used to blink but now it doesn't blink until I join reset pin to 5v using jumper wire.
though everything physically seems to be fine its tx light doesn't flash on code uploading anymore . I am using arduino ide 1.6.12 and original arduino uno r3(not clone one). here's the error i am getting with verbs output in upload and blank code..
Arduino: 1.6.12 (Mac OS X), Board: "Arduino/Genuino Uno"
Sketch uses 444 bytes (1%) of program storage space. Maximum is 32,256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
/Users/architbubber/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Users/architbubber/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.usbmodem1411 -b115200 -D -Uflash:w:/var/folders/sd/yvz7106s4q9bbnh5q21dc7s40000gn/T/arduino_build_800275/sketch_dec17a.ino.hex:i
avrdude: Version 6.3, compiled on Sep 12 2016 at 17:22:25
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/Users/architbubber/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Users/architbubber/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/cu.usbmodem1411
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
avrdude done. Thank you.
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
-
Upgrade to a later version, like 1.8.5. (won't help here, but it's good to keep up to date)
-
Try the Loopback Test
Loop-Back Test Instructions - Installation & Troubleshooting - Arduino Forum
If that doesn't work, you've likely fried the Atmega16U2 that performs the USB/Serial function for the board, and your Uno is dead. -
Try a different collection of parts, something more modular, so when one thing fries not everything is shot.
I like the FTDI Basid + ProMini approach.
If you also get a Programmer, you can re-bootload the ProMini with the Uno bootloader and then treat the board like it was an Uno for downloading. -
Get a Car USB adapter for powering the board. This will have a DC/DC Switching regulator, it will handle any alternator spikes & stuff and will output 5V to power the Promini (connect to Vcc) or Uno (connect to 5V) without the onboard linear regulator getting really hot trying to dissipate (12V -5V) x current = Watts of heat.
Are you planning to connect PC/USB and the motor cycle battery at the same time? Make sure only 1 power source is connected, the PC won't like getting 5V reverse driven into it's USB port. I've been adding a diode in series with the 5V line in my designs as reverse polarity protection for the PC.
well i thankfully passed the loopback test. And have a pro mini which i program with it ftdi cable after my uno stopped working i uploaded the same code to pro mini and connected it to 5v of uno which was connected to the bike's battery .Initially this to worked fine for me but after some time stopped same as uno but here the led(on pro mini) flashes on pressing reset button on pro mini. and no i m not connecting my uno with battery as well as with computer at the same time.
Don't have much more to offer without seeing your code and a schematic of what you have wired up.
well i connected base of transistor to pin 5 and 12v to source and drain pin to indicator here's the code
// the setup function runs once when you press reset or power the board
void setup() {
 // initialize digital pin LED_BUILTIN as an output.
 pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
 digitalWrite(5, LOW); // turn the LED on (HIGH is the voltage level)
 digitalWrite(6, HIGH);
 delay(100);           // wait for a second
 digitalWrite(5, HIGH);  // turn the LED off by making the voltage LOW
 digitalWrite(6, HIGH);
 delay(100);
 digitalWrite(5, LOW); // turn the LED on (HIGH is the voltage level)
 digitalWrite(6, HIGH);
 delay(100);
 digitalWrite(5,HIGH);  // turn the LED off by making the voltage LOW
 digitalWrite(6, HIGH);
 delay(100);
 digitalWrite(5, LOW); // turn the LED on (HIGH is the voltage level)
 digitalWrite(6, HIGH);
 delay(100);// wait for a second
digitalWrite(5, HIGH);Â // turn the LED on (HIGH is the voltage level)
 digitalWrite(6, LOW);
 delay(100);
 digitalWrite(5, HIGH);  // turn the LED off by making the voltage LOW
 digitalWrite(6, HIGH);
 delay(100);
 digitalWrite(5, HIGH); // turn the LED on (HIGH is the voltage level)
 digitalWrite(6, LOW);
 delay(100);
 digitalWrite(5, HIGH);  // turn the LED off by making the voltage LOW
 digitalWrite(6, HIGH);
 delay(100);
 digitalWrite(5, HIGH); // turn the LED on (HIGH is the voltage level)
 digitalWrite(6, LOW);
 delay(100);
 digitalWrite(5, LOW);  // turn the LED off by making the voltage LOW
 digitalWrite(6, LOW);
 delay(100);
digitalWrite(5, LOW);Â Â // turn the LED off by making the voltage LOW
 digitalWrite(6, LOW);
 delay(100);
 digitalWrite(5, LOW);  // turn the LED off by making the voltage LOW
 digitalWrite(6, LOW);
 delay(100);
 }
will replacing the atmega with a pre boot loaded one work
well today i replaced my atmega with a boot loaded one and it appears it comes with arduino blink example pre loaded as after i installed it and it connected the builtin led on pin 13 started to blink in interval of 1 seconds and now the reset button also works but still i can't upload the code?? and most importantly its tx light doesn't flashes on code upload which i think is major the problem
ERROR IS THIS NOW...
Arduino: 1.6.12 (Mac OS X), Board: "Arduino/Genuino Uno"
Sketch uses 444 bytes (1%) of program storage space. Maximum is 32,256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
/Users/architbubber/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Users/architbubber/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.usbmodem1411 -b115200 -D -Uflash:w:/var/folders/sd/yvz7106s4q9bbnh5q21dc7s40000gn/T/arduino_build_974672/sketch_dec18a.ino.hex:i
avrdude: Version 6.3, compiled on Sep 12 2016 at 17:22:25
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/Users/architbubber/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Users/architbubber/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/cu.usbmodem1411
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
avrdude done. Thank you.
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I've experienced similar problems from time to time, receiving the 10 failed attempts. The issue had always been with the USB connection, not the board or the IDE. When I say not the board, the USB port gets pretty flaky after how many times have they been plugged/unplugged? Face it, we probably connect/disconnect our Arduinos far more often than any other USB device except for memory sticks, and they get touchy after a while as well.
well in my case the atmega seemed to be the problem since i bought a clone and connected it to the same port and same cable and it worked. Now i replaced its atmega with the original one and yes it too started working.The atmega i bought earlier as a replacement seemed to have the boot loader of deicimela since when i set the board to deicemilla it started working on my old and original arduino uno board . I then boatloaded it with uno boot loader and it too started as usual.HENCE NOW I HAVE 2 FULY WORKING UNOs.
THANKS FOR THE HELP EVERYONE.CHEERS