background image

Auto vs. Manual Reset Into Bootloader

In addition to the RX and TX pins, the FTDI’s DTR pin is used to reset the ESP8266 and get it into bootloader
mode. The board includes circuitry to automatically reset and bootload the board; in most cases, you shouldn’t
have to do anything special to program it.

The auto-reset circuit can be a little flaky, however. If the board isn’t taking a program, you may see an error like
“error: espcomm_upload_mem failed”.

If this shows up repeatedly, you may need to manually reset into bootloader mode be holding pin 0 low while
resetting the ESP8266:

1. Hold down the “0” button
2. Press and release the “RST” button
3. Release the “0” button

The timing of this can be a little tricky. Try resetting it into bootloader mode, then quickly uploading your sketch.

Decreasing the upload speed baud rate to something around 115200 bps can also help improve the reliability of
the reset circuit.

Testing the Receiver

ESP8266 IR Remote Arduino Library

IRremoteESP8266

 -- an IR Arduino library specific to the ESP8266 -- gets our recommendation for sending

and receiving IR signals with this board. You can download the library from their GitHub page, or by
searching out IRremoteESP8266 in your Arduino library manager.

Click the image for a closer look.

Содержание ESP8266

Страница 1: ...emotes when you probably have a much smarter WiFi connected device device sitting conveniently in your hand The WiFi IR Blaster is designed to connect all of those old legacy IR controlled devices to a WiFi network exposing them to a new method of control Want to control your TV via a web browser Want to ask Alexa to mute your stereo Want to schedule triggers to your IR controlled LED strip These ...

Страница 2: ... and it will detail how to program the ESP8266 using the Arduino IDE Once complete you ll have a simple web server than can emit infrared signals at the click of a browser page Required Materials The WiFi IR Blaster includes the board an infrared emitter and an infrared receiver You ll need a handful of other tools and components to get it powered and programmed SparkFun Beefy 3 FTDI Basic Breakou...

Страница 3: ...and general soldering accessories To add you ll also need a local WiFi network that you can connect your ESP8266 up to It also helps to have a second device smartphone or computer that s also connected to that network Suggested Reading If you aren t familiar with the following concepts we recommend checking out these tutorials before continuing COM 14865 PRT 00553 How to Solder Through Hole Solder...

Страница 4: ... anything that may interfere with WiFi signals near that area Supporting the ESP8266 are a reset and general purpose button a user LED and an array of pin breakouts Of course there s also the IR emitter and detector These components are packaged with the board but not soldered in place This allows you to solder both components at any angle your project requires It also leaves the option to customi...

Страница 5: ...e you solder them in in the correct orientation Both components have a bulb shaped bump protruding from one side the bumps should both be facing towards the nearer edge of the board Silkscreen on the board should also help orient the components While you have your iron out you may also want to solder headers into the 6 pin serial header and the 8 pin power GPIO header Which headers you solder into...

Страница 6: ...st 300mA which most FTDI boards cannot do We recommend the Beefy 3 FTDI Basic Breakout which can supply up to 600mA Removing the Standoff Edge A pair of standoffs are provided towards the bottom of the WiFi IR Blaster If you don t need these standoffs and want to save some space the standoff board can be removed by breaking it along the v score line Standoff Board Snappable Area Programming the ES...

Страница 7: ...P8266 Arduino board definitions The board definitions can be found in the ESP8266 Arduino GitHub repository For installation instructions check out this section of the README The WiFi Blaster board definition is not included with the Arduino ESP8266 board files but it can be uploaded to as a Generic ESP8266 Module Verify your settings look like below Board Generic ESP8266 Module Board Generic ESP8...

Страница 8: ... be holding pin 0 low while resetting the ESP8266 1 Hold down the 0 button 2 Press and release the RST button 3 Release the 0 button The timing of this can be a little tricky Try resetting it into bootloader mode then quickly uploading your sketch Decreasing the upload speed baud rate to something around 115200 bps can also help improve the reliability of the reset circuit Testing the Receiver ESP...

Страница 9: ...et it to 13 define RECV_PIN 13 Once that modification has been made upload away Make sure the board is set correctly to NodeMCU 1 0 ESP 12E Module Then open up the serial monitor and set the baud rate to 115200 You should see a IRrecvDumpV2 is now running and waiting for IR input on Pin 13 message print out If you don t try tapping the board s reset button Then aim an IR remote at the board and hi...

Страница 10: ...ious example to send an NEC or Sony command This is quite a bit more efficient than sending the raw timing data Sending NEC Codes via Web Server One last example which really begins to show the power of this module is the IRServer example This sketch will connect your ESP8266 to WiFi and set it up as a web server When the right HTTP endpoint is hit it will send a desired command So you can trigger...

Страница 11: ...y recommend checking out the IR Controller ESP8266 firmware This fully featured firmware combines IR send and receive functions with a web server It monitors for received commands and provides a handy interface to emit those back out with the ESP8266 There are even instructions for connecting the Blaster to an Alexa service Click the image for a closer look If you give this firmware a spin just re...

Страница 12: ...hese documents GitHub Product Repository GitHub repository where you can find all of our latest hardware and software design files Hardware Schematic PDF schematic Eagle Files PCB design files ESP 12S Datasheet ESP8266 module w integrated crystal antenna flash LTE 302 Datasheet IR emitter TSOP382 Datasheet IR receiver Firmware IRremoteESP8266 Arduino Library ESP8266 IR Arduino library ESP8266 IR C...

Страница 13: ...Roshamglo Project TV B Gone Turn your Roshamglo board into a nearly universal TV power button AVC Sensor Test JUNE 20 2016 ...

Отзывы: