Things used in this project

Hardware components:
Pinoccio Starter Kit
×1
Big Red Dome Button
×1
22-gauge wire
×1

Custom parts and enclosures

sparkfun-button-stand.stl

Sketchfab still processing.

Code

button.cC/C++
button.c
// Save these functions to your Scout (the one in the button), via HQ or the Arduino IDE.

function startup { pin.write("d2", HIGH); pin.makeinput("d3", INPUT_PULLUP); };
function on.d3.low { message.group(1); };
lights.cC/C++
lights.c
// Save this function to each other Scout in your troop. After adding it, you can use
// "print n" to show the number of times the button has been pushed - useful for tracking
// attendance or other metrics.
// The "if" statement here checks the ID number of the Scout that sent the message. If
// necessary, change it to the correct one (as seen in the video).

function on.message.group { if (arg(2) == 7) {led.red(2000); n = n+1; }; };

Credits

Tmp image 0?auto=compress%2cformat&w=60&h=60&fit=min
Alex Glow

The Hackster team's resident Hardware Nerd. I like robots, music, EEG, wearables, and languages. FIRST Robotics kid.

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

DHT22 Sensor and Pinoccio
  • 1,611
  • 5

Full instructions

Using DHT22 Temperature and Humidity sensor with Pinoccio

Mesh Your Brain
  • 3,459
  • 22

Full instructions

Build your own Internet of Brains with this wireless EEG hack!

Human Presence Detection & Visualization
  • 1,064
  • 9

Full instructions

Team Cogitate's social radar displays people nearby as a set of glowing orbs

Hideous Arc Reactor Sweater (WIP)
  • 812
  • 6

Work in progress

Power through the holiday slump with this festive, EEG-reactive sweater!

Pinoccio Craft
  • 374
  • 5

Full instructions

Send Bitlash Pinoccio Commands through Minecraft.

Solar Powered Pinoccio Scout
  • 1,078
  • 9

Run your wireless mesh forever with Adafruit's solar LiPo charger

Add projectSign up / Login