Tetrahedron LED Light

Introduction: Tetrahedron LED Light

I am always interested in the idea of "module". It provides freedom to create a unique piece of each user.

This intractable will teach you how to make a pressure sensitive module tetrahedron light.

The materials you need is as blow.

Material:

Wires

single color LEDs

Attiny 45 or Attiny 85

Arduino board

Piezo element

Copper tape

3V cell battery

Battery holder

Other materials:

Foldable translucent plastics

Masking tape

Magnetics

Hot glue gun

Step 1: Fold the Tetrahedron

Cut the plastics into the shape as the picture. The width of the triangle is 3.5 inch. You can adjust the size, but make sure it's not too small to fit all the circuit in.The plastics may be a little bit hard to work with. Make sure you use a folding bone to score it before you start folding.

void loop() { // read the sensor and store it in the variable sensorReading: int sensorReading = analogRead(knockSensor); // if the sensor reading is greater than the threshold: if (sensorReading >threshold) { // toggle the status of the ledPin: ledState = !ledState; // update the LED pin itself: digitalWrite(ledPin,ledState); // send the string "Knock!" back to the computer, followed by newline // Serial.println("Knock!"); } delay(100); // delay to avoid overloading the serial port buffer }

Step 3: Assemble the Tetrahedron

Put the circuit inside the tetrahedron. Make sure the circuit is working before you put it in.

Tape the piezo and the magnetics together on one of the side of the tetrahedron. And put three other magnetics on the other three sides as well. Watch the positive and negative side of the magnetic and make sure they attract when two tetrahedrons are put together.

Step 4: Finish and Play!

Make as many pieces as you want! Now you can start to play with your module lights and assemble them in different ways as creatively as possible.