Input Devices Week #11

Introduction

This week we have two main assignments:

  1. Measure something: add a sensor to a microcontroller board that you have designed and read it
  2. group assignment: probe an input device's analog levels and digital signals

Intput Device: Phototransistor

Experiment 1: Phototransistor


  • I wrote a program to read the phototransistor value and output it on the serial monitor, uploaded the code to the board, and opened the serial monitor to observe the readings.







  • In this experiment the RGB LED was off, as I wanted to observe the phototransistor's reading in room light
  • I exposed the phototransistor to a near by desk lamp, opened the serial monitor to observe the reading.



  • I viewed the reading in the serial plotter as well, and the reading was fluctuating around: 480 and 486



  • Afterwards, I covered the phototransistor with a white piece of paper and observed the readings.



  • I also viewed the readings in the serial plotter, and found that the readings fluctuates around 785.



  • Thus, as less light reaches the phototransistor, the sensor reading increases.

    Experiment 2: Color Sensor


    Design Files


    Email: lamiaa.m.nail@aucegypt.edu | Linkedin | Twitter


    Copyright © Developed by Lamiaa Nail 2019