EMBEDDED PROGRAMMING
WEEK 08
Task:
DATASHEET
Download data sheet
Atttiny 328
Relevant information:
Concepts
Analog signal
An analog signal is a voltage or current which varies smoothly and continuously . A sine wave is an analog signal of a single frequency. Voltages voice and video are analog signals that vary according to the sound or variations of light corresponding to the information being transmitted .
Digital signal
Digital signals , in contrast to analog signals do not vary continuously, but change in steps or in discrete increments . Most digital signals use binary or two state codes.
FABDUINO
Fabkit i/o (Fabduino) is a board compatible with ATtmega328p microcontroller, so you can write the same code with an Arduino IDE
Follow this website for make and learn how to make the Fabduino:
Componets:
Downloads
Follow the workflow of the pcb board milling and welding process in this week (week 04)
In this case I just change the text of the board to my last name "HUANG"
Final results
According to the steps of the websites Fabkit i/o (aka Fabduino) and Fabkit v.0.3-0.4
PROGRAMMING (bootloader)
Connect the AVRISP mkII or USBtiny to the fabduino board and FTDI cable (5V), the AVRISP who writes the data on the board and the FTDI cable is used used as a transmitter of data to the computer and as a power supply.
RST
VCC
GND
SCK
MOSI
MISO
FTDI
Connect the pinout of the Fabisp or AVRisp to fabduino: RST / VCC / GND / SCK / MOSI / MISO
Programming the bootloader in WINDOWS 8.1
Follow this steps to burn bootloader for the Fabkit:
After to research the bootloader not works in windows 8.1 .According to the steps of the websites Fabkit i/o (aka Fabduino) and Fabkit v.0.3-0.4 is not necessary a external resonator, but my first test was without a resonator and the fabduino not works yet. Then I try to bootloader the fabduino again but it still not works with a resonator of 20 mhz so my last test was with a resonator of 8 mhz.
Following the steps of the images above work perfectly but only run in ubuntu because in windows not read the port when tries to burn bootloader.
PROGRAMMING (burn bootloader) in linux
After of many attempt, finally burn bootloader work in linux just following the same steps
Open terminal in linux and type command
"sudo arduino"
Sudo: is a utility for linux which allow user to run programs with the security privileges and safely
Open Arduino Ide
PROGRAMMING FABDUINO
Arduino ide software is and environment thats can upload many code with examples easily.
Connect a cable FTDI for power supply and transmitter of data to the fabduino
Blink
Is an example of communication that make the led of the fabduino turn off or on with delay.
Arduino ide: Edit/ Examples / Basic / Blink
In tools select the same parameter of the image
Fade
This example show how to fade an LED using a 6mm swithch buuton
Learning outcomes:
Have you
Download files and code of week 08
Copyright © Jorge Huang Li - FAB ACADEMY 2016