Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use LilyTwinkle: Examples, Pinouts, and Specs

Image of LilyTwinkleDesign with LilyTwinkle in Cirkit Designer

Introduction

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.

Explore Projects Built with LilyTwinkle

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Cellular-Enabled IoT Device with Real-Time Clock and Power Management: A project utilizing LilyTwinkle in a practical application
Cellular-Enabled IoT Device with Real-Time Clock and Power Management

This circuit features a LilyGo-SIM7000G module for cellular communication and GPS functionality, interfaced with an RTC DS3231 for real-time clock capabilities. It includes voltage sensing through two voltage sensor modules, and uses an 8-channel opto-coupler for isolating different parts of the circuit. Power management is handled by a buck converter connected to a DC power source and batteries, with a fuse for protection and a rocker switch for on/off control. Additionally, there's an LED for indication purposes.

Open Project in Cirkit Designer
Image of ESP32-Powered Voice-Controlled LED Lighting System: A project utilizing LilyTwinkle in a practical application
ESP32-Powered Voice-Controlled LED Lighting System

This is a voice-activated lighting system powered by a 12V battery, featuring two ESP32 microcontrollers for voice processing and light control. It includes an INMP441 microphone for audio input, a toggle switch for user interaction, and various LEDs for visual feedback. The system is designed to recognize specific voice commands to control the state of the LEDs.

Open Project in Cirkit Designer
Image of Cellular-Connected ESP32-CAM with Real-Time Clock and Isolated Control: A project utilizing LilyTwinkle in a practical application
Cellular-Connected ESP32-CAM with Real-Time Clock and Isolated Control

This circuit integrates a LilyGo-SIM7000G module with an RTC DS3231 for timekeeping, interfaced via I2C (SCL and SDA lines). An 8-Channel OPTO-COUPLER is used to isolate and interface external signals with the LilyGo-SIM7000G's GPIOs. Power is managed by a Buck converter, which steps down voltage from a DC Power Source to supply the ESP32-CAM and LilyGo-SIM7000G modules, as well as the OPTO-COUPLER.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

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

Usage Instructions

How to Use the LilyTwinkle in a Circuit

  1. Powering the LilyTwinkle: Connect a 3V coin cell battery or other power sources to the VCC and GND pins.
  2. Programming the LilyTwinkle: Use an ISP programmer connected to the ISP header to upload your code.
  3. Connecting Additional Components: Use the I/O pins to connect sensors, actuators, or other LEDs. Ensure that the components are compatible with the operating voltage and current limitations of the LilyTwinkle.

Important Considerations and Best Practices

Troubleshooting and FAQs

Common Issues

Solutions and Tips for Troubleshooting

FAQs

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.

Example Code for Arduino UNO

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.