Shenzhen Xin Yuan Electronic Technology Co., Ltd.
 
手机官网
 
关注我们微信公众号
购物车图片 购物车 ( )
找服务 找新闻
全部商品分类
服务热线: (86)13928411439
The recommended reading
Christmas 2015 yours truly was one of the lucky few in the world to receive the ESP32 for experimenting. The board was not assembled, and it was quite intimidating to assemble the board with just a fine tip solder. The experiment is documented at this URL:https://www.instructables.com/id/Beginners-ESP32-Gu...This afternoon, yours truly came across the Arduino Core for ESP32 on github URL here: https://github.com/espressif/arduino-esp32 . Very excited on this discovery, he was eager to experiment with it, but only when he is done with the consultations. If his STM serves him well, he recalled witnessing the exponential growth of IoT devices made with ESP8266 posted on the Internet, the ESP8266 board wars by the various board makers, professionals and amateurs a...
2017 - 08 - 02
NOTE: The esp8266 Arduino core has a bug that causes wifi dhcp connect to fail if a delay() is used in the setup() functionNOTE: Make sure the Serial Monitor DTR and RTS checkboxes are OFF when using esp8266 devices, otherwise you will find youself pressing the reset button quite often :)The ESP8266 hardware can be installed from within Visual Studio Board Manager but the Arduino Ide Board Manager is recommended (bug: click the Rescan button twice after installing new hardware for the boards to appear).NOTE: December 2016 - WiFi (with OTA) Debug Beta has been released. Update of variables during debug is not yet supported. Uses UDP messaging. Breakpoints and debugging auto-deactivates when a debug session ends. To upload with USB and debug ...
2017 - 08 - 02
If you have wondered, if is it possible run your sketch on the ESP8266 program like you did on your arduino UNO board. Yes it is possible, without using your UNO board.Just download the setup and start developing from the familiar Arduino IDE.Upload your programs direct to ESP8266  your ESP8266 by pressing the button ‘upload’ in Arduino.  Use the standard sketches like “blink” or use the basic examples like wifi_blink.Arduino programs running on your ESP8266 a 3 US$ wifi enabled board.Don’t forget to  check the example page.
2017 - 08 - 02
ESP8266 as ArduinoSo this Lazy Old Geek (L.O.G.) heard about this ESP8266 IC. Basically, it’s a microcontroller that does WiFi. There are many Instructables with this chip and many with an Arduino. But most of these are using the ESP8266 as a sensor/WiFi connected to a standard Arduino.Well, what I wanted to do was use the ESP8266 as an Arduino without having to use a standard Arduino.The ESP8266 is a microcontroller similar to the AtMega328 used in the standard Arduino, e.g., Arduino UNO.Now there is already a lot of information on doing this but I found it confusing, hard to figure out, sometimes misleading so I hope to simplify and clarify the process.Special thanks to Lady Ada, Adafruit and the Adafruit HUZZAH ESP8266 breakout module. As usual she provides thorough, useful information....
2017 - 08 - 02
Despite a wealth of tutorials for setting up and writing code for the ESP8266 WiFi module, there has not been much of anything on programming this cheap wireless module with the Arduino IDE. Finally, this has changed. After many months of coding, the Arduino IDE supports the ESP8266 module.The Arduino IDE support was announced on the ESP8266 community forum. Setup is fairly simple with downloads for Linux, OS X, and Windows. This isn’t an ESP8266 shield, either: you can write code for the ESP module, connect the serial pins, and hit the program button.The basic functions of the Arduino IDE – pinMode, digitalRead, digitalWrite, and analogRead – are available. Most of the WiFi functions work just like the WiFi shield library.There are a few things that aren’t written yet; PWM doesn’t work, a...
2017 - 08 - 02
This weekend at the Bay Area Maker Faire, Arduino in conjunction with SiFive, a fabless provider of the Open Source RISC-V micros, introduced the Arduino Cinque. This is a board running one of the fastest microcontrollers available, and as an added bonus, this board includes Espressif’s ESP32, another wonderchip that features WiFi and Bluetooth alongside a very, very powerful SoC.Details on the Arduino Cinque are slim at the moment, but from what we’ve seen so far, the Cinque is an impressively powerful board featuring the RISC-V FE310 SoC from SiFive, an ESP32, and an STM32F103. The STM32 appears to be dedicated to providing the board with USB to UART translation, something the first RISC-V compatible Arduino solved with an FTDI chip. Using an FTDI chip is, of course, a que...
2017 - 08 - 02
This tutorial uses built-in touch sensors on the ESP32 Dev Module to control an LED.Step 1: Getting the Dependencies.There are multiple ways to program the ESP32. We will be using the Arduino library. You can download it from the following link:https://github.com/espressif/arduino-esp32Clone or extract the libraries in your C:\Users\Documents\Arduino folder.If you do not have Arduino IDE installed already, here is the link to that:https://www.arduino.cc/en/Main/Software     Step 2: Configure the IDEAfter completing the previous step, start the IDE and go to ToolsBoard menu. Then select ESP32 Dev Module. The default settings should be good for flash speed, upload speed etc. Select the COM port which is connected to the ESP32.Step 3: Connecting the LEDNext, connect p...
2017 - 08 - 02
The ESP32 is the successor of the famous ESP8266. It has much more features like Bluetooth. This instructable shows you, how to deep-sleep the ESP32 and wake it up using different sources.Step 1: Watch the VideoIf you want more details, please watch this video:Step 2: ESP32 Block Diagram and PinsBut first, let’s get an overview: The ESP32 chip has 2 processor types, the main, and the ultra-low power, or ULP processor. And it has plenty of pins, which can be used by these two processors. Most of the ESP32 pins have many different functions, which can be quite confusing if you look at the data sheet. Here is an excel sheet for an overview of the pins of the WROOM-32 module:https://github.com/SensorsIot/ESP32-Deep-Sleep/blo...17 pins can also be used by the ULP processor, they are called RTC_...
2017 - 08 - 02
Hot label / Products

