Retrieving Bitcoin Price Using ESP8266 WiFi Module

Summary of Retrieving Bitcoin Price Using ESP8266 WiFi Module


This project demonstrates how to create a simple HTTP client using an ESP8266 WiFi module to fetch the current Bitcoin price from the web. The ESP8266 is first flashed with NodeMCU firmware, enabling programming via LUA scripts similar to Arduino coding. The setup involves connecting the ESP8266 to an FTDI programmer for serial communication and using the ESPlorer software to write and upload the LUA script. This example highlights how to retrieve web data with the ESP8266 for IoT applications.

Parts used in the ESP8266 Bitcoin Price HTTP Client Project:

  • ESP8266 WiFi module
  • FTDI programmer (3.3V)
  • 3.3V power supply
  • Connecting wires
  • Computer with JAVA installed
  • ESPlorer software

Written by Rui SantosDownload free eBook with Arduino projects here

Before you read this post, I recommend reading these tutorials about the ESP8266:

Retrieving Bitcoin Price Using ESP8266 WiFi Module

Introduction

In this project you’re going to create a simple HTTP client with an ESP8266 WiFi module. Having your ESP8266 connected to your network, it requests the current Bitcoin price. This is an example on how to  retrieve data from the web.

First, flash your ESP8266 module with NodeMCU

NodeMCU is a firmware that allows you to program the ESP8266 modules with LUA script. And you’ll find it very similar to the way you program your Arduino. With just a few lines of code you can establish a WiFi connection, control the ESP8266 GPIOs, turning your ESP8266 into a web server and a lot more. Follow this tutorial to Flash your ESP8266 with NodeMCU.

Schematics (3.3V FTDI Programmer)

The schematics for this project are very straight forward. You only need to establish a serial communication between your FTDI programmer and your ESP8266. You can buy one FTDI programmer on eBay.

Wiring:

  • RX -> TX
  • TX -> RX
  • CH_PD -> 3.3V
  • VCC -> 3.3V
  • GND -> GND

Downloading ESPlorer

I recommend using the ESPlorer program created by 4refr0nt to create and save LUA files into your ESP8266. Follow these instructions to download and install ESPlorer:

  1. Click here to download ESPlorer
  2. Unzip that folder
  3. Go to the dist folder (here’s the path: ESPlorer-master\ESPlorer\dist)
  4. Run ESPlorer.jar. It’s a JAVA program, so you need JAVA installed on your computer.
  5. Open the ESPlorer

How to send commands to your ESP8266

When you open the ESPlorer you should see a window similar to the preceding Figure, follow these instructions to send commands to your ESP8266:

  1. Connect your FTDI programmer to your computer
  2. Select your FTDI programmer port (COM8, for example)
  3. Press Open/Close
  4. Select NodeMCU+MicroPtyhon tab
  5. Copy the following script into ESPlorer

 

For more detail: Retrieving Bitcoin Price Using ESP8266 WiFi Module


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top