cwhaticando.com home DIY • Do it Yourself • Weekend Projects • BIG Projects • LITTLE Projects
become a creator share your how-to  

 

 

close window

How Do I Share My How-To?

It's really pretty easy, pictures and videos of the steps it takes to complete your project are stored on YouTube and picasaWeb. Once your "final" video is stored on YouTube, your project will show in the listings on the site. All this is controlled by our Creator's Tools. Basically, you start a project by writing up the project idea.

Step 1. Sign up for a free Creator's Account to gain access to the Creator's Tools.

Step 2. Login

Step 3. Push the "Create New Project" button on the Creator's Tools. Make a name (you can change it later) for your project. And describe your plans to use as notes to guide the creation of the steps.

Step 4. When you've finished providing all the steps to your project, shooting the videos and saving to google video via the Creator's Tool Panel, you are ready to write the introductory paragraph with an interesting story of how you did it, or how you do it in the case of a professional services presentation.

Step 5. Last but not least create and upload the video (to YouTube) which is the video that will be used to summarize the project. If you were building a robot, this final video would show the robot running around, doing fun things that will inspire others to create their version of your project.

That's it... Watch the views and ratings for your project pile up along with the sales commissions! Or get a customer because you showed how you remodel a house.

close window

FAQ About Becoming A Creator

Q. Why would I go to all that work, building something, then put it on a website like C What I Can Do? What's the point?

A. Actually, there are a couple of forms for a reward:

  1. You get rated as an author. Lots of good ratings looks good on your resume.
  2. You Make Money!

YOU Make Money when someone buys a part from You, and builds it into Their Version of your project. And, if YOU have a basement full of red leds and build a red led project - we'll send you customers who are inspired to build your blinking light device. If you sell PC boards, you may link to your own sales. Or sell your own kit online through your e-Bay store.

The same with books! We encourage project builders to make books. In fact, CwhatIcanDo is a great place to get rated as an author. 'Betcha get a better deal from your publisher...

Of course, it is possible that your project won't make you any money, because someone built something even cooler than yours (maybe even inspired by your project.) Maybe you just want to show your version of another project... It's done in the spirit of the web: Sharing ideas. And it's fun building a project on your own.



picAxe 14m Motor Driver Board: Make Your Own      ...     32157 Views
Author's name: WeRbots       

Both motor speed and direction are easily controlled using the picAxe 14m. The speed and direction motor drives most small DC electric motors up to 1A stall current. It uses the Toshiba TA 8080K to drive the motor. This is a chance to exercise the capabilities of the 8080. Yes, the 8080 which gives some of us flashbacks to the early microprocessor days!

Steering is controlled by using a servo. In the buggy bot, this servo turns steerable front wheels. While you can also use the servo to steer the drive wheels as in the tricycle robot base project.

What is a picAxe?

A picAxe is a pic microcontroller (In this case a PIC16F684.) with a built-in BASIC Language Interpreter. Yes, it eats up a bit of memory and can do only a limited number of things. But you cannot beat a pixAxe for experimenting and playing around. If you use them correctly, they can serve well. But you may need to dedicate the chip. For example, dogBot used a picAxe 14m just like this project. It could drive Servos, OR Drive Electronic Motor Controllers. Trying to get it to do both is pushing the capabilities.

When you need to use more of the chips capabilities, you get a bigger chip, or you program the PIC16F684 in a compiled language instead of as a picAxe.

picAxe 8m`s are other examples, while the chip itself can decode IR signals, the limitations on number of pins restrict it from many applications. An m8 can control a motor, but little else. The 14m in this project uses all the available outputs and could still use more. Achieve complexity by using more than one chip. (Or go straight to assembly language or C compiler which gives you much more memory, but makes programming difficult.)

Author's Assigned Keywords:    Robot Motor Control    Robots    picAxe    picAxe 14m    robotics

  (ad)
Schematic of Buggy Controller     
Here is the simple schematic for the electronic control part of the Buggy Bot. Notice no inputs hooked up at all. You can store and execute driving patterns.

Ultimately, you will want to hook up the interrupts, add ADC (to keep track of operating voltage, read CDS cells, etc). There are no inputs hooked up what so ever.

Note C1, this, according to the spec sheet, should be mounted as close as possible to the IC...

Software Listing     
The figure shows the wiring for the communications with your pc for the picAxe chip.

Below: The program listing.

`-----------------------------------------------------------------------------
`------------------------------------------------------------------------------
`
` ------------------------------------
` picAxe Servo Steer Electronic Motor Drive
` ------------------------------------
`
` Figure Eight Pattern
`
` Created by: Jim Huffman
` Notes: GP2Y0A02YK range finder capability
` Rev 00 03/01/08
` Rev 01 03/02/08
` Rev 02 03/02/08 Drive a figure 8 then long pause
`
` -------------------------
` Initialize System Wide Values
` -------------------------
`
` Directives
` Select and initialize chipset
#picaxe 14m
' #terminal 4800

` System resources
symbol RtLED = 0 `(pin 13) o0, serialOut
symbol LtLED = 1 `(pin 12) o1
symbol Spkr = 2 `(pin 11) o2
symbol Steer = 3 `(pin 10) o3 servo Horizontal
symbol MTRa = 4 `(pin 9) o4
symbol MTRb = 5 `(pin 8) o5
symbol ADCin0 = 0 '(pin 7) i0 also interrupt
symbol PB1 = 1 `(pin 6) i1 interruptable push button
symbol i2 = 2 `(pin 5) i2
symbol i3 = 3 `(pin 4) i3
symbol ADCin4 = 4 `(pin 3) i4 volts
symbol srlIn = 2 `(pin 2) i5
` (pin 1 Vdd, pin 14 = Vss)

`
` Delay to slow down servo motion (40ms default)
symbol servo_delay = 200

` select for your servo setup normally 0.5 to 2.3 ms
symbol minSteer = 75 `rightest
symbol ctrSteer = 130 `center Side to Side
symbol maxSteer = 225 `leftist

` register allocations
symbol side2sideCnt = b0 `= w0
symbol speed = b1 `= (w0)
symbol xCount = b2 `= w1
symbol lrRangeRight = w2
symbol lrRangeLeft = w3
symbol IRstor = w4 ` used hereafter in the IR reading stuff
symbol maxStor = b10 `= w5
symbol xStor = b11 ` (w5)
symbol yStor = b12 `= w6
symbol alrmCnt = b13 `=(w6)

` motor drive truth table:
` H H Brake
` L L Open
` H L fwd
` L H rev
`
`--------------------------------------------------------------
` -------------------------
` Actual Code starts Here
` -------------------------
`---------------------------------------------------------------
`
`
init:
pause 200
` center the servo head
servo Steer, ctrSteer
pause servo_delay
high Steer

` horn honk
alrmCnt = 3
gosub evasion
pause 200
alrmCnt = 1
gosub evasion

` The all important "Bail Out" pause - gives you time to clear hardware memory
pause 2000

` Select the width of the looking around of the head
lrRangeRight = ctrSteer + 25 `82 `setup for width of view
lrRangeLeft = ctrSteer - 25 `

` define the places where this baby needs to be on alert
symbol ledgeEdge = 40 ` if the number gets smaller, yall are fallin'
symbol touchMeNot = 70 ` I see things from this point on...
symbol backUp = 90 ` react to the thing - backup

` setint %00000001,%00000001 ' note on 14m, only 0,1,2 used, 3 and 4 ignored in setint operation
` --------------------------------------------------------
` Look Around for open spot to go to...
` 2 Degrees of freedom = up/down right/left


