To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.generalOpen lugnet.general in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 General / 54449
Subject: 
Re: Power Function control with RCX and BrickOS
Newsgroups: 
lugnet.general, lugnet.technic, lugnet.trains, lugnet.robotics
Date: 
Sat, 26 Jan 2008 03:46:38 GMT
Viewed: 
18585 times
  
Bob Kojima wrote:
Now you can use your RCX to control LEGO Power Functions.
That's right the RCX can act as a PF remote control but it
can do something that the PF remote can't do yet.  The RCX
can do PWM with your PF reciever moduals.

You do not need to install BrickOS to get this to work.  The
executable that you need and the BrickOS firmware are included
in this packet.

Get it here: <http://www.fial.com/bob/lego/PowerFunctions.zip>

The zip file includes a sample program that uses 2 rotation sensors
to control the PWM on the red and blue ports it can also send controls
to all 4 PF chanels.  Also included is a .h file that impliments the
complete Power functions protocol for BrickOS.


Please let me know of any changes or bugs that need to be addressed.


Bob

Bob,

I could not wait to get home from work to try this.  I want to say thank
you; your effort has saved me many countless hours.

I loaded the Firmware, and the Program into a 1.0 RCX, and the brick
worked flawlessly!  On my 1.0 brick, I was able to have that yellow
bulldozer race around my floor all via the glory of RCX control; AND
under PWM.

This was a lot of fun, and I cant wait to build it into a robot for one
of rtl's next games.

Just cause I can, I then downloaded the BrickOS firmware, and the
program, into a 2.0 RCX. I am sad to say I could not get the RCX to
control the Bulldozer reliably.  The firmware, and program loaded with
out a hitch. But as Philo, and Mark discussed here:

http://news.lugnet.com/robotics/rcx/?n=2228

The 1.0 and the 2.0 RCX use 2 different IR frequencies. I had to hold
the RCX within inch's of the PF recievers to get it to accept any
signal, and then, the funny part was that even with the 2.0 RCX off, the
PF still kept driving the left track FWD.

:)

Just wanted to let you know.  Again, Thank you.


Chris


Subject: 
Re: Power Function control with RCX and BrickOS
Newsgroups: 
lugnet.general, lugnet.technic, lugnet.trains, lugnet.robotics
Date: 
Sat, 26 Jan 2008 21:34:10 GMT
Viewed: 
18429 times
  
I could not wait to get home from work to try this.  I want to say thank
you; your effort has saved me many countless hours.

I loaded the Firmware, and the Program into a 1.0 RCX, and the brick
worked flawlessly!  On my 1.0 brick, I was able to have that yellow
bulldozer race around my floor all via the glory of RCX control; AND
under PWM.

This was a lot of fun, and I cant wait to build it into a robot for one
of rtl's next games.

Just cause I can, I then downloaded the BrickOS firmware, and the
program, into a 2.0 RCX. I am sad to say I could not get the RCX to
control the Bulldozer reliably.  The firmware, and program loaded with
out a hitch. But as Philo, and Mark discussed here:

http://news.lugnet.com/robotics/rcx/?n=2228

The 1.0 and the 2.0 RCX use 2 different IR frequencies. I had to hold
the RCX within inch's of the PF recievers to get it to accept any
signal, and then, the funny part was that even with the 2.0 RCX off, the
PF still kept driving the left track FWD.

:)

Just wanted to let you know.  Again, Thank you.


Glad it worked for you and thanks for the heads up on the RCX 2.0 problems.  i
don't have a 2.0 RCX to play with so i'm not sure if it is a timing issue that
can be resolved or what.

i was very excited the first time i got my RCX to talk to the PF reciever.  i
pushed the run button expecting nothing to happen just like nothing had happend
the other 800 times i had hit the run button.  then something moved!  i screamed
so loud my wife though i had hurt myself.

bob


Subject: 
Re: Power Function control with RCX and BrickOS
Newsgroups: 
lugnet.general, lugnet.technic, lugnet.trains, lugnet.robotics
Date: 
Sun, 27 Jan 2008 10:13:05 GMT
Viewed: 
21389 times
  
Glad it worked for you and thanks for the heads up on the RCX 2.0 problems.  i
don't have a 2.0 RCX to play with so i'm not sure if it is a timing issue that
can be resolved or what.

Could it be that the long range mode of IR is not set (I saw no reference to
range setting in your source, and I don't know the default state). Despite the
difference in carrier frequency, the RCX 1.0 and RCX2.0 are able to dialog
albeit with a seriously reduced range. Perhaps it is what we see here if we are
in short range mode? I have yet to test with a 2.0.

i was very excited the first time i got my RCX to talk to the PF reciever.  i
pushed the run button expecting nothing to happen just like nothing had happend
the other 800 times i had hit the run button.  then something moved!  i screamed
so loud my wife though i had hurt myself.

;-D
Congratulation Bob! I'm impressed by your programming speed ;o)

Philo


©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR