FabLab Cept

OUTPUT DEVICE

This week assignment was to design a board for output device program it to show some output.

I designed an RGB board such that it can also be used for Networking. For that I added additional pins for Rx, Tx.

To see the detailed description of designing the schematic and board in Eagle, please refer my Week 13.

The board has following components:

 

1. Attiny 44 SSU

2. 1x6 pin header for AVRISP

3. RGB led

4. 2x2pinheader for Rx,Tx,VCC,GND

5. 1 micro F Capacitor

6. 10k Resistor

7. 1k Resistor (2 nos.)

8. 499 Resistor

 

This is a picture of my board and schematic.

 

 

Next step was to mill my board using Roland machine for milling. To see the detailed description of how to use this machine please refer my Week 4.

Next I gathered the components and started soldering my board.

Next step was to start programming.

I used Arduino board to program my PCB

First step is to run the code from examples : Arduino as Isp

Go to Tools-

Select board : Arduino/Genuino Uno

Select Port : COM 14

Select programmer : AVRISP mkII

And push the code.

This will enable to make the Arduino to be used as ISP

Next connect pins on the PCB to following pins on Arduino

MOSI - 11

MISO - 12

SCK -13

RESET - 10

GND to GND

VCC to 5V

Next go to Tools- change the board to Attiny and programmer to "Arduino as ISP"

 

I used Attiny 44 SSU but by mistake I chose Attiny 45. Hence I had error while burning the bootloader.

I corrected my mistake and the gave "Burn Bootloader". This time it worked.

Next step was to push the code to my PCB.

I used the code designed by Neil which I found here.

However, the Leds were not lighting up.

My friend Mohit, who is great with electronics found an error on inspecting my board.

Our lab has RGB led with common Anode, so we need to attach VCC to common pin. However, my board had GND connected to the common pin of RGB.

Hence, I changed this in teh schematic and made the board again.

You can find the pngs for final working board here.

The toolpath was made for Modella machine.

This is how my soldered board looked like.

Once again I burned the bootloader and tried to push Neil's code.

This time it was working perfectly fine.

Next, I decide to change the pattern of the RGB, the previous sequence was Red-green-blue.

Next I went for Red-blue-green.

For this, I replaced all the "blue" with "green" and vice-versa.

I realized that the change is too quick. So to visualize it better, I went for increasing the "delay" so that each colour could be visualized a bit longer. So, I changed the dealy from "25" to "100"

This video shows the change in the pattern of the colours with increased delay.

Final files can be found here.