Pages

2017/06/11

ESP-01 Programming Jig and Breadboard Adapter

I am tired of using breadboard for burning code to ESP-01 so I developed a programming jig.



The jig works with CP2102 (see below photo) and is powered directly by the 3V3 pin of CP2102. In the event that the 3V3 of CP2102 is unable to power the ESP-01, an external power could be supplied via the on board connector (between the LED and the Flash Button).


Note, 
1. A 4-wire cable of around 20cm long is provided with the purchase of the CP2012 module.
2. Two dupont wires are provided with the purchased of the ESP-01 programming jig.

The LED on the upper right hand corner of the jig is connected to GPIO 2 of ESP-01. The Arduino sketch below could be used to verify whether the firmware has been written into the on-board flash memory of ESP-01 successfully.

Note, the 3v3 power from CP2102 alone is enough for writing firmware to the flash memory. However, the 3v3 from CP2102 is not enough to power ESP-01 when its WiFi is running.

The Arduino Sketch

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#include <ESP8266WiFi.h>

// the setup function runs once when you press reset or power the board
int LED_PIN = 2;

void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_PIN, OUTPUT);
  WiFi.mode(WIFI_STA);      //We don't want the ESP to act as an AP 
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_PIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_PIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

It addition to the programming jig, I've also developed a breadboard adapter for ESP-01.

Breadboard Adapter


I am offering the jig and the breadboard adapter. Please find below the relevant info.

Price:
- ESP-01 Programming Jig (including 2 dupont wires, not including CP2102 module and the 20cm long 4-wire cable): US$3/ea.
- ESP-01 Breadboard Adapter: US$2/ea.
- CP2102 Module (including 20cm long 4-wire cable): US$2.25/ea.
- 20cm long 4-wire cable: US$1/ea

Item Location: 
Taipei, Taiwan

Shipping & Handling:
To be paid for by buyer.

If you have any questions, please feel free to leave it in the comment section below.

--------------------------------------------------------------------------------------------------------------------------

How to use the programming jig?

Note, the instruction below is performed on a computer running Windows 8.1 and Arduino IDE 1.8.4.

Step-1.  Plug the ESP-01 module to the programming jig as shown below.



Step-2. Connect the programming jig to CP2102 with a 4-wire cable as shown below.

Note that the labels on the jig (GND, RXD, TXD, 3V3) match with those on CP2102. There is no need to cross the RXD and TXD.


Step-3. Launch Arduino IDE. Load the sample sketch provided above. Be sure to select "NodeMCU 1.0 (ESP-12E Module)" as the board.


Step-4. Press and hold the "FLASH" button then press and release the "RESET" button of the programming jig. This will put the ESP-01 into programming mode. The green LED on the programming jig will be turned on constantly.

Step-5. Compile and upload the sample sketch in Arduino IDE. The uploading status will be shown in the status window.


Note, if the ESP-01 is not put into the programming mode. Error such as the one shown below will appear.


If all goes will, the green LED will start blinking at 1 second interval.

How to power the jig using external DC 3.3V power source?

Step-1. Check to make sure the voltage of the external power source is below DC 3.3V.



Step-2. Connect the external power to the programming jig as shown below. First connect the positive (red) to the pin on the left (closer to ESP-01 module). Then connect the ground (black) to the pin on the right.

IMPORTANT!!
Be sure to observe the polarity of the external power. You could burn the ESP-01 module if the positive and the ground are incorrectly connected to the jig.


The jig and the ESP-01 are now powered by external 3.3V.

IMPORTANT!!
If you are to connect CP2102 to the programming jig while the jig is powered by external 3.3V. Be sure to NOT CONNECT the 3V3 of CP2102 to the 3V3 pin of the programming jig (see below connection diagram).




--------------------------------------------------------------------------------------------------------------------------

If you want to build your own ESP-01 programmer jig. Below is the schematic.

No comments:

Post a Comment