build me something interesting
- User
build me something interesting
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
build me something interesting
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Here’s a fun and interactive project you can build: A Voice-Controlled LED Light Show using an Arduino and some basic components. It’s a great mix of hardware and software, and the result is visually impressive!
A system that changes LED patterns based on voice commands (e.g., "red," "blue," "disco mode," "off").
#include <Adafruit_NeoPixel.h>
#define LED_PIN 6
#define LED_COUNT 30
Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);
const int micPin = A0;
int soundThreshold = 500; // Adjust based on mic sensitivity
void setup() {
strip.begin();
strip.show(); // Initialize LEDs off
Serial.begin(9600);
}
void loop() {
int soundLevel = analogRead(micPin);
Serial.println(soundLevel);
if (soundLevel > soundThreshold) {
// Voice detected! Change LED pattern randomly
int mode = random(1, 5);
switch (mode) {
case 1:
colorWipe(strip.Color(255, 0, 0), 50); // Red
break;
case 2:
colorWipe(strip.Color(0, 255, 0), 50); // Green
break;
case 3:
colorWipe(strip.Color(0, 0, 255), 50); // Blue
break;
case 4:
theaterChase(strip.Color(127, 127, 127), 50); // Disco mode
break;
}
}
}
// Fill LEDs one by one with a color
void colorWipe(uint32_t color, int wait) {
for (int i = 0; i < strip.numPixels(); i++) {
strip.setPixelColor(i, color);
strip.show();
delay(wait);
}
}
// Theater-style crawling lights
void theaterChase(uint32_t color, int wait) {
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 3; b++) {
strip.clear();
for (int c = b; c < strip.numPixels(); c += 3) {
strip.setPixelColor(c, color);
}
strip.show();
delay(wait);
}
}
}
soundThreshold in the code if needed.Would you like a simpler or more complex project? Or something entirely different (e.g., a web app, robot, game)? Let me know! 🚀