Zeroohm will be closed on Tuesday, August 15th, 2017 till 3pm for the annual stock count. Feel free to place your orders online, and we will ship them right away.

Powering up the Microcontroller

Posted by Mohammed 15/11/2014 0 Comment(s) Microcontrollers,
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
ItemQuantity
5v Supply (from previous tutorial)1
Microcontroller (ATmega328)1
Capacitor - 0.1uF2
Green (or any color) LED1
Resistor – 10K1
Resistor - 300 ohm1
Wires 
 
(The components are available on our online store)
 
atmeg328-microcontroller
(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
microcontroller-learn-atmega328
 
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
 
atmel-mega328-datasheet
 
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
microcontroller-connected-atmega328
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)
 
 
microcontroller-atmega328-resistor
 
That is it!
Power-up the circuit, you should see the power LED (red) ON steadily, and the green LED blinking ON-OFF
 
microcontroller-atmega328-LED
 
microcontroller-working
 
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

Leave a Comment