Let's Make Robots!

wheel encoders

It can easily avoid objects and go around them using the ultrasonic sensors. If the other supported sensors are added it can do many hobby oriented tasks.
Using a
The Rover 5 platform is relatively inexpensive and has great motors with integrated wheel encoders. The whole system is programmed through RobotBASIC communicating … Read more

Interrupts and wheel encoding... a beef with...

EDIT (June, 25th 2012):

The headache just doesn't go away...

Despite the photo below now I have a tube of black heatshrink shielding the sensor. It increase the analog output, for both cases (black and white). Regardless, the behaviour remains the same as without the shield when I move unto digital pins. I've been trying to deal with debouncing for the past couple of days with no luck.

// Playing with encoder digital readings


const int sensorPin = 7;


int lastColor;

int currentColor;

int count;