Powering up the Microcontroller – Zero Ohm Electronics

Powering up the Microcontroller

Posted by Momen Odeh on

Hello! This is the second tutorial in getting started with Microcontrollers. In this tutorial, we are going to use the power supply which we made previously to power up our microcontroller. We will assume that the microcontroller is pre-loaded with a program which will toggle the pins PORTB (if you buy from zero ohm, you can request us to pre-load the microcontroller at no extra cost!). Therefore, once the microcontroller is powered-up correctly and the LED is connected, we should see a blinking LED!
Why (do you need this)?
Essential steps for any microcontroller circuit
What (do you need)?


list of items for this tutorial
Item Quantity
5v Supply (from previous tutorial) 1
Microcontroller (ATmega328) 1
Capacitor - 0.1uF 2
Green (or any color) LED 1
Resistor – 10K 1
Resistor - 300 ohm 1
(The components are available on our online store)
(sorry, I forgot to include thw two resistors on the picture)
How (to make it)?
Before we connect anything, let us have a look at the microcontroller pin-out
You can find this in the microcontroller’s datasheet (http://www.atmel.com/Images/doc8161.pdf) or just google "ATmega328 datasheet"
Have a closer look at pin 7,8, 20, 22, YES these are the power lines, so let us go ahead and connect them up
We also need to make the following connection to make sure the microcontroller does not RESET unintentionally, more on this later. Connect a 10KΩ resistor between pin1 (PC0) and VCC
Finally connect the positive LED (the longer lead) to pin14 (PB0) and the other on GND, [you do not need a pull-up resistor because the MCU output is limited to 20mA)
That is it!
Power-up the circuit, you should see the power LED (red) ON steadily, and the green LED blinking ON-OFF
Now the microcontroller is up and running, the next step is to write your own program and download it!

All the components are available on our online store

Share this post

← Older Post Newer Post →

Leave a comment

Please note, comments must be approved before they are published.

Liquid error: Could not find asset snippets/bold-currency-converter.liquid