hello guys,
there is something strange happening to my arduino, when i connect anything let's say a LED to pin 10, this pin keeps flashing on and off very fast !! well i tried to make is originally LOW in my program but still flashing no matter what the program is as for pin 11 if i connect a LED to it it's flashing so little like nothing !!
so do you think those 2 pins are broken ?
In the (any) programming forum its a good idea to POST YOUR CODE!
Mark
your right but actully this problem is not from co :~ i just give a digitalWrite(10, HIGH) and tried on all pins , all the pins worked fine except these 2 !!
so i need to know if it is broken because i made a mistake before which is i plugged a motor (a hard drive small motor) into these 2 pins once the 11 and 10 ....
Are you sure you set pinMode to OUTPUT for those 2 pins?
They are not being used by SPI or something while this is happening?
sure in setup function i did set both pins to output
the problem is that the pin 10 is always on and off in a very fast way even if i set it output and low !!
pin 11 doesnt work
firashelou:
sure in setup function i did set both pins to output
the problem is that the pin 10 is always on and off in a very fast way even if i set it output and low !!
pin 11 doesnt work
Those pins are probably in use by something you put in your code.
i made a mistake before which is i plugged a motor (a hard drive small motor) into these 2 pins once the 11 and 10
Off the top of my head, spindles need > 40ma, that may be the culprit
firashelou:
your right but actully this problem is not from co :~ i just give a digitalWrite(10, HIGH) and tried on all pins , all the pins worked fine except these 2 !!
so i need to know if it is broken because i made a mistake before which is i plugged a motor (a hard drive small motor) into these 2 pins once the 11 and 10 ....
I don't understand that.
I would suggest reading some basic electronics tutorials, do the basic stuff first (even though that may seem un-exciting).
That un-exciting stuff will save your wallet from catching on fire.
JB_AU:
I would suggest reading some basic electronics tutorials, do the basic stuff first (even though that may seem un-exciting).
That un-exciting stuff will save your wallet from catching on fire.
i did those tutorials of arduino + lots of others, well i am not a beginner anymore i am in a middle of a project big one and everything works fine except these 2 buttons
and for the record i did checked my codes line by line but those pins are not in use and never was in my circuit and my program so i thought about using another arduino and i will see what will happen ...
anyway thanks guys for trying to help thanks a lot i appreciate it
Basic Electronics & Basic Arduino are 2 seperate beasts.
sure
and for the record i did checked my codes line by line but those pins are not in use and never was in my circuit and my program so i thought about using another arduino and i will see what will happen ...
Did you verify that all the libraries you are using don't include the use of those pins?
By all means, keep buying arduino's to experiment with voltage polarity. Surely this sentence will make sense, i'm sure!
zoomkat:
and for the record i did checked my codes line by line but those pins are not in use and never was in my circuit and my program so i thought about using another arduino and i will see what will happen ...
Did you verify that all the libraries you are using don't include the use of those pins?
yes I did
@JB i didn't understand what you mean ?
So how about that sketch you wrote that does nothing but set those 2 pins either LOW or HIGH ?
I think most are missing the fact that @ the beginning a 12v 200ma (or there about) spindle was plugged in positive to Pin 10 & Negative to Pin 11, with Pin 10 driven High followed by Pin 11 High. Which is not a circuit in its true sense, destroying pin 10 & leaving 11 in an unstable state.
No code is going to resurrect those pins, but learning some basic electronics will save the user some money & less frustration.
I have seen a fritzing diagram and tutorial floating around that depicts an led, where the cathode is on 13 & the anode on 12.
I thought I replied to this thread a couple days ago, apparently I must have forgotten to hit send...
Instead of spending around $30 for a full UNO, if your board has the socketed DIP see if you can swap just the microcontroller. You can't just buy a 328 off (for example) DigiKey and expect it to work, as it will need a bootloader installed in it (and various fuses set). Don't despair, many hobby/maker minded shops that sell Arduinos and Arduino related stuff will be more than happy to sell you a 328 with a boot loader installed. For example, AdaFruit's offering is at Arduino bootloader-programmed chip (Atmega328P) : ID 123 : $5.95 : Adafruit Industries, Unique & fun DIY electronics and kits and is less than $6USD. (I had that link handy because I'm building an order over there (and LadyAda is simply a cool person) to fire off once I'm done moving. I'm sure many other vendors have similarly priced offerings.
JB_AU:
I think most are missing the fact that @ the beginning a 12v 200ma (or there about) spindle was plugged in positive to Pin 10 & Negative to Pin 11, with Pin 10 driven High followed by Pin 11 High. Which is not a circuit in its true sense, destroying pin 10 & leaving 11 in an unstable state.No code is going to resurrect those pins, but learning some basic electronics will save the user some money & less frustration.
I have seen a fritzing diagram and tutorial floating around that depicts an led, where the cathode is on 13 & the anode on 12.
yes that's it, the pin 11 is destroyed and it has an influence on 10
which fritzing your talking about ?
Sembazuru:
I thought I replied to this thread a couple days ago, apparently I must have forgotten to hit send...Instead of spending around $30 for a full UNO, if your board has the socketed DIP see if you can swap just the microcontroller. You can't just buy a 328 off (for example) DigiKey and expect it to work, as it will need a bootloader installed in it (and various fuses set). Don't despair, many hobby/maker minded shops that sell Arduinos and Arduino related stuff will be more than happy to sell you a 328 with a boot loader installed. For example, AdaFruit's offering is at Arduino bootloader-programmed chip (Atmega328P) : ID 123 : Adafruit Industries, Unique & fun DIY electronics and kits and is less than $6USD. (I had that link handy because I'm building an order over there (and LadyAda is simply a cool person) to fire off once I'm done moving. I'm sure many other vendors have similarly priced offerings.
aha ok so you suggest i just replace the chip ? does any component of the board other than the chip might be broken ?
and why we have to select DUEMILANOVE and not UNO in the IDE ?!!