Microchip controlled, Laser pen, twin servo thingy.

taximania

Well-Known Member
Licensed User
Longtime User
IF, LOL :)
Anybody is interested. My current project involves a modified laser pen, (it's controlled from a Microchip Pic), and 2 RC servo's, great for chasing the cat or dog around.

The main code is programed into the Pic chip, but fully configerable, and
controlled via serial/BT from within Basic4ppc on the Device.

Scope, limitless :sign0087:

To Do List:
Speed up the comms transmition rate.
Write my name 'Baz' on the wall with a laser pen.

Just ask if your interested :cool:
 

ceaser

Active Member
Licensed User
Hi Taximania

Is there any chance of sharing the code with me please? I want to use a modified version of my surveying software to send a small quad bike along a predetermined route. The quad bike is fitted with servo motors and controller.

With the modified software I can enter an alignment consisting of Y, X and Z coordinates. I can position the quad anywhere along the alignment and the program will immediatly tell me how far I am from the centerline and how far from the start of the alignment. This information I want to use to control the quad so that it can run along the alignment by controlling the srvo motors.

Regards
Michael
 

taximania

Well-Known Member
Licensed User
Longtime User
Hi Michael
I've zipped all my files for you. Minus any libs.
The 3 .sbp files are written in Basic4ppc V6.80

There are 3 full Microchip MPLAB IDE Projects. Each using a slightly different approach.
I was using a Microchip 16F887, not sure if it was Internal 4mhz, or External 20mhz. I think Ext 20mhz looking at the files.
If you use Int 4mhz you have to alter the delays in the serial routines.
Let me know if you have probs with that.
2 macro files are used for MPLAB, both are included.

Basically the PIC loops till a couple of values are received. These values indicate the position of the servo's. There's also an on off for the laser.
This was powered from the PIC.

If your using modified servos, eg, servos as motors(continuous rotation),
the values would represent the speed and rotation direction of the servo's.
But I'm sure you know that already :icon_clap:

Any questions, feel free to ask. I'll answer when I can :sign0087:
 

ceaser

Active Member
Licensed User
Hi Taximania

Thank you very much. I will keep you updated with my project.

Regards
Michael
 

ceaser

Active Member
Licensed User
Hi Taximania

Where do I find the lib called "ControlEvents"? I do not have that!

Regards
Michael
 
Top