<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Arduino Projects: Arduino Decibel Meter	</title>
	<atom:link href="https://tutorial45.com/arduino-projects-arduino-decibel-meter/feed/" rel="self" type="application/rss+xml" />
	<link>https://tutorial45.com/arduino-projects-arduino-decibel-meter/</link>
	<description>Tutorials and Tech</description>
	<lastBuildDate>Sun, 05 Apr 2020 13:09:35 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Mattx38		</title>
		<link>https://tutorial45.com/arduino-projects-arduino-decibel-meter/comment-page-1/#comment-778</link>

		<dc:creator><![CDATA[Mattx38]]></dc:creator>
		<pubDate>Sun, 16 Dec 2018 20:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://tutorial45.com/?p=6006#comment-778</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://tutorial45.com/arduino-projects-arduino-decibel-meter/comment-page-1/#comment-775&quot;&gt;Mattx38&lt;/a&gt;.

Hello, 

I didn&#039;t manage to dot it whith a WS2812B RGB led strip.

The strip keeps lighted.

I used the following code : 

#include 
#define NUM_LEDS 3
#define LED_PIN 4
#define COLOR_ORDER GRB
#define LED_TYPE    WS2812B
#define BRIGHTNESS  30
#define MIC 0

CRGB leds[NUM_LEDS];

void setup() {
FastLED.addLeds(leds, NUM_LEDS);
FastLED.setBrightness(  BRIGHTNESS );
Serial.begin(9600);

//here is an input for sound sensor
pinMode(MIC, INPUT);

//here we are setting up all pins as an outputs for LEDs
for(int z = 0; z &#060; 10; z++){
pinMode(z, OUTPUT);
}
}

void loop() {

//here we are storing the volume value
int volume = analogRead(A0);
Serial.println (volume);

//max value for analog read is 1023 but it must be very very loud to reach this value
//so I lower it down in map function to 700
//mapping volume value to make it easier to turn LEDs on
volume = map(volume, 0, 700, 0, 10);

//for loop to turn on or off all LEDs
//thanks to this loop code for this project is very short
//we are going through all pins where we have LEDs and checking if the volume is
//bigger then pin number (that&#039;s why we are maping the volume)
for(int a = 0; a = a)
{
//if it is bigger we can turn on the LED
leds[a]= CRGB::Green;
FastLED.show();
}

else{
//if it is smaller we can turn the LED off
leds[a]= CRGB::Black;
FastLED.show();
}
}
}

Cann you help me ??

