Things used in this project

Hardware components:
Cutout cortado grande
Punch Through LightBlue Bean
×1
1M ohm resistor
×4
Mfr 25frf52 1k sml
Resistor 1k ohm
×1
piezo buzzer
×1
Solid wire
×1
1/4” plywood
×1
tiny screw
×2
Wood glue
×1
Heat shrink tubing
×1
Software apps and online services:
Punch Through bean loader
Ide web
Arduino IDE
Hand tools and fabrication machines:
Lasercutter
Laser cutter (generic)
09507 01
Soldering iron (generic)
Pliers
Wire stripper
Small brush

Custom parts and enclosures

Ukulele
Ukulele.zip

Code

CodePlain text
#include <CapacitiveSensor.h>

#define COMMON_PIN5
#define BUZZER_PIN4
#define THRESHOLD100
#define NUM_OF_STRINGS 4

#define CS(Y) CapacitiveSensor(COMMON_PIN, Y)

CapacitiveSensor strings[] = {CS(0), CS(1), CS(2), CS(3)};

int notes[] = {587, 392, 494, 659};

void setup() {
  for (int i = 0; i < NUM_OF_STRINGS; i++) {
  strings[i].set_CS_AutocaL_Millis(0xFFFFFFFF);
  }
  pinMode(BUZZER_PIN, OUTPUT);
}

void loop() {
  for (int i = 0; i < NUM_OF_STRINGS; ++i) {
    if (strings[i].capacitiveSensor(10) > THRESHOLD) {
    tone(BUZZER_PIN, notes[i]);
    delay(100);
    noTone(BUZZER_PIN);
    }
  }
  Bean.sleep(100);
}
Github
https://github.com/PunchThrough/ukulele

Credits

11014907 917762441613247 2463536654633089299 o
Punch Through
16 projects • 37 followers
We’ve been building connected products since 2009. Our diverse team has expertise in every layer from hardware to software to web.
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / Login