August 5, 2010 2:34 PM
Complete and Working --> Modified Hello Echo + Button + FTDI v.2
by Anna Kaziunas Francebr> br> br>
Fab Academy Embedded Programming Assignment:
I modified the hello serial echo board (my modified echo board version2 - see previous posts) to respond to a button and added an FTDI header so I could use it as a substitute for the internet 0 serial board. (I have a Mac and therefore no serial port).
The behavior is that the LED is always on - but when the button is pressed, it turns off.
Shawn and I modified Elliot’s reprogramming the echo board code.
Here is the code:
; Modified.Hello.Echo.Blink LED.44.asm
;
; blink LED when button is pressed
;
; Code Created At FAB ACADEMY AS220
; by Shawn Wallace & Elliot Clapp
; Last Modified 08/05/2010 - Anna Kaziunas France
;
; Permission granted for experimental and personal use;
.device attiny44
.org 0
cbi DDRA, 1
sbi DDRB, 2
loop:
sbic PINA,1
sbi PORTB, 2
sbis PINA,1
cbi PORTB, 2
rjmp loop
I use an usbtiny programmer.
Copy the above code into a text file and save it with YourFileName and .asm extension. Compile it using gavrasm:
gavrasm YourFileName.asm
Compiling the file will create a .hex file.
First - set the fuses on your board:
avrdude -p t44 -c usbtiny -U lfuse:w:0x7E:m
Second - flash the attiny44 with the program code you just compiled:
avrdude -p t44 -c usbtiny -U flash:w:YourFileName.hex
Puppet Master Final Project Page Updated
Shopbot Project - Modular Shelving
Diploma Completion Checklist Update - 08.14.2010
Unsuccessful Modela Troubleshooting - Partially Successful Switch to Roland Vinyl Cutter
Very Basic Beginner Assembly Tutorial III: How to Use Avrdude
Very Basic Beginner Assembly Tutorial II: How to Use Gavrasm to compile an .asm flie
Very Basic Assembly Tutorial I: Where to Get Gavrasm for the Mac OS
Complete and Working --> Modified Hello Echo + Button + FTDI v.2
Modified Hello Echo + Button + FTDI v.2 ---> In Progress
Modified Hello Echo + Button + FTDI v.1
Mantis Hardware / Software Trial Run
First 3D Scans - Modela Scan of Laughing Die and Shell
Interlocking Rings - 3D Printing
MakerBot Cupcake CNC- Assembling the Plastruder mk4 Spindle
Capacitive Sensing - PuppetMaster v.1-v.2
[Revised] Fab Academy Final Project Proposal: PuppetMaster
FabISB Round 2: Stuffing and Programming the Board
Making Programming, Connector and Serial Cables
Final Project Licencing and Distribution
Internet 0 / Zero - Milling, Stuffing & Setting Up the Boards
Spindle Assembly - Mantis Milling Machine
PuppetMaster Final Project Page
Encoded Building Materials with Computer Numerical Control Assembly
Final Project Plan: PuppetMaster Universal Remote
Final project: pinball machine themed on an unfinished opera by Dylan Thomas and Stravinsky
Electronics design and production
The Fabian: an Arduino-compatible, student-friendly board for Fab Labs
Super simple bootstrap 3-axis controller
Breadboard-friendly Attiny45 board
Using a GUI to Control Processing Output with ControlIP5, Firmata via Serial
My favorite python/GTK reference
Fab ISB - Round 1: Milling Out The Board
Completed TARDIS Cast | Working Light