Thursday September 26, 2013, Homework

Here is a forum for all the students of the i.am.angel Robotics class. Please feel free to post your projects as we go thru the semester.

Thursday September 26, 2013, Homework

Postby Tim Laren » Mon Sep 30, 2013 7:57 pm

Describe how you would do the following and bring it to class Monday:

Read the analog input that the photocell is connected to and store it in a variable.
If the value is less than 100, print out 'Dark'.
If the value is less than 400, print out 'Dim'.
If the value is less than 800, print out 'Light'.
If the value is greater, print out 'Bright'.

Here are some hints:
Serial.print("Dark");
if(A < 100) {
Image
Tim Laren
Site Admin
 
Posts: 137
Joined: Thu Mar 04, 2010 8:25 pm

Return to i.am.angel Robotics

Who is online

Users browsing this forum: No registered users and 1 guest

cron