{"id":22253933,"url":"https://github.com/mcauser/micropython-esp8266-nokia-5110-bitcoin","last_synced_at":"2025-07-01T23:07:10.857Z","repository":{"id":150620651,"uuid":"92141735","full_name":"mcauser/MicroPython-ESP8266-Nokia-5110-Bitcoin","owner":"mcauser","description":"MicroPython library for displaying bitcoin price index on a Nokia 5110 display with PCD8544 driver","archived":false,"fork":false,"pushed_at":"2018-08-07T16:06:52.000Z","size":704,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T15:50:43.710Z","etag":null,"topics":["bitcoin","coinbase-api","esp8266","micropython","nokia-5110","pcd8544","wemos-d1-mini"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcauser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-23T07:17:23.000Z","updated_at":"2019-09-20T00:01:24.000Z","dependencies_parsed_at":"2023-05-06T09:32:10.662Z","dependency_job_id":null,"html_url":"https://github.com/mcauser/MicroPython-ESP8266-Nokia-5110-Bitcoin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mcauser/MicroPython-ESP8266-Nokia-5110-Bitcoin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2FMicroPython-ESP8266-Nokia-5110-Bitcoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2FMicroPython-ESP8266-Nokia-5110-Bitcoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2FMicroPython-ESP8266-Nokia-5110-Bitcoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2FMicroPython-ESP8266-Nokia-5110-Bitcoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcauser","download_url":"https://codeload.github.com/mcauser/MicroPython-ESP8266-Nokia-5110-Bitcoin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2FMicroPython-ESP8266-Nokia-5110-Bitcoin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263047676,"owners_count":23405280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","coinbase-api","esp8266","micropython","nokia-5110","pcd8544","wemos-d1-mini"],"created_at":"2024-12-03T07:21:08.043Z","updated_at":"2025-07-01T23:07:10.824Z","avatar_url":"https://github.com/mcauser.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MicroPython ESP8266 Nokia 5110 Bitcoin Price Index\n\nA MicroPython library for displaying bitcoin price index on a Nokia 5110 display with PCD8544 driver.\n\nPowered by [CoinDesk](http://www.coindesk.com/price/) and their free [Bitcoin Price Index API](http://www.coindesk.com/api/).\n\nPrices are converted to Australian dollars (AUD) using hourly conversion rate from [openexchangerates.org](https://openexchangerates.org/).\nYou can change this to another currency by changing the api endpoint.\n\nPrices are updated around every 84 seconds.\n\n![demo](docs/demo.jpg)\n\nThe 84x48 PCD8544 buffer:\n\n![demo](docs/bpi-84x48.png)\n\n## Initial setup\n\n1. Copy the files to your ESP8266 board\n\t* using WebREPL\n\t\t* See [ESP8266 QuickRef](http://docs.micropython.org/en/latest/esp8266/esp8266/quickref.html#webrepl-web-browser-interactive-prompt)\n\t* using ampy\n\t\t* see [Adafruit ampy guide](https://learn.adafruit.com/micropython-basics-load-files-and-run-code/file-operations)\n\t* compiling into the firmware\n\t\t* make erase\n\t\t* copy bitcoin_ticker.py to /esp8266/modules\n\t\t* copy bitcoin_ticker_test.py to /esp8266/modules\n\t\t* copy pcd8544.py to /esp8266/modules\n\t\t* make deploy\n\n2. Connect to WiFi, credentials are persisted, so you wont need to enter them each time\n\n\t```python\n\t\u003e\u003e\u003e import network\n\t\u003e\u003e\u003e sta_if = network.WLAN(network.STA_IF);\n\t\u003e\u003e\u003e sta_if.active(True)\n\t\u003e\u003e\u003e sta_if.scan()\n\t\u003e\u003e\u003e sta_if.connect(\"ssid\",\"pass\")\n\t\u003e\u003e\u003e sta_if.isconnected()\n\t```\n\n\tDisable the AP, unless you need it.\n\n\t```python\n\t\u003e\u003e\u003e ap_if = network.WLAN(network.AP_IF)\n\t\u003e\u003e\u003e ap_if.active(False)\n\t```\n\n3. Install urequests with upip. You need to be on WiFi for this to work.\n\n\t```python\n\t\u003e\u003e\u003e import upip\n\t\u003e\u003e\u003e upip.install('micropython-urequests')\n\t```\n\n\tDid it install?\n\n\t```python\n\t\u003e\u003e\u003e import os\n\t\u003e\u003e\u003e os.listdir()\n\t['boot.py', 'lib']\n\t\u003e\u003e\u003e os.listdir('lib')\n\t['urequests.py']\n\t```\n\n\tYes!\n\n4. Run the demo\n\n\t```python\n\timport bitcoin_ticker_test\n\t```\n\n#### Example Coindesk API json response:\n\n```\n{\n\t\"time\":{\n\t\t\"updated\":\"May 23, 2017 07:14:00 UTC\",\n\t\t\"updatedISO\":\"2017-05-23T07:14:00+00:00\",\n\t\t\"updateduk\":\"May 23, 2017 at 08:14 BST\"\n\t},\n\t\"disclaimer\":\"This data was produced from the CoinDesk Bitcoin Price Index (USD). Non-USD currency data converted using hourly conversion rate from openexchangerates.org\",\n\t\"bpi\":{\n\t\t\"USD\":{\n\t\t\t\"code\":\"USD\",\n\t\t\t\"rate\":\"2,214.9088\",\n\t\t\t\"description\":\"United States Dollar\",\n\t\t\t\"rate_float\":2214.9088\n\t\t},\n\t\t\"AUD\":{\n\t\t\t\"code\":\"AUD\",\n\t\t\t\"rate\":\"2,955.7979\",\n\t\t\t\"description\":\"Australian Dollar\",\n\t\t\t\"rate_float\":2955.7979\n\t\t}\n\t}\n}\n```\n\n`bpi.AUD.rate_float` is parsed from the json and displayed on the LCD.\n\n\n## Parts\n\n* [WeMos D1 Mini](http://www.aliexpress.com/store/product/D1-mini-Mini-NodeMcu-4M-bytes-Lua-WIFI-Internet-of-Things-development-board-based-ESP8266/1331105_32529101036.html) $4.00 USD\n* [Nokia 5110 module](https://www.aliexpress.com/w/wholesale-Nokia-5110.html?groupsort=1\u0026SortType=price_asc\u0026g=y\u0026SearchText=Nokia+5110) $1.77 USD\n* [Breadboard 400 point](https://www.aliexpress.com/w/wholesale-breadboard.html?groupsort=1\u0026SortType=price_asc\u0026g=y\u0026SearchText=Breadboard+400+point) $0.90 USD\n* [Jumper wire](https://www.aliexpress.com/w/wholesale-breadboard.html?groupsort=1\u0026SortType=price_asc\u0026g=y\u0026SearchText=65+breadboard+jumper+cables) $1.09 USD\n\n## Connections\n\nWeMos D1 Mini | Nokia 5110 PCD8544 LCD\n------------- | ---------------\nD3 (GPIO0)    | 0 RST\nD4 (GPIO2)    | 1 CE\nD8 (GPIO15)   | 2 DC\nD7 (GPIO13)   | 3 Din\nD5 (GPIO14)   | 4 Clk\n3V3           | 5 Vcc\nD6 (GPIO12)   | 6 BL\nG             | 7 Gnd\n\n## Links\n\n* [MicroPython PCD8544 Driver](https://github.com/mcauser/micropython-pcd8544)\n* [WeMos D1 Mini](https://www.wemos.cc/product/d1-mini.html)\n* [micropython.org](http://micropython.org)\n\n## Credits\n\n* Bitcoin Logo [Wikipedia](https://commons.wikimedia.org/wiki/File:Bitcoin_logo.svg) (Creative Commons CC0 1.0)\n\n## License\n\nLicensed under the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcauser%2Fmicropython-esp8266-nokia-5110-bitcoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcauser%2Fmicropython-esp8266-nokia-5110-bitcoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcauser%2Fmicropython-esp8266-nokia-5110-bitcoin/lists"}