Diy ESP8266 Module – ESP-12-E board for flashing and running

ESP8266 is a small powerful wifi chip that has so many features. Ever since its launch so many companies have produces their own variant of boards. I tried a couple of them and they were cool but some manufacturer do not produce it for certification that directly reflects in defective pieces. that means If something is not working after hours of debugging you will come to know that the module was defective. I was tired of this and wanted to get to a standard always working wifi module (atleast 99%). Then came this module under my search radar ESP-12E.

ESP-12e module –

Its a FCC certificed esp8266 module developed by I guess Ai-Thinker. I quickly got the module in hands and realised that there is no simple way to flash unless you know what you are doing. For people who want to use the module in to a product or application has to either get a development board which contains this module or make their own board.  Since I already had got a couple of esp-12e and was not interested in any development board as I have to again find a solution to flash the module in a later timeline. I went ahead to find a solution to flash the module. After many trial and error I found these sites leading me to the right direction.

These links advised to power the module with an external power supply, but I was interested in powering it with just USB 5V 500mA power supply just like any other development board offered.

Again after doing some more research I settled with the following configuration which works best for me.

You need the following things

  1. ESP-12E module –
  2. Sparkfun FTDI BasicBreakout  3v-
  3. 2X Jumper –
  4. Male Pin Header –
  5. 3X 10K resistor –
  6. Lot of connecting wires
  7. Perfboard –

Now I built my circuit based on the following direction,


The usage of resistors is to  reduce the flow of current from flowing to ground and use it to power the chip. Now with the given pin settings I drew the schematics as follows.


If you see the schematic I drew  it in such a way that the right side of the circuit resembles the Sparkfun FTDI Basic pinout. The final prototype of the board looks like this


Use your favourite SDK either from ESP8266 or from Arduino, I used Arduino IDE. To flash put the jumpers, connect the USB cable to the PC and configure the Arduino to recognize and “Upload”. To run the code, unplug the jumpers and power it thats all :).

Book Review: The Time Paradox

Today I finished reading the book “The Time Paradox” by Philip Zimbardo & John Boyd. I bought this book a couple of months back in train Station book shop when I wanted a book that can give a different perspective from other than what I currently have. With quick glance of the back cover I was impressed with this book. I did not know much about the authors until then and during half of my journey in the book I started watching some tedtalks of Philip Zimbardo and I also came to know about the Standford Prison Experiment.

Basically The authors are trying to explain the Time. Its not the ticking time but more a psychological time perspective of individuals and how that affects or improve their life. The time perspective of the people are classified in to

  • Past positive
  • Past Negative
  • Present Hedonistic
  • Present Fatalistic
  • Futuristic
  • Transcedental Futuristic

They derive these six perspective using ZTPI and TFPI Surveys and using these six perspective and the ratio of these perspective on individuals they explain in detail about the the cause and effect and much more. Each chapter contain quotes related to time and perspective from thinkers around the world and how they see world w.r.t Time. Finally they explain about the ideal time perspective and habits to achieve such view.

The Authors explain how a nation suceed or utterly fail just because of their time perspective. Overall it was a nice experience to read the whole book.


Makeself – DIY App Installer Linux

Making an application installer for Linux is much vague word as compared to Windows, this is because there exist a huge list of operating System. Even though you can narrow them down to a few distro based on derivatives you can never ensure if it will all work well unless you have tested it all yourself. When you pack your software you either settled down to on distro say Debian or Ubuntu or release multiple package for Redhat etc. Even then the nature of the software has become so complex that you need to learn a lot about the specifics of package management in detail to get it right. Like always it would be nice to have an universal solution.

I found makeself to be an interesting tool, surprisingly after I discovered it I realised there are many apps that were packaged using it. Now without much delay lets see how to use it.

apt-get install makeself

For this example I took the odoc project that I created sometime ago.

git clone

Now lets create a sandbox folder where we will create the binary app of our odoc .

cd odoc
mkdir sandbox
cp -a odoc sandbox
cp -a script sandbox

Now lets say what to do in the installer script.

cd sandbox
cp script/odoc /usr/local/bin
chmod 777 /usr/local/bin/odoc
cp -a odocs /usr/local/share 
chmod 777
cd ..

Now we have defined what to do in the installer, our next step is to create it.

makeself sandbox "ODOC" ./

Now you can copy the  to any Linux system and install it easily.

For more Information visit here or type make makeself in a terminal.