Shop OBEX P1 Docs P2 Docs Learn Events
PENGUIN ROBOT Counting Eye - the Code — Parallax Forums

PENGUIN ROBOT Counting Eye - the Code

HumanoidoHumanoido Posts: 5,770
edited 2007-10-30 10:05 in Robotics
humanoido said...
It's time to build a Penguin Robot Eye!
(We'll build it from software!)
This is a Penguin robot big watchful eye that can see people walking around.
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!
Sign In or Register to comment.