Shop OBEX P1 Docs P2 Docs Learn Events
examples in spin for QTI and servos — Parallax Forums

examples in spin for QTI and servos

The SealThe Seal Posts: 1
edited 2009-07-27 02:10 in Robotics
Hey everyone,

I'm fairly new to microcontrollers and Im looking for example code in spin. I want to make a basic line following robot like the boe bot. I want to use the propeller/spin though and all of the examples i've been able to find are for the stamp/basic code. So can someone help me find some tutorials using the following in spin code?:

1. QTI line sensor
2. Pico servo motor
3. infrared receiver and transmitter

Thanks a ton!

Comments

  • TimmooreTimmoore Posts: 1,031
    edited 2009-07-27 02:10
    1. I assume you mean the pololu QTI line sensor but which one or analog or RC version? For analog you need a A2D, there are several objects in obex for various A2D devices. I have used the analog single sensor with the tlv2543 without problem. The line sensor is just 8 of the single versions. The RC version I haven't tried and I havent' seen any spin code for it. You can probably do it using a counter to measure the time to the falling edge.
    2. This can be controlled same as any other servo, take a look at servo32v6 in obex
    3. You need to exmplain what you mean, a IR TV remote, a IR detector, or what?

    Also look at http://obex.parallax.com/objects/30/ it is an object with a lot of BS2 functions so make translating from stamp easier.

    Post Edited (Timmoore) : 7/27/2009 6:16:42 AM GMT
Sign In or Register to comment.