Subject:
|
Re: R2D2 Sounds - A Warning my RCX has laryngitis.
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Wed, 22 Jun 2005 07:40:17 GMT
|
Viewed:
|
1100 times
|
| |
| |
In lugnet.robotics, John Reynolds <john-reynolds@rocketmail.com> wrote:
> I recently read a post from someone wanting to
> generate friendy sounds similar to R2D2 using an RCX.
> I thought this was a good challenge so set out to try.
> I was getting to the point where I could generate a
> number of similar friendly sounds and then the RCX
> stopped generating sounds completely (except for beeps
> from the On-Off button when pressed). This happened
> within an hour!
>
> I can only assume that the repeated intensive use of
> the oscillator circuit has burnt out some component.
> All other functions of the RCX seem to be intact.
>
> Does anyone know the location of a circuit diagram for
> the RCX?
>
> The algorithm I was using (in Robolab) to generate the
> sounds was as follows:
>
> Select a start frequency.
> From this calculate half and quarter of same
> (harmonics 1 and 4 I think).
> Select a frequency step size.
> Select a note duration.
> Select number of loops.
>
> The sound is then generated by interleaving the
> playing of the 3 harmonics for the selected duration,
> stepping up or down as the program loops.
>
> I was intending to create a subroutine which would be
> passed parameters (frequency, duration, step and
> loops) to create different sounds which could then be
> strung together.
>
> I suspect that the intensity of the switching has been
> the cause of my RCX getting laryngitis.
>
> For anyone who is game I have attached an image of one
> of the programs I tried. Don't over do it if you try
> it.
>
> Cheers
>
>
Picture was missing. Though, as I understand the sound-generation, I doubt that
actually you are able to produce an RCX hardware-laryngitis through a program
that is based on the standard RCX firmware, because you just don't touch the
hardware directly. If you change frequencies and durations, the firmware will
adjust a timer-match register or simply turn the timer on and off. Internally to
the H8, the concerned 8-bit timer (TMO0) is configured to toggle a pin output
that drives the speaker (port 6 pin 4). Pin LOW inverts the speaker voltage to
-5V; whereas pin HIGH sets the speaker voltage to +5V.
The beep at On/Off proves that the system sound still works. (Tone and system
sound use the same basic sound driver, only queuing changes.) My first guess is,
that through your program you changed a configuration register that the firmware
doesn't reset at start. Having not seen your ROBOLAB code, that's only a guess.
But, before opening your RCX, try the following therapy:
1. Reboot the RCX after having taken off the batteries. Reload the firmware and
your program...
2. Take off the batteries while the RCX is ON. This will completely discharge
the capacitors and the processor will completely be reset....
I'm really curious about this. Please post the code somewhere visible.
... Laryngitis is cool !
- Claude
|
|
Message is in Reply To:
| | R2D2 Sounds - A Warning my RCX has laryngitis.
|
| I recently read a post from someone wanting to generate friendy sounds similar to R2D2 using an RCX. I thought this was a good challenge so set out to try. I was getting to the point where I could generate a number of similar friendly sounds and (...) (19 years ago, 21-Jun-05, to lugnet.robotics)
|
8 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|