ESP8266 based Bitcoin (and many other cryptocurrencies) ticker.
- 1 x ESP-01 module
- 1 x CP2102 USB TTL - Actually you can use any kind of USB-TTL converters
- 1 x AMS1117 voltage regulator - Or any other 3.3v voltage regulator
- 1 x 0.91" OLED LCD display - Or any other i2c OLED display
- Arduino
- ESP8266 Arduino core
- ArduinoJson library - Install it using the library manager
- Adafruit_SSD1306 library - Install it using the library manager
- WifiManager library - Install it using the library manager
Programming the ESP-01 is not that straightforward as many other boards. The ESP-01 needs its GPIO-0
pin put low before power up to enter in flash mode.
This way the ESP-01 can be programmed from the Arduino IDE. Don't forget to set the board to "Generic ESP8266 module" and the serial port pointing to your USB TTL device. Take into account that as long as GPIO-0
is kept in a low level the ESP-01 will remain in flash mode, so the software you burnt into it wouldn't run, unless you left GPIO-0
floating.
The ESP-01 has a WiFi transceiver embedded. The WifiManager library brings up an access point where you can connect to and then configure your local wifi network. These are the default ssid and password for the AP mode, they're also shown on the Oled screen.
ssid: ticker
pass: notsatoshi
If you need to reset the configuration to connect to a different wifi network, power up the ticker and then press and hold the reset button for 3 seconds.
Take a look to the Bitstamp ticker api then open a browser pointing to the IP address of your ticker, the IP address is shown during startup on the Oled screen.
Once you programmed the code bear-market-ticker.ino into the ESP-01, remove the GND
connection to GPIO-0
, remove power and apply power again. Now if you open a serial console, you'll get the BTCUSD pair price.
The OLED display is connected to the ESP-01 using an i2c connection, hence SDA
and SCL
signals are routed through GPIO-2
and GPIO-0
. There's also an AMS1117 voltage regulator, hence you can power up the entire board using any USB charger.
I've included two stl files to build a case for the ticker. The Oled screen needs to be glued and pieces have a groove to snap fit between.