Go Down

Topic: Arduino Nano clone not working (Read 1 time) previous topic - next topic

Lukas525252

Hi,

I bought an arduino nano clone from ebay and wanted to controll a servo and read the status of a switch, first it worked, but I changed the wiring for the switch and now the nano is not working anymore, only the POW LED glows continuously. Hope my board isn't dead.

DrAzzy

Why do you say it's not working anymore? You have not described what it's doing that's different from what you expect. If there is an error message somewhere, post the full text of it.

How did you have it wired when it stopped working
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

Lukas525252

First it all worked like expected, but after I changed the wiring for the switch, it doesn't work anymore, only the POW LED is glowing. I can't even upload new code.
The error message:

Arduino: 1.8.2 (Linux), Board: "Arduino Nano, ATmega328"

Sketch uses 1554 bytes (5%) of program storage space. Maximum is 30720 bytes.
Global variables use 50 bytes (2%) of dynamic memory, leaving 1998 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't open device "/dev/ttyUSB0": No such file or directory
Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

DrAzzy

#3
Jun 16, 2017, 05:28 pm Last Edit: Jun 16, 2017, 05:30 pm by DrAzzy
Nothing appearing in tools -> ports menu then? (or did the number of the port just get changed? That can happen when it's plugged into a different USB port)
Is the USB cable known good? There has been a plague of bad USB cables on here lately.

Quote
How did you have it wired when it stopped working
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

Lukas525252

There appears nothing in the port menu and I tryed another usb-cable.
Maybe it's because I soldered the parts? I had to change it for the switch and after the change nothing works.

DrAzzy

Well, what did you do to it?

Please answer the question I asked TWICE ALREADY: How did you have it wired when it stopped working? That way we can tell you if you wired it up in some way that could have damaged it or could be preventing it from working.
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

Lukas525252

As I sayed, I soldered a servo and a switch to an arduino nano, but the wiring for the switch was no correct, when I turned the switch on the board turned off, so I switched the wires and soldered the switch again to the board and now nothing works anymore.
I soldered 5V and one datapin to one side of the switch and ground to the other side, so far everything worked, but after I changed the wires, only the POW LED of the board glows.

DrAzzy

Please post a diagram of how you wired it - it's not clear how exactly you wired it in that post, but it doesn't sound right.
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

Lukas525252

#8
Jun 16, 2017, 06:20 pm Last Edit: Jun 16, 2017, 06:25 pm by Lukas525252
Here:

CrossRoads

Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

CrossRoads

#10
Jun 16, 2017, 06:28 pm Last Edit: Jun 16, 2017, 06:29 pm by CrossRoads
Switch should only connect the datapin to Gnd when closed, nothing else.

Then code should be like this:
Code: [Select]

byte dataPin = 2; // 2 to 19

void setup(){
pinMode (dataPin, INPUT_PULLUP); // turn on internal pullup for a HIGH reading
}

void loop(){
if (digitalRead(dataPin) == LOW){
// switch is closed, do something
}
// optional:
else {
// switch is open, do nothing, or perhaps do something else
}

}

loop() might also be this is if need to save the HIGH/LOW level of the pin:
Code: [Select]

void loop(){
dataPinState = digitalRead (dataPin);
if (dataPinState == LOW){
// switch is closed, do something
}
// optional:
else {
// switch is open, do nothing, or do something else
}

}
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Lukas525252

The board is not reconized, so I'm not able to upload new code, I think the board is dead, next time I buy one from Arduino and not a chinese clone.

sterretje

A real Arduino will also die if you make mistakes.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

DrAzzy

I'm surprised his wiring actually *damaged* anything though, especially such that the power light still worked, though the wiring was clearly very wrong.

Have you tried disconnecting the switch? If that switch is closed, it would short power and ground... And depending on how wimpy the switch was, you can sometimes weld the contacts on a switch closed when you switch a very heavy load, which a short circuit definitely qualifies as....

The only component I can imagine that destroying is the diode on the USB power, but that's before the LED... And the regulator was safe, since no external power... What voltage do you measure between 5v pin and ground?

Maybe the diode has failed in mostly open state, leading to a voltage on 5v rail that's high enough to light the LED (particularly if it's red), but not high enough for the processor to work. This is at least easy to fix....
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

Go Up