2 Formatting, added hardware tag.
source | link

I bought some material on the net to start working with Arduino. I didn't want to buy an Arduino, since it costs a bit too much IMHO, so I bought an ATMega328P-PU, and made an Arduino on a breadboard. However, when I use my USBasp to program it it says that he can't set sck period (settings are: Arduino Uno as Board, USBasp as Programmer). It says that it has loaded the bootloader/program anyway, so I tried to go on and ignore it. The blink program can be loaded via programmer, but it doesn't blink (I'm using a small lamp, connecting it directly to 5V and ground works). Here I describe the circuit:

-First Atmega Pin, Arduino Reset -> 10 kOhm Resistor (Brown, Black, Black, Red, Brown) -> Ground (not GND pin);

-1st pin, Arduino Reset -> also to USBasp RST;

-7th pin, Arduino VCC -> directly to 5V (and USBasp VCC);

-8th, GND -> directly to Ground (and USBasp GND);

-9th, XTAL -> to one pin of the 16MHz Crystal Oscillator, and to 22 pF capacitor, which connects to ground (not the pin);

-10th, XTAL -> exactly as above, but it's connected to the other pin of the same crystal;

-17th, digital 11 -> USBasp MOSI;

-18th, dig 12 -> USBasp MISO;

-19th, dig 13 -> USBasp SCK, and to the lamp whose other pin goes to ground (neither pin nor direct works), but the lamp needs to be disconnected while loading programs to prevent errors (target not responding);

-20th, AVCC, and 21st, AREF -> directly to 5V;

-22nd -> directly to ground (not pin).

  • First Atmega Pin, Arduino Reset -> 10 kOhm Resistor (Brown, Black, Black, Red, Brown) -> Ground (not GND pin);

  • 1st pin, Arduino Reset -> also to USBasp RST;

  • 7th pin, Arduino VCC -> directly to 5V (and USBasp VCC);

  • 8th, GND -> directly to Ground (and USBasp GND);

  • 9th, XTAL -> to one pin of the 16MHz Crystal Oscillator, and to 22 pF capacitor, which connects to ground (not the pin);

  • 10th, XTAL -> exactly as above, but it's connected to the other pin of the same crystal;

  • 17th, digital 11 -> USBasp MOSI;

  • 18th, dig 12 -> USBasp MISO;

  • 19th, dig 13 -> USBasp SCK, and to the lamp whose other pin goes to ground (neither pin nor direct works), but the lamp needs to be disconnected while loading programs to prevent errors (target not responding);

  • 20th, AVCC, and 21st, AREF -> directly to 5V;

  • 22nd -> directly to ground (not pin).

I bought some material on the net to start working with Arduino. I didn't want to buy an Arduino, since it costs a bit too much IMHO, so I bought an ATMega328P-PU, and made an Arduino on a breadboard. However, when I use my USBasp to program it it says that he can't set sck period (settings are: Arduino Uno as Board, USBasp as Programmer). It says that it has loaded the bootloader/program anyway, so I tried to go on and ignore it. The blink program can be loaded via programmer, but it doesn't blink (I'm using a small lamp, connecting it directly to 5V and ground works). Here I describe the circuit:

-First Atmega Pin, Arduino Reset -> 10 kOhm Resistor (Brown, Black, Black, Red, Brown) -> Ground (not GND pin);

-1st pin, Arduino Reset -> also to USBasp RST;

-7th pin, Arduino VCC -> directly to 5V (and USBasp VCC);

-8th, GND -> directly to Ground (and USBasp GND);

-9th, XTAL -> to one pin of the 16MHz Crystal Oscillator, and to 22 pF capacitor, which connects to ground (not the pin);

-10th, XTAL -> exactly as above, but it's connected to the other pin of the same crystal;

-17th, digital 11 -> USBasp MOSI;

-18th, dig 12 -> USBasp MISO;

-19th, dig 13 -> USBasp SCK, and to the lamp whose other pin goes to ground (neither pin nor direct works), but the lamp needs to be disconnected while loading programs to prevent errors (target not responding);

-20th, AVCC, and 21st, AREF -> directly to 5V;

-22nd -> directly to ground (not pin).

I bought some material on the net to start working with Arduino. I didn't want to buy an Arduino, since it costs a bit too much IMHO, so I bought an ATMega328P-PU, and made an Arduino on a breadboard. However, when I use my USBasp to program it it says that he can't set sck period (settings are: Arduino Uno as Board, USBasp as Programmer). It says that it has loaded the bootloader/program anyway, so I tried to go on and ignore it. The blink program can be loaded via programmer, but it doesn't blink (I'm using a small lamp, connecting it directly to 5V and ground works). Here I describe the circuit:

  • First Atmega Pin, Arduino Reset -> 10 kOhm Resistor (Brown, Black, Black, Red, Brown) -> Ground (not GND pin);

  • 1st pin, Arduino Reset -> also to USBasp RST;

  • 7th pin, Arduino VCC -> directly to 5V (and USBasp VCC);

  • 8th, GND -> directly to Ground (and USBasp GND);

  • 9th, XTAL -> to one pin of the 16MHz Crystal Oscillator, and to 22 pF capacitor, which connects to ground (not the pin);

  • 10th, XTAL -> exactly as above, but it's connected to the other pin of the same crystal;

  • 17th, digital 11 -> USBasp MOSI;

  • 18th, dig 12 -> USBasp MISO;

  • 19th, dig 13 -> USBasp SCK, and to the lamp whose other pin goes to ground (neither pin nor direct works), but the lamp needs to be disconnected while loading programs to prevent errors (target not responding);

  • 20th, AVCC, and 21st, AREF -> directly to 5V;

  • 22nd -> directly to ground (not pin).

1
source | link

ATMega328P-PU not working

I bought some material on the net to start working with Arduino. I didn't want to buy an Arduino, since it costs a bit too much IMHO, so I bought an ATMega328P-PU, and made an Arduino on a breadboard. However, when I use my USBasp to program it it says that he can't set sck period (settings are: Arduino Uno as Board, USBasp as Programmer). It says that it has loaded the bootloader/program anyway, so I tried to go on and ignore it. The blink program can be loaded via programmer, but it doesn't blink (I'm using a small lamp, connecting it directly to 5V and ground works). Here I describe the circuit:

-First Atmega Pin, Arduino Reset -> 10 kOhm Resistor (Brown, Black, Black, Red, Brown) -> Ground (not GND pin);

-1st pin, Arduino Reset -> also to USBasp RST;

-7th pin, Arduino VCC -> directly to 5V (and USBasp VCC);

-8th, GND -> directly to Ground (and USBasp GND);

-9th, XTAL -> to one pin of the 16MHz Crystal Oscillator, and to 22 pF capacitor, which connects to ground (not the pin);

-10th, XTAL -> exactly as above, but it's connected to the other pin of the same crystal;

-17th, digital 11 -> USBasp MOSI;

-18th, dig 12 -> USBasp MISO;

-19th, dig 13 -> USBasp SCK, and to the lamp whose other pin goes to ground (neither pin nor direct works), but the lamp needs to be disconnected while loading programs to prevent errors (target not responding);

-20th, AVCC, and 21st, AREF -> directly to 5V;

-22nd -> directly to ground (not pin).