Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Capacitance touch midi 'key-tar'

  1. #1
    Senior Member ETMoody3's Avatar
    Join Date
    Mar 2014
    Location
    New Ulm, Mn
    Posts
    146

    Capacitance touch midi 'key-tar'

    https://github.com/KreoPensas/Platypus

    This is a wireless midi keyboard project that uses MPR121 capacitance touch breakouts, a pair of old XBee radios, a Teensy 4 , a 240x240 pixel ST7789 display, an ADS1015 analog-to-digital card.

    At the moment, the receiver is based on a mega2560 but I'm going to replace that with a Teensy 3.6 and add a simple synthesizer output as well as the midi.

    It is powered by a 5000 mAh lipo battery. I'm using one of these TC4056A chargers:

    https://www.amazon.com/dp/B01J7FXZLY..._05UtFbX1VTX9P

    ...and one of these Pololu step down converters to share the 3.3 volt burden as the combination of the xbee radio and the capacitance sensors is a bit much for the Teensy's on board regulator.

    https://www.pololu.com/product/2122

    It could be built in any form you'd like but I went for a key-tar configuration and took style cues from the Yamaha SHS-10. I have included my original blueprint, and made the body out of voidless birch craft plywood and poplar 3/4" square doweling.

    I used copper foil tape for the keys, covered with Cricut vinyl.
    I cut the vinyl on a Brother Scan N Cut, and will share that file.
    (If I can, I'll export it as a generic cad file as well)

    The pitch bend is optical but one could easily substitute a common maker-type joystick. The detail photos aren't that great but give the general idea of how it was done.

    By default the software turns on with the keyboard in a fixed velocity output, but there is touch velocity output as well as channel aftertouch. There is also a panic button that sends an "all notes off" message that can be used while playing to send staccato notes.

    It performs as well as any professional keyboard I've ever used with the added benefit of things you can do with flat capacitance touch keys you simply cannot do with mechanical keys.

    The MPR121 device may be end of life, but it looks to me like there are thousands of breakout boards sitting in warehouses waiting for a use. I find them at various vendors on Amazon, as well as the usual alternatives like Banggood, aliexpress, ebay, etc. There's no shortage of them.

    Click image for larger version. 

Name:	C557C6CC-152C-44B0-BF63-D2DD700FFB9C.jpeg 
Views:	9 
Size:	95.1 KB 
ID:	21574
    Click image for larger version. 

Name:	16C89D35-85D8-4FE6-892C-CE529A9C6DB6.jpeg 
Views:	6 
Size:	85.4 KB 
ID:	21575
    Click image for larger version. 

Name:	3B2EAC5A-C658-436D-9639-87117A468EEE.jpeg 
Views:	14 
Size:	69.1 KB 
ID:	21576
    Click image for larger version. 

Name:	58D40B8A-D2CB-469A-906D-63F943D0AE64.jpeg 
Views:	7 
Size:	53.3 KB 
ID:	21577
    Click image for larger version. 

Name:	30D08D7F-DC22-4B7D-860A-D56DE03B8799.jpg 
Views:	9 
Size:	233.3 KB 
ID:	21578
    Click image for larger version. 

Name:	A4748B3B-9C5C-4FB6-9080-6655AE57CD3F.jpeg 
Views:	9 
Size:	342.2 KB 
ID:	21579
    Click image for larger version. 

Name:	A32D7E9F-5B40-4206-9B52-62B534065DC7.jpg 
Views:	10 
Size:	198.2 KB 
ID:	21580
    Click image for larger version. 

Name:	2E68EBE9-BA88-4FA3-82AD-53ABFE7D5E96.jpg 
Views:	7 
Size:	134.2 KB 
ID:	21581
    Click image for larger version. 

Name:	0F5BECB6-2282-47B8-B475-9889E821B50B.jpg 
Views:	7 
Size:	109.6 KB 
ID:	21582
    Click image for larger version. 

Name:	9C13574B-888E-497B-942A-DB881D8A43A1.jpg 
Views:	7 
Size:	115.4 KB 
ID:	21583
    Last edited by ETMoody3; 09-02-2020 at 01:26 AM.

  2. #2
    Senior Member ETMoody3's Avatar
    Join Date
    Mar 2014
    Location
    New Ulm, Mn
    Posts
    146
    Receiver, soon to be rebuilt with a Teensy 3.6:

    Click image for larger version. 

Name:	D0740696-F0ED-46EE-812C-1BC2B6C4C6C3.jpeg 
Views:	7 
Size:	151.4 KB 
ID:	21584
    Click image for larger version. 

Name:	FF7CFFBC-C806-469F-A160-E3732FA1D2E2.jpeg 
Views:	4 
Size:	148.0 KB 
ID:	21585
    Click image for larger version. 

Name:	80E13CC3-E54C-4423-AF0D-70E2C73C81ED.jpeg 
Views:	7 
Size:	147.0 KB 
ID:	21586

  3. #3
    Senior Member ETMoody3's Avatar
    Join Date
    Mar 2014
    Location
    New Ulm, Mn
    Posts
    146
    Whoops, forgot one important thing about the mega2560 on the receiver. It has to be a board with an Atmel chip for the usb DFU, and you need to grab a mocolufa firmware for it. I can't seem to find that hex file, but you can generate one at
    https://moco-lufa-web-client.herokuapp.com/#/

    Of course, this isn't necessary using a Teensy for the receiver. I am writing and testing that upgrade this morning and will upload it to github.

  4. #4
    Senior Member ETMoody3's Avatar
    Join Date
    Mar 2014
    Location
    New Ulm, Mn
    Posts
    146
    Teensy receiver code written and tested! It has been uploaded to github and the documentation updated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •