Shop OBEX P1 Docs P2 Docs Learn Events
My stab a Cheap Robotics — Parallax Forums

My stab a Cheap Robotics

Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
edited 2013-02-12 12:18 in Robotics
I'm almost ready to begin assembly on a cheap robot.

This bot uses several ideas I've gleaned from forum members here, so I'd like to give credit where credit is due...

Servo motors and wheels (Credit goes to erco. Thanks erco for turning me onto this!)
Posterboard for a tail dragger and base. (Credit to Duane. What an awesome idea. Stealing this to combine it with two sided 3M adhesive tape & stick-on velco)
FemtoBASIC (Credit again to Mike Green.)


Here's my BOM so far... All of this is sourced (or on it's way) from Propellerpowered

* Quickstart with Servo & More board $25.00 Will be replacing Servo&More with a board more geared toward this next month.
* 2X 4-wire f/f cables $2.98 Expected in stock within two weeks
* HR-SR04 Ultrasonic sensor $3.49
* 2X ULN2003 Driver Board w/ Stepper Motor $5.98
* Mini Breadboard $2.49
* Male headers $.75
* 4pin extended male headers $.50 Expected in stock within a week.
* Battery Case w/ Switch $2.49
* Plastic wheels $3.99 Expected in stock within a week.

This bot is just shy of $50.00 I'm working on Bluetooth/IR controls.

Everything is starting to come together and I'm beginning to see some action from BASIC on my desk. :)

Not bad for a guy who fumbles with anything mechanical!

Jeff
1024 x 503 - 51K

