Bitcoin mining represents a unique opportunity to improve efficiency in both the production and use of energy, whether on an industrial scale or for smaller setups. This project aims to make mining accessible and easy to implement, providing tools to integrate mining into energy systems and maximize the use of the energy produced.
In energy production plants, especially those relying on renewable sources like solar and wind, there's often a surplus of energy generated during peak hours (for example, when there is a lot of sun or wind) that doesn't align with peak demand times. Today, the main options for managing this excess energy include:
- Selling the energy to the national grid: This is possible only if the grid accepts the surplus, and often at unfavorable economic conditions.
- Purchasing additional storage systems: Such as batteries, which can be expensive and not always scalable, limiting this option for many small producers.
- Using the energy for various purposes: For instance, producing hydrogen through electrolysis, charging electric vehicles, or pumping water for hydroelectric storage. However, these solutions are often challenging and costly to implement, especially for small- and medium-sized plants.
- Using energy for marginal purposes: Such as resistive heating, which generally doesn’t add significant economic value.
- Wasting the energy: Which is a loss that reduces the overall efficiency of the plant.
Bitcoin mining is a computational process that verifies and validates transactions on the Bitcoin network. This process ensures network security, using electrical energy to power specialized devices called miners. In return for this activity, miners receive a reward in Bitcoin, making mining not only useful for the network but also economically beneficial for participants.
This process has a unique feature that makes it particularly suitable for integration with renewable energy production plants: it is extremely flexible, able to be activated to consume energy during times of surplus and stopped immediately when energy is needed for other purposes.
Moreover, mining produces heat as a byproduct. 100% of the electrical energy used by a miner is converted into heat, making it similar to an electric heater that, in addition to providing warmth, also generates a constant economic reward.
These characteristics make mining an ideal solution for managing excess energy, particularly in small- and medium-sized plants.
Aside from electrical power, mining only requires a miner and a low-speed internet connection. It virtually needs nothing else, making it a very simple activity to implement anywhere.
You could say that the hardware implementation of a mining system is not particularly complex from a technical standpoint. In trying to implement it ourselves, we realized that the only missing element for a fully functional system was a management and automation solution for the mining process, specifically software that connects the energy production plant to the miners, regulating power on/off and energy consumption.
Our project aims to develop a mining management system that:
- Connects the power generation plant with one or more ASIC devices for mining.
- Allows users, even non-experts, to automate the mining process based on specific energy requirements.
- Helps users manage and make the most of the heat generated by the ASICs for space heating, thereby maximizing the energy surplus of the plant.
One of the biggest challenges in managing a solar-powered system is efficiently utilizing all excess energy. Simple automations for turning devices on and off may work in basic scenarios, but they often lead to situations where, on clear sunny days, the battery reaches 100% charge too quickly, even with the miner running. When this happens, surplus energy from the solar panels goes unused because the miner's power consumption may be lower than the system's maximum production.
To solve this, we are experimenting with automations that proactively manage the miner’s operation based on daily solar production forecasts. Instead of waiting for excess energy to accumulate, the system starts mining earlier in the day when the battery is still low, allowing solar energy to be used gradually throughout the day. This approach ensures that:
- The battery charges more slowly and reaches full capacity later in the day.
- The solar system operates at maximum efficiency, using as much available energy as possible.
- There is sufficient battery storage to sustain energy needs throughout the night.
The automations described below are part of an ongoing experiment to optimize surplus energy usage and may evolve as we refine the system. In the future, these automations will be integrated into Edge Mining as part of its energy optimization framework.
These automations are designed to efficiently manage the switching ON and OFF of a miner based on battery level, solar forecast, and real-time solar power availability. The goal is to maximize energy efficiency while ensuring that battery power is used optimally.
The miner is turned on when there is enough stored battery energy and an expectation that upcoming solar production will be sufficient to sustain mining operations. The system evaluates both the battery’s current charge and the estimated solar energy available throughout the day to determine the best moment to start mining.
- If the battery has been at a stable and sufficient level for a certain period, the system considers enabling mining.
- Before switching on, it checks whether the expected solar production for the remainder of the day is high enough to sustain mining operations without excessive battery depletion.
- If both conditions are met, the miner is turned on and continues running until conditions require it to be shut down.
This approach ensures that mining only starts when there is a reasonable expectation of sustainable energy availability, preventing unnecessary battery drain.
The miner is turned off when solar production becomes insufficient to support its operation, and the battery level begins to decline beyond an acceptable threshold. This prevents excessive battery depletion and ensures energy is reserved for other essential uses.
- The system continuously monitors the battery level and solar production to determine whether mining can be sustained.
- When solar input drops significantly, signaling that the day’s productive hours are ending or conditions have changed, the automation evaluates whether the battery has enough remaining energy to continue operating.
- If the battery level falls below a dynamically set threshold—adjusted based on the solar energy forecast for the next day—the miner is shut down to conserve energy.
By adjusting the shutdown threshold dynamically according to solar forecasts, the system can optimize energy usage:
- On days with high expected solar production, it allows deeper battery discharge before shutting down.
- On days with lower expected solar production, it preserves more battery energy by shutting down sooner.
This logic ensures that mining is halted at the right time, balancing energy efficiency with the need to sustain battery reserves for non-mining power consumption.
This is the very first phase of development and how the application takes shape.
Following some resources:
- 📒 A glossary of terms for a better understanding -> Glossary
- 🧑💻 Building the project:
Edge Mining proposes an innovative solution to optimize the use of excess energy produced by small power plants, particularly renewable ones. Integrating Bitcoin mining is a flexible, economically advantageous, and easy-to-implement choice. With our mining management system, users can maximize the efficiency of their plant, utilize the heat produced, and contribute positively to the Bitcoin network. This approach turns a potential inefficiency into a concrete opportunity for profit and sustainable energy use.
We welcome contributions and feedback to make this project even better. Feel free to open issues or submit pull requests.
Let’s mine smarter, together.