Week 10:
Output Devices
The objective :
The assignment for this week is Adding an output device to a microcontroller board and program it to do something.
I started reading about different output devices to connect any of them with my microcontroller board then, I decided to use LCD as an output device for this week assignment.General information:
1.The output device:
Is any piece of computer hardware item which utilizes whatever data and commands from your computer in order to perform a task.(Wikipedia)
2.Liquid-crystal display (LCD):
A liquid-crystal display (LCD) is a flat-panel display or other electronic visual display that uses the light-modulating properties of liquid crystals. Liquid crystals do not emit light directly. LCDs are available to display arbitrary images (as in a general-purpose computer display) or fixed images with low information content, which can be displayed or hidden, such as preset words, digits, and 7-segment displays as in a digital clock. They use the same basic technology, except that arbitrary images are made up of a large number of small pixels, while other displays have larger elements.(Wikipedia)
Tools :
|
Name |
Uses |
1 |
Arduino (software) |
Programing |
2 |
Eagle (software) |
Designing |
3 |
PCB copper clad board |
Board Mterial |
4 |
Hakko-936 |
Soldering Machine |
5 |
UT39A |
Digital Multimeter |
6 |
Cirqoid |
milling machine |
7 |
Lumex LCM-S01602DTR/M |
LCD (data sheet) |
WORK FLOW
1. Designing:
I used Eagle for designing the board As I Did in week 6 and week 8 the designing became easier than before But much complicated with this amount of elements.I did the design twice this week the first one unfortunately got damaged due to the over milling and in the second one had some issues but I fixed them
➔The final design that I used ( .sch , .brd ) .
2. PCB Milling & Soldering:
I Followed the same procedure that I did in week 6 for milling and soldering and every thing moved smoothly. But while programing I had some issues that I fixed them by adding some led into the over milled traces. Also one of the traces was very thin and couldn't handle the current therefore I isolated and shorted the unused parts of my board and used it as a trace to reconnect my board as shown below.
I started programing on Arduino and used Attiny 44/84 pin digram to ensure that every thing is matched perfectly.
The following code is the one that I used to program my output device by Aurduino.
* LCD Enable pin to digital pin 4
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(5, 4, 3, 2, 1, 0);
// set up the LCD's number of columns and rows:
// Print a message to the LCD.
Videos :
1st
2nd