Shop OBEX P1 Docs P2 Docs Learn Events
PropTank the Propeller powered tank. — Parallax Forums

PropTank the Propeller powered tank.

Martin_HMartin_H Posts: 4,051
edited 2013-01-01 17:00 in Robotics
A year ago I purchased a USB proto board on sale. Ifter working on it off and on for a year I finally have something to show.

My first step was a to solder headers to match the Propeller platform, some 3.9 kOhm resistors to create 5 volt tolerant servo headers, an SN754410NE, and some screw terminals. This created a fairly capable robot control board for about $25. Here's what it looks like:

IMG_20121201_104607.jpg

IMG_20121201_104602.jpg

IMG_20121201_104617.jpg


Most of my favorite robots use servos for locomotion, so I want this robot to use DC motors to branch out. An eBay purchase later gave me a vehicle where I mounted the board and a breadboard as you see above more below.

IMG_20121201_104625.jpg


I added a sensor plate to the front and I'm working on some programs now.
1024 x 1365 - 129K
1024 x 768 - 67K
1024 x 1365 - 207K
1024 x 768 - 74K

Comments

  • ercoerco Posts: 20,256
    edited 2012-12-01 10:24
    OK great, but there's a CONTEST on, Martin_H... and you're a prime mover! Time to get double duty out of PropTank. Throw some red & green LEDs on that bad boy and get into the Hack the Halls competition!
  • Martin_HMartin_H Posts: 4,051
    edited 2012-12-03 06:16
    OK you've convinced me. I've back burned this project and begun work on a Hack the Halls project. Great progress was made yesterday, unfortunately I will be in Dallas for several days this week, so progress will stall until this weekend. Look for an unveiling this weekend if I managed to avoid a large "honey do list" upon my return from Dallas.
  • Martin_HMartin_H Posts: 4,051
    edited 2012-12-27 20:14
    After a fair bit of work I got PropTank working. Below is the source code archive. You'll note I have reusable classes for whiskers, QTI sensors, and IR eye sensors. In addition my motor driver module conforms to the interface used to drive the Prop Boe-bot's servos. This allows is for me to write code once and share it between Prop Boe-bot and PropTank.

    Here's a video of the tank rolling around a table while avoiding edges and trying to push stuff off the table:

    Here's a video showing how it sees a can and steers towards it.

    Here's a source code archive:

    PropTankNavigate - Archive [Date 2012.12.27 Time 22.58].zip

    BTW I say a pox on acrylic again. The edge sensors had a few glitches and more than once the tank went over the edge. Three out of four times I caught it, but the fourth time it hit the ground and sustained damage to the acrylic top. I also smashed a cheap Chinese ultrasound sensor. After this video I'm laying off tables for a while.
  • TtailspinTtailspin Posts: 1,326
    edited 2013-01-01 12:35
    Hey Martin, great work. :thumb::thumb: It takes time to get things just the way you want them.:smile:

    So what kind of logic have you come up with to not get stuck in the corners?
    With "LightShowBot" "ChairLegDetection" system, depending on what part of the spring switch was bumped, would
    change direction randomly, and at the same time would only allow three turns in the same direction.
    On the other hand, I was not dealing with a cliff as an edge of the world situation... I guess I could add rear cliff sensing.

    Anyways, cool Tank Bot, thanks for sharing.


    -Tommy
  • ercoerco Posts: 20,256
    edited 2013-01-01 12:58
    Cool Prop tank, Martin_H! I can't help but think that it would be a hoot to have that running around on the dinner table for the big Christmas dinner, pushing everyone's wine glass and plateful of turkey & stuffing onto their lap...!
  • Martin_HMartin_H Posts: 4,051
    edited 2013-01-01 17:00
    Hey thanks for the kudos. PropTank definitely forced me to learn how to do PWM and DC motor control, so mission accomplished. But it will probably be like CBA and show up in other videos for various other projects.

    Tommy, right now I have a fixed action pattern which is why it can get stuck. I think you're right that a few coin tosses thrown into the code would solve this problem.

    Erco, a video like that would be a riot and might go viral. But my wife would not be happy about dishes and food all over the floor.
Sign In or Register to comment.