-1

I am going to create a project with a friend, but I have some technical questions.

The Arduino Nano has an EEPROM capable of storing the known WiFi connections. Basically what I want is say "Arduino, connect to this WiFi and remember it". When I then disconnect the Arduino completely, it should still save that information. Can the EEPROM store that without power?

I need an easy, but rather small, WiFi module to work with the Arduino Nano. I've looked at the ESP8266. I don't mind soldering the ESP8266 to the Arduino Nano once, but doing it more times (perhaps because I need more GPIO or something) is not a variable solution. If I get the ESP8266 ESP-12, I would only have to solder it to the Nano once. However:

  1. Is the ESP8266 ESP-12 compatible with the Arduino Nano?
  2. I like the ESP-05 because it's small and simple. Would that work?

Are there perhaps better ways of doing this whole thing? Should I go for something else than the Arduino Nano? I need to hook up:

  • WiFi
  • Microphone (smallest and easiest way)
  • LEDs
14
  • 2
    All these questions are very easily answered using google. You should look at the possible solutions and come back with specific questions. What were your attempts, what did you not understand, etc..?
    – Wesley Lee
    Nov 27, 2016 at 11:37
  • @WesleyLee I did search using Google, but I haven't been able to get a good answer. I assume the EEPROM would be able to store it while disconnected. I know the ESP8266 works with the Arduino Nano. I come here seeking help on my specific case, as I haven't been able to find answers that clearly describe them.
    – MortenMoulder
    Nov 27, 2016 at 11:40
  • 1
    Quick search shows EEPROM solutions to save data w/o energy both on the Arduino Nano and ESP8266. Another search shows many projects with ESP12, ESP05 and Arduinos. "Better" ways of doing this is not a good format of question for SE and even if it were, we know nothing of you application, so no way we can suggest anything (whats good for your application: less power, availability of parts, reliability, etc etc?).
    – Wesley Lee
    Nov 27, 2016 at 11:46
  • @WesleyLee What's good for my application is what I tried to explain: WiFi, microphone, and LEDs. I was simply wondering if all of that is achievable using an Arduino Nano. Already now, I see I'm going to have an issue with the microphone and WiFi because of the serial connectivity, so I would have to find a solution to run multiple serial connections.
    – MortenMoulder
    Nov 27, 2016 at 11:59
  • What does mic has to do with serial? Look up Software Serial. Also, you might not even need an Arduino..
    – Wesley Lee
    Nov 27, 2016 at 12:17

2 Answers 2

2

The ESP8266 is a SoC (System On Chip) that includes a microcontroller. For most applications, you’ll need only the ESP without the Nano. ESP-12E boards are very handy for tinkering. You can program the ESP in different languages, even in Arduino C (https://github.com/esp8266/Arduino/).

Note that the ESP is only 3.3V tolerant, so it is not that easy to use it with a Nano that works at 5V. It is of course possible to use logic level shifters, but frankly, I would rather use the ESP alone.

You don’t have to worry about storing WiFi connection settings, they are usually hard-coded in the main program.

Connecting LED is described everywhere on the internet, so I don’t think that is a major problem. If you need a lot of LEDs, you can buy LED strips.

For the microphone I suggest that you search for I²C modules.

1
  • Thanks for the comment! The beauty of this is if no known wifi has been found, create hotspot and let the user connect. Then I tell it to connect to the known WiFi, which it should then remember. The LEDs are basically just a couple of WS2812B, so it shouldn't be a problem to power those off 3.3v. I've ordered a ESP-12E NodeMCU and I'm looking forward to that! Nov 28, 2016 at 19:50
1

It sounds like you are quite new to all this stuff. In summary I think you are taking the wrong approach and need to re-think things.

EEPROM is capable of storing data without any power. Both the devices have EEPOROM, also you could look at external devices, which would be easier to replace if you wear them out (limited number of write cycles - see their data sheets for details but they are usually in the tens of thousands).

The difference between the ESP8266 range are the number of GPIO lines they offer up, to the 12E has more than the 5, etc.

You shouldn't be soldering this stuff more than once. You should design it right in the first place (easier said than done!) What you could do is mount the Nano on a board that took all the lines off to a single 30 odd pin connector the design a series of daughter boards for the ESP8266 which were compatible with the base board, so you could switch between the different ESPs.

Also, don't forget you will need logic level conversion between the 5V Arduino and the 3.3V ESP8266 unless you are planning on smoking electronics.

What do you think you are doing with the MIC connector? Are you planning on processing sound on the Arduino? You might want to research that before you design it.

Are you aware that the ESP8266 can be programmed via the Arduino and has a 80MHz processor and 256KB of RAM (compared to the Nano's 32Mhz & 32KB) so using the ESP as a slave to the Arduino is not necessarily the best idea.

If you are interested this is the approach I would take: 1. Solder some male pins to the Nano so you can put it into a bread board. 2. If you have a 12E, Buy a ESP8266 mounting board (£1 for 10 from you favourite Chinese web market) and solder pins to that. 3. If you have a 5 then solder pins to that. 4. Make all you other parts breadboard-able and try it all out. 5. Once it works download Fritzing and draw it up. 6. Make a Vero board version and play with it for real.

1
  • Thanks! Yeah I'm quite new to this. I've bought an ESP-12E NodeMCU and I plan on going with Arduino C on it :) Nov 28, 2016 at 19:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.