-->
Page 1 of 1

Using a speaker : need help

PostPosted: Sat Sep 03, 2016 4:10 pm
by vcch
Hi !

I wanted to test the PCM module of nodemcu but was unable to connect a speaker to esp8266. I have a 8 ohm, .5 W speak (does not work). The only one that worked was a small piezzo disk (but the volume is very low). Any idea how I should proceed ? Seems that on arduino the speakers are connected directly to a Pin...

Re: Using a speaker : need help

PostPosted: Sat Sep 03, 2016 4:52 pm
by martinayotte
You need an amplifier such LM386 to drive 8 ohms speaker, plugging such speaker directly to GPIO can damage it.

Re: Using a speaker : need help

PostPosted: Sat Sep 03, 2016 5:32 pm
by vcch
Thanks. I should have checked - 12 mA max current for Esp8266 vs 200 mA for Arduino. Latter can use a speaker directly, but not the esp8266...

Re: Using a speaker : need help

PostPosted: Sun Sep 04, 2016 12:13 am
by krzychb
Thanks. I should have checked - 12 mA max current for Esp8266 vs 200 mA for Arduino.

Absolute max current for Arduino I/O pin is 40mA (ATMEGA328 chip) - http://playground.arduino.cc/Main/Ardui ... imitations
"Be Nice to your Arduino!" and ESP :D