<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									LED Effects - Arduino and TwitchChat - Arduino				            </title>
            <link>https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/</link>
            <description>Tweaking4All.com Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 21 Jul 2026 02:11:13 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: LED Effects - Arduino and TwitchChat</title>
                        <link>https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4797</link>
                        <pubDate>Mon, 20 Mar 2023 10:03:03 +0000</pubDate>
                        <description><![CDATA[Hi ronxtcdabass!
Apologies for the radio silence - it&#039;s been a crazy few days, and it always takes quite some time to read code and see what is going on 😁 
I&#039;m really not familiar with the...]]></description>
                        <content:encoded><![CDATA[<p>Hi <a title="ronxtcdabass" href="https://www.tweaking4all.com/participant/ronxtcdabass/">ronxtcdabass</a>!</p>
<p>Apologies for the radio silence - it's been a crazy few days, and it always takes quite some time to read code and see what is going on 😁 </p>
<p>I'm really not familiar with the IRCClient, so I do not know if the library maybe conflicts with other libraries.</p>
<p>First of all, you should probably consider cleaning up your code a little bit - just so it becomes more readable for others or when trying to debug something. Don't feel bad though, my code at times becomes a mess as well and then I just have to sit down and clean up.</p>
<p>Here an example of your loop() function after cleaning up ...<br />Use proper indentation and add spacing and such to make things more readable.</p>
<pre contenteditable="false">void loop() {
  // Sound 
  analog_sample(); 

  EVERY_N_MILLIS(1000/FRAMES_PER_SECOND) {   // Optionally set the display frame rate to a fixed frame rate without
                                               // resorting to the blocking method of FastLED.delay(1000/FRAMES_PER_SECOND).
    gHue++;
    FastLED.show();
  }

  // Try to connect to chat. If it loses connection try again
  if (!client.connected()) {
    Serial.println("Attempting to connect to " + ircChannel );
    
    // Attempt to connect, Second param is not needed by Twitch
    if (client.connect(TWITCH_BOT_NAME, "", TWITCH_OAUTH_TOKEN)) 
    {
      client.sendRaw("JOIN " + ircChannel);
      Serial.println("connected and ready");
      
      // Show if connected
      fill_solid(leds, NUM_LEDS, CRGB::Green);
      FastLED.delay(300);
      fill_solid(leds, NUM_LEDS, CRGB::Black);
      FastLED.delay(300);
    
      sendTwitchMessage("ready to ðŸ’¡ start with !fx");
    } else {
      Serial.println("failed... try again in 5 seconds");

      for (int i = 0; i &lt; 5; i++) {
        digitalWrite(LED_BUILTIN, HIGH);
        delay(500);
        digitalWrite(LED_BUILTIN, LOW);
        delay(500);
      }
       
      // Wait 5 (10) seconds before retrying
      delay(5000);
    }
    return;
  }

  client.loop();
}</pre>
<p> </p>
<p>You can also simplify the code a little bit by removing some parts that were originally added so my code could be used with FastLED and NeoPixel - but you're using FastLED so we can <strong>remove</strong> this. </p>
<pre contenteditable="false">// Apply LED color changes
void showStrip() {
 #ifdef ADAFRUIT_NEOPIXEL_H
   // NeoPixel
   strip.show();
 #endif
 #ifndef ADAFRUIT_NEOPIXEL_H
   // FastLED
   FastLED.show();
 #endif
}</pre>
<p>Once removed, replace all occurances of "<strong>showStrip();</strong>" with "<strong>FastLED.show();</strong>"</p>
<p>Same goes for the "setPixel" function which can be removed by removing this part of the code</p>
<pre contenteditable="false">// ***************************************
// ** FastLed/NeoPixel Common Functions **
// ***************************************

// Set a LED color (not yet visible)
void setPixel(int Pixel, byte red, byte green, byte blue) {
 #ifdef ADAFRUIT_NEOPIXEL_H
   // NeoPixel
   strip.setPixelColor(Pixel, strip.Color(red, green, blue));
 #endif
 #ifndef ADAFRUIT_NEOPIXEL_H
   // FastLED
   leds.r = red;
   leds.g = green;
   leds.b = blue;
 #endif
}</pre>
<p>and replace every (where Pixel, Red, Green and Blue are parameters that can be different)</p>
<pre contenteditable="false">setPixel(Pixel, Red, Green, Blue);</pre>
<p>with</p>
<pre contenteditable="false">leds.setRGB( Red, Green, Blue);</pre>
<p> </p>
<p>The "<strong>SetAll()</strong>" function can be removed as well and each call to SetAll(Red,Green,Blue) can be replaced with a "<strong>fill_solid(leds, NUM_LEDS, CRGB(Red,Green,Blue));</strong>" function call (you've used them before);</p>
<pre contenteditable="false">// Set all LEDs to a given color and apply it (visible)
void setAll(byte red, byte green, byte blue) {
  for(int i = 0; i &lt; NUM_LEDS; i++ ) {
    setPixel(i, red, green, blue);
  }
  showStrip();
}</pre>
<p> </p>
<p>After that clean up; Now a few things to keep in mind:</p>
<p>1) An Arduino, or similar microcontroller, are <em>not designed to do multitasking</em>. <br />So changing the hue of your LEDs and checking Twitch IRC at the same time may conflict (timing wise). So there may be some trickery needed there. This is where I can see changing the Hue every second may be a challenge.</p>
<p>Tip: some (maybe even all?) ESP32 models have dual core processors, and do allow some of this to be done at the same time a little better. But it will take time and effort to learn and see how this works.</p>
<p>2) Libraries additionally can conflict, especially when timing becomes critical (which <em>could</em> be the case in your situation).</p>
<p>Especially for #2 I'd always test certain pieces of code in separate sketched - just to make sure they work. I assume you've already done this.</p>
<p> </p>
<p>Having said all that, lets look at one problem at a time ... do I understand this right; <br />You're saying the "client.connected()" keeps failing and it therefor keeps trying to connect like a crazy person?<br />Or is this function called too often?</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4797</guid>
                    </item>
				                    <item>
                        <title>RE: LED Effects - Arduino and TwitchChat</title>
                        <link>https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4790</link>
                        <pubDate>Thu, 16 Mar 2023 19:06:51 +0000</pubDate>
                        <description><![CDATA[I think I found a mistake 🙂 
in my attempt switching ONLY the soundreactive and as testobject because it&#039;s so simple, only the RGB fade from the FastLED sketch..... 
added to each &quot;soundre...]]></description>
                        <content:encoded><![CDATA[<p><span class="HwtZe"><span class="jCAhz ChMk0b"><span class="ryNqvb">I think I found a mistake 🙂</span></span><span class="jCAhz"><span class="ryNqvb"> </span></span></span></p>
<p><span class="HwtZe"><span class="jCAhz ChMk0b"><span class="ryNqvb">in my attempt switching ONLY the soundreactive and as testobject because it's so simple, only the RGB fade from the FastLED sketch.....</span></span><span class="jCAhz"><span class="ryNqvb"> </span></span></span></p>
<p><span class="HwtZe"><span class="jCAhz ChMk0b"><span class="ryNqvb">added to each "soundreactive pattern / effect" before the closing bracket:</span></span><span class="jCAhz"><span class="ryNqvb"> </span></span></span></p>
<pre contenteditable="false">showStrip(); delay(3);</pre>
<p><span class="HwtZe"><span class="jCAhz ChMk0b"><span class="ryNqvb">now I can switch between the sound reactive patterns 😄</span></span><span class="jCAhz"><span class="ryNqvb"> </span></span><span class="jCAhz ChMk0b"><span class="ryNqvb">BUT!!!!!</span></span> </span></p>
<p><span class="HwtZe"><span class="jCAhz ChMk0b"><span class="ryNqvb">the WeMos now reconnects far too often... (i think it has ADHS ^^ it reconnects almost if nothing to do)<br /></span></span></span></p>
<p>and the soundreactive part doesn´t fade the colors anymore :(</p>
<pre contenteditable="false">//* Sound Variables to change! *
analog_sample();
EVERY_N_MILLIS(1000/FRAMES_PER_SECOND) { // You can optionally set the display frame rate to a fixed frame rate without
// resorting to the blocking method of FastLED.delay(1000/FRAMES_PER_SECOND).
gHue++;
FastLED.show();
}
//* Sound Variables *</pre>
<p>here my little experiment-sketch:</p>
414
<p>@hans ??? maybe can you help me again? please!</p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4790</guid>
                    </item>
				                    <item>
                        <title>RE: LED Effects - Arduino and TwitchChat</title>
                        <link>https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4787</link>
                        <pubDate>Tue, 14 Mar 2023 22:06:55 +0000</pubDate>
                        <description><![CDATA[Hello again!
i have an idea... all my tries to merging the soundreactive and the twitch sketch not work...
is it possible, to switch with an hardware button between the two sketches?
so i...]]></description>
                        <content:encoded><![CDATA[<p>Hello again!</p>
<p>i have an idea... all my tries to merging the soundreactive and the twitch sketch not work...</p>
<p>is it possible, to switch with an hardware button between the two sketches?</p>
<p>so i can run the soundactive when nothing in my chat, or switch to the other sketch when i´m live, and enough action in chat.</p>
<p>okay, loading two sketches same time is not possible, but if i put the soundactive in a ***.h file? would this work?</p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4787</guid>
                    </item>
				                    <item>
                        <title>RE: LED Effects - Arduino and TwitchChat</title>
                        <link>https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4785</link>
                        <pubDate>Fri, 10 Mar 2023 03:19:08 +0000</pubDate>
                        <description><![CDATA[i experimentet with an effect more to add into the animations.h and SimplePatternList^^
i call it &quot;jumpySaw and jumpySaw WithGlitter&quot;
void jumpySaw() {

  int bpm = 60;
  int ms_per_bea...]]></description>
                        <content:encoded><![CDATA[<p>i experimentet with an effect more to add into the animations.h and SimplePatternList^^</p>
<p>i call it "jumpySaw and jumpySaw WithGlitter"</p>
<pre contenteditable="false">void jumpySaw() {

  int bpm = 60;
  int ms_per_beat = 60000/bpm;          // 500ms per beat, where 60,000 = 60 seconds * 1000 ms 
  int ms_per_led = 60000/bpm/NUM_LEDS;

  int cur_led = ((millis() % ms_per_beat) / ms_per_led)%(NUM_LEDS);     // Using millis to count up the strand, with %NUM_LEDS at the end as a safety factor.

  if (micIn &gt; 0) cur_led = 0;

  if (cur_led == 0)
   fill_solid(leds, NUM_LEDS, CRGB::Black);
  else
    leds = ColorFromPalette(palette,gHue+(cur_led*3), micIn*bpm-gHue+(cur_led*10) );    // I prefer to use palettes instead of CHSV or CRGB assignments.

} // sawtooth()

void jumpySawWithGlitter() {
  jumpySaw();                         // Built-in FastLED rainbow, plus some random sparkly glitter.
//  addGlitter(80);                  // Original chance of glitter.
  addGlitter(micIn*8);            // Increase our chance of glitter.
} // jumpySawWithGlitter()</pre>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4785</guid>
                    </item>
				                    <item>
                        <title>RE: LED Effects - Arduino and TwitchChat</title>
                        <link>https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4784</link>
                        <pubDate>Thu, 09 Mar 2023 22:45:11 +0000</pubDate>
                        <description><![CDATA[i think @hans and maybe other peoples would like this:
the maker of this soundreactive sketch
there are many nice sketches, effect patterns and more.]]></description>
                        <content:encoded><![CDATA[<p>i think @hans and maybe other peoples would like this:</p>
<p><a title="Andrew Tuline @ Github" href="https://github.com/atuline" target="_blank" rel="noopener">the maker of this soundreactive sketch</a></p>
<p>there are many nice sketches, effect patterns and more.</p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4784</guid>
                    </item>
				                    <item>
                        <title>RE: LED Effects - Arduino and TwitchChat</title>
                        <link>https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4783</link>
                        <pubDate>Thu, 09 Mar 2023 20:06:33 +0000</pubDate>
                        <description><![CDATA[@hans i´m using the Lineout from my mixing deck and its working fine.
if u like, here the complete code: including the button file:
RENAME from jsbutton.ino to button.h !!!
i must rename ...]]></description>
                        <content:encoded><![CDATA[<p>@hans i´m using the Lineout from my mixing deck and its working fine.</p>
<p>if u like, here the complete code: including the button file:</p>
<p><strong>RENAME from jsbutton.ino to button.h !!!</strong></p>
<p>i must rename for upload here...</p>
413
<p> and the main sketch</p>
412
<p>the animations.h is shown in my last post...</p>
<p> </p>
<p>but how to merge with my twitch-sketch please?</p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4783</guid>
                    </item>
				                    <item>
                        <title>RE: LED Effects - Arduino and TwitchChat</title>
                        <link>https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4780</link>
                        <pubDate>Thu, 09 Mar 2023 15:46:52 +0000</pubDate>
                        <description><![CDATA[Awesome! Thank you for sharing! 
I see the code is using a microphone with a small amplifier. Nice!
(INMP401, MAX4466, MAX9814  - the MAX4466 is even dirt cheap on AliExpress, not even a E...]]></description>
                        <content:encoded><![CDATA[<p>Awesome! Thank you for sharing! </p>
<p>I see the code is using a microphone with a small amplifier. Nice!</p>
<p>(INMP401, MAX4466, <a href="https://www.analog.com/media/en/technical-documentation/data-sheets/max9814.pdf" target="_blank" rel="noopener">MAX9814</a>  - the MAX4466 is even <a href="https://nl.aliexpress.com/item/1005004911291016.html?pdp_npi=2%40dis%21EUR%21€%201%2C28%21€%200%2C88%21%21%21%21%21%40211b4cf716783767271487669eae37%2112000030990515875%21btf&amp;_t=pvid%3Af9995325-83be-4b7c-bca5-819e3d43e7ea&amp;afTraceInfo=1005004911291016__pc__pcBridgePPC__xxxxxx__1678376727&amp;spm=a2g0o.ppclist.product.mainProduct&amp;gatewayAdapt=glo2nld" target="_blank" rel="noopener">dirt cheap on AliExpress</a>, not even a Euro haha - I'll go order one myself!)</p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4780</guid>
                    </item>
				                    <item>
                        <title>RE: LED Effects - Arduino and TwitchChat</title>
                        <link>https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4766</link>
                        <pubDate>Wed, 08 Mar 2023 01:31:44 +0000</pubDate>
                        <description><![CDATA[Hi and Hello!! :)
1. i found a working method for global timing...
// Global timing variables
unsigned int PlayTime = 60;
 and every call
else if(ircMessage.text == RandomSparkleMessage...]]></description>
                        <content:encoded><![CDATA[<p>Hi and Hello!! :)</p>
<p>1. i found a working method for global timing...</p>
<pre contenteditable="false">// Global timing variables
unsigned int PlayTime = 60;</pre>
<p> and every call</p>
<pre contenteditable="false">else if(ircMessage.text == RandomSparkleMessage)
{
sendTwitchMessage(ircMessage.nick + " 🪄 -&gt; RandomSparkle");
ShowEffect(10,PlayTime);
colorWipe(0,0,0, 50);
}</pre>
<p>2. i found a soundreactive sketch wich is working (standalone)...</p>
<p>i have changed a lil bit, because i don´t use hardware-buttons.</p>
<p>but until now, not working merged with my big sketch...</p>
410
<p>with his own animations list...</p>
<pre contenteditable="false">void addGlitter(uint16_t chanceOfGlitter) {        // Changed fract8 to uint16_t.
  if(random8() &lt; chanceOfGlitter) leds += CRGB::White;
} // addGlitter()


void rainbow() {
//   fill_rainbow( leds, NUM_LEDS, gHue, 7);                  // Original routine.
  fadeToBlackBy(leds, NUM_LEDS,32);
  int tmp = (random8()+micIn) % NUM_LEDS;
  leds += CHSV(gHue+tmp*7,255,micIn*4);
} // rainbow()


void rainbowWithGlitter() {
  rainbow();                                                  // Built-in FastLED rainbow, plus some random sparkly glitter.
//  addGlitter(80);                                           // Original chance of glitter.
  addGlitter(micIn*8);                                        // Increase our chance of glitter.
} // rainbowWithGlitter()


void confetti() {                                             // Random colored speckles that blink in and fade smoothly.
  fadeToBlackBy(leds, NUM_LEDS, 64);
//  leds += CHSV( gHue + random8(64), 200, 255);         // Original routine.
  for (int i=0; i&lt;8; i++) leds += CHSV(gHue + random8(64), 200, micIn*6);  // Updated routine with slower fps needs more action.
} // confetti()


void sinelon() {                                              // A colored dot sweeping back and forth, with fading trails.
  fadeToBlackBy(leds, NUM_LEDS, 20);
//  int pos = beatsin16(17,0,NUM_LEDS-1);                     // Original routine.
//  leds += CHSV( gHue, 255, 192);                       // Original routine.
  for (int i=0; i&lt;7; i++) {
    int pos = beatsin16((i+1)*4,0,NUM_LEDS-1);
    leds += CHSV(gHue, 255, micIn*6);
  }
} // sinelon()


void juggle() {                                               // Eight colored dots, weaving in and out of sync with each other.
  fadeToBlackBy(leds, NUM_LEDS, 20);
//  byte dothue = 0;                                          // Original routine.
  byte dothue = micIn;
  for(int i = 0; i &lt; 8; i++) {
//    leds |= CHSV(dothue, 200, 255);  // Original routine.
    leds |= CHSV(dothue, 200, micIn*4);
    dothue += 32;
  }
} // juggle()


void bpm() {                                                  // Colored stripes pulsing at a defined Beats-Per-Minute.
  fadeToBlackBy(leds, NUM_LEDS, 20);
  uint8_t beat = beatsin8(17, 64, 255);
  for(int i = 0; i &lt; NUM_LEDS; i++) leds = ColorFromPalette(palette,gHue+(i*3), beat-gHue+(i*10) );
  if (micIn &gt; 0) leds = CRGB::White;
} // bpm()</pre>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4766</guid>
                    </item>
				                    <item>
                        <title>RE: LED Effects - Arduino and TwitchChat</title>
                        <link>https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4750</link>
                        <pubDate>Fri, 03 Mar 2023 18:28:00 +0000</pubDate>
                        <description><![CDATA[@hans Hello and happy weekend! :)
1. the most Sound-reactive sketches i´ve seen are working with WeMos MINI, with my NANO ad some other ESP32 but i think i tried all i found from github ^^ ...]]></description>
                        <content:encoded><![CDATA[<p>@hans Hello and happy weekend! :)</p>
<p>1. the most Sound-reactive sketches i´ve seen are working with WeMos MINI, with my NANO ad some other ESP32 but i think i tried all i found from github ^^ <br />i wanna use with line-in from my mixing deck through a miny Amp, not microphone. 2 sketches i tried working definitive with my NANO, but errors while compiling for WeMos... i tried various versions of the important libaries and core... but okay. i can live without...</p>
<p>and then comes the 2nd challenge, merge with my big overload sketch :D :D :D what´s the hardest part of the Clock Thing was and still is. the most sketches i tried, alone works fine but some are too big an crazy for me, and some other are not compilable for my WeMos ^^</p>
<p> </p>
<p>my LED Setup at the Moment are 1 working Grundig Lamp (81 Led´s) modified to switch between original controller &lt;--&gt; and WeMos with WLED<br />and 2 middle-pieces from broken Grundig´s with 27Led´s, both in parallel at my 2nd WeMos with my big Twitch-controlled Sketch here. My own Sketch within soo many hours of work with typing and welding, lots of help and soo less sleep ;) and not download and ready to use :) :) :)</p>
<p>the WLED Solution is cool, but without more hardware no Sound-reactive functions supportet too.</p>
<p>i hope i wrote good enough without translator-help.</p>
<p>@hans - you know a lil bit my sketch an if you take a look at the clock sketch, maybe you see faster hot to merge, or if you like, i can show you my actually incomplete merged sketch and you find my mistakes. ^^</p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4750</guid>
                    </item>
				                    <item>
                        <title>RE: LED Effects - Arduino and TwitchChat</title>
                        <link>https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4749</link>
                        <pubDate>Fri, 03 Mar 2023 14:53:31 +0000</pubDate>
                        <description><![CDATA[I do not have a Wemos, but I do recall playing with sounds with an Arduino.
So the first thing I tried was using a microphone on one of the analog pins, to find out that doesn&#039;t work all th...]]></description>
                        <content:encoded><![CDATA[<p>Sound-reactive doesn't seem to work with WeMos D1</p>
<p>I do not have a Wemos, but I do recall playing with sounds with an Arduino.</p>
<p>So the first thing I tried was using a microphone on one of the analog pins, to find out that doesn't work all that well. You would need a small amplifier with that to get reasonable values.</p>
<p>Next thing I tried, maybe something that could work for your setup, was connecting the Arduino analog port to the audio output of my laptop (3.5mm stereo plug as used with headphones). Now that did work very well, however ... plugging it into my stereo or laptop would (of course) mute the regular speakers.</p>
<p>Maybe a starting point would be using RCA output (may need a small amplifier for that as well).</p>
<p>Note: the amplifier that I mentioned twice now is just a simple transistor or small IC amps. Nothing major.</p>
<p> </p>
<p><span class="HwtZe"><span class="jCAhz ChMk0b"><span class="ryNqvb">I tried to merge the only clock on FastLed and not Neopixel with my sketch...</span></span><span class="jCAhz"><span class="ryNqvb"> </span></span></span></p>
<p><span class="HwtZe"><span class="jCAhz ChMk0b"><span class="ryNqvb">the clock sketch found there: at <a href="https://github.com/leonvandenbeukel/Round-LED-Clock/blob/master/Round-LED-Clock.ino" target="_blank" rel="noopener">github /leonvandenbeukel/Round-LED-Clock</a> </span></span></span></p>
<p>As you may have seen in one of my LED effect projects: moving between NeoPixel and FastLED should not be difficult. Especially when moving from NeoPixel to FastLED.<br />FastLED is much more advanced, so moving from FastLED to NeoPixel can be a challenge 😁 </p>
<p>Just trying to say: if you find a NeoPixel sketch, converting to FastLED is usually relatively easy. 😁 </p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/led-effects-arduino-and-twitchchat/paged/3/#post-4749</guid>
                    </item>
							        </channel>
        </rss>
		