Version 0.3 supports 12 coins (bitcoin, ethereum, litecoin, waves, binance coin, monero, stellar, cake, bsw, eos, dogecoin, zcash), can be increased to 100 or even more. A request to the coinmarketcap API occurs every 5 minutes. Coins change every 25 seconds (5 minutes / number of coins).
Now there is a separate server between the coinmarketcap and the wifi module, which simply removes unnecessary data from the coinmarketcap response. This is necessary because the wifi module can process a JSON object of no more than 4096 kilobytes.
- Arduino Uno
- ESP8266 (ESP01)
- 1602A LCD
- Wires
- ESP8266WiFi
- ArduinoJson
- SoftwareSerial
- LiquidCrystal_I2C
Connection diagram for ESP8266 firmware:
ESP8266 | ARDUINO UNO |
---|---|
GND | GND |
VIN | 3.3v |
ENABLE | 3.3v |
TX | TX |
RX | RX |
GPIO0 | GND |
It is also necessary to close reset and gnd on the arduino.
Next, you need to hold down the reset button on the arduino and connect the arduino to the PC, after you hear that the USB-device is connected, you can release the button.
To update the ESP8266 firmware, you need to perform a number of manipulations with the Arduino IDE development environment.
- Open the /api/api.ino file, configure the wi-fi network
- Open File -> Preferences -> paste the link into the Additional Board Manager URLs http://arduino.esp8266.com/stable/package_esp8266com_index.json
- Open Tools -> Boards -> ESP8266 Boards -> Generic ESP8266 Module
- Install ArduinoJson library (Tools -> Manage Libraries -> Find and install)
- Compile and upload it to ESP8266.
- Profit!
Connection diagram for ESP8266 firmware:
ESP8266 | ARDUINO UNO |
---|---|
GND | GND |
3V3 | 3.3v |
ENABLE | 3.3v |
TX | Serial 3 |
RX | Serial 2 |
LCD 1602A | ARDUINO UNO |
---|---|
GND | GND |
VCC | 5v |
SDA | A4 |
SCL | A5 |
Update Arduino Uno firmware:
- Open the /main/main.ino file
- Open Tools -> Boards -> Arduino AVR Board -> Arduino Uno
- Install LiquidCrystal_I2C library (Tools -> Manage Libraries -> Find and install)
- Compile and upload it to ESP8266.
- Profit!