Commit f3fd123e authored by Jonathan Chery's avatar Jonathan Chery 💬
Browse files

Working on week 09

parent 009d01f6
Pipeline #233849 passed with stage
in 50 seconds
# 9. Embedded programming
This week I worked on:
- Programming my board to do something
After re-milling my board and soldering the correct components such as:
- Previous Week
- Reading the datasheet for the microcontroller I was programming
- Exploring the datasheet for ESP32
- Programming a board
- Link To Group Assingment
## Previous Week
Previous weeks, I needed to re-mill a board and solder the correct components onto it such as:
1. Resistor
2. Button
3. Ground
......@@ -11,11 +18,39 @@ After re-milling my board and soldering the correct components such as:
5. UPDI
6. LED (Light Emitting Diode)
7. Resistor (value 499 ohms) Purpose: current limiting resistor
8. Attiny412
The end result came out like:
![pcb_board](../images/week09/pcb_board.png)
Now, it was time to program my board.
With the same board, I decided to program it to do something simple such as blink when the button is pressed. But, before I start the programming, I needed to read the Attiny412 datasheet.
## Reading the datasheet for the microcontroller I was programming
I was able to obtain the ATTiny 412 datasheet from [microchip](https://www.microchip.com/wwwproducts/en/ATTINY412). Microchip is a leading provider of smart, connected and secure embedded control solutions. You can also get datasheet from [DigiKey](https://www.digikey.com/en/products/detail/microchip-technology/ATTINY412-SSNR/8594943) as well.
First off, reading a datasheet is tough. There's a lot of content and can easily get overwhelming. However, the point of the datasheet is not to read nor memorize the information but, to get a jist of what the microchip can do and how powerful it is. To help me read the datasheet, I found a blog [How to Read a Datasheet](https://www.sparkfun.com/tutorials/223) from [spakfun](https://www.sparkfun.com/).
Scanning through the datasheet, there were a lot of information given. Some of the information that were given, I didn't quite know what to do with it however, others seemed to be quite useful. For example, Figure 1-1. tinyABR 1-Series Overview gave me insight of the Flash Memory and Pins available for the type of ATtiny.
![figure_1](../images/week08/figure_1.png)
Another information that I'm able to use from this datasheet is the ordering code for the ATtiny 412:
![figure_2](../images/week08/figure_2.png)
The 8-pin SOIC was another aspect of this datasheet that I can use to help me further understand how to work with the ATtiny 412:
![figure_3](../images/week08/figure_3.png)
In all, microchip datasheet is quite helpful in understanding what technology a person is working with. Though not all the information might be relevant for me, some which were pointed out in the images above will help in programming the ATtiny 412.
## Exploring the datasheet for ESP32
## Programming My Board To Do Something Simple
My goal was to create a program that causes my board to light up every time I click the button. When I click the button, the LED would turn on until I click the button again, where the LEd would close. To get the programming working, I needed a ![UPDI 3 adapter](http://academy.cba.mit.edu/classes/embedded_programming/UPDI/hello.serial-UPDI.3.jpg). This adapter was inspired the ![schematic](http://academy.cba.mit.edu/classes/embedded_programming/UPDI/hello.serial-UPDI.3.png) using the following ![traces](http://academy.cba.mit.edu/classes/embedded_programming/UPDI/hello.serial-UPDI.3.traces.png) and ![interior](http://academy.cba.mit.edu/classes/embedded_programming/UPDI/hello.serial-UPDI.3.interior.png).
......
......@@ -8,6 +8,6 @@
6. [3D Scanning and Printing ](http://fabacademy.org/2021/labs/dassault/students/jonathan-chery/assignments/week06/)
7. [Electronics Design](http://fabacademy.org/2021/labs/dassault/students/jonathan-chery/assignments/week07/)
8. [Computer-Controlled Machining](http://fabacademy.org/2021/labs/dassault/students/jonathan-chery/assignments/week08/)
9. [In Progress](http://fabacademy.org/2021/labs/dassault/students/jonathan-chery/assignments/week09/)
9. [Embedded programming](http://fabacademy.org/2021/labs/dassault/students/jonathan-chery/assignments/week09/)
10. [In Progress](http://fabacademy.org/2021/labs/dassault/students/jonathan-chery/assignments/week10/)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment