Cryptocurrency Price Ticker
This repo contains
- Backend
- Firmware
- Detailed instructions
for Cryptocurrency Price Ticker.
These instructions will get you a copy of the project up and running on your system.
Things you need to install the FW.
- Arduino IDE
A step by step series that tell you how to get the Firmware and Backend running
You should have Arduino IDE Installed
-
Add ESP32 Board to your Arduino IDE
-
In your Arduino IDE, go to File> Preferences Installing ESP32 Add-on in Arduino IDE Windows, Mac OS X, Linux open preferences
-
Enter
https://dl.espressif.com/dl/package_esp32_index.json
into the “Additional Board Manager URLs” field then, click the “OK” button: Note: if you already have the ESP32 boards URL, you can separate the URLs with a comma(each board will go to neaw line) as follows:https://dl.espressif.com/dl/package_esp32_index.json,\n http://arduino.esp8266.com/stable/package_esp8266com_index.json
-
Open the Boards Manager. Go to Tools > Board > Boards Manager…
-
Search for ESP32 and press install button for the ESP32 by Espressif Systems“:
-
That’s it. It should be installed after a few seconds.
-
In your Arduino sketchbook directory, create tools directory if it doesn't exist yet.
-
Unpack the tool into tools directory(present in libs/ESP32FS-1.0.zip) (the path will look like <home_dir>/Arduino/tools/ESP32FS/tool/esp32fs.jar).
-
Close and re-open the Arduino IDE.
-
Now copy the contents of the libs folder to the libraries directory of your Arduino
- If you are using windows, the libraries directory will be Documents/Arduino/libraries
- Select ESP32 Dev Module from Tools->Board->ESP32
- Select the correct port from Tools->Port
- Then open Firmware.ino file,
- Select Tools > ESP32 Sketch Data Upload menu item. This should start uploading the files into ESP32 flash file system.
- Now Upload the Code to your ESP32 Dev Module.
- Your ESP32 is now ready to be used.
Follow the pinout diagram given below to connect different components to your ESP32 Dev Module board.
Here's the complete circuit diagram of the system.
Other components pin connection details
MAX7219 Dot Matrix Display Connected with ESP32
MAX7219 Pins | ESP32 |
---|---|
3.3V |
3.3V |
CLK |
D18 |
DIN |
D23 |
CS |
D15 |
GND |
GND |
Display On/Off Button Connected with ESP32
MAX7219 Pins | ESP32 |
---|---|
PIN1 |
D32 |
PIN2 |
GND |
-
Upload the code to your ESP32.
-
Power on your ESP32, it will present you with an AP named
CPT-abc
(whileCPT
can be changed in the portal andabc
is a unique id for each esp32) -
Default captive portal password
123456789AP
which can be changed in captive portal. -
Connect to the ESP32 access point and open the web-browser and navigate to the link
http://esp32.local/_ac
. This link will work on most of the operating systems but if your operating system is not allowing to open it, you may want to check the captive portal IP Address from the serial monitor and can use that IP address inplace of the above mentioned URL. -
The default access IP Address is
http://192.168.4.1/_ac
-
You will be presented with a main dashboard as shown below(based on your device)
-
Once connected to a WiFi network, you can again access the captive portal using same URL or the IP Address from the Serial monitor.
-
The data is published to the MQTT Topic
CPT/{hostname}
while the hostname is the one which you can define in Settings page of the captive portal. -
You can open settings page with following default credentials
- User: AP Name (CPT)
- Password: admin
-
You can set a crypto coin in the setting page in 'Crypto Name' Section. Multiple currencies can be added separated by the comma like BTC,ADA,ETH
-
You can also select the currency in the 'Currency' section. Put any currency name in three letter like USD or AUD etc.
Following components are used to make this project
- ESP32 Dev Module ○ https://www.amazon.com/ESP32-WROOM-32-Development-ESP-32S-Bluetooth-Arduino/dp/B084KWNMM4/ref=sr_1_3?dchild=1&keywords=esp32+devkit&qid=1635342032&sr=8-3
- LED Matrix 4x (8x8 Matrix) ○ https://www.amazon.com/HiLetgo-MAX7219-Arduino-Microcontroller-Display/dp/B07FFV537V/ref=sr_1_12?dchild=1&keywords=led+matrix&qid=1635341741&sr=8-12
- On/OFF Switch ○ https://www.amazon.com/URWOOW-Latching-Button-Household-Appliances/dp/B08F7ZR4VW/ref=sr_1_10_sspa?dchild=1&keywords=on+off+button&qid=1610176872&sr=8-10-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUEzRElYRElPQU1IQkFXJmVuY3J5cHRlZElkPUEwOTk2NzUwMVlWTkJPQ1ozWDdSVyZlbmNyeXB0ZWRBZElkPUEwNTg4Nzg1MUhTWTNNSEcyRlZLViZ3aWRnZXROYW1lPXNwX210ZiZhY3Rpb249Y2xpY2tSZWRpcmVjdCZkb05vdExvZ0NsaWNrPXRydWU=
- Arduino - Embedded Framework and IDE - For Sensor Node Design
- @Nauman3S - Development and Deployment