Week 1
This breadboard contain different setups:
01) Transformer
a) Input: 120VAC; 60Hz; 22W b) Output: 12VDC 1000mA
02) Switch
03) Capacitor 10uF (micro ferret - smooth out current)
04) Regulator 5V
05) Capacitor 1uF (micro ferret)
06) 2 LEDs? in series with 2 fixed resistors 220-ohm
07) 5 LEDs? in parallel with 2 fixed resistors 220-ohm
08) Photocell, 1 LED, 1 yellow LED, and 1 resistor 220-ohm
09) 10K-ohm potentiometer, 1 LED, and 1 resistor

Week 2
September 22, 2005
I got three Microcontrollers (great).
Chris explained how to do the programming and with his help I got it to work.
– Thanks.
Here’s the code:
DEFINE OSC 4 ‘oscillator (clock)
OUTPUT portd.0
OUTPUT portd.1
Main:
HIGH portd.0
PAUSE 1000 ‘millisecond = 1 sec.
LOW portd.0
PAUSE 100 ‘this is a shorter pause
HIGH portd.1
PAUSE 100
LOW portd.1
PAUSE 100
GOTO main
Looking at those two blinking light bulbs is great. I am starting to get ideas.
Enclose is a drawing of the set up on the breadboard:

Week 3
Enclosed is the code:
define OSC 4
DEFINE ADC_BITS 8 '
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 20
TRISA = %11111111 'this makes them all A input
ADCON1? = %00000010 'IF 10 BIT %10000010
output portd.0
output portd.1
adcvar VAR byte
CLEAR
OUTPUT portd.0
OUTPUT portd.1
Main:
adcin 0, adcvar
serout2 portc.6, 16468, [DEC adcvar, 10, 13]
if (adcvar < 125) then
high portd.0 low portd.1
else
low portd.0 high portd.1
endif
goto main
Great - it works!!! I think I am starting to get some of it. I just wish I had more time to PLAY with this stuff.
Week 4
October 6, 2005
Analog Output: Servo Control using a potentiometer
Enclosed is the code and a diagram
Code:
DEFINE OSC 4
DEFINE adc_bits 8
define adc_clock 3 'internal clock
DEFINE adc_sampleus 20 'check input
adcon1 = %00000010
trisa = %11111111
OUTPUT portd.0
PulseWidth? VAR BYTE 'info for the servo motor
PulseMax? CON 250 '=180 degree
pulseMin CON 50 '= start at 0 degree
RefreshPeriod? CON 20
adcVar VAR BYTE
ServoSpeed? VAR BYTE
start:
HIGH portd.0
Pause 500
low portd.0
PAUSE 500
HIGH portd.0
PAUSE 500
LOW portd.0
PulseWidth? = pulseMin
main:
ADCIN 0, adcVar
ServoSpeed? = adcVar/16
LOW portd.1
PULSOUT portd.1, PulseWidth?
PAUSE RefreshPeriod?
IF PulseWidth? > PulseMax? THEN
pulseWidth = pulseMin
ELSE
PulseWidth? = PulseWidth? + ServoSpeed?
Endif
GOTO main
Final Project:
http://homepage.mac.com/rolf_a/Personal11.html
Final Project: Proposal
The goal for this final project is to create an interactive piece of art, which combines visual and sound effects. The final device is a wall unit made of wood and painted black. 16 LED lights, 16 various sounds (Midi), and 16 photocells control the device. Each photocell is connected to one light and one sound. The project is thought of as a toy for individuals of all ages.
The components are shaped into a design, which is divided into three units. The top unit is 16 red LED lights wired together. The middle unit has two speakers connected to a Midi device producing the sounds. The bottom unit has 16 photocells all lined up next to one another. To keep the wiring manageable each of the three units is connected to its own breadboard.
It’s essential first to present the components in a diagram showing how the parts are connected. Three small breadboards (Jameco #20600) contain their own kind of chip.
Unit One: Light Each of the LED lights is connected to it’s own photocell and will turn on and off according how much shadow or light the photocell gets. The LED lights are connected together with four wires going to power and four wires going to ground. Each of the eight wires is connected to the main breadboard, which contains an 18F452 microchip. The pins in use are RB-0 to RB-7. The chip will be programmed with PICT Basic and will turn each LED light on and off according how much information it gets from the photocells. At a later date I would like to use RGB LED lights, which can change colors by increasing or decreasing the power input.
Part Two: Sound Midi is used to create 16 different sounds. The velocity depends on how much information they get from the photocells.
Part Three: Photocell The wires from each photocell are connected to the two breadboards which each have their own chip (CD4099BC?). These chips function as routers and are connected to the microchip.
I am not totally clear how everything is going to work, but for right now I am moving along taking each step as it comes. I will start with the lights and program them so I am sure that everything is connected the right way. After that I’ll integrate them together with the photocells.
The design has to be pleasing to look at even before the device is turned on.
This final project is the beginning of future projects, which I plan to create. It includes building a monitor and using different sensors to measure an individual’s state of mind.
Rolf Fall 2005
===================================
Strong
Final Project
Hi Michael,
Enclosed are links to my documentations of the final project:
http://pcomp-rolf.blogspot.com/
Photos:
http://homepage.mac.com/rolf_a/PhotoAlbum17.html
Code:
http://homepage.mac.com/rolf_a/FileSharing16.html
Please confirm that you got this email - Thanks
Wish you and your family a Happy Holiday.
Until next time all the best, Rolf.
Strong
