Output Device

This week assignment is to add an output device to a microcotroller board and program it to do something. Because there are high probabilities for me to use the LCD I chose it. The first task was to get the design for the LCD circuit.

 photo week15_zpsa69d723b.png

Then it was milled on the Roland Modela. The result is show below:

 photo week15_zpsa69d723b.png

Afterwars is the solder of the components:

  1. Resistence 100k
  2. Resistance 10k
  3. Resistance 1k
  4. Capacitor 1uF
  5. Resonator 20MHz
  6. Pin headers
  7. Attiny44

 photo week15_zpsa69d723b.png

Then I need to download the program into the controller. For that I used the procedure specify on week XX. For the connections of the LCD is importante to point out the following:

  1. Pin GND – Ground
  2. Pin VCC – voltage entrance for the system.
  3. Pin Vee – for constrast. It is usually used a potentiometer.
  4. Pin RS – if it is high the LCD receive data to display. In the other case the system will receive commands like for example clear() or setCursor().
  5. Pin R/W – When it is low the LCD show the data transmited. If it is high a microcontroller can read the data over the display.
  6. Pin Enable – it enable communication.
  7. Pin DB4-DB7 – pins used for data transfer. Pins from DB0 to DB3 are not necessary.
  8. Pins Led+ and Led- are for turning on the back light. I connected these pins for the firs time.

Serial communication is established between the Attiny44 and the LCD for making possible the pass of data from the controller to the actuator. For this time there was no need to change the programs from the lecture files. However, if somenone want to change the information inside the LCD, one just have to go to the C file and rewrite the next line:

static const char line1[] PROGMEM = "XXXX"

static const char line2[] PROGMEM = "XXXX"

And write their messaage instead of "XXXX". Be carefull to separate the upper letters (line1) form the lower letters (line2)

There was no mayor issue doing this assignemnt and there was no need to check the datasheet.

The next videos show the results from this experience.

Video 1

Video 2

The board design can be downloaded from this link. It is base on the board from the lecture.

Return to index