Thank you]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://tutorial45.com/arduino-projects-arduino-decibel-meter/comment-page-1/#comment-775">Mattx38</a>.</p>
<p>Hello, </p>
<p>I didn&#8217;t manage to dot it whith a WS2812B RGB led strip.</p>
<p>The strip keeps lighted.</p>
<p>I used the following code : </p>
<p>#include<br />
#define NUM_LEDS 3<br />
#define LED_PIN 4<br />
#define COLOR_ORDER GRB<br />
#define LED_TYPE    WS2812B<br />
#define BRIGHTNESS  30<br />
#define MIC 0</p>
<p>CRGB leds[NUM_LEDS];</p>
<p>void setup() {<br />
FastLED.addLeds(leds, NUM_LEDS);<br />
FastLED.setBrightness(  BRIGHTNESS );<br />
Serial.begin(9600);</p>
<p>//here is an input for sound sensor<br />
pinMode(MIC, INPUT);</p>
<p>//here we are setting up all pins as an outputs for LEDs<br />
for(int z = 0; z &lt; 10; z++){<br />
pinMode(z, OUTPUT);<br />
}<br />
}</p>
<p>void loop() {</p>
<p>//here we are storing the volume value<br />
int volume = analogRead(A0);<br />
Serial.println (volume);</p>
<p>//max value for analog read is 1023 but it must be very very loud to reach this value<br />
//so I lower it down in map function to 700<br />
//mapping volume value to make it easier to turn LEDs on<br />
volume = map(volume, 0, 700, 0, 10);</p>
<p>//for loop to turn on or off all LEDs<br />
//thanks to this loop code for this project is very short<br />
//we are going through all pins where we have LEDs and checking if the volume is<br />
//bigger then pin number (that&#039;s why we are maping the volume)<br />
for(int a = 0; a = a)<br />
{<br />
//if it is bigger we can turn on the LED<br />
leds[a]= CRGB::Green;<br />
FastLED.show();<br />
}</p>
<p>else{<br />
//if it is smaller we can turn the LED off<br />
leds[a]= CRGB::Black;<br />
FastLED.show();<br />
}<br />
}<br />
}</p>
<p>Cann you help me ??</p>
<p>Thank you</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mattx38		</title>
		<link>https://tutorial45.com/arduino-projects-arduino-decibel-meter/comment-page-1/#comment-775</link>

		<dc:creator><![CDATA[Mattx38]]></dc:creator>
		<pubDate>Wed, 05 Dec 2018 06:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://tutorial45.com/?p=6006#comment-775</guid>

					<description><![CDATA[Hello,
Great project !
I’m new to Arduino coding and I’m trying to understand to make a similar project. 
How could I adapt your code to display the amount of décibels on a WS2812B led strip ?
It is for my wife’s classroom. 
Thank you]]></description>
			<content:encoded><![CDATA[<p>Hello,<br />
Great project !<br />
I’m new to Arduino coding and I’m trying to understand to make a similar project.<br />
How could I adapt your code to display the amount of décibels on a WS2812B led strip ?<br />
It is for my wife’s classroom.<br />
Thank you</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: 吳少甫		</title>
		<link>https://tutorial45.com/arduino-projects-arduino-decibel-meter/comment-page-1/#comment-653</link>

		<dc:creator><![CDATA[吳少甫]]></dc:creator>
		<pubDate>Mon, 07 May 2018 13:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://tutorial45.com/?p=6006#comment-653</guid>

					<description><![CDATA[why the leds lights the same time]]></description>
			<content:encoded><![CDATA[<p>why the leds lights the same time</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Julian Davids Moreno Rengifo		</title>
		<link>https://tutorial45.com/arduino-projects-arduino-decibel-meter/comment-page-1/#comment-652</link>

		<dc:creator><![CDATA[Julian Davids Moreno Rengifo]]></dc:creator>
		<pubDate>Sat, 05 May 2018 19:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://tutorial45.com/?p=6006#comment-652</guid>

					<description><![CDATA[I have made it so it only works for 5 leds, with an arduino MEGA it doesn´t work. what did I do wrong??, I am a complete newbie in electronics.

int led[5] = {30, 31, 32, 33, 34};
int input, i;
void setup()
{
 
  for (i = 30; i &#060; 35; i++)
    pinMode(led[i], OUTPUT);
  Serial.begin(9600);
}
void loop()
{
  input = analogRead(A0);
  //Serial.println(s);
  input = input / 5;      //By changing the denomintor the sensitivity can be changed
  if (input &#060; 5)
  {
    if (input == 0)
    {
      for (i = 30; i &#060; 35; i++)
      {
        digitalWrite(led[i], LOW);
      }
    }
    else
    {
      for (i = 30; (i-30) &#060; input; i++)
      {
        digitalWrite(led[i], HIGH);
        delay(4);
      }
      for (i = i; i &#060; 35; i++)
      {
        digitalWrite(led[i], LOW);
      }
    }
  }
}]]></description>
			<content:encoded><![CDATA[<p>I have made it so it only works for 5 leds, with an arduino MEGA it doesn´t work. what did I do wrong??, I am a complete newbie in electronics.</p>
<p>int led[5] = {30, 31, 32, 33, 34};<br />
int input, i;<br />
void setup()<br />
{</p>
<p>  for (i = 30; i &lt; 35; i++)<br />
    pinMode(led[i], OUTPUT);<br />
  Serial.begin(9600);<br />
}<br />
void loop()<br />
{<br />
  input = analogRead(A0);<br />
  //Serial.println(s);<br />
  input = input / 5;      //By changing the denomintor the sensitivity can be changed<br />
  if (input &lt; 5)<br />
  {<br />
    if (input == 0)<br />
    {<br />
      for (i = 30; i &lt; 35; i++)<br />
      {<br />
        digitalWrite(led[i], LOW);<br />
      }<br />
    }<br />
    else<br />
    {<br />
      for (i = 30; (i-30) &lt; input; i++)<br />
      {<br />
        digitalWrite(led[i], HIGH);<br />
        delay(4);<br />
      }<br />
      for (i = i; i &lt; 35; i++)<br />
      {<br />
        digitalWrite(led[i], LOW);<br />
      }<br />
    }<br />
  }<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andreea		</title>
		<link>https://tutorial45.com/arduino-projects-arduino-decibel-meter/comment-page-1/#comment-621</link>

		<dc:creator><![CDATA[Andreea]]></dc:creator>
		<pubDate>Tue, 27 Mar 2018 20:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://tutorial45.com/?p=6006#comment-621</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://tutorial45.com/arduino-projects-arduino-decibel-meter/comment-page-1/#comment-620&quot;&gt;M-P&lt;/a&gt;.

Great!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://tutorial45.com/arduino-projects-arduino-decibel-meter/comment-page-1/#comment-620">M-P</a>.</p>
<p>Great!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: M-P		</title>
		<link>https://tutorial45.com/arduino-projects-arduino-decibel-meter/comment-page-1/#comment-620</link>

		<dc:creator><![CDATA[M-P]]></dc:creator>
		<pubDate>Tue, 27 Mar 2018 04:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://tutorial45.com/?p=6006#comment-620</guid>

					<description><![CDATA[Works great! I made one, though I used 100 ohm and 470 ohm resistors because I didn&#039;t have any 220 ohm resistors. I used the 100 ohm ones before the 470 ohm resistors so the first 5 LEDs would at least be brighter. The whole thing still works wonderfully. Thanks!]]></description>
			<content:encoded><![CDATA[<p>Works great! I made one, though I used 100 ohm and 470 ohm resistors because I didn&#8217;t have any 220 ohm resistors. I used the 100 ohm ones before the 470 ohm resistors so the first 5 LEDs would at least be brighter. The whole thing still works wonderfully. Thanks!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 

Served from: tutorial45.com @ 2026-05-07 15:37:35 by W3 Total Cache
-->