Menu Close
Spread the love

Bitcoin price alert using an Arduino Nano

Btc Preis Alert Animation
 Youtube Video

Creating a Bitcoin price alert using an Arduino Nano and a Python script can be a useful project for monitoring the value of Bitcoin.

price alert

Parts Required:

–  OLED LCD Led-display-module 0,96 “IIC SPI
–  10 Karat ohm Trim Potentiometer 
–  Buzzer / piezo speaker 
–  on/off  Switch 
–  Arduino NANO v3.0 
–  Breadboard 
– Wires to connect it all together

Wiring your BTC Price Alert:

bitcoin price alert

required library:

– Wire
– Adafruit_GFX
– Adafruit_SSD1306

Arduino Code:


// Hisham Marzouk
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);

#define NUMFLAKES 10
#define XPOS 0
#define YPOS 1
#define DELTAY 2

#if (SSD1306_LCDHEIGHT != 64)
#error(“Height incorrect, please fix Adafruit_SSD1306.h!”);

int Buzzer = 2;
int sensorPin = A0;
int Switch = A2;
int Value =0;
float sensorValue = 0;

void setup() {
Download to get the full code.


Python Code USD:

# Hisham Marzouk

import urllib2
import serial
import re
import time

ser = serial.Serial(port='COM5', baudrate=57600)

opener = urllib2.build_opener()
 opener.addheaders = [('User-agent', 'Mozilla/5.0')]
 url = ('')

if ser.isOpen()== False:
 while (ser.isOpen() == True):
 oururl =

spl = oururl.split("USD")

spl2 = (spl[1])

spl3 = spl2.split('"last" : ')
spl4 = (spl3[1])

spl5 = spl4.split(', "buy"')
spl6 = (spl5[0])

spl7= (spl6)




to change the currency from USD to Euro change this Line.

from spl = oururl.split("USD")

to spl = oururl.split("EUR")

Download: Bitcoin BTC Price Alert

Thank you for visiting. If you found this information helpful, please consider subscribing to the Officialhrm YouTube channel and liking their Facebook Page for more updates and helpful content. Don’t forget to share this website with your friends.


File Description Date added File size Downloads
zip Bitcoin BTC Price Alert August 15, 2018 3:51 pm 145 KB 6209
Posted in Arduino

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *