colorchord
colorchord copied to clipboard
Wiring setup
Hi Charles awesome project, I'm sorry I didn't want to open an issue this stupid, but I haven't found anywhere how to do it. I have an esp8266 (nodemcu v3) and a Groove - Loudness Sensor based on LM2904 amplifier, I've successfully flashed the firmware and uploaded the web interface (make netburn) and I've used the RX and TX pins on the esp for the mic input and led strip output (respectively) but I get nothing but noise, that's why I wanted to know if I should use other pins. Here's a picture of what I refer to as noise (it's present even if there's noting connected to the board):
The mic goes between the tout (analog in) and ground, with an addition wire connected to the + pin with a 10k resistor connecting to the 3.3v.
I ended up using an LM358 to boost the signal by over 50x. I'm now able to capture sounds from across the room now. I had to lower the gDFTIIR value to keep the noise from constant triggers.
See this article for schematic: http://davidhoulding.blogspot.ca/2014/02/simple-high-sensitivity-arduino-sound.html
Final parameters with the lm358 amp attached:
Thanks opus for your reply, but I don't know why it isn't working for me, I've explained myself wrong before, I am using the The Grove - Loudness Sensor which uses the LM2904 amplifier. And I've tried using your parameters and attaching the signal pin of the sensor to pins A0, and some of the analogs inputs according to the picture above (the one on the right), but still nothing.
By the way, it's not a mic problem because I've tried elsewhere and had no problems.
Check your Tout to see if its functioning, perhaps its damaged, maybe it was hit with 5v?
Try the software demo from the Groove product site. Flash your nodemcu with it. http://wiki.seeed.cc/Grove-Loudness_Sensor/#software
Perhaps a photo would help us.
I don't know how can I test if Tout works? Tout would be A0 according to the picture right? Here are some pictures of how I've got things connected. Connections are as follows:
- 3v to VCC
- G to GND
- RX to SIG
Last one I am not quite sure but I put the GPIO 3 to 1 and in (as I've connected the mic out to my RX input (which says to be GPIO3) but nothing.
RX is not for the mic, it's for ws2812 LEDs. Move that connector to the top left pin on your nodemcu, the tout pin.
On Sunday, August 6, 2017, Carlos [email protected] wrote:
I don't know how can I test if Tout works? Tout would be A0 according to the picture right? Here are some pictures of how I've got things connected [image: img_0507] https://user-images.githubusercontent.com/28297294/29007220-af553308-7ad4-11e7-8c53-ff7bed42d0f1.JPG [image: img_0508] https://user-images.githubusercontent.com/28297294/29007221-b09b6bec-7ad4-11e7-9e9c-f7e134179d60.JPG [image: captura de pantalla 2017-08-06 a la s 18 24 51] https://user-images.githubusercontent.com/28297294/29007222-b40dea2a-7ad4-11e7-97a7-894947702c48.png Last one I am not quite sure but I put the GPIO 3 to 1 and in (as I've connected the mic out to my RX input (which says to be GPIO3) but nothing.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cnlohr/colorchord/issues/51#issuecomment-320533908, or mute the thread https://github.com/notifications/unsubscribe-auth/APLfv8582GL8wBOA2eUg3ZP7erFz7ASvks5sVi-4gaJpZM4OuwnW .
Your yellow wire goes to the top left tout pin. The black to ground, the red to 3.3v
On Sunday, August 6, 2017, Ryan Greene [email protected] wrote:
RX is not for the mic, it's for ws2812 LEDs. Move that connector to the top left pin on your nodemcu, the tout pin.
On Sunday, August 6, 2017, Carlos <[email protected] javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:
I don't know how can I test if Tout works? Tout would be A0 according to the picture right? Here are some pictures of how I've got things connected [image: img_0507] https://user-images.githubusercontent.com/28297294/29007220-af553308-7ad4-11e7-8c53-ff7bed42d0f1.JPG [image: img_0508] https://user-images.githubusercontent.com/28297294/29007221-b09b6bec-7ad4-11e7-9e9c-f7e134179d60.JPG [image: captura de pantalla 2017-08-06 a la s 18 24 51] https://user-images.githubusercontent.com/28297294/29007222-b40dea2a-7ad4-11e7-97a7-894947702c48.png Last one I am not quite sure but I put the GPIO 3 to 1 and in (as I've connected the mic out to my RX input (which says to be GPIO3) but nothing.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cnlohr/colorchord/issues/51#issuecomment-320533908, or mute the thread https://github.com/notifications/unsubscribe-auth/APLfv8582GL8wBOA2eUg3ZP7erFz7ASvks5sVi-4gaJpZM4OuwnW .
Sorry for late response, but still does nothing after doing that.. I'll try reflashing the esp because I don't know what else to do.
@cipiasentini 1: verify you are starting from defaults in the parameters tab. 2: try installing esp8266ws2812i2s. 3: Some of these modules do not allow the ESP to override the RX pin. like no resistor between TX on the USB->serial and the RX pin. Have to use RX because that is where the DMA I2S engine output is.
Charles, I just noticed this thread and it has brought up a concern of mine about darn microphone problems. I have been looking at a recent ultrasonic imaging project that makes a point of separating subsystems. This project should be presented as two modules the esp8266 + input bias is much like any line level input device. The second module is the input and could be a microphone or any other source amplified to line level.
It would make your project more popular if it was presented this way. So people could get started with a known signal source and standard connectors and then add microphones. I have been studying ultrasonic down converters hoping to make bat detector input module.
The system can be built with just capacitor on some modules as they have already biased analog input, otherwise pull-up resistor needed to get oscilloscope at midpoint of display.
and then add chose input selection RCA ,headphone plugs, 1/4 inch , microphone , 38kHz demodulator many things will work , remember you have AC input you might choose non electrolytic capacitor.
Just musing ... Perry
It's really sad that you can't do multiple inputs on the ESP, to allow for really crazy stuff, like monitoring phase and comparing that to do triangulation :-/ But still would be neat. I don't know how much I can dedicate to it. I have been ENTIRELY slammed over the last few months :(.
Charles I have been looking at the MEMS microphones. They have better S/N than electrets and you could use i2s to read stereo signals, but could the esp8266 handle 2xFFT?
The issue is you can't use the i2c input stream for the mic and i2c output stream for the WS2812Bs. If you were to use an SPI WS2812B interface (I don't know how to do that) then it would make it possible.