Please note: Friday June 18 is a holiday celebrating Juneteenth, please allow extra time for your order to arrive and plan accordingly.
0

Feather HUZZAH ESP8266 number of pins for LEDs
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather HUZZAH ESP8266 number of pins for LEDs

by woodewoo on Tue Apr 20, 2021 11:19 pm

Hello, I am using the Feather HUZZAH ESP8266 microcontroller for the first time, and am trying to hook it up to as many through-hole LEDs as possible. While I can get the LEDs to work using the GPIO pins (0, 2, 4, 5, 12, 13, 14, 15, 16), I was wondering if it was possible to utilize any of the other pins. I looked at the pinout diagram (https://learn.adafruit.com/assets/46249), but I can't figure out how to get the other pins to light up my LEDs. In other words, what other values can I assign to my PIN variable to get my Arduino code to work? Thank you for your help!

Code: Select all | TOGGLE FULL SIZE
int PIN = [XXX]
pinMode(PIN, OUTPUT);
digitalWrite(PIN, HIGH);


woodewoo
 
Posts: 2
Joined: Tue Apr 20, 2021 11:07 pm

Re: Feather HUZZAH ESP8266 number of pins for LEDs

by mikeysklar on Thu Apr 22, 2021 4:49 pm

That sounds about right that you could use 9 of 16 pins for output.

The SPI pins are redundant with 12, 13 and 14 so you can't use those again.

The ADC is a weird 1v max so no good.

The NC pins are not connected to anything just placeholders for feather form factor compatibility.

If you want to run more LEDs there is not reason to be constrained by pins. I would use a i2c mux like this one:

TCA9548A

Another option is to use addressable LEDs like our NeoPixels or DotStars to run thousands of LEDs of one or two pins.

mikeysklar
 
Posts: 4576
Joined: Mon Aug 01, 2016 8:10 pm

Re: Feather HUZZAH ESP8266 number of pins for LEDs

by adafruit_support_mike on Tue Apr 27, 2021 3:29 am

We also have the Seesaw, which was specifically designed for pin-starved boards like the ESP8266:

https://www.adafruit.com/product/3657

adafruit_support_mike
 
Posts: 62799
Joined: Thu Feb 11, 2010 2:51 pm

Re: Feather HUZZAH ESP8266 number of pins for LEDs

by woodewoo on Tue Apr 27, 2021 6:53 am

Thanks for your help! Does that mean that by connecting this seesaw to my esp8266, I should be able to add 7 more LEDs (Pins 9, 10, 11, 14, 15, 24, and 25) to the 9 that I can already use on the esp8266? If so, that would be a great solution for me.

woodewoo
 
Posts: 2
Joined: Tue Apr 20, 2021 11:07 pm

Re: Feather HUZZAH ESP8266 number of pins for LEDs

by mikeysklar on Tue Apr 27, 2021 5:24 pm

The SeeSaw will give you 7 more GPIOs, but you will lose two pins to i2c communication SDA/SCL. Reducing you from the 9 on board to 7 on board or 14 in total with the SeeSaw addition.

mikeysklar
 
Posts: 4576
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.


cron