• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Home_Automation_Using_ESP8266

Q&A Forum › Category: ESP8266 › Home_Automation_Using_ESP8266
0 Vote Up Vote Down
Thomas Nisius asked 3 years ago

I’m working on a project using a bare ESP8266-12F module and purchased your book, “Home_Automation_Using_ESP8266_V4” to get a better understanding.  I like your book.  It’s as clear and helpful as your tutorials that I have watched for years.  In Part 0, your table of Best Pins to Use – ESP8266, is especially helpful.   The project I’m working on requires a large number of inputs and I was hoping to use GPIO6 through GPIO11, but those pins are not mentioned in the table (other than to discouraging their use).  Would you be able to provide any information about using those pins for inputs?

Question Tags: Best Pins, ESP8266, GPIO
4 Answers
0 Vote Up Vote Down
DK answered 3 years ago

Hi

  • https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/
  • github.io/ESP8266/Chap04%20-%20Microcontroller.html
  • https://www.youtube.com/watch?v=c0tMGlJVmkw

You can add a I/O expander

  • https://www.hackster.io/tarantula3/pcf8574-gpio-extender-with-arduino-and-nodemcu-a8cb00
  • https://medium.com/@wilko.vehreke/more-gpios-for-the-esp8266-with-the-mcp23017-b89f5e15cde3
  • https://www.youtube.com/watch?v=KphAJMZZed0

I hope it helps

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi Thomas.
Those pins on the ESP8266 are usually connected to the EPS8266 flash chip (GPIO6 to GPIO11). So, these are not recommended to use.
To have more GPIOs avialable, you can use an I/O expander as DK suggested.
I hope this helps.
Regards,
Sara

0 Vote Up Vote Down
Thomas Nisius answered 3 years ago

Thank you for your help.  This is my first attempt at using an ESP8266 so I was a bit naive about the number of usable I/Os that were available for the devices that I wanted to connect.  I chose an ESP8266-12F bare module (not development board) to give myself the greatest flexibility for a final project.  
Let me be more specific about my problem.  I am trying to connect the following devices to the ESP8266:
Real Time Clock on I2C bus (GPIO4-5)
SD Card on SPI bus (GPIO12-15)
DS18B20 temperature sensors (1 GPIO)
3 digital inputs (These could be connected through an I/O expander)
3 DHT-22 sensors each on a single-bus (3 GPIOs)  Am I correct, that they won’t work through an I/O expander?
I thought that since I was not connecting a flash chip, that GPIO6-11 would be available for my devices.  The ESP8266-12F module that I purchased has pins GPIO6-11 labeled SCLK, MOSI, IO10, IO9, MISO, CS0 from top to bottom along the right side of the chip. (Looking from the front of the chip.)
Would it be possible to implement the SD Card on those pins instead of using GPIO12-15 and free those pins to use as digital i/O?
I welcome any other suggestions you have about my project.
Thanks,
Tom

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi Thomas.

The ESP8266-12F bare module still has the flash chip inside and the ESP8266 uses GPIOs6 to 11 to communicate with the chip via SPI communication, that’s why those pins are labeled as SPI pins.

The I/O expander allows you to control more digital outputs and inputs. I don’t think that the DHT sensors will work through an expander.

I would recommend using an ESP8266 development board instead of the chip, if you want to connect all those peripherals on the same board.

Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.