Projects

12F675 as Flip Flop

PIC12F675 microcontroller as Flip Flop

Code to make a 12F675 operate as a D-type or JK-type flip flop Since I implemented a D type flip flop using the PIC Logic Elements I thought I might go the other way and implement an entire D type flip flop in a single PIC.  This uses the edge triggered and port change status […]

Heart Rate Measurement Board

Heart rate measurement from fingertip using PIC16F628A

Introduction Heart rate measurement indicates the soundness of the human cardiovascular system. This project demonstrates a technique to measure the heart rate by sensing the change in blood volume in a finger artery while the heart is pumping the blood. It consists of an infrared LED that transmits an IR signal through the fingertip of […]

tachometer1

Build A Digital Tachometer/RPM Counter using PIC18F452

A tachometer is a tool that mechanics or engineers in general use very often. A normal tachometer will be able to tell you how fast something is moving in a complete rotation. A good example is on cars, you will see a tachometer counting the RPMs of your engine. With the new smaller microcontrollers and […]

Diagram of sensor placement on the neck of the AirBass

AIR BASS

INTRODUCTION AirBass is an air bass guitar that allows the user to play distinct notes without the added weight and cost of an actual bass guitar. It implements various sensors for input to output sound that is accurate both in terms of frequency and duration. HIGH-LEVEL OVERVIEW SOCIAL IMPACT Our plan for this project was […]

data logger

A Beginner’s data logger project using PIC12F683 microcontroller

It is a very simple data logger project based on PIC12F683 microcontroller. The microcontroller reads temperature values from a temperature sensor on a regular interval basis and stores them into its internal EEPROM memory. The recorded temperatures can be later transferred to a PC through serial interface. I originally published this project on electronics-lab.com last summer. […]

Switch Control

Radio Button Switch Control using PIC12F629

Overview The original purpose behind this circuit was to provide manual switching of three relays such that only one relay was on at any time.  It was also a requirement that there was a specific overlap (or make-before-break) period.  The code was then further developed to provide deadband (break-before-make) as well as overlap switching.  The […]

DC Motor Controller

PWM DC Motor Controller for PIC12F683

Description There are lots of designs on the Internet for DC power controllers using Pulse Width Modulation (PWM) to control the speed of a motor or power to a resistive load.  Most of these use analogue methods to generate the PWM signal which in turn drives a power MOSFET or transistor. When I wanted a […]

LED Chaser program

LED Chaser for PIC16F84A and PIC16F628A

Description This simple circuit functions as a 12 LED chaser.  A single illuminated LED ‘walks’ left and right in a repeating sequence, similar to the effect seen on KITT, the car in the Knight Rider TV series. Fully commented source code and programmer ready HEX files are provided for the PIC 16F84A and 16F628A at […]

Final Project Setup

EEG Error Correction Interface

Introduction Our project was an EEG-controlled brain computer interface that allowed a user to correct errors in machine behavior. The project was modeled as a trial-based “game.” In each trial, a solid colored green block or dotted yellow block was placed on a conveyor belt. One end of the conveyor belt had a solid colored […]