Home > Projects > Crypto Miner

Crypto Miner

Summary of Crypto Miner


This project, Crypto Miner, monitors cryptocurrency mining rig temperatures and hash rates while enabling remote power resets via Alexa. An Arduino MKR1000 collects sensor data using the OneWire protocol and sends it to a Raspberry Pi running an Express web server and RethinkDB. The system features a real-time dashboard and an integrated Alexa skill for voice queries and rig management, ensuring optimal uptime through automated restart capabilities.

Parts used in the Crypto Miner:

  • Arduino MKR1000
  • Raspberry Pi 3 Model B
  • Temperature probe (ds18b20)
  • Resistor 4.75k ohm
  • Amazon Alexa Echo Dot
  • Relay Module (Generic)
  • Water cooled 290x GPUs
  • ATX power supply

Monitor your crypto mining hardware temperatures and hash rates with the ability to restart the rig remotely as well as Alexa integration.

Crypto Miner

Things used in this project

Hardware components

Arduino MKR1000
Arduino MKR1000
× 1
Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
× 1
Temperature probe (ds18b20)
× 5
Resistor 4.75k ohm
Resistor 4.75k ohm
× 1
Echo Dot
Amazon Alexa Echo Dot
× 1
Relay Module (Generic)
× 1

Software apps and online services

Alexa Voice Service
Amazon Alexa Alexa Voice Service
AWS Lambda
Amazon Web Services AWS Lambda

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)

Story

Demo of Crypto Miner

High Level Flow

I’m using the Arduino MKR1000 to post all the sensor data to the Raspberry Pi which saves the readings to a RethinkDB instance. I have an Alexa skill running on the AWS lambda service that Alexa will use to request data from the mining rigs. The skill sends a call to the Pi and it returns the latest readings or hash rates. The Pi also acts as a web server to deliver a dashboard with a web socket connection to keep the data streaming in.

Mining Rig Hardware

My mining rig consists of two water cooled 290x GPUs which are currently mining Ethereum. I have a temperature probe taped to the backplate of each of the graphics cards, one near the PSU inside the case, one on the exhaust of the radiator and one probe for room temperature. The probes are all wired directly to the same pin on the MKR1000 and use OneWire protocol.

 

Quick Solutions to Questions related to Crypto Miner:

  • How does the system monitor hardware temperatures?
    The Arduino MKR1000 uses five temperature probes wired via the OneWire protocol to post readings to a local server.
  • Can I reset my mining rig remotely using voice commands?
    Yes, users can ask Alexa to reset a specific rig by name, which triggers a relay to cycle the power supply.
  • What software runs on the Raspberry Pi?
    An Express web server runs on the Pi to receive sensor data, save it to RethinkDB, and act as an API for the Alexa skill.
  • Does the dashboard provide real-time data visualization?
    Yes, the dashboard includes a real-time graph of latest readings connected via a web socket.
  • How is the mining rig restarted when performance drops?
    A relay pulls the PS-On pin high to shut down the system and then low again to restart it based on an autostart policy.
  • Can this system support multiple distributed mining rigs?
    Yes, the system is expandable by adding more MKR1000s with probes for each additional rig across different locations.
  • What protocol do the temperature sensors use?
    All five probes are wired directly to the same pin on the MKR1000 and utilize the OneWire protocol.
  • Where is the Alexa skill hosted?
    The Alexa skill runs on the AWS Lambda service to request data from the mining rigs.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top