Shop OBEX P1 Docs P2 Docs Learn Events
Draft for Review - PE Kit Lab - Propeller + PC Applications with ViewPort - Page 3 — Parallax Forums

Draft for Review - PE Kit Lab - Propeller + PC Applications with ViewPort

13»

Comments

  • HannoHanno Posts: 1,130
    edited 2009-05-23 00:59
    Hi Olav,
    Wow- I didn't know you could clock the Propeller with a crystal that fast? But I guess it's working for you...
    Others have gotten ViewPort to work with frequencies other than the standard 5MHz, pll16x. For the latest version of ViewPort you just need to make sure the timing information in the top file is correct- ie setting the "clkmode" "xinfreq" "clkfreq" variables to appropriate values for your setup. The "Conduit" object will use this to calculate the proper constants to transmit/receive data.

    The error message about "not compiled with current version of conduit" seems to indicate that ViewPort is connecting fine to your program, but that you're using an old copy of Conduit. On connect, the configuration strings and a code which identifies the conduit version is sent over- this version doesn't seem to match. Best thing would be to download the latest, try an existing known good board, and then make the change in one file and try it. Let me know how it goes....

    ps: To get the IODreamkit (which uses a 6.5MHz crystal to allow sampling at up to 100msps) to work I just changed the clock constant in the top file and everything worked right of the bat- even the NTSC frame grabbing code - see attachment of the IODreamkit connected to a camera and doing "tinyCV" (tiny computer vision) processing.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Download a free trial of ViewPort- the premier visual debugger for the Propeller
    Includes full debugger, simulated instruments, fuzzy logic, and OpenCV for computer vision. Now a Parallax Product!
    480 x 360 - 30K
    360 x 480 - 41K
  • Mike HuseltonMike Huselton Posts: 746
    edited 2009-05-23 03:19
    Hanno,

    Where is the code and schematics you mentioned:
    Hanno said...
    see attachment of the IODreamkit connected to a camera and doing "tinyCV" (tiny computer vision) processing

    I guess it is presumptous of me to ask for IODreamkit internals.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    JMH

    Post Edited (James Michael Huselton) : 5/23/2009 3:29:02 AM GMT
  • HannoHanno Posts: 1,130
    edited 2009-05-23 03:30
    Code to do the "frame grabbing" and "tinyCV" is tutorial #11 in ViewPort.
    The image on my screen shows ViewPort streaming video from the Propeller. Each video frame contains 4 "buffers". The top left shows the raw image coming from the $10 black and white camera. Top right is the "negative" image, blacks become white, white becomes black. Bottom left is an edge finder. Bottom right has bright spots where there are a lot of sharp edges close together- it finds bar codes. All the frame grabbing and vision processing is done in assembly code in the Propeller. In my DanceBot, this is used to interactively dance with people. ViewPort shows you the streamed result for debugging purposes.
    My Circuit Cellar article goes into more detail and provides a schematic- it's here: www.circuitcellar.com/archives/viewable/224-Sander/index.html
    The IODreamkit makes all of this simple- notice I just plugged the camera and a resistor into the IODreamkit- I had it running in literally seconds.
    Hanno

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Download a free trial of ViewPort- the premier visual debugger for the Propeller
    Includes full debugger, simulated instruments, fuzzy logic, and OpenCV for computer vision. Now a Parallax Product!
  • Mike HuseltonMike Huselton Posts: 746
    edited 2009-05-23 03:38
    The Circuit Cellar link makes the picture complete. I missed this article in my scramble to take care of business in other matters.

    Thank You yeah.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    JMH
  • blind_botblind_bot Posts: 22
    edited 2010-02-12 04:56
    I have one question. Is viewpoint compatable with labview? We use labview often at my school, so having that option avalible would be helpful.
    Thanks

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    00100000
  • HannoHanno Posts: 1,130
    edited 2010-02-15 10:25
    Hi Blind_bot,
    ViewPort let's you export data in multiple formats- some readable by Labview- among them: .txt, .csv, matlab.

    Also, ViewPort includes a DDE client and server. This is standard Windows technology to share data between applications, a quick google finds this: zone.ni.com/devzone/cda/tut/p/id/4531 I've put together a sample "kit", showing how to communicate with ViewPort in languages including: vb.net, excel, c#, matlab, - it's here: hannoware.com/viewport/clients.php
    Hanno

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Co-author of the official Propeller Guide- available at Amazon
    Developer of ViewPort, the premier visual debugger for the Propeller (read the review here, thread here),
    12Blocks, the block-based programming environment (thread here)
    and PropScope, the multi-function USB oscilloscope/function generator/logic analyzer
  • blind_botblind_bot Posts: 22
    edited 2010-02-16 00:36
    That is fantastic, thank you so much. I now have more tools to get myself in troiuble with...

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