PDA

View Full Version : TSL230 Driver



MacGeek117
01-29-2008, 05:25 AM
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 (http://www.parallax.com/)
www.goldmine-elec.com (http://www.goldmine-elec.com)
www.expresspcb.com (http://www.expresspcb.com)
www.jameco.com (http://www.jameco.com)

Paul Baker
01-29-2008, 09:00 AM
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 (mailto:pbaker@parallax.com)
Propeller Applications Engineer
[/url][url=http://www.parallax.com] (http://www.parallax.com)
Parallax, Inc. (http://www.parallax.com)

Fred Hawkins
01-29-2008, 09:09 AM
Paul, a flat text file of exchange files in the stickies would be nice. Updated every five changes in the data, say.

MacGeek117
01-29-2008, 10:50 AM
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 (http://www.parallax.com/)
www.goldmine-elec.com (http://www.goldmine-elec.com)
www.expresspcb.com (http://www.expresspcb.com)
www.jameco.com (http://www.jameco.com)
·

Paul Baker
01-29-2008, 10:51 AM
sorry, I'm not quite following what you are asking.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker (mailto:pbaker@parallax.com)
Propeller Applications Engineer
[/url][url=http://www.parallax.com] (http://www.parallax.com)
Parallax, Inc. (http://www.parallax.com)

MacGeek117
01-29-2008, 10:59 AM
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 (http://www.parallax.com/)
www.goldmine-elec.com (http://www.goldmine-elec.com)
www.expresspcb.com (http://www.expresspcb.com)
www.jameco.com (http://www.jameco.com)
·

Paul Baker
01-29-2008, 11:13 AM
I assume you asking for modification of the autoranging version?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker (mailto:pbaker@parallax.com)
Propeller Applications Engineer
[/url][url=http://www.parallax.com] (http://www.parallax.com)
Parallax, Inc. (http://www.parallax.com)

Paul Baker
01-29-2008, 11:26 AM
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 (mailto:pbaker@parallax.com)
Propeller Applications Engineer
[/url][url=http://www.parallax.com] (http://www.parallax.com)
Parallax, Inc. (http://www.parallax.com)

MacGeek117
01-30-2008, 12:25 AM
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 (http://www.parallax.com/)
www.goldmine-elec.com (http://www.goldmine-elec.com)
www.expresspcb.com (http://www.expresspcb.com)
www.jameco.com (http://www.jameco.com)
·

Paul Baker
01-30-2008, 02:38 AM
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 (mailto:pbaker@parallax.com)
Propeller Applications Engineer
[/url][url=http://www.parallax.com] (http://www.parallax.com)
Parallax, Inc. (http://www.parallax.com)

Fred Hawkins
01-30-2008, 03:00 AM
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. :)

Paul Baker
01-30-2008, 03:20 AM
The list already exists http://forums.parallax.com/images/smilies/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 (mailto:pbaker@parallax.com)
Propeller Applications Engineer
[/url][url=http://www.parallax.com] (http://www.parallax.com)
Parallax, Inc. (http://www.parallax.com)

MacGeek117
01-30-2008, 10:29 AM
The program works perfectly! Thanks Paul!
RoboGeek

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

Adam Savage, Mythbusters
www.parallax.com (http://www.parallax.com/)
www.goldmine-elec.com (http://www.goldmine-elec.com)
www.expresspcb.com (http://www.expresspcb.com)
www.jameco.com (http://www.jameco.com)
·