1

I've just bought two of these wifi modules in the hope of setting up some sort of sensor network. Please could somebody recommend a good library for the arduino.

Cheers

My ESP module

2
  • 3
    Program it direct. If you must use an Arduino with it then use the Arduino as a programmable IO expander. Commented May 10, 2017 at 14:55
  • if you want to program the ESP itself - github.com/esp8266/Arduino Commented May 11, 2017 at 1:41

1 Answer 1

2

You don't need a library. At the most basic level you fire AT command to it via a serial connection, but that's like using a Ferrari to go grocery shopping once a week.

It has a 80/160MHz processor 10 digital and one analog port (although you got the version where only one digital port is exposed). You can program it through the Arduino IDE (You need to go to the board manager to download the BSP for it). Then like Majenko says, it should be talking to the Arduino (over I2C or SPI) and treating the Arduino is the GPIO expander.

2
  • 1
    the esp01 has 3.5 GPIOs exposed, not just 1; you can drive an rgb led with one... Commented May 10, 2017 at 19:35
  • Thanks @dandavis i always thought the 01/07/12 meant the number of gpios exposed. Commented May 11, 2017 at 18:57

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.