Kate Mytty

How to Make (Almost) Anything

Project 8: Embedded Programming

The embedded programming took a ridiculous amount of time to complete — easily 15+ hours. I’ll try to detail what happened so that it doesn’t happen to future classes. A lot of the errors had to do with the hardware - and a few errors with the software.

  • Project 8: Embedded Programming
  • What: Make Something Blink

Project 08a
Step 1: Try to program the FabISP.

Use Atmel’s AVRISP to program the FabISP.
This tutorial helped a lot.

The first FabISP didn’t program at all (2 hours in..with Prashant’s help).
I tried stuffing and making one other FabISP. This one “took”
the programming but the computer couldn’t “identify” that the FabISP existed.
Lots of Error 1s. In other words, the new one also didn’t
work. So I’ll have to make another FabISP later.
First lesson: Test the FabISP before this lesson.

Project 08b
Step 2. When multiple FabISPs didn’t work, revert to completing the assignment.
Move to the echo board.

Attempt to program echo board with the FabISP. It didn’t work at first.
So I replaced: The resonator, the LED, took off the button and checked again.
It still didn’t work. I remilled another Echo Board with
updated design. I realized I had reversed the LED flow in the original.
This time with Prashant’s advice, I added each piece
first: the micro controller, FTDI and programming head, afterwards, testing the
voltage along the way and whether it could programmed. I continued
to add parts and test voltage and programming along the way.

This tutorial that helped during Echo board programming.
Project 08c
Step 3. When first echo board doesn’t work, mill a new board. Try again.
Milled one more. This round: the resistor wasn’t properly soldered — so I desoldered that.
Type of resistor before LED needed to be changed to higher
resistance — 500 Ohms resistor; 100 Ohms resistor; 1k Ohms.
Finally it works!
Project 08d
Step 4: Celebrate that it works!
Lessons learned:
It helped a lot to work with Prashant who was ever helpful. He taught a few
useful tips for future troubleshooting:
* Check if no shortages (hardware) — look at soldering
* See if there is 5 voltages in VCC
* Components - microcontroller, FTDI connector, and programming head
* If it works, attach LED (do you need a resistor first?)
— can check LED without soldering (the photo I took
of the LED wasn’t necessarily the correct orientation)
* Consistently checked voltage from LED pin on controller to FTDI connector