Shop OBEX P1 Docs P2 Docs Learn Events
PENGUIN ROBOT 18-Band Radio!!!! - the Code — Parallax Forums

PENGUIN ROBOT 18-Band Radio!!!! - the Code

HumanoidoHumanoido Posts: 5,770
edited 2008-02-21 02:47 in Robotics
Title: Penguin 18-Band Radio
Code Name: penguin_radio.bpx
Purpose: A Penguin 18-Band Radio


Believe it or not, this code turns Penguin Robot
into a Radio!!!!!! With 18 bands!!!

This program is in the top 10 list of amazing
and fantastic Penguin Robot programs!

humanoido
humanoido said...
You gotta hear this to believe it! Penguin will let you tune his
creative international internal digital Penguin Band Scanner Radio.
It's a lot like Short Wave Radio, only the waves are Peguisonic.

Be a PWL'r (Penguisonic Wave Listener). Can you find Penguin
Newscasts in Penguinese? The blue display will show the radio band
numbers. It's fun to tune the random digital air waves! Every band
is different. What will you find tonight? - a goldmine or static?!

Hey! Where's the tuning knob? This is a VR radio! The tuner is all
Virtual Reality. Tuning is by turning Penguins body!

All of the Penguin stations are very unique! To vary Penguisonic
frequencies, use the virtual control knob, by moving Penguin around
in various cardinal directions. This will directly tune the bands.

The reception is proportionally directional. There's roughly a new
radio band scanned every 20 degrees. That's 18 bands of the most
unusual Penguin Radio!
' DIRECTORY
' ---------
' CALIBRATION
' PROMO
' INTRO
' VIRTUAL RESOURCES
' OVERVIEW
' RADIO BAND DISPLAY
' PLACING THE RADIO ON STANDBY
' TUNING
' EMBEDDED RANGE OF DEGREES AND
'   AUTO CALIBRATION OF RADIO FREQUENCIES
' TUNING SPEED
' TUNING RESOLUTION
' STREAMING CONTENT
' BAND SAMPLING
' ANTENNA
' RADIO BANDS
' AUDIO OUTPUT
' CONTENT
' CHANNELS WITH RANDOM NATURE
' REPEATER CHANNELS
' PENGUIN RADIO PARAMETERS CHART
' KEY
' RADIO SPECS
' DIRECTION FINDER
' STRONG MAGNETIC FIELDS
' EXTRA PROJECTS
' CHANNEL PROGRAMMING DETAILS
'  01   ZERO BAND, STATIC
'  02   ALIEN PENGUIN WORLD
'  03   PENGUIN CHAT LINE
'  04   PENGUIN MORSE CODE TRANSMITTER TOWER
'  05   OPEN PROGRAMMING
'  06   PENGUIN SPACE STATION IN ORBIT
'  07   REPEATER TOWER
'  08   PENGUIN LEARNING ENGLISH CHANNEL
'  09   ADULT PENGUIN - BLOW RASBERRY CHANNEL
'  10   AUTOMOTIVE - CAR ENGINE REPAIR
'  11   INTL GEOGRAPHIC (NATURES BUBBLING STREAM)
'  12   MUSIC CHANNEL (ALIEN)
'  13   DANCE CHANNEL (HAPPY TAP DANCE)
'  14   ELECTRIC IONOSPHERE
'  15   CONSTRUCTION (PENGUINS WORKING)
'  16   PENGUIN SPACE WAR
'  17   SCI FI CHANNEL (JACOBS LADDER)
'  18   SILENT CREATURES CHANNEL


PENGUIN RADIO SPECS

Front End - Virtual
Bandwidth - 20 Degrees per band
Speaker - Peizo Element Tweeter
Gain - Auto
Output - Acoustic Mono
# of Channels - 18 bands
Frequency Range - 0 to 360 Degrees (angular measured)
Tuner - Robotic Body
Tuning - Circular Geometry Penguin Rotation
Antenna - Directional by Compass
Audio - VR Sound Synthesizer Chip VSSC
Audio Gen Type - WG Waveform Generation
Audio Waveforms - Up to 4
AVC - Automatic Volume Control, One
Volume - Variable per VVA Virtual Volume Amp
Bandpass Filter - Built In
Mult Waveform Gen - Yes
Mixer - Built into VR Sound Chip
Weight - None
Size - None
Cost - None
Tuner Bands - Penguinese, Penguisonic
Supported Audio - Freqout, Baud, Toggle
Audio Out Port - Port 12
Channel Display - Illuminated Digital Built In
Display Drivers - Standard 1-Digit, VR 2-Digit
Amplifier - VVA Virtual Volume Amp
Control Knob - One, VR, Penguins' Body
Tuning - Virtual Tuning Switch VTS
Storage - EEPROM, Cache
Direction Finder - Yes
Virtual Elements - VVA, VSSC, VSD, VTS
Streaming Content - Yes
Radio Content - Static, Bubble, Chat, Code, Time, Orbit,
Tower, English, Ras, Car, Wild, Alien,
Dance, Ion, Construction, Space, SciFi,
Silent

Comments

  • ZootZoot Posts: 2,227
    edited 2008-01-06 19:52
    humanoido -- your SEROUT for sound work is clever. I'm guessing you have more details about that elsewhere in some of your many penguin programs. Could you either point me to other programs that might have a detailed explanation of how you choose values for this kind of sound out, or explain it here, whichever is easier? Coo-el.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST
  • NoBo780NoBo780 Posts: 94
    edited 2008-01-07 02:39
    What the Smile does this program do? Use a digital compass as a 'tuner dial', and play funky sounds depending on what heading the compass is turned to?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Giggly Googley!
  • HumanoidoHumanoido Posts: 5,770
    edited 2008-01-10 14:55
    Zoot, my only information regarding the SEROUT and various sound work can be found in the code comments for the various posted programs, and the Short Sound Tutorial information included here. There's over 550 sound related programs so far in the Penguin program suite, and most are posted. It's a lot to sift through so I've compiled a partial list given below.

    humanoido



    A Short Sound Tutorial by Humanoido

    Background into Sound Creation
    A little background into sound creation - an important element is the waveform. Set up a Sound Oscilloscope to study and examine various sound waveforms and the effects of multiple channels with sound mixing. Multiple sound channels are created. A sound mixer is added. The resulting sounds are set by various baud rates to closely control the waveforms.

    Sound Waveform Comparisons & Formation
    Actual sounds can be recorded, played back, and the resulting waveform captured. This captured image is then compared to the code waveform formants and adjusted.

    Methods of Sound Generation
    For other methods of sound generation, not using the VSC Virtual Sound Chip, or otherwise, the baud was simulated. These techniques include FREQOUT, TOGGLE, SEROUT, code commands, nests, pauses, and other methods of making sounds and regulating the essential timing.

    Keys to Complex Sound
    The key to creating more complex sounds rests within these multiple channels and mixers.

    The Nested Subroutine
    Another key feature to mixing sounds is the nested subroutine because it has the capacity to regulate the timing to close tolerances and increase the number of sound channels. Be aware that anything placed within the nest is effectual to the waveform. It may be handy to create a timing guide to various code statements that will be located within the nest(s).

    Sound and the Basic Stamp
    Each basic stamp is a little different. So the sounds will be particular to the version of Basic Stamp microcontroller used. Not only the speed of the processor is a controlling sound element, but the statements execution time as well. These programs are particular to the Basic Stamp 2px and the Penguin Robot. There are Parallax manual guides for doing the conversions from one Basic Stamp to another.

    The Sound Oscilloscope
    There's a forum thread describing the sound oscilloscope and building a computer interface for it that should help. The sound oscilloscope is a virtual instrument free of charge that installs into a PC computer and has a speed range within the limits of the sound spectrum.

    A Challenge
    One posed challenge is to create sound that closely resembles the human voice. Penguinese includes such a subroutine. However, more work is needed to refine the results, making the effects more intelligible. In the future, a human speech language processor, created from these sound basics and a Basic Stamp microcontroller, is entirely possible.

    More Information
    For more information, consult the code comments and examine the sound code structure in the following programs:

    Sound Related Code - Partial List
    
    PENGUIN SLEEP MACHINE
    PENGUIN KTV KARAOKE
    PENGUIN THEREMIN
    SPACED PENGUIN 2001
    PENGUINESE LANGUAGE
    PENGUIN RADIO 18 BAND SCANNER 
    PENGUIN SOUND LIBRARY (345 programs) 
    VIRTUAL SOUND CHIP (VSC) SYNTHESIZER MACHINE
    PENGUIN VIRTUAL SOUND CHIP (VSC) COLLECTION (210 programs)
    VIRTUAL VOLUME AMPLIFIER 
    PENGUIN VIBRATO MACHINE
    PENGUIN MUSIC JUKE BOX  
    PENGUIN TUNE LIBRARY 
    SOUND COMPASS
    
  • HumanoidoHumanoido Posts: 5,770
    edited 2008-01-11 08:58
    You can also see the modified Penguin platform
    that's used to develop sound code. [noparse]:)[/noparse]

    http://forums.parallax.com/showthread.php?p=696412

    humanoido
  • HumanoidoHumanoido Posts: 5,770
    edited 2008-01-14 14:25
    This is now posted as an updated file (programming sound) at

    http://forums.parallax.com/showthread.php?p=701526

    humanoido
  • HumanoidoHumanoido Posts: 5,770
    edited 2008-02-21 02:47
    This is an add-on note about compass calibration and
    operating, which applies to all software utilizing the compass.

    Within a 3-foot radius, the compass may report false
    readings when near the following items:
    computer, radio, speakers, and telephone, plus any
    devices generating electromagnetic fields such as
    electric cords, motors, disk drives, lights, etc.

    When programming Penguin, it's a good idea to stretch
    out the USB cable to the maximum length and locate
    Penguin away from the computer using the radius rule.

    A good tip is to use a simple analog compass to "explore"
    the surrounding region and note any deviations in the
    needle direction readings.

    humanoido
Sign In or Register to comment.