Skip to main content

Atmega8 breadboard circuit – Part 1 of 3 – Power supply

This is the 1st of a 3 part series where I will describe how to build a basic ATmega8 circuit and program it with a simple program. This tutorial is ideal for first timers, so read on…

Breadboards usually have a break or two in the bus strips, so the first thing we will do is put jumpers on them, so you have connectivity through the whole strip. The exact position of these jumpers will depend on the model of breadboard you use, so use the continuity tester on your multimeter to determine where these jumpers should go. The breadboard we are using can be found here but any full size breadboard should work.

breadboard with jumpers on power buses

Next we will build a simple power supply. We will use a 9V battery then step the voltage down using an L7805 voltage regulator. The L7805 performs two function:

  • Steps the voltage down from 9V to 5V
  • Smooths out any unevenness in the power source

Since we are using a battery as a power source, we expect it to be pretty smooth, but you could just as easily use this circuit with a wall wort.

components for atmega8 circuit
power supply circuit
L7805 pinout

The wires on the 9V battery clip are multi-core so they are nice and supple, but unfortunately this makes it harder to insert into a breadboard. The solution is to cut off 2 pins from a header strip, then solder them to the wires. I finished mine off with some heat shrink tubing to make it a bit neater.

2 pin header with heatshrink tubing

The next 3 photos show the power supply components being added to the breadboard.

atmega8 circuit, assembling the power supply
atmega8 circuit, assembling the power supply
atmega8 circuit, assembling the power supply

All there is left to do is to plug it in and test it. The LED should come on (mine did, but it didn’t photograph well) and the voltage should read about 5V on your multimeter.

testing the power supply

In ATmega8 Breadboard Circuit Part 2 we will add the microcontroller.

Resources

Related News

ATmega8 breadboard circuit – Part 2 of 3 – The Microcontroller

This tutorial continues on from ATmega8 Breadboard Circuit - Part 1 where we build a...

8 Breadboard Hacks

A few hacks to make bread boarding easier... 1. Hacking the power buses The power...

ATmega8 breadboard circuit – Part 3 of 3 – The Firmware

This tutorial continues on from ATmega8 breadboard circuit Part 1 and ATmega8 breadboard circuit Part...

3 Comments

  1. Nico

    I think you should drive your LED with less current to preserve your 9V battery.
    A 680R resistor would give the LED around ??mA which should be enough to make it sufficiently visible.
    (VOLTAGEsuppy – VOLTAGEforward-drop-led)/5.5mA = +/-680R

  2. protostackadmin Author

    Yeah, 150 ohm is a bit low.

Leave a reply

Shopping Cart