Week 11:

Output Devices

I week I learnt about charlieplexing, a multiplexing technique use to manage a matrix of LEDs with few control pins on the microcontroller. I first made Neil's LED array board and created a paper prototype of 7- segment display using ATTiny 85 and 14 LEDs. I used David Mellis's Tiny programmer to upload the program onto the chip. I also tried to make a bug board with two tiny DC motors but it didn't work.


SAM_0296
SAM_0288
SAM_0293
SAM_0314



Making Hello array board

This helped me to understand how charlieplexing work.
I used my Hello ISP board to program the hello array board.
I used these steps to upload the program:
Open terminal
Go to the folder where you have saved the .c file and .make file
Type the following code
$ make -f hello.array.44.make
$ make -f hello.array.44.make program-usbtiny

SAM_0289 SAM_0288


Creating a 7 segment display using ATtiny 45

I liked the idea of creating your own 7 segment display and programming it using ATTiny microcontroller. I used 4 pins on ATtiny as charlieplexed output.
I used this tutorial.
I made a paper prototype and soldered the components using copper tape.

SAM_0293 SAM_0297

I numbered the segments from 0 to 6 and marked it on the paper to help me create combination for different numerals.
I used the following combinations
For '0': 0,1,2,3,5,6
For '1': 1,2
For '2': 6,0,1,5,4,3
For '3': 0,1,5,2,3
For '4': 6,5,2 For '5': 6,0,5,2,3
For '6': 6,0,2,5,4,3
For '7': 0,1,2
For '8': 6,0,1,5,4,3,2
For '9': 6,0,1,5,2

The code on the website didn't work. David explained the code and helped me break down the code in the simpler version. I used Tiny Programmer to upload the program onto the ATTiny chip.

Screen Shot 2013-11-20 at 8.36.07 AM

Here is the output

SAM_0296 SAM_0299


I am still working on the final board design. Screen Shot 2013-11-20 at 12.20.31 AM


Designing the Bug Board

This week I also wanted to experiment with designing the circuit board in different shapes. I want to make bugs that can crawl. So I tried to draw a board with DC motors. After Making the board I realized that I was looking at the wrong reference sheet for DC motors. Motors cannot be attached directly to the microcontroller. You need a transistor.
Here is my board. It was fun and time consuming. I will redo this.

Screen Shot 2013-11-19 at 11.42.59 PM SAM_0315