Comments

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2013-02-05 21:04
    Attached is a modified copy of Mike Green's BoeBotBasic.
    -Modifications intended for a Bluetooth or Wifi module, an HC-SR04 module, and 2 5v stepper motors.

    I've added the following commands:

    HCSR04 {returns the current range of the HC-SR04 sensor} {example: PRINT HCSR04}
    FORWARD {both stepper motors forward 1/4 turn}
    BACKWARD {both stepper motors backward 1/4 turn}
    RIGHT {right stepper motor forward 1/4 turn}
    LEFT {left stepper motor left 1/4 turn)

    Example Basic Code:
    10 PRINT HCSR04
    20 IF HCSR04 > 100 THEN FORWARD
    30 IF HCSR04 < 100 THEN BACKWARD
    40 IF HCSR04 < 100 THEN RIGHT
    50 GOTO 10
    

    I'm having a little trouble with my stepper motor code in reverse, but wheels are expected in the morning and hopefully I can troubeshoot this over the weekend.

    Jeff
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2013-02-05 21:04
    Wheels came in today!

    I'm using Scotch band (holds up to 2lbs) mounting squares to hold the motors. They are not moving!
    I'm using some walmart "hook & loop" (velcro) squares to hold everything on the top on.
    The caster wheel is a Lowes $3.00 1"-1/4 wheel. (I'm hunting for a better option here)

    I had just enough time to get things mounted before I have to go help someone paint today.
    527 x 386 - 78K
    354 x 370 - 61K
    682 x 517 - 107K
    622 x 570 - 93K
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2013-02-08 13:11
    Waiting for wheels to arrive in the morning.. Added a modified version of BoeBotBasic to the second post which seems to work.

    The real rest test will be when it's all together and rolling across my desk.

    Jeff
  • TtailspinTtailspin Posts: 1,326
    edited 2013-02-08 18:32
    ...The real rest will be when it's all together and rolling across my desk.
    Jeff
    There is no rest,.. :)

    A thing like this could keep you up all night, wondering to yourself, "could I have done just a little better".
  • prof_brainoprof_braino Posts: 4,313
    edited 2013-02-09 00:07
    Very cool. This kit of parts is a great starting point, particularly for a first time builder. The best part is, it is upgradable. folks could add bump sensors, IR sensors, different motors or servors, anything they want. I'll be interested to see what the various upgrade paths turn out to be.

    This is nearly the same parts list as the LittleRobot demo for propforth. http://code.google.com/p/propforth/wiki/LittleRobot
    I will be sending folks your way when they ask about buying a kit.
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2013-02-09 08:52
    Wheels arrived today.. pictures added to the third post above.

    Jeff
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2013-02-10 21:07
    It's alive!

    I create a step-by-step Instructable for the final revision of this robot here: http://www.instructables.com/id/Robotics-on-a-budget/

    There are several test programs in the Instructable, as well as a working version of the BASIC.


    EasyRobot.jpg
    1024 x 1087 - 148K
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-02-10 21:55
    It's great to see another inexpensive Propeller robot.

    Do you have wheels in stock? (I couldn't find them at PropellerPowered.)

    It would be great to see a video of this in action. (Preferably completing a figure 8.)
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2013-02-10 22:05
    I'll have the wheels in stock sometime mid morning..

    Edit: Wheels listed: http://propellerpowered.us/index.php?route=product/product&path=25_84&product_id=210

    You are right.. I should do some sort of video for it.. Probably tomorrow.

    Jeff
  • ercoerco Posts: 20,256
    edited 2013-02-10 22:24
    Nice, OBC! Great effort in record time.

    I do think your comment," Don't be alarmed by the number of wires you see in the photo!" is important. That's probably pretty scary for a beginner. Wiring mistakes are very easy to do and can cause permanent damage. I see lots of wonderful effort within the forum to simplify mechanical construction. But I haven't noticed any simpler wiring methods. That might also be worth investigating.

    I'm not trying to sound critical of your or anyone else's efforts. I came to this same conclusion when I saw the kid-targeted "LETRY" robot in Robot magazine. It's a simple preschool-looking robot from Taiwan with a top-mounted breadboard and random-looking mass of wires. :)

    http://www.letry.com.tw/welcomeeng.html

    A serious effort might forego a generic breadboard in favor of creating a custom robot PCB "shield" optimized for foolproof mechanical and electrical connections that would allow modular motors, sensors, processors and output devices to be swapped around.

    The old $50 TAB Robot kit was not reconfigurable, but it was unique in that it was a custom PCB on wheels. It came with a cheapie controller chip that had a few built-in routines, and it had an empty socket where you could plug in a BS2 to expand for custom programming. Not a bad system.

    This is mostly beyond the scope of a quick $50 kit for the time being, but hey, a guy can dream... :)
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2013-02-10 22:29
    Thank you erco!

    Actually, I don't think a custom robot PCB "shield" isn't too far outside of the realm of a $50 robot at all.

    I'm actually looking at the creation of a revised "Servo & More" board which would compliment the materials used in the Instructable as well as the typical continuous rotation servos, PING ))) and the like. Something I'll be pushing out when China comes back from holiday. There's no reason why a Quickstart with a board suited directly for this couldn't be a Propellerpowered item just like the Quickstart/QuickProtoLite board is now.

    Jeff
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-02-11 06:31
    erco wrote: »
    A serious effort might forego a generic breadboard in favor of creating a custom robot PCB "shield" optimized for foolproof mechanical and electrical connections that would allow modular motors, sensors, processors and output devices to be swapped around.

    I agree concur with Jeff's agreement that this is a good idea.

    Placing headers on a PCB in DipTrace is a relatively simple operation. There are lots of custom PCB houses that make it easy to have a custom PCB made.

    I know from helping some cub scouts wire a LED and resistor on a breadboard that there are a lot more ways to wire a circuit incorrectly than to wire it correctly.

    One problem with the modular approach is the connectors. Connector costs quickly add up. Polarized connections are even more expensive. I think one may be able to get away with normal 0.1" headers if they could be color coded or "keyed" in some way (by removing a pin and plugging a hole).
  • ercoerco Posts: 20,256
    edited 2013-02-11 09:09
    Duane Degn wrote: »
    I agree concur with Jeff's agreement that this is a good idea.

    I know from helping some cub scouts wire a LED and resistor on a breadboard that there are a lot more ways to wire a circuit incorrectly than to wire it correctly.

    OK, I'm relieved that my post wasn't perceived as too negative. :)

    Breadboards are great once you know some basics. But they certainly aren't foolproof for first-timers and mistakes can be made.

    If I have one misgiving about our beloved BoeBot, it's that the top mounted breadboard, long loose wires and IR sensors are usually "hanging out in the breeze". Bumping into an object, or even handling the robot can pull wires out or undo some critical optical alignment. Figuring out what suddenly went wrong (and how to repair) can be frustrating for a beginner.
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2013-02-11 10:14
    Construct criticism is always welcome and never perceived as negative!

    Another improvement to this bot would be to use 4-pin f/f wires instead of the singles you see in the photo. I have a bunch ordered for Propellerpowered, but the postman still has them.

    Jeff
  • Ken GraceyKen Gracey Posts: 7,392
    edited 2013-02-11 13:48
    erco wrote: »
    If I have one misgiving about our beloved BoeBot, it's that the top mounted breadboard, long loose wires and IR sensors are usually "hanging out in the breeze". Bumping into an object, or even handling the robot can pull wires out or undo some critical optical alignment. Figuring out what suddenly went wrong (and how to repair) can be frustrating for a beginner.

    I understand this problem well and agree with everything you say, erco! Could be a sensible product to combine the IR transmitter and receiver (along with any passives) onto a single module that could be used on a Boe-Bot, preventing the exact problem you cited. Such a system could be designed so that a wall doesn't knock the components around.
  • ercoerco Posts: 20,256
    edited 2013-02-11 15:00
    Attaboy, Ken. Appreciate you jumping in here. Many sensor assemblies could use a simple servo header & 3-wire connector: GND, V+, SIGNAL. IMO a good beginner accessory would be a multi (~8?) servo header daughterboard which plugged directly into a BoE. It would make 8 foolproof connections to IO pins beside the breadboard plus V+ and ground to provide 8 color-coded male servo connectors.

    I find myself using cheap servo extension cables for most everything these days, after clipping off the shroud around the male pins: http://www.ebay.com/itm/5X-RC-Servo-Extension-Cord-Cable-Wire-150mm-Lead-JR-/260809441897?pt=US_Character_Radio_Control_Toys&hash=item3cb9744269 Even those cheapies are suitable for low-current sensors and PWM signal to motor controllers: http://www.youtube.com/watch?v=rAgiYtwuWB4
  • TtailspinTtailspin Posts: 1,326
    edited 2013-02-11 16:36
    Wire management is always an issue for sure...
    Wire_Management.jpg

    The rats nest is even more scary when you know the project is "temporary"..
    WorkSpace.JPG

    All part of the fun.

    -Tommy
    1024 x 768 - 119K
    800 x 600 - 148K
  • ercoerco Posts: 20,256
    edited 2013-02-11 17:13
    Ttailspin wrote: »
    Wire management is always an issue for sure...
    The rats nest is even more scary when you know the project is "temporary"..
    All part of the fun.

    -Tommy

    For the experienced thrillseekers among us, half the fun is making connections that are 0.100" away from releasing the magic smoke...!
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2013-02-11 19:35
    erco wrote: »
    For the experienced thrillseekers among us, half the fun is making connections that are 0.100" away from releasing the magic smoke...!

    Oh soooo true... Just fried my Bluetooth module trying to reprogram it on another Propeller.. (missed my target by one 0.100" connection point!) Toasty hot!
    (Good thing I've got more of these at the shop... Inventory on Bluetooth modules tonight -1)

    Jeff
  • ercoerco Posts: 20,256
    edited 2013-02-11 20:06
  • ajwardajward Posts: 1,130
    edited 2013-02-12 12:18
    Ken Gracey wrote: »
    I understand this problem well and agree with everything you say, erco! Could be a sensible product to combine the IR transmitter and receiver (along with any passives) onto a single module that could be used on a Boe-Bot, preventing the exact problem you cited. Such a system could be designed so that a wall doesn't knock the components around.

    Excellent idea Ken! I built one several months ago just to get around the loose components.

    Amanda
Sign In or Register to comment.