ESP8266 As Arduino

Author:
Time: 2017-08-02
Clicks: 82

ESP8266 as Arduino

So this Lazy Old Geek (L.O.G.) heard about this ESP8266 IC. Basically, it’s a microcontroller that does WiFi. There are many Instructables with this chip and many with an Arduino. But most of these are using the ESP8266 as a sensor/WiFi connected to a standard Arduino.

Well, what I wanted to do was use the ESP8266 as an Arduino without having to use a standard Arduino.

The ESP8266 is a microcontroller similar to the AtMega328 used in the standard Arduino, e.g., Arduino UNO.

Now there is already a lot of information on doing this but I found it confusing, hard to figure out, sometimes misleading so I hope to simplify and clarify the process.

Special thanks to Lady Ada, Adafruit and the Adafruit HUZZAH ESP8266 breakout module. As usual she provides thorough, useful information.

Also, much of my information comes from this website:

https://github.com/esp8266/arduino

There are many versions of ESP8266s. Some of the cheaper ones are ESP-01, ESP-03. I think right now they go up to ESP-12. Plus there are other variations.

ESP-01 $2.88 ebay

ESP-03 $2.25 ebay

Cheaper on aliexpress.com


Step 1: Hardware Problems

Most communications with the ESP8266 is serial. Most computers use USB to serial converters, like FTDI chips.

PROBLEM: The ESP8266 IC requires 3.3Vdc instead of the more common 5Vdc. Also, it may need up to 250mA of current.

SOLUTION1: So some ESP8266 modules have built in 3.3Vdc regulators and are compatible with 5Vdc USB to serial devices.

