Piano
Capacitive Touch Piano Module
- Overview
- Commands
- On-Module Code
Play notes using capacitive touch pads or connect alligator clips to turn ordinary objects into piano keys. Mounting holes to connect additional modules.
This board ships preloaded with MicroBlocks firmware.
Key features • Piano key layout | Resources 📄 Schematics PID: 0x0C0005 |
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.
| Function | Description |
|---|---|
DVer() | This driver version. |
SetLED(i,s) | Set specific LED to on or off. |
SetLedAll(o) | Set all leds 1,2,3,4,5 to on(1) or off(0). |
TLArrow() | return 1 if touched on left arrow. |
TRArrow() | return 1 if touched on right arrow. |
TPad(i) | return 1 if touched on pad i. |
Samples​
Example code for using this module's commands in popular languages.
New here? See Get Started to connect a module and send your first command.
- Python
- JavaScript
- .NET
loading...
loading...
loading...
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...
Code that runs directly on this module's MCU. See On-Module Code for an overview.
- Script
- Arduino IDE
- MicroBlocks
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...
This project runs standalone. It assumes that the MicroBlocks firmware is already loaded on the module.
Click the button below to open, edit, and run the project directly on MicroBlocks' website.
Ordering Info
| Product | Part Number | Price |
|---|---|---|
| DUELink Piano | GDL-SPPIANO-B | $14.95 |