Skip to main content

PIC16F628A Experiments


Here's the list of all the experiments I have posted on this blog. I have performed these experiments on my PIC16F628A development board.
(First read about my PIC16F628A Development Board)

  1. DIY PIC16F628A Development Board
  2. Experiment No. 1: Four-bit Binary Counter
  3. Experiment No. 2: Tact Switch and Seven-Segment Display Interface
  4. Experiment No. 3: HD44780 LCD Interface in 4-bit Mode
  5. Experiment No. 4: 1-Wire Interface with DS1820 Temperature Sensor
  6. Experiment No. 5: Multiplexed Seven-Segment Display
  7. Experiment No. 6: Read/Write Internal EEPROM
  8. Experiment No. 7: Timers and Interrupts
  9. Experiment No. 8: Hardware PWM to control LED Brightness
  10. Experiment No. 9: Digital Speed Control of DC Motor
  11. Experiment No. 10: UART Data Transfer to PC
  12. Experiment No. 11: Temperature Data Logger
  13. Experiment No. 12: Timer0 as Mains AC Frequency Counter       
More experiments will be added to this section in future.

Comments

Popular posts from this blog

Contact less tachometer using PIC16F628A

Introduction
Tachometer is a device that gives you the information about the rotational speed of any shaft or disc. It usually measures the speed in revolutions per minute (RPM). Today we are going to make a simple tachometer that could measure the rotation speed of a disk without making any physical contact (that's why it is contact less) with the rotating object. The range of this tachometer is 0 - 9999 RPM and displays the RPM on a multiplexed 4-digit seven-segment display. Of course, we are going to do this project on our usual PIC16F628A development board.

Infrared sensor
Contact-less measurement of RPM will be achieved through an IR sensor. An IR diode will send a beam of infrared towards the rotating disc, and any reflected pulse will be received by a photo diode. The resistance of a photo diode drops drastically when exposed to infrared. An infrared is reflected by a white surface and absorbed by the dark ones. The test disc for this project is shown below. You can see the …

Experiment No. 2 : Push Button and Seven Segment Display Interface

In this experiment, we will program the PIC16F628A as an UP/DOWN Decade Counter. The count value will be displayed on a Seven-Segment Display and will be incremented/decremented by two push buttons on the board.

Experimental Setup:
The board has built in interface for a multiplexed 4-digit seven segment display (HS-5461AS2 from www.futurlec.com).We will select only one digit by connecting a Digit Select pin to Vcc, as shown in figure below. A black jumper wire is used for this purpose. The seven segments will be driven through PORTB (already wired on the board). Connect Push Buttons (PB3 and PB4) to RA1 and RA0 female headers using jumper wires.


PIC16F628A Development Board

The development board we are going to make for our experimental microcontroller PIC16F628A will look like this. Here are the features it is going to have:
Access to all I/O pins through female header pins4 Push Buttons for Input4 LEDs for OutputAn LCD Interface PortA 4-digit Seven-Segment Display InterfaceLCD Backlight Switch and Contrast AdjustmentICSP Programming (Very Important)