Adafruit HUZZAH ESP8266 Breakout(https://www.adafruit.com/products/2471)(see picture)

SOLUTION2: So many FTDI converters have the option of converting logic to 3.3Vdc. And most have a 3.3Vdc supply. The problem is that most of the power supplies are in the FT232 IC and are only capable of supplying about 50mA of current. (see picture) This is also true of the PL2303 serial converters that I use a lot of.

So a separate 3.3Vdc power source is needed.

PROBLEM: The ESP-01 module has 2x4 header that is not compatible with breadboards.(see first picture)

SOLUTION: I took some long lead female headers and bent them with a little S-curve so that they will fit in a breadboard. (see pictures)

PROBLEM: The ESP-03 module has 2mm spacing on connectors which are not compatible with 0.1” breadboards.

SOLUTION: I have some 2mm headers so I soldered some male pins to the ESP-03. (see picture), then I took some 2mm female headers and wired them to some 0.1” headers. In this case I soldered them to a 2x4 headers so that I could plug them into the connector for the ESP-01.

Well, this works pretty good for breadboarding. (see picture) but I wanted something more permanent so I may make it into a PCB.



 

 

 

 

 

Step 2: ESP8266 As Arduino

ESP8266 As Arduino
ESP8266 As Arduino

Okay, there are many articles on how to do this. Most are very confusing. One of the better ones is:

https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide

The one I used the most is:

https://github.com/esp8266/arduino

ESP8266 Requirements

Hardware:

3.3Vdc supply 250mA or greater. I used an AMS1117 3.3 regulator. This is powered by USB 5V. (The USB requirement is that the 5Vdc has a minimum 500mA of current.)

USB to Serial 3.3Vdc. I use a PL2303 device.

******************************************************************************

WARNING: Some newer PL2303 modules have 5Vdc on TX. This could damage the ESP8266 modules.

******************************************************************************

Software:

Arduino Environment v 1.6.4 or greater

ESP8266 Setup

Software:

These are instructions from https://github.com/esp8266/arduino

Installing with Boards Manager

Starting with 1.6.4, Arduino allows installation of third-party platform packages using Boards Manager. We have packages available for Windows, Mac OS, and Linux (32 and 64 bit).

Install Arduino 1.6.4 (or greater) from the Arduino website. Start Arduino and open Preferences window. Enterhttp://arduino.esp8266.com/package_esp8266com_ind... into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas. Open Boards Manager from Tools > Board menu and install esp8266 platform (and don't forget to select your ESP8266 board from Tools > Board menu after installation).

Connections:

ESP-01

UTXD RXD of USB-Serial

CH_PD 3.3V

Reset Pushbutton to Gnd

URXD TXD of USB-Serial

GPIO0 Pushbutton to Gnd

GPIO2

GND GND

TIPS: Make sure TX from serial goes to ESP-01 URXD and RX goes to UTXD

On my breadboard setup, instead of pushbuttons, I used two pin jumpers.

Procedure:

Connect USB-serial to PC and ESP-01, connect power if separate

Start Arduino 1.6.4

Select ‘Tools’ ‘Port’ whatever # your USB-serial is on

Select ‘Tools’ ‘Board’ ‘Generic ESP8266 Module’

Select ‘Tools’ ‘CPU Frequency’ ‘80MHz’ Not sure why

Select ‘Tools’ ‘Flash Size’ ‘512K (64K SPIFFS)

Select ‘Tools’ ‘Upload Speed’ ‘115200’ Some ESPs may be 9600

Put ESP8266 into Flash mode:

Ground GPIO0

Briefly ground Reset

Release GPIO0

(If you have an LED on GPIO0, it should be about ½ intensity)

Load a sketch. (You can use Blink if you change it from D13 to D2)

If it works, In the Arduino environment bottom window, you will see a string of red dots as it is programming.

TIPS: While the sketch is programming, the blue LED on the ESP-01 will flash. If you have an LED on GPIO0, it will turn off when programming is complete.

So if you’re lucky and followed my instructions you should have successfully programmed the ESP-01 with Arduino

For the ESP-03, you would expect the same procedure to work but not quite.

First you have to connect a 10K resistor from GPIO15 to ground.

Second it doesn’t have an easily accessed Reset pin.

Well, I did some research and apparently the CH_PD pin when pulled to GND will work as a Reset.

Connections:

ESP-03

UTXD RXD of USB-Serial

CH_PD 1K resistor to 3.3V

CH_PD Pushbutton to Gnd

URXD TXD of USB-Serial

GPIO0 Pushbutton to Gnd

GPIO2

GND GND

GPIO15 10K to ground

Put ESP8266 into Flash mode:

Ground GPIO0

Briefly ground CH_PD (Reset)

Release GPIO0

(If you have an LED on GPIO0, it should be about ½ intensity)

So this also works for the ESP-01.

Here is a schematic of my breadboard setup.


Step 3: Firmware

ESP8266 As Arduino

What I discovered was that loading sketches overwrites the original software which is used by many of the basic Instructables and probably with a lot used when the ESP8266 is connected to a standard Arduino.

So I needed a way to reflash it back to ‘original’ software.

The one I use is ESP8266_flasher.exe

https://drive.google.com/file/d/0B3dUKfqzZnlwVGc1YnFyUjgxelE/view?pli=1

This is on Google Drive. Up at the top there is a little icon down arrow that will say Download. Load it to your PC.

Now there is a version of firmware there but it’s not the latest.

Official version?

https://drive.google.com/folderview?id=0B_ctPy0pJuW6d1FqM1lvSkJmNU0&usp=drive_web&tid=0B3dUKfqzZnlwRjFaNTUzZFptbzg

Again, this is Google Drive.

What I did is click on 0.952 support Smar

Then click on v0.9.5.2 AT Firmw

Then click on Download and save it to your PC remembering where it is.

Procedure:

Run ESP8266_Flasher

Click on ‘Bin’ , select bin file

Select correct COM port

Now setup ESP8266 into flash mode as above.

Click on ‘Download’

Program should start Writing. This takes a while

Says Leaving… Failed to leave Flash mode

Ignore message, should be finished.

Test

Easy way to Test is to use Arduino, select port, open serial monitor

Set it to 115200 baud rate and Both NL & CR

On command line enter AT+RST

NOTE: I just noticed it says SPI Speed: 40MHz,( though crystal is 26MHz)

On command line enter AT+GMR

SDK version: 0.9.5

Step 4: Conclusions

So this seems to work pretty reliably.

You don’t have to load a bootloader onto the ESP8266.

It does seem to take a little longer to program/flash.

It’s a little harder to set it up for flashing. But I’m looking into automating some of that with an FT232 module. (My old USB-BUB doesn’t work anymore.)

I need to explore some of the WiFi capabilities of the ESP8266.



 

 

 

 

 

 

 

 

 

 

Share to:
Related recommendations
2017 - 08 - 24
点击次数: 87
D1 mini LiteA simple wifi board with 1MB flash based on ESP-8285.Features11 digital input/output pins, all pins have interrupt/pwm/I2C/one-wire supported(except D0)1 analog input(3.2V max input)a Micr...
2017 - 08 - 24
点击次数: 83
D1 mini ProA mini wifi board with 16MB flash, external antenna connector and built-in ceramic antenna based on ESP-8266EX.Features11 digital input/output pinsInterrupt/pwm/I2C/one-wire1 analog input(3...
2017 - 08 - 24
点击次数: 148
Hello,I bought the wemos D1 mini and I have one problem right after the start. The connection to the web server from my browser doesn't work.I am trying to use example HelloServer for ESP2866Web serve...
2017 - 08 - 02
点击次数: 323
Christmas 2015 yours truly was one of the lucky few in the world to receive the ESP32 for experimenting. The board was not assembled, and it was quite intimidating to assemble the board with...
  • 资质认证

    服务商100%实名审核认证

  • 支付安全

    明码标价支付及信息安全

  • 专人服务

    服务全程进行信息化监控

  • 售后无忧

    服务出问题客服经理全程跟进

The unified hotline:
(86)13928411439
skype:seatechnolgy
@outlook.com


邮编:330520
  • Ali Express

  • ebay

  • "Sweeping" attention to us, more activities, surprise waiting for you
    E-mail: lily@lilygo.cc       Wechat: 13928411439       QQ :3004603945       Facebook: lily go
    Copyright ©2005 - 2013 Shenzhen Xin Yuan Electronic Technology Co., Ltd.
    犀牛云提供企业云服务