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.
Open electronics project blog is about open source electronics projects and open source hardware and firmware.Which helps to students,electronics entrepreneur for reference design of project.Here we are engineers support you in designing electronics circuit,embedded firmware,electronics prototype, so as to help you in you project.
Monday, 10 August 2015
Sunday, 2 August 2015
I2C protocol
I2C (Inter-integrated Circuit)
Introduction
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.
Sunday, 12 July 2015
Ultrasonic Distance Sensor HC-SR04 Interfacing with 8051
In this tutorial you will learn how to interface Ultrasonic Distance Measurement Sensor with AT89S52. Ultrasonic ranging module HC - SR04 provides 2cm - 400cm non-contact
measurement function.the ranging accuracy can reach to 3mm. The modules
includes ultrasonic transmitters, receiver and control circuit.I also Provide you complete Project code you can download it from the bottom of the page.
Now working of HC-SR04 as follow:
- Send 10us HIGH pulse on TRIG pin of HC-SR04.
- The sensor sends out a “sonic burst” of 8 cycles.and detect whether there is a pulse signal back.If there is an obstacle in-front of the module, it will reflect the ultrasonic burst.
- If the signal is back, ECHO output of the sensor will be in HIGH state (5V) for a duration of time taken for sending and receiving ultrasonic burst. Pulse width ranges from about 150μS to 25mS and if no obstacle is detected, the echo pulse width will be about 38ms.
Tuesday, 30 June 2015
Interfacing Push button switch with AT89S52 Microcontroller.
This tutorial is for beginners in the field of micro-controller.The purpose of this tutorial is use of push button switch with the micro-controller. It will be useful whenever a decision is to be made according to the press of a switch.
Input/output devices are very critical components of an embedded system. The first input device we will study is the switch. It allows the human to input binary information into the microcontroller. Typically we define the Two state, logic true, when the switch is pressed. logic false, when the switch in not pressed. A single pole single throw (SPST) switch has two connections. The switches are shown as open circuit in Figure 1.which is a normally open switch (NO), the resistance between the connections is infinite (over 1000 MΩ) if the switch is not pressed and zero (under 0.1 Ω) if the switch is pressed.
| Switch interface circuit |
Sunday, 14 June 2015
How to install USBasp Driver in Window 7
In This tutorial you'll learn how to install USBasp programmer driver on your laptop/desktop.Here i'll explain you step by step to install driver. If you have any trouble in installing driver than post your problem in comment below box.
In order to complete the installation, you need to follow several steps:
The first step is to connect the USB ISP programmer to the USB port of your PC through USB-A to B cable. The USB ISP programmer will work on a wide variety of operating systems, this procedure will only focus on Window 7.
Required items:
- USBasp programmer.
- USB cable.
- USBasp drivers can be downloaded from here.
Tutorial 3: How to burn HEX file into Microcontroller using ProgISP
In this tutorial, you will learn how to use the USB ISP Programmer
for burning HEX file in your microcontroller by
using ProgISP Flashing tool.
Step1
Connect the USB ISP Programmer to your Desktop PC or Laptop USB Port. Make
sure you connect it to that USB Port in
you installed it during its installation. Wait for a “Ding” sound from PC. Now
the programmer is installed correctly. The GREEN LED will glow to show programmer
is ready.
- Note:
- If windows says “USB Device not recognized” make sure the USB cables are not broken.
- If windows says “New hardware found” you have connected the programmer to a different port than which you have installed. Or you have not yet installed the USB ISP Programmer driver.
Step2
Launch ProgISP.exe and check in Program state function PRG
ISP function should be enable if it is showing if disable than check USB ISP
Programmer device is connected with Desktop PC or Laptop and its driver are properly installed.
The software is very easy to use
·
From
Select Chip Menu Select the MCU ,say
AT89S52
·
Select File -> Load Flash
·
Select
the HEX file
From Select Chip Menu, Select the MCU here i select AT89S52 which is 8051 Based Micorocontroller
Now Select Load Flash from File menu
Now select HEX file that you want to burn into microcontroller.
Select the HEX file
For final flashing target device after selecting chip & uploading hex file Click on Auto.
Note: Please ensure Lock Chip before programming
If you want to lock chip than checked the Lock Chip option.
Now your chip is programmed successfully. When programmer is busy RED LED will on.
8051 & AVR USB ISP Programmer Support AT89S51,AT89S5 2,AT89SXXXX
Wednesday, 21 August 2013
Tutorial 2: LED Blink Project in 8051 Microcontroller
LED Blink is very basic programme to start programming with any microcontroller. To learn embedded system first start programming with 8051. 8051 is 8-bit microcontroller having 4 8-bit IO - Ports.there are two timer timer0 and timer1 ,two external interrupt interrupt0 and interrupt1 and three internal interrupt, one UART,counter.
In this tutorial you'll learn how to interface LED with 8051 microcontroller ATMEL (AT89S52)(89C51,89C52) NXP(89V51RD2).

LED interfacing circuit diagram
Show in above circuit diagram LED is connected with P2.0 of PORT2 through current limiting resistor R2. Anode of LED is connected with P2.0 through resistor R2 and cathode of LED is directly connected with ground of power supply.When P2.0 high LED turn on and when P2.0 low LED turn off.Now its time to do some coding.
Show in above circuit diagram LED is connected with P2.0 of PORT2 through current limiting resistor R2. Anode of LED is connected with P2.0 through resistor R2 and cathode of LED is directly connected with ground of power supply.When P2.0 high LED turn on and when P2.0 low LED turn off.Now its time to do some coding.
Subscribe to:
Posts (Atom)





