Hello,
I have some simple hardware circuit which looks like:
5VDC-->resistor(150)--->(button switch)--->
from button there are 3 ways
--->resistor(10k)--->GND
---> LED DIODE-->GND
---> resistor(100)--->ArduinoPIn(x) on Pro Micro
In setup i doing what i must so:
I setup my Serial Port to open connection with computer.
I setup my ArduinoPin(x) as a digital INPUT. (pinMode(x, INPUT)
Till i don't push my switchButtonON this code works great. I just got on Serial monitor "IS OFF" strings. But when i start pushing ButtonON Serial port hangs after a random times just in moment when button is pushed. Arduino still works but communication not.
I know that Arduino works because when i connect this to diode on otherPin then diode is blinking when i push my buttonSwitch.
I must restart Arduino to get communication works again.
If you are using serial do not use pin 0 or 1, I think we are ok there.
I'm wondering about your switch wiring, have a look here;
What you are building is actually this;
When I have problems, I usually create a new simple sketch to work on one problem at a time off to the side then when I figure it out I come back to the main program and keep on going. Do the button first then try DigitalReadSerial after.
Alguien me podría ayudar?
Conecte mi arduino a mi pc y todo trabajaba normal, de repente perdí mi conexión y en ningún puerto usb me reconoce el arduino ni en ningun otro pc
Es un arduino leonardo
Cada vez que lo conecto me dice que no me reconoce el dispositivo usb y en la placa de arduino los leds indicadores me mantienen encendidos el de ON el de L, el de TX se mantiene apagado y el de RX parpadea y despues se mantiene encedido
Quisiera saber mi arduino se quemó o si se desconfiguró y quisiera tambien saber si me podrian decir si hay alguna manera que pudiera resolver este problema.
Gracias