Saturday, 29 August 2015

Burning the Bootloader on ATMega328 using USBasp Programmer

            In this tutorial you'll learn how to burn arduino bootloader on new ATmega328 using USBasp ISP programmer.Please be noted that every Arduino Board comes with a microcontroller ATmega328 pre-program with arduino bootloader firmware. Therefore, there is no need to burn the bootloader firmware again.But if you want to make your own DIY arduino board than you need to burn arduino bootloader into ATmega328.So here i'll show you how to load arduino bootloader into atmega328 step by step.  

Required components:
  1. USBasp Programmer
  2. Bread Board 
  3. ATmega328 
  4. 2pcs 22pf Cap.
  5. 16MHz Crystal
  6. 10K Resistor 
  7. Hook up wire 
  8. AVRdude Software
     First of all wire up the circuit in breadboard as show in below diagram.Please connect all the connection carefully. 

ATmega328 connection with USPasp

      Show in above circuit JP1 is from USBasp programmer. Connect all the connection carefully as per above diagram using jumper wire.If you wire up your circuit correctly than it's time to load hex file which is located in your arduino software folder here is complete path arduino-1.0.5-windows\arduino1.0.5\hardware\arduino\bootloaders\optiboot\optiboot_atmega328.hex  you can also download from here optiboot_atmega328

Thursday, 13 August 2015

Interfacing Seven Segment Display to 8051

       Hi friends in this tutorial i'll explain you how to interface single seven segment display to 8051 micro-controller.You just need to some basic knowledge of seven segment display and 8051 programming.If your are newbie to seven segment display than you can learn basic about seven segment display from my older post about seven segment display.You can learn all about seven segment display from this post.
         Now we interface common anode seven segment display with AT89S52. I already describe basic about common anode display.

Circuit Diagram

         Here,common anode display is used to display digit 0 to 9 and some time used to display alphabets A to F,dot is use to display decimal point.Show in circuit diagram pin a to g of seven segment is connected to the port P2 of AT89S52 microcontroller through the current limiting resistors R2 to R9(330R) and common pin is connected to the Vcc(5V).Make sure that a to g pins of 7 segment are connected to the P2.0 to P2.6 respectively.Since we are using common anode seven segment display so we need to send logic-0 to the particular segment to glow. 

Seven segment interface circuit diagram

Monday, 10 August 2015

7 Segment Display

      Seven segment display is widely use to display digit 0 to 9 and alphabets A to F. They find wide application in devices that display numeric information like digital clocks,Electronics meters etc.

     In this tutorial you'll learn how to drive single seven segment display.First off all we'll learn basic about seven segment display and how to drive seven segment display.

Sunday, 2 August 2015

I2C protocol

I2C (Inter-integrated Circuit)


In this tutorial, you will learn all about the I2C communication protocol, why you would want to use it, and how it’s implemented on microcontroller. I2C is a serial protocol for two-wire interface to connect low-speed devices like microcontrollers, EEPROMs, A/D and D/A converters, I/O interfaces and other similar peripherals in embedded systems.

Serial, 8-bit, bidirectional data transfer can occur at speeds up to 3.4Mbps, though 400kHz is usually sufficient. Since only two bus lines are required, a serial data line (SDA) and serial clock line (SCL), building a system with multiple master or slave devices is relatively simple. The number of I2C devices that can be connected to a single I2C bus segment is limited only by a maximum bus capacitance (400pF) and address space.