Class Assignment 12: Output Device

 


Class Assignments

Final Project 1.0

CAD

CCC

Electronics production: FabISP

3-D Print

Electronics Design

Make it Big

Programming

Mechanical Design+Machine

Input Device

Molding + Casting

Output Device

Composite

Networking

App/Implications

I n I n I

Final Project

<<home>>

out

so i decided to use the step response board with the RBG light from the input assignment for this assignment. i designed and am affecting its output function which is the light. click the above pic for video.

 

as-is heart

click here for Eagle schematic file

click here for Eagle board file

click here for png file

when programming; i kept referring to the c code and make files for the RGB.45 for the structure and looking at the pinout diagrams of ATTINY45 and ATTINY44here are my additions and changes:

in the hardware i changed:
FTDI Rx- old: PB2 new: PA4
microchip- old: ATTINY45 new: ATTINY44
4-pin header Pin 1 (rx) old: PB3 new: PA0
4-pin header Pin 4 (tx) old: PB4 new: PA1

and added:
20 Mhz Xtal to PB0 and PB1
1K resistor to PB2
1K resistor to PA7
499K resistor to PA6
connected to RBG LED

so in the program i had to make these changes. i went to the makefile and inserted "44" everywhere i saw "45" and renamed the file. then changed the crystal speed setting from 8 to 20 MHz. i then went into the c code and defined PORTA as led_pin_1, and DDRA. then i redfined the pin color names to correspond with my set-up.... uh oh...

whoa

re-ran after making a few adjustments...

ok

yay! and from here i modified the delay from 25 to 100, 1000, and 10.

click here for my c code.

click here for my makefile.

now that this is working and i can see how to manipulate the light, i will go back and work on making it correspond with the input device that is on this board.