The LilyTwinkle is a compact, wearable microcontroller board designed around the ATtiny85 chip. It is equipped with an onboard RGB LED, a power switch, and a programming interface, making it an ideal choice for interactive wearable projects that require illumination. Its small form factor and low power consumption allow it to be seamlessly integrated into textiles and wearable garments, providing a platform for fashion technology, smart accessories, and educational purposes.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply (3V to 5V) |
2 | GND | Ground connection |
3 | PB3 | Digital I/O, Analog Input, PWM |
4 | PB4 | Digital I/O, Analog Input, PWM, used for onboard RGB LED |
5 | PB1 | Digital I/O, Analog Input, PWM |
6 | PB2 | Digital I/O, Analog Input, PWM, used for programming |
7 | PB5 | Reset pin, used for programming |
8 | PB0 | Digital I/O, Analog Input, PWM |
Q: Can I reprogram the LilyTwinkle without an ISP programmer? A: No, the LilyTwinkle requires an ISP programmer for code uploading.
Q: Is the LilyTwinkle washable? A: The LilyTwinkle itself is not washable. If integrated into clothing, the electronics should be removable or properly waterproofed.
Q: How do I extend the battery life of my project? A: Utilize sleep modes in your code, reduce the brightness of LEDs, and use power-efficient components.
Q: Can I connect multiple LilyTwinkles together? A: Yes, you can connect multiple LilyTwinkles in a project, but ensure that each one is properly powered and that the I/O pins are not overloaded.
Below is an example code snippet for controlling the onboard RGB LED of the LilyTwinkle using an Arduino UNO. This code assumes you have connected the LilyTwinkle to the Arduino UNO for programming purposes.
// Define the pin connected to the onboard RGB LED
const int ledPin = 4; // PB4 on the LilyTwinkle
void setup() {
// Set the LED pin as an output
pinMode(ledPin, OUTPUT);
}
void loop() {
// Turn on the LED
digitalWrite(ledPin, HIGH);
delay(1000); // Wait for 1 second
// Turn off the LED
digitalWrite(ledPin, LOW);
delay(1000); // Wait for 1 second
}
Remember to configure your programming environment for the ATtiny85 and use an ISP programmer to upload the code to the LilyTwinkle.