I recently got the idea that we could draw the path that a bot would take in a area.
This is just the start of a piece of software and is still quite rough.
What the software will give you the ability to do is.
1) Draw the path that you want the bot to take
2) While drawing it records the X and Y into a Database
3) Load the data back into the software to play it back.
Currently it allows you to draw a line on the screen and while drawing save the X and Y.
You can erase all the data and start fresh.
It will have the ability to save several different paths that you can name for loading back into the software.
It will also have the ability to scale the path to fit the area you are in.
I have made some changes to the software.
1) Added the ability to change the color that is drawn on the screen.
2) Added the ability to repeat the path
3) Changed from drawing dots on the screen to drawing small elipses on the screen, easier to see.
4) Added the ability for it to determine which direction you are moving. (Up/Down & Left/Right)
Next is to implement the servo function to control the bots movements
Here are some images of the wheeled test base I will be using for this.
Drive Train: 2 MG995 Servos converted to continuous rotation Purchased on Ebay for $10.25
Tires: Foam Rubber tires designed for model planes purchased from local hobby shop $6.00
Chasis: 1/8" PVC Plastic cut and heated and bent to fit.
Servo Controller: Veyron Servo Control Board 24 port purchased from DFRobot for $29.00
Power Supply: 3.7v LiPo 2800 mAH flat battery taken out of old android tablet.
Computer: Dell 8" Tablet bought from Ebay with cracked screen for under $50.00 with Windows 8.1.
Pivot Wheel: Caster wheel purchased from Harbor Freight for under $3.00
I have implemented the servo portion of the software and when the play button is pressed the data is loaded and the line gets drawn onto the screen. The servos respond to the line as it is drawn. Next is adding tolerance to the variance of a straight line to what would be turn left or right.
So moving along I am now working with the Ultrasonic sensor attached to a Arduino Nana that is then sending a signal to my .NET software. The software is quite crude at this point but is getting the job done.
It will detect the distance and I can adjust the distance level using a slider. When the bot is = or < the distance it will first stop and then backup and turnt o the right at this point it check for any objects in the way. If no object exist it will then go forward again. If a object does exist it will the turn left and once again check for a object and if no object is in the way it will go forward.
Here is a screen capture of the software.