Input devices

Week 13

input devices

Tasks

measure something: add a sensor to a microcontroller board that you have designed and read it


Sound Board (Electret Condenser Microphone)

After watching Neil's lesson and distribute each board within our group i got the sound challenge, the microboard. I started cutting ther PCB's at the modela with the 1/8 endmill. In one hour i milled and cutted all the group boards.
Colecting the components

I then started to weld the components in the board.
welding process and final board


I've finally get to connect, after installing all the dependencies, downloading the C file the Makefile, and the PY code just typed:

sudo make -f hello.mic.45.make program-usbtiny

and it flashed correctly as you can see below:
avr-objcopy -j .text -O ihex hello.mic.45.out hello.mic.45.c.hex;\
avr-size --mcu=attiny45 --format=avr hello.mic.45.out
AVR Memory Usage
----------------
Device: attiny45
Program: 500 bytes (12.2% Full)
(.text + .data + .bootloader)
Data: 200 bytes (78.1% Full)
(.data + .bss + .noinit)
avrdude -p t45 -P usb -c usbtiny -U flash:w:hello.mic.45.c.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9206
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "hello.mic.45.c.hex"
avrdude: input file hello.mic.45.c.hex auto detected as Intel Hex
avrdude: writing flash (500 bytes):
Writing | ################################################## | 100% 0.87s
avrdude: 500 bytes of flash written
avrdude: verifying flash memory against hello.mic.45.c.hex:
avrdude: load data flash data from input file hello.mic.45.c.hex:
avrdude: input file hello.mic.45.c.hex auto detected as Intel Hex
avrdude: input file hello.mic.45.c.hex contains 500 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 1.00s
avrdude: verifying ...
avrdude: 500 bytes of flash verified
avrdude: safemode: Fuses OK
avrdude done. Thank you.
Everything went well. Work done! Here's my final video:
Video of the microphone working