-->
Page 1 of 1

How many features can be used at once? I2C, I2S, SPI, PWM

PostPosted: Thu Jul 13, 2017 2:10 pm
by VRPC
I am looking into using the ESP8266 as a lightsaber soundboard and LED driver.
At a minimum I am looking to use a larger SPI Flash (128Mb) for wav storage, I2C, I2S(WAV playback, mono and no MCLK), and 4PWM, would also need at least 3 more GPIO for 2 buttons and status LED control. I2C is for use with a IMU, Would like it if I could manage changing the pitch of the idle hum with the gyro.

At most I would like to use a SD card through SPI, I2C, I2S, 7PWM (or WS2812/3), and 2 GPIO. This many PWM is not possible while using everything else. I could add a GPIO expander but at that point might as well move to the ESP32 or a STM32.

I want to use the ESP8266 due to the very low cost of the chip and the potential for changing setting in real time with a phone app. Moving to the ESP32 is probably best though due to more pins, performance, and BLE for lower power consumption.