PENGUIN ROBOT Counting Eye - the Code
This is a Penguin robot big watchful eye that can see people walking around.humanoido said...
It's time to build a Penguin Robot Eye!
(We'll build it from software!)
We need to give an eye some purpose, so this one will count people passing
by a doorway. The code comments explain the necessary calibrations.
humanoido
Title: Penguin Counting Eye
Code Name: penguin_counting_eye.bpx
Purpose: An Eye to Count the First 10 People
' INTRODUCTION ' ------------ ' QUICK COUNTER consists of one Penguin robot big eye that ' will watch and count the first ten people passing the ' doorway and display the number on Penguins' one digit display. ' This is good if you want to hide penguin by your office door and ' see if anyone goes in after hours, or check to see if anyone has ' visited your Penguin Robot Lab. If the number exceeds 10, Penguin ' will display a special character. This is designed to read changes in ' ambient light. This program will function only with calibration, ' see notes below. ' OVERVIEW ' -------- ' Read Penguins right hand photoresistor and count the number of ' light obstructing objects passing by, then display the result. ' Calibration depends on ambient lighting conditions and the speed ' of objects passing by. ' DOUBLE CALIBRATION ' ------------------ ' This program requires double calibration - photoresistor ' calibration because light conditions vary from room to room, ' and timing calibration based on the estimated speed at which ' people pass by the doorway. ' DROP IN CODE ' ------------ ' Note, this program is written entirely as a subroutine which can ' serve as drop in code to your favorite programs!