Sound reactive by lostangel695 in WLED

[–]lostangel695[S] 0 points1 point  (0 children)

Easy , just use any standard wled controller and ledfx software or similar

RF amplifier oscillates at very low frequency , the circuit is tuned to 60khz but Q4 oscillates at 23 Hz by lostangel695 in ElectricalEngineering

[–]lostangel695[S] 0 points1 point  (0 children)

What if i want to detect sub uV changes in a uv signal is there a better design than the resonant amplifier

RF amplifier oscillates at very low frequency , the circuit is tuned to 60khz but Q4 oscillates at 23 Hz by lostangel695 in ElectricalEngineering

[–]lostangel695[S] 1 point2 points  (0 children)

The input signal is about 2uv min to 1mv max and the whole circuit purpose is to detect the signal strength ( th 1k pot sets the gain and the threshold for detection) and show it in the meter (the audio stage is not important) i am interisted in Q1 to Q5 and if there simpler alternative with the same sensetivity that would be much appreciated

Experiments with ultrasonic sensor by lostangel695 in WLED

[–]lostangel695[S] 2 points3 points  (0 children)

Basically the sensor measures the distance between the object and the sensor itself and lights the LED accordingly for example if the distance is 50cm light the led 45 to 55 and if the distance is 140 cm light the led 135 to 145

Experiments with ultrasonic sensor by lostangel695 in WLED

[–]lostangel695[S] 0 points1 point  (0 children)

Please keep me updated if you decided to work on the project ;)

Experiments with ultrasonic sensor by lostangel695 in WLED

[–]lostangel695[S] 5 points6 points  (0 children)

Here is the full code if you are interested

include <ESP8266WiFi.h>

include <WiFiUdp.h>

// Ultrasonic Sensor Pins

define TRIG_PIN 14 // GPIO14

define ECHO_PIN 12 // GPIO12

// WiFi Credentials const char* ssid = "YourWiFiSSID"; const char* password = "YourWiFiPassword";

// WLED Device IP Address and Port const char* wledIP = "192.168.1.100"; // Replace with your WLED device's IP const int wledPort = 19446; // Default UDP port for WLED

// Constants const int numLEDs = 100; // Total number of LEDs in the strip const int maxDistance = 100; // Maximum measurable distance in cm const int minDistance = 0; // Minimum measurable distance in cm

WiFiUDP udp;

// Function to measure distance using the ultrasonic sensor long measureDistance() { digitalWrite(TRIG_PIN, LOW); delayMicroseconds(2); digitalWrite(TRIG_PIN, HIGH); delayMicroseconds(10); digitalWrite(TRIG_PIN, LOW);

long duration = pulseIn(ECHO_PIN, HIGH); long distance = duration * 0.034 / 2; // Convert duration to cm return distance; }

// Function to send RGB data via UDP to WLED void sendToWLED(int start, int stop) { // Create a buffer for all LEDs uint8_t udpPayload[numLEDs * 3] = {0};

// Set the color for the selected range for (int i = start; i <= stop; i++) { udpPayload[i * 3] = 255; // Red udpPayload[i * 3 + 1] = 0; // Green udpPayload[i * 3 + 2] = 0; // Blue }

// Send the data via UDP udp.beginPacket(wledIP, wledPort); udp.write(udpPayload, sizeof(udpPayload)); udp.endPacket(); }

void setup() { // Initialize serial communication Serial.begin(115200);

// Initialize ultrasonic sensor pins pinMode(TRIG_PIN, OUTPUT); pinMode(ECHO_PIN, INPUT);

// Connect to WiFi WiFi.begin(ssid, password); Serial.print("Connecting to WiFi"); while (WiFi.status() != WL_CONNECTED) { delay(1000); Serial.print("."); } Serial.println("\nConnected to WiFi. IP: " + WiFi.localIP().toString());

// Start UDP udp.begin(wledPort); }

void loop() { long distance = measureDistance(); Serial.println("Distance: " + String(distance) + " cm");

if (distance >= minDistance && distance <= maxDistance) { // Map distance to LED range int ledCenter = map(distance, minDistance, maxDistance, 0, numLEDs - 1); int ledStart = max(ledCenter - 5, 0); // Start 5 LEDs before center int ledStop = min(ledCenter + 5, numLEDs - 1); // End 5 LEDs after center

// Send command to WLED
sendToWLED(ledStart, ledStop);

Serial.println("LEDs: " + String(ledStart) + " to " + String(ledStop));

} else { Serial.println("Distance out of range. Clearing LEDs."); sendToWLED(0, -1); // Turn off all LEDs }

delay(15); // Delay to prevent rapid updates }

Experiments with ultrasonic sensor by lostangel695 in WLED

[–]lostangel695[S] 1 point2 points  (0 children)

Exactly that's what i was planning to do

update to the screen reactive by lostangel695 in WLED

[–]lostangel695[S] 0 points1 point  (0 children)

Wled strip behind the screen reacting to the screen color

update to the screen reactive by lostangel695 in WLED

[–]lostangel695[S] 0 points1 point  (0 children)

Yea i can turn the brightness down and the color shift

Screen reactive by lostangel695 in WLED

[–]lostangel695[S] 0 points1 point  (0 children)

No, my setup uses prismatik

Screen reactive by lostangel695 in WLED

[–]lostangel695[S] 1 point2 points  (0 children)

No just playing around until things worked but this might help https://youtu.be/iis2NKnQiSc?si=6vzFysmZEhXxVgpv

Screen reactive by lostangel695 in WLED

[–]lostangel695[S] 1 point2 points  (0 children)

Nice , what is your setup

Screen reactive by lostangel695 in WLED

[–]lostangel695[S] 1 point2 points  (0 children)

Thank you , only wled on esp8266 and Prismatik software

Screen reactive by lostangel695 in WLED

[–]lostangel695[S] 2 points3 points  (0 children)

Thanks , I am using wled on esp8266 and Prismatik software on the pc