INPUT-ING
The objective of this assignment is to Add an input device to a microcontroller board you’ve designed and program it to do something. And to demonstrate workflows used in circuit board design and fabrication to implement and interpret programming protocols.
Requirments:
// Described your design and fabrication process using words/images/screenshots. Experience
About ATtiny45:
The high-performance, low-power Microchip 8-bit AVR RISC-based microcontroller combines 4KB ISP flash memory, 256-Byte EEPROM, 256B SRAM, 6 general purpose I/O lines, 32 general purpose working registers, one 8-bit timer/counter with compare modes, one 8-bit high speed timer/counter, USI, internal and external Interrupts, 4-channel 10-bit A/D converter, programmable watchdog timer with internal oscillator, three software selectable power saving modes, and debugWIRE for on-chip debugging. The device achieves a throughput of 20 MIPS at 20 MHz and operates between 2.7-5.5 volts.
By executing powerful instructions in a single clock cycle, the device achieves throughputs approaching 1 MIPS per MHz, balancing power consumption and processing speed.
sideNote
went through the process of milling and soldering as shown in previous weeks . First placing the 64 bit mill and sending the .rml to the machine.
// Programming the board:
a. connect computer to Attiny via mini usb; connect Attiny to new sensor board via ISP cable and connect sensor board via FTDI connection to computer.
b. save .make and .py files in folder on computer; find those files through the Terminal (via commands 'cd') and type "make -f hello.load.45.make program-usbtiny"
c. Type command " make -f hello.load.45.make program-usbtiny" in Terminal
|Python interface:
1. Download Python
2. Once downloaded; make sure that the source folder appears on 'Environment variable' (otherwise it will not appear on the command line)
3. Install pip so that you could easily install pyserial and Tkinter modules. ( you will probably get an error and can easily be changed again by linking into environment variables)
4.As you are using version 3 open the .py files from Neil in text editor (like sublime or atom) and change 'Tkinter import' to 'tkinter import' and 'print "Hello world" to 'print ("Hello world")
5. Install python-tk
6. In downloaded .py folder on command line type " python hello.txrx.45.py COM5" and interface should pop up. Note: COM depends on number in device manager