Shop OBEX P1 Docs P2 Docs Learn Events
CMUcam code? — Parallax Forums

CMUcam code?

RobofreakRobofreak Posts: 93
edited 2009-01-26 00:16 in Propeller 1
Hello all,

I'm about to buy a CMUcam for my bot cuz I'm getting kind of bored with just a range finder. I have all the needed documentation from the Parallax site, but my robot uses the Propeller. Well as you've probably guessed while looking at the title, I would like some code for controlling it if there is·any that someone's already made. It's easier than doing the code myself lol.gif

Thanks!
Austin

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,

Robo-freak.com
www.livesoundforum.com

"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com

Comments

  • Tom CTom C Posts: 461
    edited 2008-12-30 02:40
    Robofreak,

    Try Steve Norris' website: http://www.norrislabs.com/Projects/Huey/index.html

    Huey uses a Propeller to process the CMUcam2+ output and track colors. I suspect that you can adapt the CMUcam2+ code for the CMUcam or at least develop a usable algorithm.

    Hope this helps.

    Regards,
    TCIII

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    If you are going to send·a Robot·to save the world, you·better make sure it likes it the way it is!
  • RobofreakRobofreak Posts: 93
    edited 2008-12-30 05:17
    Hey thanks Tom, looks good. I found the program and it definitely gives me a guideline on how to build a similar one for the CMUcam1.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Austin Bowen,

    Robo-freak.com
    www.livesoundforum.com

    "One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com

    "Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha
  • Tom CTom C Posts: 461
    edited 2008-12-30 16:29
    Robofreak,

    If you develop the Spin code for a CMUcam1, can you post it in the Propeller Object Exchange for all to use?

    Regards,
    TCIII

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    If you are going to send·a Robot·to save the world, you·better make sure it likes it the way it is!
  • RobofreakRobofreak Posts: 93
    edited 2008-12-31 00:51
    Tom,

    If I can get it to work, yes I will definitely post it. But it might be a while, I have FIRST for the next 3 months and it's going to be crazy so I *might* wait to buy the camera afterwards. (That's a big "might" haha) I have plenty of resources to make the program, like the program for the CMUcam2 in that link you sent. In fact I've already got a bit of my program already started, so I'll probably have the program done before I get the camera haha

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Austin Bowen,

    Robo-freak.com
    www.livesoundforum.com

    "One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com

    "Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha
  • Tom CTom C Posts: 461
    edited 2009-01-01 00:45
    Robofreak,

    I ran across·the attached·CMUCam Spin code on Joe Lucia's website (http://irobotcreate.googlepages.com/propeller).

    Maybe this will save you from having to write original code for your CMUCam project.

    Regards,

    TCIII

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    If you are going to send·a Robot·to save the world, you·better make sure it likes it the way it is!
  • RobofreakRobofreak Posts: 93
    edited 2009-01-02 06:08
    Tom,

    I analyzed his program, and I've come to find that it's actually fairly similar to mine lol
    All the programs for the CMUcam that I have seen require the use of FullDuplexSerial. My program is using my own serial communications object (a "little brother" to one of my others) that is smaller and of course (because I don't have the skills to match Parallax's programmers haha) simpler than FullDuplexSerial, and minus the assembly. Mine also doesn't require the use of a cog to run, because I'm really tightfisted about program space and running extra cogs haha ...but yes that does mean that there is no constantly updated RX buffer like FullDuplexSerial [noparse]:([/noparse]

    We'll see how it turns out...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Austin Bowen,

    Robo-freak.com
    www.livesoundforum.com

    "One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com

    "Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha
  • RobofreakRobofreak Posts: 93
    edited 2009-01-06 19:14
    Alright I've ordered the CMUcam, much sooner than I expected haha it should be here in (I'm guessing) 3 - 5 days. I need the camera to finish my program, too. I have the transmitting part of it complete, I just need to write the receiving part, and I need the camera for some experimentation.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Austin Bowen,

    Robo-freak.com
    www.livesoundforum.com

    "One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com

    "Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha
  • RobofreakRobofreak Posts: 93
    edited 2009-01-24 23:03
    Alright, I'm done with the program! I've put it in the obex, just do a search for "CMUcam" and it's called "CMUcam1 driver", if anyone's interested. Qs and comments welcome!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Austin Bowen,

    Robo-freak.com
    www.livesoundforum.com

    "One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com

    "Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha
  • RobofreakRobofreak Posts: 93
    edited 2009-01-24 23:06
    http://obex.parallax.com/objects/407/

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Austin Bowen,

    Robo-freak.com
    www.livesoundforum.com

    "One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com

    "Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha
  • M. K. BorriM. K. Borri Posts: 279
    edited 2009-01-26 00:16
    If it helps any, here's an implementation whereby the Prop talks to the OV6120 sensor directly.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://forums.parallax.com/showthread.php?p=650217

    meow, i have my own topic now? (sorta)
Sign In or Register to comment.