` sertxd("The value of IRstor is ",#IRstor,13,10)
pause 100

snoop:
` Turn Right
gosub rtBlinker
servo Steer,lrRangeRight ` move servo to one end
pause servo_delay
high Steer
` fwd
gosub goFwd
pause 2000 `for awhile

` Turn Right
gosub rtBlinker
servo Steer,lrRangeRight ` move servo to one end
pause servo_delay
high Steer
` fwd
gosub goFwd
pause 2000 `for awhile



` Turn Left
gosub ltBlinker
servo Steer,lrRangeLeft ` move servo to one end
pause servo_delay
high Steer

` left
gosub goFwd
pause 2500

` Turn Left
gosub ltBlinker
servo Steer,lrRangeLeft ` move servo to one end
pause servo_delay
high Steer

` left
gosub goFwd
pause 2500

` stop with brake
high MTRb,MTRa

goto snoop

evasion:
` Ray Gun sound
for xCount = 1 to 200
pulsout Spkr, xCount
next xCount
`pause 10
dec alrmCnt
if alrmCnt < 1 then
return
else goto evasion
endif
low Spkr
return

interrupt:

for side2sideCnt=1 to 10
pulsout RtLED, 600
pause 50
next side2sideCnt
pause 3
setint %00000001,%00000001
return


rtBlinker:
for xCount = 0 to 4
high RtLED
pause 250
low RtLED
pause 250
next xCount
return

ltBlinker:
for xCount = 0 to 4
high LtLED
pause 250
low LtLED
pause 250
next xCount
return

goFwd:
` fwd
high MTRa
low MTRb
return

goRev:
` rev
low MTRa
high MTRb
return



Controller     
These are the deets
become a creator
close window

It's Easy To:

C - What - I - Can - Do

• Sign up - Get ID and Password

• Plan and Create a Project That Someone Might Enjoy and May Even Want to Build

• Link to your creation on your favorite social networking site or blog.

• Become famous! Because your projects get a lot of Hits!

 

No parts list with this project. Scan the 'Junkbox Reviewer' below! Find projects by clicking on their parts. Got something in your junkbox? Here's your spot to find something fun to make or build!

 

Junk Box Reviewer
Itching To Start Building A DIY Do It Yourself Project? Got Some Parts of Your Own in your JunkBox? Find projects by Surfing' the Parts List!
  
  
  
  
  
 
Andrei And Jim
Web Developers
Visit the project:

CwhatIcanDo Website


 
  
  
 
L 298 Compact Motor Driver Kit
Solarbotics
Visit the project:

Build the L298 H-Bridge Motor Control


 
  
 
Account On CwhatIcanDo
CwhatIcanDo.com
Visit the project:

HELP :: How To Create a Project


 
  
  
 
Microrobot Avoider Jr
Microrobot
Visit the project:

Robot Man: With Robot Demos


 
  
  
  
 
Brilliant Blue/Green LED
Surplus
Visit the project:

Converting a Flashlight to LED


 
  
 
PICAXE 8 Pin Motor Driver Board
SparkFun
Visit the project:

Easy Cheap Robot Weekend Project


 
  
 
Tracked Vehicle Chassis Kit
Tamiya
Visit the project:

Build Your Own Track Drive Robot


 
  
  
 
PICAXE 8 Pin Motor Driver Board
SparkFun
Visit the project:

Build Your Own Track Drive Robot


 
  
 
Infrared Proximity Sensor Short Range - Sharp GP2D120XJ00F
Sharp
Visit the project:

Build Your Own Track Drive Robot


 
  
 
PICAXE 8 Pin Motor Driver Board
SparkFun
Visit the project:

Build a Robot In 5 Minutes


 
  
 
Infrared Proximity Sensor Short Range - Sharp GP2D120XJ00F
Sharp
Visit the project:

Build a Robot In 5 Minutes


 
  
 
Gear Motor 2 - 224:1 Offset Shaft
SolarBotics
Visit the project:

Build a Robot In 5 Minutes


 
  
 
4 X AA Cell battery holder plus on/off switch
Powerize
Visit the project:

Build a Robot In 5 Minutes


 
  
 
PICAXE 8 Pin Motor Driver Board
SparkFun
Visit the project:

picAxe 8 bit Motor Controller: Look Inside


 
  
 
Infrared Proximity Sensor Short Range - Sharp GP2D120XJ00F
Sharp
Visit the project:

picAxe 8 bit Motor Controller: Look Inside


 
  
 
4 Section In-Ground Batting Net
battingnets.com
Visit the project:

Home Installation of a 4 Section In-Ground Batting Cage


 
  
  
  
  
  
  
  
 
Transformer 1k:8 ohm
xicon
Visit the project:

Pong)))))


 
  
 
PICAXE 8 Pin Motor Driver Board
SparkFun
Visit the project:

Robots Almost Anyone Can Afford


 
  
  
  
 
Morphibian Land Shark
Kid Galaxy
Visit the project:

Morphibian Land Shark


 
  
  
  
  
  
  
 
Parallax (Futaba) Continuous Rotation Servo
futaba (modified)
Visit the project:

How To Build a Robot in a Box


 
  
 
Parallax (Futaba) Standard Servo
futaba
Visit the project:

How To Build a Robot in a Box


 
  
  
  
 
PICAXE 8 Pin Motor Driver Board
SparkFun
Visit the project:

Weekend Project: Get Started With Robots


 
  
  
 
L298 Compact Motor Driver
Solarbotics
Visit the project:

Build a Respectable Autonomous Robot


 
  
 
Infrared Proximity Sensor Short Range - Sharp GP2D120XJ00F
Sharp
Visit the project:

Weekend Project: Get Started With Robots


 
  
  
 
PICAXE 18 Pin Power Project Board
picAxe
Visit the project:

Build a Robot From A Power Wheelchair


 
  
 
PICAXE 18M2 Microcontroller
picAxe
Visit the project:

Build a Robot From A Power Wheelchair


 
  
  
  
  
  
 
Solderless Breadboard For Uno
Jameco Valupro
Visit the project:

Arduino Development VS PicAxe Development


 
  
 
USB 2/0Video Capture Device
SIIG
Visit the project:

On Line Neighborhood Watch


 
  
  
  
 
Eurocard IC Pattern
Velleman
Visit the project:

On Line Neighborhood Watch


 
  
 
40 kHz Weatherproof Transducer
Audiowell Electronics
Visit the project:

Pong)))))


 
  
 
PICAXE 18M2 Microcontroller
picAxe
Visit the project:

Autonomous Robot PVC "Pickup Truck"


 
  
 
Power Amplifier
ST Micro
Visit the project:

Pong)))))


 
  
  

By Creators
WeRbots: i-Mon App
WeRbots: Pong)))))
By Keywords
Ajax: battle
Android: battle
BEAM Robots: battle
Convert Your Flashlight to LED: Converting a Flashlight to LED
How To Build Cheap Bots: Robots Almost Anyone Can Afford
How To Build Cheap Bots: How To Build a Robot in a Box
How To Website: Tour This Website
How To Website: CwhatIcanDo Website
Infrared Proximity Sensor: Build Your Own Track Drive Robot
Quick Build Robot: Build a Robot In 5 Minutes
robot bending: Morphibian Land Shark
Robot Motor Control: Robot Basics
Robot Motor Control: Buggy Bot: Wire Frame Bot Body
Robots: Robot Basics
Rumble Bot Conversions: Robots Almost Anyone Can Afford
Select or type in a Keyword: Converting a Flashlight to LED
web 2.0 site: CwhatIcanDo Website
Weekend Project Robots: Easy Cheap Robot Weekend Project

Click To Expand / Contract Menus. View by Creator, Category, Keywords or Number of Views.

©Copyright 2008 - , CwhatIcanDo.com, all rights reserved.