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

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

Similar projects you might like

Web-controlled BoE-Shield Robot with the LightBlue Bean[+]
Intermediate
  • 829
  • 22

Full instructions

Have you ever wanted to control a robot from a web browser? Use the LightBlue Bean[+] (LBB[+]) to control a BoE-Shield Robot using BLE.

RadBit
Intermediate
  • 1,093
  • 19

FitBit-type Bluetooth radiation sensor for tracking radiation exposure (for working around X-rays in the hospital, or just life in general).

Handy BLE app / Bean Car
Intermediate
  • 4,181
  • 29

Work in progress

Remote control bean powered car driven with an iPhone running the Handy BLE app.

El Wire T-shirt: Connected to a LightBlue Bean
Intermediate
  • 285
  • 6

Work in progress

A custom Internet connected shirt using a LightBlue Bean to light up the shirt's El Wire graphics.

Data Pyrotechnics
Intermediate
  • 552
  • 7

Full instructions

What happens when you strap a LightBlue Bean to some fireworks?

Water Detection System
Intermediate
  • 2,888
  • 23

Full instructions

Send email alerts with LightBlue Bean using Node-RED on Raspberry Pi

Add projectSign up / Login