Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.

Microchip controlled, Laser pen, twin servo thingy.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-22-2010, 07:38 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default Microchip controlled, Laser pen, twin servo thingy.

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

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
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #2 (permalink)  
Old 09-22-2010, 08:50 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by taximania View Post
... great for chasing the cat or dog around ...
Ah... now I know what basic4ppc is good for...


specci48
Reply With Quote
  #3 (permalink)  
Old 03-14-2011, 03:00 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 312
Default

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
Reply With Quote
  #4 (permalink)  
Old 03-15-2011, 05:40 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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

Any questions, feel free to ask. I'll answer when I can
Attached Files
File Type: zip Laser Project.zip (97.3 KB, 32 views)
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #5 (permalink)  
Old 03-17-2011, 09:03 AM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 312
Default

Hi Taximania

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

Regards
Michael
Reply With Quote
  #6 (permalink)  
Old 03-17-2011, 09:08 AM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 312
Default

Hi Taximania

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

Regards
Michael
Reply With Quote
  #7 (permalink)  
Old 03-17-2011, 04:22 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

ControlEvents was one of my libraries but it is now obsolete. Now it is better to use the Door library to add events to controls
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #8 (permalink)  
Old 03-17-2011, 05:02 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I don't think that lib is actually used
I was looking for a way to trigger events, but probably coded it differently.
Remove it from the .sbp and all should be well.
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #9 (permalink)  
Old 03-18-2011, 12:08 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 312
Default

Thank you very much gentlemen

Regards
Michael
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Twin runtime-generated tables with diferent behaviours Cableguy Bug Reports 3 06-11-2010 01:59 PM
Twin runtime-generated tables with diferent behaviours Cableguy Questions (Windows Mobile) 7 06-09-2010 05:43 PM
GPS controlled plane colin9876 Questions (Windows Mobile) 6 04-23-2009 09:27 PM
Servo Motor Control ceaser Chit Chat 3 02-24-2009 07:03 PM


All times are GMT. The time now is 12:41 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0