Color Globe using PIC16F688 Microcontroller

This was a fun little project I put together in a few hours for a homemade-themed gift exchange this Christmas.  I had on-hand a "Full Color LED" from Radio Shack (part 276-0028) which caught my eye on my last visit there. The LED has a common anode and three cathodes, one for each of the three primary colors: red, blue and green.  By changing the duty cycle (the fraction of time the pin is low) on each of ...

Read more

The Magnetometer using PIC16F688

I found several different magnetometer designs on Internet, but I tend to be very picky. None of those was what I needed - something that is sensitive enough to record the small magnetic field variations where I live (San Jose, California), robust enough to work for long periods of time without constant maintenance, and relatively easy to construct. Since the only place where I could permanently install the ...

Read more

Revised version of LM35 based digital temperature meter using PIC16F688

This is a revised version of my LM35 based digital thermometer project that I posted last year. Although it is one of the simplest projects, it is very popular among newbies who are just starting to learn microcontrollers. There was a little flaw in the original project as pointed by some readers. I was using a 1.2 V reference for A/D conversion with PIC16F688 microcontroller. However, the PIC16F688 datashe ...

Read more

Motion Activated Led Dice using PIC16F688

Introduction   I've always wanted to build an electronic led dice, but something different from what we see on the internet. Making it motion controlled... now that's new!   Many new cell phones that have accelerometers built in also have dice games. These dice move when shaking the cell phone. My Led Dice project will also work with a shake motion but without the use of the expensive accelerometers. Parts ...

Read more

PIC16F688 breadboard module for quick prototyping

This module is based upon the basic setup circuit for PIC16F688 that I have described in one of my PIC lessons, Getting ready for the first lab. I thought of soldering this circuit on a general purpose ptototyping board and use male headers to access the power supply pins and I/O ports of the PIC16F688 microcontroller. This will free up a lot of space on the breadboard as the ICSP header and the reset switc ...

Read more

Lab 3: Four bit binary counter using PIC16F688

Description Today’s lab session is about binary counting LEDs. The binary 1 and 0 will be represented by turning LEDs on and off. You will make a 4-bit binary counter (using 4 LEDs) that counts from 0 to 15 (0000-1111 binary). The four LEDs are connected to RC0 through RC3 port pins of PIC16F688 with current limiting resistors (470Ω each) in series. A push button switch is connected to pin RC4 to provide in ...

Read more

DMM Piggyback (add RS-232) using PIC16F688 microcontroller

DMM Piggyback (add RS-232) There are mods that give a multimeter serial connectivity by soldering some pins but, it only works if it already has RS-232 ability. So I decided rather than building a PIC multimeter from scratch, I would Piggyback off a $4 DMM. I used: one PIC16F688 one LM358 a button and a 100k potentiometer 3 resistors (1k 10k 20k) A PCB, piece of thin plastic, and hardware Despite the low pa ...

Read more

Determine capacitance by measuring the charging time using PIC16F688

When TEST botton is pressed, RA3 pin is set to "1". R2 and R3 are divide the voltage to 1/2 Vra3 which is connected to RA2 pin to be a Vref for comparator. The C undertest is charging and the timer is start. When the voltage of C undertest is more than 1/2 or above Vref, the timer is stop. and a number of periods that elapsed multiply by 10 is the C value in nF. Convert C number to string and display to 1x1 ...

Read more

Lab 4: Interfacing a character LCD using PIC16F688

Description HD44780 based LCD displays are very popular among hobbyists because they are cheap and they can display characters. Besides they are very easy to interface with microcontrollers and most of the present day high-level compilers have in-built library routines for them. Today, we will see how to interface an HD44780 based character LCD to a PIC16F688 microcontroller. The interface requires 6 I/O li ...

Read more

Soundtrack using PIC16F688 Microcontroller

This project uses a microcontroller to drive a speaker and play one of two songs: Yakety Sax (the chase song from the Benny Hill Show) and Entrance of the Gladiators (the clown juggling unicycle song). The tunes are stored as a series of distinct notes.  The frequency and duration of each a note is sent to a function.  A square wave is generated based on the inputs.  The nice thing about this is it can be c ...

Read more
Scroll to top