class notes feb 02 06
[[class_notes_feb_02___06]] last edit on
Feb 25, 2006
11:01 PM
by tasd
Class notes February 22, 2006
starting class
- chip extractor is gone
- guru of week
Getting your Logochip to talk to your computer
- java runtime environment
- ! print portnames in java console
- com port in config file
- setting com port in control panel
- wires: brown in c5, red is 2 over, then yellow is one over from that...
basics
printing a number: printprinting a string: prs (using " and |)
ports
ports b and c: digital ins and outs
- setbit with ddr: input, clearbit with ddr: output
- get an LED to light
- writing a routine
- startup, powerup
- making yellow with B2 and B3
- using a speaker (introduce transistor later)
port a: digital out, analog in
- add pot to A0
- print values
- have red/green LED change speed based on pot values
7 segment LED
- LED Pin 7 -> grnd
- Logochip B2, B3 to make "1"
- Logochip B4 to make "7"
- make a 1, 7
- make a 11, 77 (LED Pin 5 -> grnd)
- Logochip B6, B7 to make 11, 77, 17, 71
what to hook up to a Logochip
- sensors: ultrasonic, infrared, light, touch,
- any kind of motor, solenoid