The Temp/Humidity/Dewpoint Datalogger: Final Product

Well, due to eBay difficulties, I was severely delayed in finishing this project. It seems that the person that I ordered my first blue LCD display from didn’t want to send a few folks their stuff this month. I went to check on the status of my order, and there were negative feedbacks from around the time that I placed it. So much for that. They sure were inexpensive.
Continue reading

A better….Infrared remote light control system

Read below for history, but the final project is here!

This is an update to Infrared remote light control system. I never included the schematic, which is good because it was a great idea, but horribly implemented. Ten months ago I was only getting started with C, and now I know even more than before. I have updated the remote controller program and schematic to make it work even better. I used a sleep() function and the Watch Dog Timer to make it low power and to simplify the operation and construction. I’ll leave the old posting, but this is the best way to make the remote. I’ll disassemble the receiver and get a schematic out for that, someday.

POV: Persistence of Vision with a PIC16F690

POV ImagePOV ImageOver the past two days my wife and child have been sick so I’ve had lots of home time to POV Imagework on this project. It’s pretty amazing to me that I just started this PIC16F690 POV project less than two days ago, and I already have it finished and working. I worked pretty hard to get the C files completed for this. I also drew a board with Eagle, but I just used some scrap perfboard. Nothing in the world beats point to point soldering. It was actually pretty easy since there isn’t really much to solder in this project.

Continue reading

An Interrupt Using an Input Pin on a PIC16F690 CCS C

This is just a short post on how I used an interrupt to make my Pickit 2 cycle through the LEDs. This is a very simple program, and sadly I tried this once before and it didn’t work. I did a little research and found that I didn’t enable the correct interrupts.  This experiment is just one of a few that may need to take place to design my POV for my CCS compiler. I have a Picaxe POV, but I want high brightness LEDs and it to be in C. I like projects, and this one (POV)  is going to be a little bit different than the Picaxe one. Enjoy the journey in developing my next toy.
Continue reading

Part 2: Going to Sleep(); An Interrupt Using an Input Pin on a PIC16F690 CCS C

This is part two of the POV design. I added a sleep function to this program. It counts up to 14. Once it hits 15 it goes to sleep, only to be awakened by MCLR and starting from the beginning of the program. Please enjoy.

#include <16f690.h>
#fuses intrc_io,mclr,put,nobrownout,nowdt
#use delay(clock=31000) //clock set to oscillator frequency
int count=0;

#INT_RB //this is the interrupt
void interruptMe(void) { count++; delay_ms(250); }

void main(void)
{
setup_oscillator(osc_31khz); //This uses less current than 4MHz
enable_interrupts(INT_RB7); //a change on RB7 triggers interrupt
enable_interrupts(GLOBAL);

while (1)   {  output_c(count);
if (count==0x0f)
{
output_a(0×00); output_b(0×00); output_c(0×00); //set all outputs to ground
sleep(); //should only wake up after MCLR
}  }  }