NXT-G PCF8591 block...

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
nxtreme
Posts: 246
Joined: 29 Sep 2010, 03:53
Location: 192.168.1.2

NXT-G PCF8591 block...

Post by nxtreme »

I just received the Extreme NXT 2nd edition book. I had the first one in digital format and when the second edition came out I figured I just had to get it as I really enjoyed the first edition. I've speed read the whole thing and it looks like fun, my favorites being the servo controller and the keypad setup. However, I did have one problem. There is a PCF8591 block mentioned in the book. Well, actually two blocks. The Mindsensors one and a different one that is supposedly better. And, I can see why. The Mindsensors block is fairly complicated.

My problem is I can't find the block. It is mentioned in chapter two that NXTasy.org hosts the blocks needed in the book but as we all know, NXTasy is dead :). Xander uploaded the blocks from the repository here but nowhere do I see mention of the PCF8591 block. I also checked both Philo and Mr. Gasperi's websites but it doesn't appear as if they have them. Does anyone have an idea of where I can get this block (or have a copy hidden in the deep, dark depths of their hard drive?)? I might eventually try to see if it's possible to use the I2C R/W blocks but I want to keep it simple for now.

Oh and do yourself a favor and get a copy of the book ;). You can get it on Amazon.com for under $10 US shipped.
One King to rule them all, One King to find them,
One King to bring them all and in the darkness bind them
On Earth where Shadows lie.
nxtreme
Posts: 246
Joined: 29 Sep 2010, 03:53
Location: 192.168.1.2

Re: NXT-G PCF8591 block...

Post by nxtreme »

Sorry to bring up an old post. I emailed Philo, who told me that Mr. Gasperi might have a copy of the block. He did and said that I could upload it here. So, I'm uploading it here so that those still programming with the old dinosaur, NXT-G, can use it as well. Would one of the admins mind uploading this to the repository? Credit goes to Michael Gasperi for creating the block and sending me a copy.
8591.zip
PCF8591 NXT-G block.
(136.31 KiB) Downloaded 423 times
One King to rule them all, One King to find them,
One King to bring them all and in the darkness bind them
On Earth where Shadows lie.
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: NXT-G PCF8591 block...

Post by mightor »

It's available right here: http://www.mindsensors.com/index.php?mo ... ment_id=78 :)

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
nxtreme
Posts: 246
Joined: 29 Sep 2010, 03:53
Location: 192.168.1.2

Re: NXT-G PCF8591 block...

Post by nxtreme »

mightor wrote:It's available right here: http://www.mindsensors.com/index.php?mo ... ment_id=78 :)
It is... and it isn't :P. That's a different block that does the same thing. Like I said before, it is rather buggy and I find Michael Gasperi's version easier to use. It's pretty much just four outs and one it. Each to his own, I guess :D.
One King to rule them all, One King to find them,
One King to bring them all and in the darkness bind them
On Earth where Shadows lie.
aagruntpuddock
Posts: 33
Joined: 14 Dec 2010, 13:09
Location: Scotland
Contact:

Re: NXT-G PCF8591 block...

Post by aagruntpuddock »

There is a program (looks like some version of C) on this site :- http://www.tau.ac.il/~stoledo/lego/i2c- ... 591accel.c

Absolutely no idea what it is for so don't know if it is useful or not.
nxtreme
Posts: 246
Joined: 29 Sep 2010, 03:53
Location: 192.168.1.2

Re: NXT-G PCF8591 block...

Post by nxtreme »

Yes, I saw that code and was trying to base some NXT-G code off of it, using the I2C read/write blocks but never got it working. Finally broke down and figured that I'd use a block intended for the 8591 chip. That's when I created this topic... Thanks though!
One King to rule them all, One King to find them,
One King to bring them all and in the darkness bind them
On Earth where Shadows lie.
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: NXT-G PCF8591 block...

Post by mightor »

nxtreme wrote:Like I said before, it is rather buggy and I find Michael Gasperi's version easier to use.
Do them a favour and send Mindsensors a bug report about the block. They're not going to know without your feedback :)

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
nxtreme
Posts: 246
Joined: 29 Sep 2010, 03:53
Location: 192.168.1.2

Re: NXT-G PCF8591 block...

Post by nxtreme »

Okie dokie. As soon as I have some time to play around with it and find out exactly what doesn't work the way it should, I will :). Now, off to tame my pet Panther that's wandering around the house...
Last edited by nxtreme on 19 Feb 2011, 03:02, edited 1 time in total.
One King to rule them all, One King to find them,
One King to bring them all and in the darkness bind them
On Earth where Shadows lie.
nxtreme
Posts: 246
Joined: 29 Sep 2010, 03:53
Location: 192.168.1.2

Re: NXT-G PCF8591 block...

Post by nxtreme »

I finally emailed Philo, who passed me on to Michael Gasperi, who told me that yes, he did have a copy of the block. I found out that he actually made it, and since NXTasy was the only place it was published (AFAIK), it disappeared. Anyways, I was going to post the zip that he sent me, but forgot (until now...). Anyways, here it is. Haven't actually used it yet, but will eventually. Xander or afanofosc, could you maybe put this in the repository? Thanks again Michael!
8591.zip
I think this is the right one... dual-booting can be a pain at times...
(136.31 KiB) Downloaded 388 times
One King to rule them all, One King to find them,
One King to bring them all and in the darkness bind them
On Earth where Shadows lie.
h-g-t
Posts: 552
Joined: 07 Jan 2011, 08:59
Location: Albania

Re: NXT-G PCF8591 block...

Post by h-g-t »

Don't know if it included the same file but source code from that book (and many others) can be found at http://www.apress.com/book/sourcecodes
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests