• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Get control of your email attachments. Connect all your Gmail accounts and in less than 2 minutes, Dokkio will automatically organize your file attachments. You can also connect Dokkio to Drive, Dropbox, and Slack. Sign up for free.



Page history last edited by Benjamin Tee 7 years, 11 months ago

Part A.  Writing to the Serial Monitor


Lab3 report of Cansu Paksoy was check+ .


a. Based on the readings from the serial monitor, what is the range of the analog values being read?

The range is 0-1023.

b. How many bits of resolution does the analog to digital converter (ADC) on the Atmega32U4 have (hint: where might you look to find this sort of thing)? How many are you using with the range of values you're seeing?


Part B. Voltage Varying Sensors 


1. IR Distance Sensor


a. Describe the voltage change over the sensing range of the sensor. A sketch of voltage vs. distance would work also. Does it match up with what you expect from the datasheet?

It increased and decreased.





2. Accelerometer

The code is;

#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
const int xpin = A3;              
const int ypin = A2;               
const int zpin = A1;
void setup() {
  lcd.begin(16, 2);

void loop() {
  lcd.setCursor(0, 1);
  lcd.print(" ");
  lcd.print(" ");
  lcd.print(" ");


Part C. Count/Time-Based Sensors


1. Rotary Encoder


a. Upload a picture of your rotary encoder in action!




















Comments (1)

Benjamin Tee said

at 11:59 pm on Aug 12, 2012

-2: Did not find your part D answers.

You don't have permission to comment on this page.