Software > Software

Programming Oopic 2


Hi there, well since the last time I posted a did alot of design and prototyping of my first robot. I thought I had prepared enough and ordered the parts. I downloaded the free latest version of OOpic 2 compiling software. I know what I want the robot to do but have no idea how to make it into code. I want it to drive forward then use a servo with the IR rangefinder attached and scan 180 degrees taking readings of obstacles. Then I want it to take the path with no obstacles in its way. Can anyone help?

read this yet?

Yes, I have.

Ok . . .

The sharp IR is an analog sensor, meaning the code to use a photoresistor is exactly the same. You plug the sharp IR into an ADC port, and read in the value just the same.

Sample code for interfacing OOPic to an IR Rangefinder:

And to understand how the servo works:

And for sample code using servos on an OOPic:

Thats what I was looking for thanks!!!


[0] Message Index

Go to full version