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:
6. LED (Light Emitting Diode)
7. Resistor (value 499 ohms) Purpose: current limiting resistor
8. Attiny412
The end result came out like:
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]( Microchip is a leading provider of smart, connected and secure embedded control solutions. You can also get datasheet from [DigiKey]( 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]( from [spakfun](
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.
Another information that I'm able to use from this datasheet is the ordering code for the ATtiny 412:
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:
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]( This adapter was inspired the ![schematic]( using the following ![traces]( and ![interior](
......@@ -8,6 +8,6 @@
6. [3D Scanning and Printing ](
7. [Electronics Design](
8. [Computer-Controlled Machining](
9. [In Progress](
9. [Embedded programming](
10. [In Progress](
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