Although making requests to the CoinGecko API without account credentials returns limited information on coins, the incoming data is yet more than enough to display and interpret any given coin's status clearly.In the Fonts folder you will find all the various fonts and sizes to be displayed by the LED. I decided to use the CoinGecko API V3 in this project due to the fact that it does not require account credentials or an authentification key to send real-time cryptocurrency data. Step 3: Developing the Cryptocurrency Tracker web application in PHP to obtain data from the CoinGecko API ? Then, restart the apache server to be able to use the installed packages on the localhost: ?To be able to obtain information from the CoinGecko API V3, install the php-curl package: Sudo apt-get update sudo apt-get install php -y ? Install the php package with the following command: ? To test the server, open Chromium by selecting Internet > Chromium Web Browser from the menu and enter ? If you want, you can use the IP address of your Raspberry Pi as well. ? Install the apache2 package by typing the following command into the terminal and pressing Enter: ? Open a terminal window by selecting Accessories > Terminal from the menu. To go to the official Raspberry Pi setting up tutorial, click here. If you are a novice in programming with Raspberry Pi, you can inspect well-explained instructions and tutorials on the official Raspberry Pi website. Step 2: Setting up a LAMP web server on Raspberry Pi Pico1 (Headers for Raspberry Pi Pico) ESP1 (Headers for ESP8266 ESP-01) S1 (Headers for ST7789 IPS Screen) U1 (COM-09032 Analog Joystick) BZ1 (Buzzer) D1 (5mm Common Anode RGB LED) K1 (6圆 Pushbutton) R1, R2, R3 (220Ω Resistor) J1 (External Battery) I attached the Gerber file of the PCB below, so if you want, you can order this PCB from PCBWay to create a stylish and felicitous apparatus to monitor real-time cryptocurrency data and get notified when there is a change in coin prices - surge or depletion - inspired by Anakin Skywalker :)įirst of all, by utilizing a soldering iron, I attached headers (female), COM-09032 analog joystick, buzzer, 5mm common anode RGB LED, 6圆 pushbutton, and 220Ω resistors. Then, I designed the Darth Vader Cryptocurrency Tracker PCB by using KiCad. Step 1: Designing and soldering the Darth Vader Cryptocurrency Tracker PCBīefore prototyping my PCB design, I tested all connections and wiring with the Raspberry Pi Pico on the breadboard. In addition to presenting information, the device can be adjusted to notify the user under these two circumstances: It became a stylish and intriguing addition to my workplace as an effective apparatus to track real-time cryptocurrency data :) Since the Raspberry Pi Pico is not eligible for WiFi connectivity, I added an ESP8266 ESP-01 to my device to assist the Raspberry Pi Pico in obtaining information from the web application.įinally, I added a COM-09032 analog joystick and a button to control the interface of the device.Īfter completing wiring on a breadboard and testing the code, I designed my Darth Vader-shaped PCB to complete my project. Then, I used a Raspberry Pi Pico to get cryptocurrency data of the requested coins elicited by the PHP web application and display each coin's information with an ST7789 IPS screen. After managing to get cryptocurrency data, I developed a web application in PHP, named Cryptocurrency Tracker, running on Raspberry Pi to obtain data from the API, process it, and print a JSON data packet containing these parameters for each requested coin: Though it is free, the CoinGecko API provides data in JSON for cryptocurrency coins profusely. Since I am a huge Star Wars fan, I thought it would be hilarious and intriguing if the one who brings me news about the balance of the cryptocurrency coins happened to be Darth Vader - the chosen one :) Thus, I designed this apparatus which presents data on these five coins:įirst of all, to elicit information on cryptocurrency coins concurrently, I decided to use the CoinGecko API V3 because it does not require account credentials or an authentification key. Instead of using a mobile or web application, I decided to develop a brand-new device to track and display cryptocurrency data with Raspberry Pi Pico.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |