Lab 1: Intro to the Lego Mindstorm
- hand out rcx's, show them were they are stored.. etc
- explain the firmware/OS concepts. Tell them we need to
replace the default firmware so that we can run Java
programs. Show them how to use either tvmfirmdl or
firmdl3 (later prefered b/c its faster).
set RCXTTY=/dev/ttyb (a COM port).
ie: firmdl3 /path/to/new/firmware.srec
- problem: noisy with everyone making there thing make noise.
when doing project, it could get annoying for
other students in the lab.
- Projects:
* experiment with different frequencies, tons.
What duration's should be used to approximate
different notes (ie, whole note, half note, etc).
How many notes can be queued? (8 notes can be queued)
before you have to wait for them to finish).
What happens if you mix in calls to
Sound.systemSound(false, whatever) (unqueued sounds).
What correspondance is there between duration, and
how long the sleep calls should be.
* make the RCX play music to Mary Had a Little Lamb,
(or any nursery rhyme, ie Row Row Row your boat,
3 blind mice, etc).
(midi file may be found:
http://members.home.net/veeceet/marylamb.html)
* Not for this lab, but for a later one, create a class
to represet a notes. ie, say
Music.playNote('A', octave_notation, note_type)
(dont know the octave notation, and note_type would
something like WHOLE, HALF, etc).
© Copyright 2000 By Joel Adams, Ryan VanderBijl.
Lisenced under the GPL. You may use it, but we would like you to
share any ideas, etc with us and the world.