Arduino is not working any more. TX led on all the time.

Guys, i´m newby... I just bought my first arduino uno to build a simple midi controller.

I was doing some tests with the analog inputs using potentiometers and everything was running well. I did control my dj software with the potentiometers... everything fine. But after that I tryed the digital inputs using a simple button. I did conect one pole to the digital 2 port and the other to the ground. But I didn´t use any resistor. Just now I´m reading about wiring digital pins and I see the resistor is used.

At first my button works. I did control the software with the button, but few seconds later the controler stops working. Now I´m trying to use again and it´s not working. Once I start the software Serial Midi Converter the arduino TX light turns on and don´t off anymore. The arduino is not working anymore... I think was because I didn´t use the resistor. Could it may be broken the board? :frowning:

Hope someone can help me.

Thanks,

I think was because I didn´t use the resistor.

No, not using a resistor will not have damaged the board, it just would not have worked reliably.

Once I start the software Serial Midi Converter the arduino TX light turns on and don´t off anymore.

I don't understand what you are saying. The TX light is controlled by the computer's USB drivers not by the Arduino. If the Arduino is not connected to a computer through the USB and there isn't an application that opens a serial port then that LED will not indicate the state of the serial output.

Can you still upload a sketch to it?

Grumpy_Mike:

I think was because I didn´t use the resistor.

No, not using a resistor will not have damaged the board, it just would not have worked reliably.

Once I start the software Serial Midi Converter the arduino TX light turns on and don´t off anymore.

I don't understand what you are saying. The TX light is controlled by the computer's USB drivers not by the Arduino. If the Arduino is not connected to a computer through the USB and there isn't an application that opens a serial port then that LED will not indicate the state of the serial output.

Can you still upload a sketch to it?

Thanks for the answer Grumpy Mike,

I´m doing a project that I found on google. The project provides the sketch. I did upload it, then I have to use two softwares, midi yoke and Serial-Midi-Converter to be abble to control my music software (i´m not sure if that project is the best way to do it... but it is what i´m trying). Then the problem is happening when I open the Serial-Midi-Converter and setup the software (it was working before I tryed the digital pin.) When I set up the serial-midi-converter the TX light turns on and anything works anymore. Even with everything disconected from the board. I removed all the cables and nevertheless it´s not working.

Should I try to upload the sketch again?

Thanks,

Try and upload a simple LED blink sketch, that will tell you if the board is working.

If not we need to see links to what you were doing and code of what you did and a schematic about how you wired it up. All the information you have provided so far is very vague.

Grumpy_Mike:
Try and upload a simple LED blink sketch, that will tell you if the board is working.

If not we need to see links to what you were doing and code of what you did and a schematic about how you wired it up. All the information you have provided so far is very vague.

Grumpy Mike,

The upload is working fine. I did upload a simple led blink sketch and the board yellow led is blinking. I tried to blink an external led but it doesnt work. I tried with a 470 ohm resistor... I don´t have the 220 ohm resistor here. The external led doesn´t work. But actually it´s an old led. its probably not good anymore. The yellow led blinking on board is already a signal that the board is working?

Let me know if you think I should run some other tests.

Thanks,

Yes the yellow blinking indicates the board is working.

Test your external led by connecting it up to the supply along with the resistor, 470R will be fine.
Make sure your code sets the pin mode for that test to an output.
When it is working try the other pins, it could be that an output pin has blown but basically your board is working.

Grumpy_Mike:
Yes the yellow blinking indicates the board is working.

Test your external led by connecting it up to the supply along with the resistor, 470R will be fine.
Make sure your code sets the pin mode for that test to an output.
When it is working try the other pins, it could be that an output pin has blown but basically your board is working.

Grumpy Mike,

I just did some tests with the multimeter... I did run a blink test in all ports... and the problem seems to be the port 0 (RX<=0). When the problem happens I tried to connect the button without the resistor to that port.

I did run that test in all pin... and mesure it:

int led = 0;

// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(3000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(3000); // wait for a second
}

All the pin goes to 4.93v and then drops to 0... but the pin RX<=0 goes to 4.93 and then drops to 100mV. It doesn´t happen with any other pin. Then I supose the problem is happening with the pin zero, am I right? If I use the board without that pin will be ok?

