Wearables¶
1. Objective¶
* Research skills: the participant has acquired knowledge through references and Concept development
* skills: the participant has learnt by programming a microcontroller, design a circuit and schematic
. Fabrication skills: the participant acquired skills necessary to integrate inputs and outputs in a microcontroller wearable project
. Process skills: Anyone can go through the process, understand it and reproduce it
.Final outcome: Assembled project, functioning and complete
Originality: Has the design been thought through and elaborated?
2. References, research & inspiration¶
WEARABLES¶
When I think of wearables, I think of smartwatches, headphones, bracelets, glasses, and things like that, but this week's class gave me other types of information for different applications.
3. Tools¶
- [Arduino] software
-[Gemini] consultor
4. Process and workflow¶
To begin the process of assembling wearables, I was excited to make the sound activator. I found a favorite song and downloaded it to my SD memory.Next, download an Arduino plugin called DFRobotplayer.
Once the plugin was installed, I opened an example that came with the Arduino files and started this new adventure!
4.1 Step 1¶
Download the music in MP3 format, SAVE THE MUSIC ON AN SD CARD WITH THE NAME 0001 ,
4.2 Step 2¶
4.3 Step 3¶
Let's start programming in Arduino
Speakers :¶
#include "Arduino.h"
#include "DFRobotDFPlayerMini.h"
DFRobotDFPlayerMini myDFPlayer;
// Pin activador: al unir D0 con GND se dispara el sonido
const int pinActivador = D0;
void setup() {
// Serial1 en la XIAO RP2040 corresponde a los pines D6 (TX) y D7 (RX)
Serial1.begin(9600);
pinMode(pinActivador, INPUT_PULLUP);
pinMode(LED_BUILTIN, OUTPUT);
// Espera 1 segundo para que el DFPlayer encienda bien
delay(1000);
if (!myDFPlayer.begin(Serial1)) {
// Si hay error de conexión con el DFPlayer, la luz de la placa parpadeará rápido
while (true) {
digitalWrite(LED_BUILTIN, HIGH);
delay(150);
digitalWrite(LED_BUILTIN, LOW);
delay(150);
}
}
// Volumen al máximo (rango de 0 a 30) para mover el hilo conductivo
myDFPlayer.volume(30);
// Reproduce automáticamente la pista 0001.mp3 al encender para probar
myDFPlayer.play(1);
}
void loop() {
// Cuando tocas D0 con un cable conectado a GND, vuelve a reproducir el audio
if (digitalRead(pinActivador) == LOW) {
digitalWrite(LED_BUILTIN, LOW); // Enciende el LED de la XIAO (en XIAO LOW = encendido)
myDFPlayer.play(1); // Reproduce 0001.mp3
delay(2000); // Pausa de 2 segundos para evitar disparos dobles
digitalWrite(LED_BUILTIN, HIGH);
}
}
Vibrator:¶
void setup() {
pinMode(D0, OUTPUT); // Le decimos que en D0 está el vibrador
}
void loop() {
digitalWrite(D0, HIGH); // ¡PRENDE el vibrador! (Bzzzzz)
delay(1000); // Espera 1 segundo temblando
digitalWrite(D0, LOW); // APAGA el vibrador
delay(1000); // Espera 1 segundo descansando
}
5. Results¶
* Don’t forget to document the outcome including:
* Final result
* Photos from different stages
* [Videos](#21-quick-how-tos) of movement or interaction, show how a material moves, something was assembled or the interaction
* Include measurements or a reference object to give a sense of scale
* Describe the (material) properties of what you made
* Comparison between attempts, if you did multiple experiments or generated multiple files before fabricating / deploying. You can use a table as shown in week 4
6. Weekly reflection & critical thinking¶
What I learned from this experience: * Start simple, then scale up: Before attempting projects involving audio, amplifiers, or multiple modules, it is essential to get a basic output (like blinking an LED or triggering a vibration motor) working reliably. * Physical connections matter: In e-textiles and wearables, having the right code isn't enough; if the conductive thread or pins don't make solid contact—or if they accidentally touch each other—the circuit won't work. * Troubleshooting is part of the process: Every error message on the screen (from a charge-only USB cable to a missing upload port) wasn't wasted time, but a clue that helped me understand how the computer, the code, and the hardware communicate.
NuEval — final step
Go to NuEval and fill in the checklist, when not complete notify your instructor.
7. Fabrication files & References¶
-
File: archivo ino ↩
-
File: Vibrator [actuator] (../files/week09/speaker/) ↩
-
Reference: Author; Title; Source; year ↩


