Disco_nnected! Useless Machine

by BilgeArslan in Circuits > Arduino

54 Views, 1 Favorites, 0 Comments

Disco_nnected! Useless Machine

Untitled_Artwork.png
Untitled_Artwork 1.png
Result2.jpeg
WhatsApp Görsel 2025-06-05 saat 23.52.54_714e3b49.jpg
Disco_nnected!

This project conducted as art of the Computational Design and Digital Fabrication seminar in the ITECH master program.

Project by: Benan Ataulusoy, Bilge Arslan, Gonzalo Novoa


It’s not an ordinary necklace. Maybe from the outside, it looks like a small accessory but it carries a hidden purpose. A kind of game, a kind of invitation! A jewel that lets its wearer carry their own personal party around their neck. And anyone who enters its field of view unknowingly becomes part of a performance, pulled toward the sound by the excitement of music and dance. It’s a kind of experiment!

When a person approaches, the life inside the necklace begins to stir: a soft light turns on. The lights rise to form a glowing halo above the wearer’s head, and the first song begins to play. This opening track invites the person in front to dance, to come closer. As their steps get nearer, the rhythm speeds up, the song changes. The closer the guest gets, the more vibrant the music becomes, and it changes again.

This machine may be useless but its impact is undeniable! With Disco_nnected, become a shining, useless DJ.

Supplies

AssemblyPieces.png
Diagram_bb_annotated.png

Electronics

  1. Arduino
  2. Stepper Motor SG90
  3. Stepper Motor Driver Module ULN2003
  4. Ultrasonic Sensor
  5. DF Mini Player
  6. Speaker 2W 8 ohm --- 2x
  7. Micro SD Card
  8. LED Strip, 10x LED 0,06W 3V
  9. NPN Transistor PN2222
  10. 1K ohm resistor
  11. 330 ohm resistor
  12. 5V 2A power supply
  13. 1.5V AA battery --- 2x
  14. Breadboard

Hardware

  1. 3D printed custom hinge system, includes breadboard and Arduino housing
  2. USB Cable compatible with Arduino input
  3. Battery case for 2 AA batteries
  4. Custom chamber construction for LEDs
  5. Custom necklace base cut from mesh/metal sheet.
  6. Foil to cover cables
  7. 2-sided tape
  8. Electrical tape
  9. Solder tools

Construct the Arduino Code

Code_Diagram.jpg

0.Set-up

The code uses the following libraries, all available to download inside Arduino IDE.

  1. SoftwareSerial.h
  2. DFRobotDFPlayerMini.h
  3. Stepper.h
  4. math.h

1. Start-Up

When the system powers on, it initializes:

  1. The ultrasonic sensor (for distance measurement),
  2. The stepper motor (for movement),
  3. And the DFPlayer Mini (to play music from an SD card).

The system is now ready to detect distance and respond accordingly.

2. Distance Detection and States

The system constantly checks how far an object is from the sensor. It uses a state machine with four states:

  1. Idle – Waiting for something to appear.
  2. Going Forward – The motor moves forward.
  3. Playing – A music track plays while the object remains detected.
  4. Going Back – The motor returns to its original position after the object leaves.

When an object enters a certain distance range, the system changes from Idle to Going Forward.

3. Motor and Sound Activation

Once an object is detected:

  1. The LED's turns on, signaling that the system is active.
  2. The motor rotates forward, lifting up the “party halo (light chamber)”.

After the motor finishes moving forward, the system enters the Playing state. One of three audio tracks is played depending on the measured distance:

  1. Far: Track 1
  2. Medium: Track 2
  3. Close: Track 3

If the object moves closer or farther while still in front of the sensor, the system automatically switches tracks to match the new distance.

4. Waiting and Returning

When the object leaves:

  1. The system waits a short moment (1 second) to avoid reacting to sudden glitches or quick movements.
  2. If the object does not return:

-The sound stops,

-The motor rotates back to its starting position,

-And the LED's turns off.

The system returns to the Idle state, ready for the next interaction.

Construct the Circuit

  1. Connect the DF Player to the Arduino
  2. Rx --- > 1K Ohm resistor --- > pin 9 (advised digital pin)
  3. Tx --- > pin 10 (advised digital pin)
  4. VCC --- > 5V of Arduino
  5. GND --- > GND of Arduino
  6. Spk_1 --- > Speaker (+) of each
  7. Spk_2 --- > Speaker (-) of each
  8. Connect the Stepper Motor and Driver to the Arduino
  9. Preordered 5 wire --- > Driver's ABCD pinout
  10. Driver IN1 --- > pin 2 (digital pin)
  11. Driver IN2 --- > pin 4 (digital pin)
  12. Driver IN3 --- > pin 3 (digital pin)
  13. Driver IN4 --- > pin 5 (digital pin) (* pay attention to orders)
  14. (+) --- > 5V of Arduino
  15. (-) --- > GND of Arduino
  16. Connect the Ultrasonic Sensor
  17. VCC --- > 5V of Arduino
  18. GND --- > GND of Arduino
  19. Trig --- > pin 7
  20. Echo --- > pin 8
  21. Connect the LED strip
  22. LED strip (+) --- > Battery (+)
  23. LED strip (-) --- > NPN Transistor Collector pinout (C)
  24. Battery (-) --- > GND of Arduino
  25. NPN Transistor Emitter pinpout (E) --- > GND of Arduino
  26. NPN Transistor Base (B) --- > 330 Ohm resistor --- > pin 9 (digital pin)

Construct the Necklace

AssemblyParts.png

While designing the necklace, all Arduino connections were established first.

  1. A distance sensor was attached to the bottom of the necklace, and speakers were placed on the sides.
  2. The main body of the necklace was cut from an aluminum metal sheet, shaped according to the design.
  3. The sensor, speakers, and wires were covered with a matching surface material for a unified look.
  4. For the light chamber, a wooden strip was wrapped with the same metallic-looking material, and an LED strip was attached to it.
  5. A custom 3D-printed system was created to combine the necklace, light chamber, and Arduino into one piece.
  6. The housing for the Arduino and the breadboard were designed to gather the whole mechanism into a single module.
  7. At one end of the breadboard housing, there is a hinge system designed to rotate the light chamber and a slot for a step motor.
  8. The light chamber is connected to this hinge system using an additional 3D-printed part.
  9. Thanks to this system, when the sensor detects someone approaching, it lifts the light chamber (the halo) upward.