« Week 2: Physical Computing | Main | Week 2: Spacial Design »
September 19, 2005
First PIC Lab
This is the first PIC assignment. I have to make sure I learn how to sequentially debug my circuit for when it gets more complex. My PIC circuit wasn't working because the voltage regulator was fried and also because I wasn't using a 10k resistor for my reset.
I tried to use the random number generator but Todd told me it's much better to use ADCIN to generate random numbers. Here are his code samples:
http://toddholoubek.com/pcomp/examples/code/allcodeindex.html
The analog out on port one generates a one or a zero. I'd like to incorporate something from the house as my switch/sensor because I don't have any parts right now. I think i'd like to incorporate organic elements into my design to counteract the coldness of the technology. Here are some basic things I got done:

A basic traffic light. The different leds alternate at a predefined interval. It would be cool if I had two traffic lights that talked to each other. If someone was coming in one direction (motion sensor) and no one else was coming the other way, the traffic light would automatically turn green.

Lights connected to a potentiometer. The code regulates the light and a physical action manipulates the pot.
Posted by mb2811 at September 19, 2005 01:38 AM