• Contant
  • Project
  • Assigments
  • About me
  • HOME

Fablab Seoul

JIN`s Fab Academy 2018:
How to make almost everything


week9: Embedded Programming


-Group assignment-

Compare the performance and development workflows for other architectures

-individual assignment-

Read a microcontroller `data sheet.`
Program the board to do something, with as many different programming languages and programming environments as possible

1. Programming echo hello world board

I uploaded the programming using the Arduino IDE. Here you can download the `Arduino IDE.`
I will also introduce a site with a detailed description of uploading with ATtiny.
I found the material on Reference:
`the homepage of Kurina`, a graduate of 2017. Thank you Kurina

Reference:
`High-low tech website`
1. I go into setting up the connection in the Arduino IDE
2. Type `https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json` in the manager URLS.
3. Enter the board in the tool and type attiny in the input window.
4. Download attiny by David A. Mellls.
5. Set the programmer to USBtinyISP in the tool.
6. Click Burn Boot Loader below it.
7. Program in Arduino.
8. Click on `Upload using the programmer` in the sketch.


To upload from the Aduino IDE, a board must be aligned on the tool. Add board to download attiny board.

Download the attachment board from the board manager.For attiny, remember the pin number and code it.
I can check the location of the digital pin and the analog pin by checking the datasheet on attiny 44
It is also possible to locate SPI (Serial Peripheral Interface) data communication pins.

I connected the LED to number 8.

2.Read the Datasheet

It was too hard to study because I didn't know the electronic and the circuit side.
There were too many things to learn, such as the capacitor's capacity selection, resistance capacity, and the diode's role. Everything was new to me.
So Rodrigo Instructor asked us to read the datasheet. Even if I don't understand, read on and get used to it.


-ATtiny 24/44/84 datasheet-
-Attiny44A is RISC archetecture, AVR 8-bit microcontroller, 1.8-5.5V operating voltage, internal oscillartor 8MHz - 128kHZ(see clock sources p25) external 20MHz
-Understanding each term (Rodrigo Web site)-

-SPI: Serial Peripheral interface
-MOSI: Master Output, Slave Input (output from master}
-MISO: Master Inout, Slave Outpu (output from slave) SCK: Serial Clock
-ADC: Analog to digital converter (translating analog to digital)
-AREF: Voltage Reference that the chip will use to know the range of voltage.
-PDIP/SOIC : PDIP(Dual in-line package, through hole package),
-SOIC(Small-outLine integrated circuit)
-EEPROM (128/256/512 Bytes of In-System Programmable EEPROM) : Electrically Erasable Programmable Read-Only Memory, Non-volatile memory.
used in computers and other electronic devices to store small amounts of data that must be saved when power is removed.



3.Making Fabkit 0.2

I decided to make Fabkit. According to the data, last year's graduate, Kurina, when she made Fapkit 4.0,
said she had problems cutting into Roland, so I decided to make Fapkit 2.0. But I referred to the Kurina`s website.

-My mistake-

The entire size was set poorly when the image was changed and retrieved from Fapkit.
The first board failed because the trace and outcut did not fit. So, I did cutting by bringing in the existing image without changing it.
While soldering, the armaga line was so thin that it broke its leg while continuing to modify. So I made a board again.


I put my initials in the board. However, the work area was expanded and errors were created ... You must be careful.

The connection location between Fab ISP and Fabkit must be checked.

I can check in advance what I make through the pinout diagram of atmaga 168. And it is very important for pcb design.
I looked for LED numbers by checking the pinout information and can later connect and code other sensors.

I can find the correct information in Datasheet and set the pin accordingly.

Atmaga 168 has both digital and analog pins, so it can be used in a variety of ways like Arduino.
And it is capable of serial communication.

He created Fapkit, but ATmage broke his leg and failed. Make it again!

The connection pins of Fab Isp and FabKIT.

The board shall be set to Arduino pro or pro Mini and the processor shall select 3.3 v, 8 MHz. LEDs are connected to 13 pins.

I made it blink once every 0.1 seconds with LED delay of 100. Success with Fabkit programming !!!

-This week Notification-

I could learn the basics of electronic circuits and electricity. Only I know too little,
and I think it is a field that has a lot more material and has to study for a long time.
I want to study hard and have a deeper knowledge.
(Soldering is very hard.)

-Download File-

Fabkit Schematic
Fabkit image
Arudino code