Output Devices
Assignment: Add an output device to a micro controller board and program it to do something.
Powering boards
After cutting out the boards I addressed the need for an external power source, on the previous boards the power came from the FTDI cable which is not present on these output devices boards. Thomas Hopman directed me to use a 9 volt battery because the regulator on board will regulate it down to 5V.
On each of the stuffed boards I clipped the same leg of the J-connector to prevent putting the plug in in the wrong way.
Before programming the board, I connected the external power source and used a DMM to check that 5 volts was arriving at the ATTiny's VCC pin.
Speaker
Program speaker board:
- make -f hello.speaker.45.make
- Attach the power source to the speaker board
- sudo make -f hello.speaker.45.make program-usbtiny
The program code creates random annoying beeps
LCD
Program LCD board:
- make -f hello.lcd.44.make
- Attach the power source to the LCD board
- sudo make -f hello.lcd.44.make program-usbtiny
Write text to your project / dedicate one ATTiny44 to the display
44780 chip on LCD board is needed for the driver which takes a bizarre protocol.
DC-Motor
Program DC motor board:
- make -f hello.H-bridge.44.make
- Attach the power source to the LCD board
- sudo make -f hello.H-bridge.44.make program-usbtiny
Spin continuously need a H-bridge to move in both directions.