Electronic Keyboard Unit MEGA328P Inside 16Key Fruit Paino with RGB LED and Buzzer

Electronic Keyboard Unit MEGA328P Inside 16Key Fruit Paino with RGB LED and Buzzer

  • R 382.92
    Unit price per 
  • Save R 382.92
Tax included.

SKU:

Description:

MA KEY Unit is inspired by an Invention kit called Ma key Ma key which brings the concept that users can connect everyday objects to computer programs. Using a circuit board, alli gator clips, and a USB cable, the circuit uses closed loop electrical signals to send the microprocessor either a keyboard stroke or m o u s e click signal. We've tried connect a bounch of fruits, one for each key,to this Unit. When you touch the ap ple, you make a connection, and Ma Key sends the processor a keyboard message. The buzzer inside or speaker on M5core will exhibit the key value, so instead of using a keyboard, you can make a fruit piano.

This Unit communicates with the M5Core via the GROVE A I2C(0x51).

Instructions:

1  Use the buzzer on the unit to exhibit sounds:

Take a Dupont wire(male to male), one end plug into GND, hold the other end to your hand. Take another Dupont wire(male to male), one end plug into different key holes, the other end hold by the other hand. Make it a close circult. Plug into different key tones the buzzer will emit the corresponding tones.

Use the speaker on the M5core to exhibit sounds: Connct MA KEY with M5Core via Grove A Download this example.

Repeat the same operation as above. you will see this sound much better.

Product Features:

  • for Mega328p Controller
  • Buzzer inside
  • Up to 16 keys
  • Software Development Platform: for , UIFlow(Blockly,Python)
  • Two Le go-compatible holes
  • Product Size: 32.2mm x 24.2mm x 8.2mm
  • Product weight: 7.1g

Package Included:

  • 1x MA KEY unit
  • 1x GROVE Cable

Application:

  • Fruit piano

EasyLoader

<blockquote style="box-sizing: border-box; font-size: 16px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none; margin: 2em 0px; overflow: visible; padding: 1.5em; border-width: var(--blockquote-border-width, 0); border-style: var(--blockquote-border-style); border-color: var(--blockquote-border-color); border-radius: var(--blockquote-border-radius); background: var(--blockquote-background); color: rgb(33, 37, 41); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;; quotes: &quot;

1.EasyLoader is a simple and fast program burner, and each product page has a product-related case program for EasyLoader.

2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click "Burn" to start burning.

3.The CP210X (USB driver) needs to be installed before the EasyLoader is burned. Click here to view the driver installation tutorial

Example:

1. for IDE

The code below is incomplete. To get complete code, please click here.

  #include <M5Stack.h>  #include <Wire.h>    // initialization  M5.begin();  pinMode(21, INPUT); pinMode(22, INPUT);  Wire.begin();// Init I2C    // read data  Wire.requestFrom(MA KEY_ADDR, 2);  while (Wire.available()) {    Key1 = Wire.read();//read data from MA KEY    Key2 = Wire.read();//read data from MA KEY    tone_key = (Key2<<8) | Key1;// the following picture will explain "tone_key"  }


2. UIFlow

To get complete code, please click here.


Schematic:


PinMap:

M5Core(GROVE A) GPIO22 GPIO21