A point in the right direction would be very helpful.
I am am using a arduino duemilanove with an atmega 328 with a windows xp pc and am trying to get the dimmer example sketch to run. I have put the code that comes with the sketch into processing, and the led will not light, with the arduino and processing running the sketch. The arduino is in com5. I literally just got my arduino yesterday, and have only a small knowledge of the programming language. does anyone have supplemental information which will help me run this program, and pleas let me know if you need any other information.
I have checked the led placement several times, and the led needs no resistor because it can run the 5v from the usb supply. The arduino environment I use is the current 0015.
The sketch can be found here:
the led needs no resistor because it can run the 5v from the usb supply.
NO NO NO. An LED always needs a resistor and there is one shown in the circuit in the link you posted.
Test to see if you have the LED the right way round by disconnecting the resistor going to pin 9 and putting it in the 5v hole on the other side of the board (with the other side of the LED still connected to ground). The LED should then light up. If it doesn't then swap over the pin 9 and ground connections. That is connect the LED / resistor combination the other way round.
That doesn't mean there is nothing wrong with the code it only means the syntax is fine.
After you have done the test above, write a blinking light sketch based on the pin you are using, because driving an LED without a resistor could have blown your output pin.