Shop OBEX P1 Docs P2 Docs Learn Events
Choosing a BS — Parallax Forums

Choosing a BS

fma38fma38 Posts: 42
edited 2007-05-22 21:29 in BASIC Stamp
Hi,

I'm new to the BS world, and I need some advices. I plan to use a BS to drive an automatic pano-head, to make high resolution panos. The idea is to use an astronomic mount, like this one:

http://www.telescope.com/shopping/product/detailmain.jsp?itemID=227203&itemType=PRODUCT&iMainCat=6&iSubCat=24&iProductID=227203&relateInfo=1&add=yes#tabLink

Instead of a telescope,there will be a digital camera.

I need to drive 2 motors (I think it uses DC motors), and readback incremental encoders. The process is to turn the head in the horizontal axis with a precise value (accuracy < 0.5°), take a picture, then turn again. At the end of a row, turn a few degres on the other axis, and begin a new row.

My first idea was to use a Palm to make high level interface, communicating with the BS through IRDA. But maybe the BS can drive a little keyboard, and a LCD display.

What device should I choose? I plan to implement a PID to drive the DC motors, maybe through the Pololu driver. What power do I need? Is the cheaper BS (BS2, in fact) enough? Do you know if such project (or close) already exist? Where can I find routines for LCD/keyboard driving?

Thanks for your help,

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Frédéric

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-05-20 19:32
    Less expensive than a stamp would be a propeller proto board. You would have much more computing power than a stamp too.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • fma38fma38 Posts: 42
    edited 2007-05-20 19:53
    Well, I don't know if it is a good choice, has it has many features I won't use... I also omit to say that I develop under Linux... Is compiler available under this OS?

    BS seems to me a better choice, as they are very popular.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Fr
  • Mike GreenMike Green Posts: 23,101
    edited 2007-05-21 13:04
    1) Regarding the Propeller, the only compiler available requires Windows XP (or Windows 2000). I've had limited success running the compiler under Crossover Desktop which is an enhanced commercial version of Wine. I'm using the MacOS version of Crossover Desktop, but I suspect the Linux version would work just as well. The downloading to the Propeller doesn't work, but there's a downloader written in Python that should work. I also get a protection violation when trying to open a volume for browsing from the IDE, but, if you ignore that, the actual browsing seems to work fine.

    2) There's a tremendous amount of documentation available on the Stamps. On Parallax's website, look under Downloads. You'll see "Stamps in Class tutorials" and "Nuts and Volts articles". There are specific examples for using a 4x4 keypad in a Nuts and Volts article. I don't have the link currently, but it wouldn't hurt to scan the articles' titles and look at a few of them.

    3) Most webstore pages in Parallax's online catalog have links to extensive documentation for the product involved. One of the LCD displays (www.parallax.com/detail.asp?product_id=30058) has a keypad interface built-in. The Stamp uses two pins to communication with the display using an asynchronous serial protocol.

    4) For any kind of relatively open-ended project like yours, I'd use one of the BS2p models (BS2p/pe/px) because of the extra statements supported and the additional memory (compared to the BS2).

    5) An excellent website for information on math / interfacing with sensors / timing information is www.emesystems.com.
  • fma38fma38 Posts: 42
    edited 2007-05-21 17:18
    Thanks for your answer! I've just ordered a BS2Px, to be able to test all features ;o)

    I plan to use a Pololu Dual Serial Motor Controller to drive the motors, and a LS7366 (quadrature decoder/counter) to read encoders. About the LCD, the one you suggest is a little bit expensive for my needs; a 2x20 chars is enough. For the keyboard, I will make a simple-but-intuitive interface, using only 2 push-buttons (OK/Cancel), and a rotary encoder to increase/decrease input values.

    What do you think about?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Fr
  • FranklinFranklin Posts: 4,747
    edited 2007-05-21 17:45
    I've seen a couple of projects that used a rotary encoder that had a switch built into the encoder. You rotated the encoder to the variable you wanted to change and pressed, you then could adjust the value until you pressed again where it would go back to the previous menu.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • fma38fma38 Posts: 42
    edited 2007-05-21 18:26
    A rotary with built-in push-button? Sounds good! But I don't know where to find such thing...

    Well, I will first order the Pololu DC motor driver, and start to play arround. The user interface will be the last thing I will implement, as I discovered that BS2 can read/write values through the program/debug serial line [noparse]:o[/noparse]) This is very usefull to make quick tests!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Fr
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2007-05-21 22:14
    fma38--

    Although all the folks that replied know far more about the Stamp world that do I, I read the brief specs provided at the site you posted. To me, it almost seems as if you could hack the hand controller to interface to a BS2p version Stamp·to do everything you need. I base this·thought on the statement describing the product mentioned at the site you posted:·"Four directional buttons on the convenient hand controller allow you to quickly slew your [noparse][[/noparse]camera]" to the place you want. Do the four directional·buttons imply left, right, up, and down? If so, it sounds like all you need to do is buy described on the web site and a Stamp with a breadboard area and study and work and study and work night and day and night and day until the thing does what you want.

    Sounds easy, doesn't it? (It probably is a lot easier than I implied above!)

    Good luck!

    --Bill

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
  • fma38fma38 Posts: 42
    edited 2007-05-22 05:38
    That was my first idea, but it will be very difficult to drive it to a specific angle (we need an accuracy < 0.5°), as I won't have any feedback from the encoders...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Frédéric
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2007-05-22 13:24
    fma38--
    I am going WAY OUT on a limb here, but can you hack into the encoder feedback, somehow?
    In my investigations, it seems to me that one may attain great repeatability with gearmotors and commercial-grade encoders. You can obtain even better accuracy with steppers and commercial-grade encoders. The problem is the expense. Gearmotors may be had rather cheaply. The encoder for the gearmotor will cost about the same (more, maybe) as the gearmotor. The controller for the gearmotor--if the motor draws, say, more than 3 amps--will be costly.
    In the stepper-world, about the same·situation exists. You can easily achieve great repeatability, but if you want to move something the least bit heavy at anything other than VERY slow speeds, you have to look at NEMA 23 (at least) frame size motors. For example, I have a heapie-cheapie NEMA 17 frame size stepper which I equipped with a 3:1 timing belt reduction that turns a rotary table. I am not sure I could turn the table without the 3:1 reduction. When you step up to a NEMA 23 size motor, torque problems tend to pretty much disappear . . . as far as my application and your application--which seems highly similar, go. With the proper NEMA 23 stepper, I can easily turn the table directly, thereby eliminating the gear reduction via the timing belt. (And, I think I have found·a source for inexpenisve steppers in higher torque capacities, along with the appropriate controllers.)
    By the way, although my project is a little less than half finished, it might be ideal for what you are trying to do. I will have two rotary tables mounted one on the other at 90 degrees to each other. You could 'take a picture' slew left or right and take another picture, then raise the second table up a bit and take a picture and then slew the other way. Even the low-end mill tables that I am using are of far higher precision than anything you and I are likely to build.
    ·
    If you choose to post, I will watch your progress with great interest. Plus, if all my mistakes interest you, I have no problem sharing them!
    ·
    --Bill

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
  • fma38fma38 Posts: 42
    edited 2007-05-22 15:33
    Bill, I'm interested by your project; there are always good ideas to learn! Where can I find some documentation? Do you have a related web site?

    About our project, there are in fact 2 projects of motorized panohead. 1) a pro version 2) a cheap version. For the moment, I'm working on the second one, based on the astronomic mount. For this one, I will try to keep as much material as I can. But for the pro version, it will maybe build from scratch, and then, stepper motors with rotary tables is one of the solution I'm thinking about (I'm using such things for my work, but very expensive ones, because very accurate, not needed here. What are yours?).

    We started a wiki page for the cheap version (but in french):

    http://fr.wiki.autopano.net/T
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2007-05-22 19:04
    Fr
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2007-05-22 20:24
    Fr
  • fma38fma38 Posts: 42
    edited 2007-05-22 21:29
    Thanks for all these links! Interesting things for a pro motorized panohead... I keep this on my bookmarks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Fr
Sign In or Register to comment.