Task

  1. Individual Assignment: add an output device to a microcontroller board you've designed, and program it to do something
  2. Group Assignment: measure the power consumption of an output device

Individual Assignment

Output Devices

An output device is any device used to send data from a computer to another device or user,most output devices used by humans are, Examples include monitors, projectors, speakers, headphones and printers.

For my final project I need LCD,Solenoid(Lock) or servo motor, Led as output device In this week we are planning to make our board for make machine week so I am using same design for my output design board

Output board

Output board

Servo motor needs just 3 connections for its operation.i.e. Vcc,GND & signal pin so I connected servo motor with my above milled board.

Output device with PCB

Then I ran by default program from Arduino ide for servo motor

Program for servo

Program Explaination:

  • 1.Include libarary for servo
  • 2.Define servo motor pin to 9 no.of board
  • 3.when motor gets pulse it should rotate from 0 degree to 180 degree in first step.
  • 4.Wait for 15 milisecond to complete this step
  • 5.After 15 milisecond it sholud rotate from 180 degree to 0 degree.

  • Project part covered

    LCD (liquid crystal display)

    A liquid-crystal display (LCD) is a flat-panel display or other electronically modulated optical device that uses the light-modulating properties of liquid crystals. Liquid crystals do not emit light directly, instead using a backlight or reflector to produce images in color or monochrome

    LCD

    I have connected this lcd with my final project board processm mentioned in Input devices week

    LCD requuires 16 number of pins for communication but in my final project board I have to connect number of other devices so to reduce this I used I2c module in between LCd and PCB I refered this tutorial

    Programming

    LCD

  • 1.Incude the external libarary for I2C to arduino ide.
  • 2.Chose lcd size,in my case I am using 16 X 2 lcd.
  • 3.Set cursor to print statment ,here I want to print Hello worrld in top row .
  • 4.Set cursor for second row.
  • After running program I get

    LCD

    Summary

    • I learnt about Output devices.
    • I understand the concept of serial port,programme memory.I2C module
    • I learn how to check and display the result and graphs on serial monitor
    • I learn how to select output and microcontroller as per our application

    Files