Project showcase

Crypto Miner © GPL3+

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

  • 6,021 views
  • 0 comments
  • 22 respects

Components and supplies

Necessary tools and machines

3drag
3D Printer (generic)

Apps and online services

About this project

Crypto Miner

Crypto Miner is a companion system that runs alongside your cryptocurrency mining rig. The system allows you to monitor the temperatures of your hardware, hashing rate and also gives you the ability to reset the power supply on the rig. All these features are integrated with Alexa for voice interaction.

The temperatures are monitored using an Arduino MKR1000 with five temperature probes. This setup runs a sketch that posts the readings of each probe to a local server running on a Raspberry Pi.

I have an Express web server running on the pi which receives readings from the sensors and saves them to a RethinkDB instance. The web server acts as an API to provide data to the Alexa skill for voice interface. The user may also visit a dashboard running on the Pi that is also exposed.

The dashboard provides the user with their rig information like name and current hash rate. It also provides a real time graph of the latest readings.

The user can click through on any of the readings to see the full history for each of the temperatures.

The user can also click through on the hash rate to see hash rate history, as well.

Alexa

This hardware has a companion Alexa skill called Crypto Miner. You can use Crypto Miner to get your rigs current hash rate and temperatures.

  • Alexa, ask Crypto Miner, what is the hash rate of Gill?

Where Gill is the name of your mining rig.

You can also ask for temperatures based on name.

  • Alexa, ask Crypto Miner, what is the temperature of the radiator?
  • Alexa, ask Crypto Miner, what is the temperature of the video cards?
  • Alexa, ask Crypto Miner, what is the temperature of the case?

You may also restart the rig by name.

  • Alexa, ask Crypto Miner to reset rig Gill.

Demo

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.

Restarting Rig

One of the most important aspects of mining is uptime. You always want your rig mining at full throttle. Crypto Miner can you help make sure you always know when your miner is not performing optimally and you can take action.

The system has a relay connected to PS-On pin of the ATX power supply. This pin must be kept low for the power supply to be powered on. In the event that the mining rig GPUs drop below a certain temperature, I know one of the cards is not longer mining and I can reset the system by pulling that pin high with the relay. This will shut down the system and then I can pull the pin back low to restart the machine. The rig has an autostart policy so it will just start mining on boot.

Expandability

This system is designed to be expandable by adding more MKR1000s with the desired temperature probes for each additional rig. This system could provide data from multiple rigs even if they are distributed across the globe. Each device would just need internet which is already necessary for the mining rigs to function properly.

Code

Crypto Miner
This is the API that runs on the raspberry pi and also includes the sketch for the MKR1000.
Crypto Miner (Alexa Skill)
This is the skill that allows for the user to query Alexa for readings and issues the reset command.

Custom parts and enclosures

MKR1000 case
Case for Arduino MKR1000

Schematics

Temperature probes schematic
I have 5 probes wired to pin 5 of the MKR1000 and use the oneWire protocol.
Arduinomkr1000v2 bb syxttw82zx

Comments

Similar projects you might like

Archimedes: The AI Robot Owl

Project in progress by Alex Glow

  • 4,670 views
  • 5 comments
  • 44 respects

Humaniod A.I Talking Robot With Arduino

Project showcase by Ashwini kumar sinha

  • 1,541 views
  • 2 comments
  • 5 respects

Art Deco FM Radio Project Using Arduino

Project tutorial by Nick Koumaris

  • 1,580 views
  • 1 comment
  • 8 respects

Pill Me Please - The Automated Pill Packaging Machine!

Project tutorial by KevinZhangHK

  • 543 views
  • 0 comments
  • 9 respects

SensorBoard

Project showcase by andrea camilloni

  • 333 views
  • 0 comments
  • 1 respect
Add projectSign up / Login