I was using my arduino like normal and i just edited some code and while it was hooked up to my computer, it just turned everything connected to it off. The arduino is getting power, i made a simple led circuit to see if it was my circuit and it wasnt so I have no idea whats wrong because it runs code, but only for like itself, like the built-in led. Someone please help.
Welcome to the forum
Just to be clear. Are you saying that the Uno is running the Blink example sketch and that the LED on pin 13 is turning on and off at a rate of once per second ?
What happens when you upload another sketch such as the BareMinimum example ?
It uploads and compiles just fine, its like anything that has to do with the pins just doesnt seem to work.
and i did nothing to it, i just had it plugged in.
Change the length of the delay() in the Blink sketch to 5000 and upload it. What happens ?
It runs exactly as it should, its like the pins are disconnect from the whole thing.
Have you got an LED and a current limiting resistor that you can connect to a pin ?
yes, and it did absolutley nothing.
do you mean connect the resistor to the arduino?
like to the GND port (idk if i sound ridiculous)
The resistor isnt even getting hot so the arduino isnt even sending a signal
No, LED and resistor need to be in series. So pin of LED to Arduino, other pin of LED to resistor and other pin of resistor to GND or Vcc. Be aware that LEDs have polarity, if you connect them the wrobg way around they do not work.
You can first test your LED / resistor by using Vcc / GND; after that disconnect e.g the resistor from GND and connect it to an IO pin.
Wrong conclusion. And in this setup with standard components the resistor should not get hot.
Yea, I just looked up the simpliest way to test if an arduino is working and copied the schematic and code and i've done this before, the arduino just seems to no tbe executing any code that is related to the digital, power, or analog pins.
The onboard LED is connect to pin 13 so that pin is obviously working. I can't see how that pin could work and none of the other digital pins. If you connect your resistor and LED to pin 13 does it blink?
The LED turns on but it just does the reset flashes but doesn't stay on.
It also works with the blink sketch
wait now the other pin is working maybe it was just the cable? that was werid. ill hook up one of my projects and see if everything works
wait now its not working
What is "it" ?
my project that was working earlier, it is the same code, same setup