Shop OBEX P1 Docs P2 Docs Learn Events
BS2 and Trackball Module? — Parallax Forums

BS2 and Trackball Module?

john_sjohn_s Posts: 369
edited 2012-04-02 22:08 in BASIC Stamp
I plan to experiment with a Trackball Module (#27908) and wonder if anybody tried to use it with plain BS2 - any hints, code snippets are appreciated.

Thanks,
John

update: Using COUNT command I was able to detect approx 30 pulses per 1s from either OPA, B, C or D while doing 3 quick slides over the trackball. That gives me enough info to start although the main battle was over the non working serial comm port - must be one of those days when my old pc demands some extra attention (again)

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2012-04-02 22:08
    The Trackball Module is really not designed for use with a BS2. The code examples are written for the Propeller. These could be translated into PBasic for the Stamps, but wouldn't work reliably because the BS2 is too slow. You might do better with one of the faster Stamps like the BS2px. That's about 5x faster than the BS2 and should be fast enough to keep up with the Trackball Module. Whether you could do what you might want with the position information in the time that's left is another question.
Sign In or Register to comment.