Week 6

Electronics Design.

What's going on this week ?

This week we will design a circuit on eagle, machine it, and program it.

...

Preparation

1- Install eagle from this link or by writing sudo apt-get install eagle in a terminal.

2- Import fab library into eagle, this library contains most of the components that we need.

Let's dive into the real work

The basic circuit contains a microcontroller and FTDI header, i will add a power on LED, an Input push button, and an output LED. We will need to add these components in eagle:

1- Atmega44 microcontroller.

2- AVRISP.

3- FTDI header.

4- 20 MHZ resonator.

5- LEDs

6- Resistors, capacitors.

...

Adding all of the components.

... ... ... ...

The last step in the schematic is to connect/wire the components.

...

Board/PCB design

Now we will start designing the board. From file click on switch to board.

...

This is a tricky part. Move the components and place them in a suitable configuration. The better the configuration, the easier the routing will be.

...

Start wiring the components.

...

The final board after routing.

...

Make DRC check to make sure that we don't have any errors.

Export the images to machine the board.

... ... ...

Download the design files from here:

echo-hello.sch echo-hello.brd

Or download the images for machining:

Board Traces Interior

Machining

Machining the board on Roland MDX20

...

Soldering

Soldering the components

... ... ...

It's looks pretty good.

...

Programming

To program it i downloaded the echo-ftdi code from classes archive and used my FabISP programmer.

...

From a terminal compile the source code and uploaded the hex code to the microcontroller.

... ...

To verify that it is working, connect the FTDI cable and check if the device is present as /dev/ttyUSB

...

Communicate with the board over serial.

I used screen to connect to the board and send/receive to/from it.

... ...

That's it for week 6