I supose the midi code sketch i´m using is turning all the pins on, and maybe that´s why it´s not working any more... the pin 0 might be causing problems.

Thanks

I´m doing some tests... I change the sketch to not turn on the digital pin 0 and the midi code is working again. But now when I move the potenriometers the RX led doesn´t blink anymore. Before this issue both leds was blinking and I move the potentiometers.

I´m trying my dj software and the controller is working again... I´m able to control the parameters with the potentiometers. Everything working as before... but withou the RX led and the computer is not receiving the Serial RX signal anymore. But the important is... the controller works nevertheless. hehehehe

So my conclusion so far... pin 0 is not working... but the card seems to be ok.

What you think??

So my conclusion so far... pin 0 is not working...

Pin 0 is the serial input you should not be doing anything with that at all. If you have code that uses this as an input or an output then change it.

but withou the RX led and the computer is not receiving the Serial RX signal anymore.

I think it is time to say exactly what you are doing, schematics and code please.

Ok, then the problem probably was caused coz I did try to use the pin 0 at my first tests. I did conect a button on it... one pode to the GND and other pole to the ditital pin 0.

Well... look to the original midi controller sketch I´m using. Probably it´s not the best one... I would like to have more suggestions about the sketch I should use for my needs, but was the code I did use for my tests.

The code is too big to post here... so here is the link to download it:

http://www.instructables.com/files/orig/F31/XWO4/GXL5XQYD/F31XWO4GXL5XQYD.zip

Thanks,

OH no. Not another instructiables heap of crap!

Sometimes I get so fed up with trying to sort out the rubbish put on that site.

The code is horrendous and almost impossible to follow. I suppose you have no idea what it is doing.
It is a perfect example of write only code and my guess is that it has had zero testing.

Where is the schematic I asked about? Instructables usually miss them out because the authors do not understand electronics.

one pode to the GND and other pole to the ditital pin 0.

That would normally be fine ( but not on pins 0 & 1 ) except the idiot of an author did not enable the internal pull up resistors so that stands no chance of working correctly anyway.

You really should not be playing with this sort of stuff that is way beyond what you can understand.

Find a simpler sketch one that just sends one value. Look at it and try to understand it, then try and expand it.

If you are stuck then look at the code in this project:-
http://www.thebox.myzen.co.uk/Hardware/Pendulum.html
It sends note on messages in response to a magnet going over a reed switch.

Thanks again,

What I need actually I supose is quite simple for an arduino board. I need only some potentiometers and buttons to control some parameters in my audio software. It was my first experience with arduino, then I tryed this code, but yes I didn´t like the way it works specially coz it need two external softwares that doesn´t work on my studio´s computer (win 8.1 x64). Then definitely I felt I need something better. I gonna take a look the think you mentioned and will try to understand a bit about the codes, then I post my doubts in the audio section ok.

But the filnal question to this post is... do you think everything is ok with my board or I did really broke something?? hehehe

Thanks a lot!

do you think everything is ok with by board or I do really broke something

From what you have posted it all seems to be working.

coz it need two external softwares that doesn´t work on my studio´s computer (win 8.1 x64)

Then that code stands no chance of working. However, I am surprised that hairless does not work on your system.

The only way round a helper application like that is to use a real MIDI interface from the Arduino into a real MIDI interface into your computer. However if you are using a Teensy then that can make the Arduino look like a MIDI device to your computer.

Could part of your issue be that the code calls for a Arduino Mega and your running it on an UNO?
I have a Mega but have not studied it yet, but know some changes on the board exist.

Grumpy_Mike:

do you think everything is ok with by board or I do really broke something

From what you have posted it all seems to be working.

coz it need two external softwares that doesn´t work on my studio´s computer (win 8.1 x64)

Then that code stands no chance of working. However, I am surprised that hairless does not work on your system.

The only way round a helper application like that is to use a real MIDI interface from the Arduino into a real MIDI interface into your computer. However if you are using a Teensy then that can make the Arduino look like a MIDI device to your computer.

Thanks Grumpy Mike...

I gonna study things better... then I will create a new topic explaing better the project I want to build. I will certainly need some help :slight_smile: