This page is dedicated to those occasionally useful OOPic code ideas that I've come up with over time. The OOPic is a fascinating little board that can do some things remarkably easily, and other things are remarkably difficult. Proving that there is room in the world for yet more ideas! Unlike the Parallax Stamp, which I have used a LOT the OOPic can control many hardware functions in real time unsupervised like hobby servo control, PWM, serial I/O (on only one set of pins) and many more. The price is very inexpensive which makes it excellent to handle many of those little housekeeping functions that are so annoying like sensor maintanance, servo control and DC motor control. For some projects, it can do the whole lot. Here are a few things I've used mine for. See also Godzuki for a very elaborate set of robotics tasks done entirely by the OOPic controller
This code shows how to use a serial LCD display and how to format numbers to send out and not get those annoying leading zeros. Note, this is for a serial LCD, not a direct connection one.
This file shows how to connect a Polaroid Sun 660 SONAR unit that is hacked from a Polaroid camera. I show the details of the hacking over HERE
This code controls a very simple robot that uses one of my IRPD boards, a bumper and hacked hobby servos. The bumper is an event that is fired by a VC, the rest of the code just runs normally.
This code takes up where the previous eventbot code left off. The wander, irpd and bumper behaviors are all events called on specific internal or external occurances. The wander event is kicked off every second by the internal timer and will only run if nothing else is running, the irpd event is fired whenever anything is detected by the IRPD board and the bumper event is run when the robot runs into something.