Tuesday, January 2. 2007How to use LEGO::NXT on the Mac
First follow the instructions here:
http://juju.org/articles/2006/08/01/mindstorms-nxt-bluetooth-on-osx Once that works, you can plug the MacBlueComm module in to the LEGO::NXT constructor. my $dev = new LEGO::NXT::MacBlueComm('/dev/tty.NXT-DevB-1'); my $bt = new LEGO::NXT( $dev ); Hope this helps! Good luck! Monday, December 11. 2006Hooorray!!!! LEGO-NXT-2.00 RELEASED!!!!
Yes, it's true! Version 2.00 is now released. Included in this version is a new modular comm architecture AND Mac OSX Support!!! Also, I've added the entire host of system level calls in addition to the simple direct commands!
Have Fun!!! As always, email me with bugs/problems! Best, Michael Collins Tuesday, November 7. 2006USB Support update
Users having trouble accessing the LEGO NXT USB device under Linux
(using udev) as a non-root user should...
Create a udev rules file:
/etc/udev/rules.d/70-lego.rules
And populate this file with the following contents:
# Lego NXT
BUS="usb", SYSFS{idVendor}="0694", MODE="0666"
This will cause the usb device node for the NXT to be created with the
correct mode when connected.
Tuesday, October 17. 2006How to check out bleeding edge SVN...
Here's how to check out bleeding edge development on the LEGO::NXT module:
svn co svn://ivorycity.com/nxt
If you have ideas/contributions in mind, please email me your ideas and I will give you commit access Have fun!!! Saturday, October 7. 2006NEW!!! USB Support!
Cool news!
In the svn checkout, I implemented USB communication layer support!
It's quite a bit faster than bluetooth, if you don't mind being wired.
This will be released in 2.0 along with support for system commands
and some higher-level interfaces. As always, progress is available in
svn.
Have fun!!
--Michael
Wednesday, October 4. 2006Version 1.42 Released
Version 1.42 of LEGO::NXT has been released!
Wednesday, October 4. 2006How to get a reading with the ultrasound sensor
use LEGO::NXT;
use LEGO::NXT::Constants qw(:DEFAULT);
my $addr = '
Wednesday, October 4. 2006How to get your motors running!
use LEGO::NXT;
use LEGO::NXT::Constants qw(:DEFAULT);
my $addr = '
Monday, October 2. 2006
How to get started with Linux ... Posted by Michael Collins
in Linux Bluetooth at
04:57
Comments (2) Trackbacks (15) How to get started with Linux Bluetooth and the NXT:
Assumptions:
1) You have a bluetooth adapter. 2) You already have a kernel with the bluez modules loaded. (I use debian 2.4.27) 3) You've installed bluez-utils * There are already many documents available on how to do these tasks. Okay, there are some tools you need to familiarize yourself with: hciconfig - displays status information on your bluetooth interface (similar to ifconfig) hcitool - used to query all kinds of information about bluetooth devices in your piconet sdptool - used to create and query "service description protocol" bluetooth services, like SP=serial port rfcomm - establishes connections to remote bluetooth services or listens for incomming service connections Testing out Your Bluetooth Connection:You will first need to get your bluez daemons running.On debian, this looks like: /etc/init.d/bluez-utils start
On Gentoo, I think it's /etc/init.d/bluetooth start
Check that your connection is working: hciconfig hci0
You should see something like:
hci0: Type: USB
BD Address: 00:0E:A1:31:57:48 ACL MTU: 377:10 SCO MTU: 16:0 UP RUNNING PSCAN ISCAN RX bytes:15156 acl:468 sco:0 events:799 errors:0 TX bytes:11447 acl:450 sco:0 commands:198 errors:0 Hint: I have an AmbiCom USB bluetooth adapter. For whatever reason I need to issue the following command to get it started: hciconfig hci0 reset
So, now, make sure your NXT is on, make sure bluetooth on the NXT is on, cross your fingers, and then type:
hcitool scan
If everything went to plan, you should see:
Scanning ...
00:16:53:00:23:E4 NXT Good. Now you can use the Nxt.pm module! Download the Nxt Perl API: Download Try to run the included test program:
tar xvzf LEGO-NXT-1.41.tar.gz
cd LEGO-NXT-1.41 perl test.pl <xx:xx:xx:xx:xx:xx> You should hear your NXT make a chirping sound. :)
« previous page
(Page 1 of 1, totaling 9 entries)
next page »
|
LEGO::NXTCategoriesMichael Collins![]() Sponsored LinksExternal Resourcesnxtasy.orgSyndicate This Blog |
Copyright 2006 Michael Collins. All Rights Reserved. Powered by Serendipity
