Retro Sound
Play Retro Sounds and Tones on a 3.5mm Audio Jack
- Overview
- Commands
- Samples
- On-Module Code
A 3.5 mm audio jack output for connecting headphones or amplified speakers, with separate left/right channels and on-board filters that smooth the PWM-generated waveform into clean tones. Drive each channel with simple text commands over any supported interface.
Common uses: chiptune-style game audio, alarm tones with stereo separation, melody playback, classroom synthesis labs, and any retro-flavored project that benefits from headphone-quality output instead of a buzzer.
Not an MP3 player — for recorded audio playback, see MP3.
Key features • Frequency Range 200Hz to 10Khz | Resources 📄 Schematics PID: 0x070006 |
Modules ship without cables to reduce waste. Some specialty boards include a USB cable; for the rest, see Cables to add cables to your order.
Commands this module accepts. See Samples for runnable code in popular host languages.
| Function | Description |
|---|---|
GetPin() | returns pin, to be used with standard library sound functions. |
SetLVol(v) | Set left volume |
SetRVol(v) | Set right volume |
LaserSfx(v) | Laser Sound Effect |
DVer() | This driver version. |
Peek under the hood
The script below is this module's driver — it teaches the hardware how to respond to the commands listed above. It ships pre-loaded from the factory; most users never need to open it.
loading...
Example code that calls this module's commands from popular host languages.
New here? See Get Started to connect a module and send your first command.
- Script
- Python
- MicroPython
- JavaScript
- .NET
- Arduino
- MicroBlocks
loading...
loading...
loading...
loading...
loading...
loading...
This sample runs in MicroBlocks on a any host board that's connected/tethered to this module, or a chain of modules. This module keeps its official DUELink firmware and module driver and responds to commands from the connected MicroBlocks-running host. New here? See the MicroBlocks page.
There are two ways to use it:
Open the full sample — the complete project (the module's library plus a ready-to-run example) opens directly on the MicroBlocks website.
Add just the libraries to your own project — copy the link, then in your MicroBlocks project click Add Library → Cloud and paste it. This loads this module's libraries into your project without replacing your current work.
Copy Library LinkCode that runs directly on this module's MCU. See how On-Module Code allows modules to run standalone.
- Script
- Arduino IDE
This example runs using the default DUELink Internal Engine using its Scripting Language, and it expects the module's driver to be loaded first, see the Commands Tab.
loading...
See Arduino IDE page for more info.
loading...
Ordering Info
| Product | Part Number | Price |
|---|---|---|
| DUELink Retro Sound | GDL-SORETROSND-A | $14.95 |