Search under this category:
NXT Repository/Programming/
HiTechnic Digital Compass driver for RobotC
Last update: Sunday, October 8th, 2006I’ve written a simple device driver for the HiTechnic digital compass sensor. The driver hides all hardware details (i.e. I2C communication) from the user, allowing easy integration of the new sensor into existing programs. It polls the sensor reading every 5ms into the standard sensor variables SensorRaw and SensorValue.
Making Music With NXT Melodies
Last update: Tuesday, October 24th, 2006Introduction
I want to first thank Eric and Guy for letting me join the nxtasy team. I’ve been impressed for quite some time by the amazing content and community being built here and I wanted to be a small part of it.
And now on to the subject at hand - making music!
Playing Sounds
A very popular feature of the standard NXT firmware is the ability to play wave files which have been converted into NXT sound files (with an .rso extension). The NXT software comes with many sounds which can be used in an NXT-G or NBC program with the standard NXT firmware to make your robot sound cool. Using a wave file to NXT sound file conversion utility you can easily create additional sounds for use in NXT-G and NBC programs.
Unfortunately, even though NXT sound files are fairly low quality (8-bit, mono, 8k sample rate) sounds, they can take up large amounts of flash memory when they are used in a program. The “Writing Efficient NXT-G Programs” pdf document on the First Lego League website recommends that you “minimize use of Sound and Display blocks” in order to more optimally use the available flash memory. With flash memory limited to around 128 kilobytes it can be very important to pay close attention to how much space is taken up by sound files.
Any additions/suggestions/comments? Send an email to repository@nxtasy.org.
Search
Categories
Monthly Archives
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006