Shop OBEX P1 Docs P2 Docs Learn Events
CMU cam code - bs2 vs bs2sx — Parallax Forums

CMU cam code - bs2 vs bs2sx

KhiyaKhiya Posts: 6
edited 2009-04-02 14:50 in Robotics
I'm trying to convert a CMUCam sample code (Program 2 from the sample code on the CD that came with the camera) from bs2 to bs2sx. I've basically just changing the baud rate in the SEROUTs and SERINs from 84 to 252 (I've tried 210 as well), but debugging the code shows that the one SERIN in the whole code isn't responding. I think it's supposed to pick up the feedback from the SEROUT just before it and translate that into information about the color of the object in front of the cam, and that switching the baud rates is maybe letting the signal disappear. Has this happened to anyone before?

Comments

  • dandreaedandreae Posts: 1,375
    edited 2009-04-02 14:50
    The value should be 240 when using the BS2sx.· Try that and let me know if you have any more questions.

    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Parallax Tech Support·
Sign In or Register to comment.