Week 7
-
ELECTRONICS DESIGN
Group Assignment
Use the test equipment in your lab to observe the operation of a microcontroller circuit board.
Individual Assignment
Redraw the echo hello-world board, add (at least) a button and LED (with current-limiting resistor). Check the design rules, make it, and test it.
Extra credit: simulate its operation.
Extra credit: render it.
Testing the operation of a microcontroller circuit board (GROUP ASSIGNMENT)
...
Redrawing the hello-world board (INDIVIDUAL ASSIGNMENT)
At this week, we receive from Roberto Delgado a master class of electronics. That was very useful to understand del work flow and the use of Eagle to design electronic boards.
The first part was setting up my Eagle environment, with the Fab library. The path is like the next images:
![](img/week-7/loading-library-eagle-1.jpg)
When you finish to add the library, you can add items from it.
![](img/week-7/loading-library-eagle-2.jpg)
Now, all you need to do is design it. Well, for my first time in electronics I actually receive many helpful advice and instructions. Finally, my first schematics was done, with a modification of the Neil's board: the led and button.
![](img/week-7/design-01.jpg)
The next step was make the board.
![](img/week-7/design-02.jpg)
After a couple hours (it's my first board design) that was my routes. I try to do from scratch, but after so many attempts I was to resign and take a route similar to the Neil's board. Obviously with my led and button.
![](img/week-7/design-03.jpg)
The next step is export the board, hiding the right layer on each case.
![](img/week-7/design-04.jpg)
That was the result:
![](img/week-7/board-hello.png)
![](img/week-7/board-hello-edges.png)
Now following the process of the week 5, I make the board.
![](img/week-7/electronic-design-01.jpg)
![](img/week-7/electronic-design-02.jpg)
![](img/week-7/electronic-design-03.jpg)
At this point I learned something important from my mistakes. The routes that I draw was so thin. On the Eagle file the thickness of the line was 16, after that I decide use thickness 20 on the next boards.
Programing the board
Due to its my first time - and later than spend 2 hours trying to route my board - i decide program it with a simple workflow. So, I install Arduino IDE on Ubuntu. to do this i just download the files from the Arduino website and unzipp it. Then on a terminal (on this folder) execute the command:
$ sudo ./install.sh
![](img/week-7/program-01.jpg)
Once Arduino IDE was installed, I need to install ATTiny cores, to program any AVR boards with the Arduino IDE. To do this, we need to add this url "http://www.leonardomiliani.com/repository/package_leonardomiliani.com_index.json" on File/Preferences/Additional Board URL. Later, open Tools/Board/Board Manager and install "ATTiny Extra Boards by Leonardo Miliani".This proceed was taken from this site.
![](img/week-7/program-02.jpg)
![](img/week-7/program-03.jpg)
One important thing about Arduino, is that the pins are numbered on different way. So you need to take care to choose the right one.In mi case, the button is on the pin 7 and the led is on the pin number 2.
![](img/week-7/program-04.jpg)
Fianlly, using the right programmer you can load the code with "Program/Load using programmer"
![](img/week-7/program-05.jpg)
The final test, push the button to turn on the led.
![](img/week-7/electronic-design-04.jpg)
![](img/week-7/electronic-design-05.jpg)
To get the files for this assignment, please visit my repo on Github: https://github.com/CarlosNinaOchoa/fabacademy2018/tree/master/Week-Assignments