Shop OBEX P1 Docs P2 Docs Learn Events
TSL230 Driver — Parallax Forums

TSL230 Driver

MacGeek117MacGeek117 Posts: 747
edited 2008-01-30 02:29 in Propeller 1
I just bought a TSL230 from Parallax and the BS2 code works perfectly so I'm trying to get it to work on my Prop, but whenever I run this program, all I get is a zero. The '230 is hardwired onto a Prop Protoboard.
RoboGeek

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I reject your reality and subsitute my own!"

Adam Savage, Mythbusters
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.jameco.com

Comments

  • Paul BakerPaul Baker Posts: 6,351
    edited 2008-01-29 01:00
    You know there's a TSL230 object on the exchange right? I put it there a few weeks ago so Propeller users have an object to go with the RS item. It includes a simple demo and an advanced auto-ranging demo.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • Fred HawkinsFred Hawkins Posts: 997
    edited 2008-01-29 01:09
    Paul, a flat text file of exchange files in the stickies would be nice. Updated every five changes in the data, say.
  • MacGeek117MacGeek117 Posts: 747
    edited 2008-01-29 02:50
    How do I modify the program so it works if the s1 scale pin has a lower number,·i.e. comes before·than the s0 pin?
    RoboGeek

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "I reject your reality and subsitute my own!"

    Adam Savage, Mythbusters
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.jameco.com
    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2008-01-29 02:51
    sorry, I'm not quite following what you are asking.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • MacGeek117MacGeek117 Posts: 747
    edited 2008-01-29 02:59
    I hard wired the chip so the s0 goes to p12 and s1 goes to p11. (necessary because of where I soldered the chip) How do I modify the code to work with this?
    RoboGeek

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "I reject your reality and subsitute my own!"

    Adam Savage, Mythbusters
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.jameco.com
    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2008-01-29 03:13
    I assume you asking for modification of the autoranging version?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • Paul BakerPaul Baker Posts: 6,351
    edited 2008-01-29 03:26
    OK the major issue is your reversal of S0 and S1, before each "outa := scale << cbase" you should do " scale ><= 2", this will reverse the two bits to your configuration.

    cbase should be set to 11.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • MacGeek117MacGeek117 Posts: 747
    edited 2008-01-29 16:25
    Thanks, Paul! I will try the mod when I get my Protoboard put back together.
    RoboGeek

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "I reject your reality and subsitute my own!"

    Adam Savage, Mythbusters
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.jameco.com
    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2008-01-29 18:38
    Fred Hawkins said...
    Paul, a flat text file of exchange files in the stickies would be nice. Updated every five changes in the data, say.
    I don't want to sound critical, but that's the function of the search field on the Obex. A person looking for a driver should search for it on obex, then use http://search.parallax.com to see if anything is posted on the forums. Jeff is the admin of·Obex, if you'd like to put another item on his plate and slow down IDE development even more, I can ask him if he'll do it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • Fred HawkinsFred Hawkins Posts: 997
    edited 2008-01-29 19:00
    Oh well, like Ms Latella said, 'Never mind'.

    I was sneakily seeking to avoid making the trip to the Obex a monthly or bi-weekly affair just to keep up with what's been posted.

    So if we're gonna bog Jeff down, let's get him to put the whole works into a zip and let us download the works all at once. [noparse]:)[/noparse]
  • Paul BakerPaul Baker Posts: 6,351
    edited 2008-01-29 19:20
    The list already exists smile.gif . Goto Obex, click on View All Objects, then click on published, it will re-order the objects according to the date they were submitted. The only thing which falls through is updates to existing objects, but a new "updated" field will be added to the Obex when we implement the Licensing Agreement.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • MacGeek117MacGeek117 Posts: 747
    edited 2008-01-30 02:29
    The program works perfectly! Thanks Paul!
    RoboGeek

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "I reject your reality and subsitute my own!"

    Adam Savage, Mythbusters
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.jameco.com
    ·
Sign In or Register to comment.