====== Crypto mining on solar panels ====== {{tag>mining energy}} As part of my little project to start mining cryptocurrencies "appropriately" I decided I should have a look at how one could possibly use solar panels to produce electricity in a mining setup. ====== ====== First I had a look at a few youtube videos: * [[https://www.youtube.com/watch?v=8f10hVL-y0o&list=PL9ghTEFW_JzuA7VkmsqQQEB6cIYgi4Pdj&index=1|How to create a solar panel from scratches]] ([[https://www.youtube.com/watch?v=YckHQS3TV84&list=PL9ghTEFW_JzuA7VkmsqQQEB6cIYgi4Pdj&index=2|And part 2 here]]): This looked interesting because it means we could really build a solar panel from simple solar cells (yet, it's not really worth it: it's less expensive to just buy a panel nowadays). * [[https://www.youtube.com/watch?v=hNH2YGzwznI&list=PL9ghTEFW_JzuA7VkmsqQQEB6cIYgi4Pdj&index=3|A fast way to solder the solar cells]]: this guy present a fast method to solder a complete row of solar cells (but he also mention that it's a better idea to just buy a pre-made solar panel nowadays as already noted above). * [[https://www.youtube.com/watch?time_continue=14&v=hANi5NbcY5g|Grid Tie Inverter]]: this would be the easiest option to get the current on the grid * [[https://www.youtube.com/watch?v=w4qcoEXYqK0|The Ultimate Guide To DIY Off Grid Solar Power]] * We should use **golf car batteries** in a solar setup instead of regular car batteries. * Connecting 2 batteries of 6V in series to get a 12V system (of 235Ah in the video) * Batteries should not be discharged more than 50% (or their lifetime will be severely reduced :-S) * Battery model used in this video: Duracell SLIGC125 * Should place the solar panels as close as possible to the batteries: due to the resistance in the cable (to reduce the resistance we need to use thicker cables) * When placing the panels, should take into account that the sun elevation is not the same during all the year * => Consider not placing the solar panels fixed on the roof (can tilt, clean, maintain them easily in that case) * Solar panels can be wired in series and/or parallel: to consider to get an appropriate voltage / amp value. * Select the appropriate wire gage to support transporting the amp value * Use a **voltage drop Calculator** to figure out how much voltage is lost in the the wires. * Consider MPPT charge controller: accepts large input voltage. ===== Electricity cost ===== Now let's start a simple mind experiment: let's say we want to run a mining rig of about **1000W**. If we do so, that means we use \(1000W \times 24h = 24kWh\) of energy per day. The [[https://www.kelwatt.fr/prix/edf|current price of the kWh]] in France is: 0.14660 € TTC (we have a 6 kVA power subscription). So technically we would have to pay each month for electricity: \[ 24 \times 0.14660 \times 30.5 = 107.31€\] [[https://www.fournisseurs-electricite.com/comparatif-electricite/actu-electricite/1082-prix-dun-kwh-delectricite-en-france|This diagram]] explains the various taxes payed to get from 0.0887€/kWh HT to 0.1466€/kWh TTC: ;#; Created with Highcharts 3.0.10Chart context menuTVA : 20% du prix du kWh HT, de la CSPE et de la TCFECSPE : 22,5 euros/MWhTCCFE : 6,375 euros par MWh, au profit de la communeTDCFE : 3,1875 euros par MWh, au profit du conseil généralPrix du kWh : Hors taxesPrix du kWhPart: 0.0887 €/kWhHighcharts.com ;#; How would we go with a solar panel installation in that case ? We can't really go with an off grid setup: because the rig should be powered continuously, whether we have solar energy or not. So we can only choose between an on grid setup or an hybrid setup. ===== Typical on grid installation ===== Still assuming a 1000W target rig mining below With an on-grid setup, we plug the solar panels directing into the **grid tie inverter**. In this case we need the following equipement: - The solar panels, - A structure to put the panels on, - A Grid tie inverter - Cables to connec the solar panels to the grid tie inverter When there is sun, the solar panel will provide the electricity we need, and this will be injected directly into the home grid. Let's just assume an overall efficiency of about 75%, in this case we should havethe solar panel producing \(1000W / 0.75 = 1333W\). If we go for 260W panels, then we should get 5 or 6 panels: \(6 \times 260W = 1560W > 1333W\). Note that: - It's not a big problem to inject a bit more power: we probably have other power usage sources running at the same time anyway, - Yet, it's probably a better idea to target a production just under our actual usage: because we have no idea what will happen if we inject more current than what we use in home (the extra electricity will be sent on the global grid, but, will this make the electricity counter run backward ? Probably not, so this electricity will be produced for nothing). If we go with 6 panels, the solar panel cost will be 6*195=**~1170€**. Then we have the price of the Grid tie inverter: **~332€**. Then we have to evaluate the price for the cables from the solar panels to the (indoor ?) inverter: let's say the salor panels will be 30 meters await from home. For maximum efficiency the inverter should be as close as possible to the solar panels, so we can: - Place it indoor, and use cables to conduct somewhat low voltage DC current (less efficient option), - Place it just next to the solar panels (in a small outdoor cabin ?) and then use cables to conduct 220V AC current (most efficient ?), - Place it somewhere in between if the solar panels are very far away ? (not sure how this setup could be interesting) The inverter input voltage range could be beween 45-90V (cf. [[https://fr.dhgate.com/product/2000w-battery-discharge-power-mode-mppt-solar/398304540.html#vhpd-3-3|2000W Décharge de la batterie Mode de puissance]]). Each panel as a nominal output voltage of 24V so we could put 3 of them in series to produce 3*24=72V with a nominal current of 8.54A. We then put 2 such packs in parallel and we get 17.08A at 72V. The selected inverted doesn't provide indications on the support for this current intensity. Using this [[http://www.solar-wind.co.uk/cable-sizing-DC-cables.html|computation tool]] we find that for an intensity of 18A, voltage of 72V, accepted lost of 2%, on 30m distance, we need a wire **section of 25mm²**. So this makes about: 5*30=150€. Note: using [[http://www.utc.fr/~tthomass/Themes/Unites/unites/infos/section_cables/pdf/La%20section%20des%20cables%20electriques.pdf|this document]], it rather seems a **section of 10mm²** is good enough to cover 42m with 36A at 220V... but this is **220V AC not 72V DC**! => This document should be used if we place the inverter next to the solar panels instead (ie. using micro-inverters ?) Now in the area of nice, we can expect to get about 2750h of sun every year, this is 7.53h of sun per day on mean. During this time the solar panels will produce about 1560W of power and inject it on the home grid. So we can cover \(7.53/24 = 0.31375 = 31.375%\) of the electricity needs for the rig with a conservative perspective. If, on the contrary we consider the real value of the energy injected on the grid, we can rather say that: we inject a total energy of \(1560W \times 7.53h \times 0.99 \approx 11.6kWh\) per day (that will be used either by the rig or by other equipements ?). And the rig only will use 24kWh per day, so we are effectively covering: 11.6/24 = 48% of the electricity cost, or in other words, saving about \(107.31 \times 48% \approx 51€\) per month. The total cost of the installation (**not taking the solar panels support** into account for now) would be about **1600€**, with: - Solar panels: 1170€ - Inverter: 278€ - Wires: 150€ So if we save about 51€ per month, it means we need about 32 months to make the installation profitable: that's **just a bit less than 3 years** :-)! ===== Typical hydrid installation ===== * [[http://energyinformative.org/grid-tied-off-grid-and-hybrid-solar-systems/|Grie tied, off-Grid and hybrid solar systems]] ===== Selling electricity ===== * [[http://www.les-energies-renouvelables.eu/conseils/photovoltaique/tarif-rachat-electricite-photovoltaique/|Tarifs vente électricité Aout 2017]] * [[http://www.les-energies-renouvelables.eu/conseils/photovoltaique/credit-dimpot-aides-financieres-projet-installation-photovoltaique/|Credit d'impots 2017 pour projet photovoltaique]]: => pas de crédit d'impots. * [[https://www.picbleu.fr/page/tarifs-d-achat-de-l-electricite-panneaux-solaires-photovoltaiques|Tarifs d'achat photovoltaique]] => On the whole, this doesn't seem to be a very good idea: incomes are constantly reducing, need to do the installation by a professional, need to install the panels on the roof, no taxe reduction anymore. ===== Sun coverage ===== [[https://casailicia.wordpress.com/2016/01/26/quel-est-le-village-le-plus-ensoleille-de-france/|Sun map in France 2016]]: {{ blog:2017:0908_crypto_mining_on_solar_panels:carte_ensoleillement_france.png?500 }} {{ blog:2017:0908_crypto_mining_on_solar_panels:solargis-solar-map-france-en.png?500 }} Can use [[https://solargis.info/imaps|SolarGIS iMaps]] website to find local solar coverage indications. About **1550kWh/m²** of Global Horizontal Irradiation (GHI) around Cannes/Biot/Grasses. FIXME: Figure out how to integrate this information into the solar panels output power computation ? ===== Wire section ===== [[http://www.utc.fr/~tthomass/Themes/Unites/unites/infos/section_cables/pdf/La%20section%20des%20cables%20electriques.pdf|This document]] explains what wire cable section should be used. * [[http://www.paigewire.com/pumpWireCalc.aspx?AspxAutoDetectCookieSupport=1|Wiresize calculator]] * [[http://www.solar-wind.co.uk/cable-sizing-DC-cables.html|Cable Size Calculator Tool]] /* So how much power do we need ? => **24kW**. */ ===== Wire prices ===== * [[http://www.materielelectrique.com/cable-u1000-2x25mm2-noir-prix-p-15547.html|CABLE U-1000 R2V 2X25MM2 NOIR]]: 4.91€/m * [[http://www.materielelectrique.com/cable-ho7rnf-2x16mm2-noir-prix-p-274530.html|CABLE HO7RN-F 2X16MM2 NOIR]]: 5.53€/m ===== Grid tie inverter prices ===== * [[https://fr.dhgate.com/product/2000w-solar-grid-tie-inverter-prevent-excess/400505340.html?utm_source=pla&utm_medium=GMC&utm_campaign=mparts07&utm_term=400505340&f=bm%7c400505340%7c103006%7cGMC%7c342856948%7cpla%7cmparts07%7cFR%7c103006003%7cc%7c%7c2%7c&gclid=CjwKCAjwos7NBRAWEiwAypNCew6wT8RllNZ1-oE3aQaSMrZ6qdkdXXfPcw9B4gX09I-NDI1I-oEVdhoCWaoQAvD_BwE|2000W Solar Grid Tie Inverter with limiter]]: 245€ * [[http://www.ebay.com/itm/2000W-Solar-on-Grid-Tie-Inverter-with-Limiter-Battery-Model-for-MPPT-PV-System-/201781417655|2000W Solar on Grid Tie Inverter with Limiter / Battery Model for MPPT PV System]]: about 470€ * [[https://fr.dhgate.com/product/2000w-solar-power-grid-tie-inverter-with/401187665.html#cppd-5-5|2000W Solar Power Grid Tie Inverter avec limiteur et wifi port DC 45V-90V AC100V 110V 220V 230V 240V affichage LCD deuxième génération]]: 332€ * [[http://www.ebay.com/itm/MPPT-1200W-Waterproof-Grid-Tie-Inverter-DC22-50V-to-AC110V-220V-Micro-Inverter/162525098599?_trkparms=aid%3D555014%26algo%3DPL.DEFAULT%26ao%3D1%26asc%3D41375%26meid%3D25acd35e17d04547bd41992948aa8814%26pid%3D100506%26rk%3D1%26rkt%3D1%26&_trksid=p2045573.c100506.m3226|MPPT 1200W Waterproof Grid Tie Inverter DC22-50V to AC110V/220V Micro Inverter]]: $255 + $30 * [[https://fr.dhgate.com/product/2000w-battery-discharge-power-mode-mppt-solar/398304540.html?utm_source=pla&utm_medium=GMC&utm_campaign=mparts07&utm_term=398304540&f=bm%7c398304540%7c103006%7cGMC%7c342856948%7cpla%7cmparts07%7cFR%7c103006003%7cc%7c%7c2%7c&gclid=Cj0KCQjwxdPNBRDmARIsAAw-TUlrwT56U2AsvKXlE6Xq07FNhf0BBOZi20-qnWdRmfaA4UUHj6viwO4aAng7EALw_wcB|2000W Décharge de la batterie Mode de puissance]]: 267.87€ * [[https://fr.dhgate.com/product/1000w-watt-solar-micro-grid-tie-power-inverter/398883197.html#cppd-2-5|Puissance 1000W Watt Solar Micro Grid Tie Power Inverter pour panneau solaire 10.5-30V AC]]: 105€ * [[https://fr.dhgate.com/product/2000w-battery-discharge-power-mode-mppt-solar/398304540.html#vhpd-3-3|2000W Décharge de la batterie Mode de puissance]]: 277.63€ ===== Solar panel prices ===== * [[https://solaireshop.fr/panneau-solaire-260w-24v-poly-sr260-60p-saronic.html?utm_source=Panneau+solaire&utm_medium=cpc&utm_campaign=Panneau+solaire&utm_term=Panneau+solaire&utm_content=Panneau+solaire&gclid=CjwKCAjwos7NBRAWEiwAypNCe0riUvvPEbH7M2WKfypdRM2dDIXsdW0lFPqFfYv9BG-37KM5_bFyuxoCgJsQAvD_BwE|260W 24V POLY SR260-60P SARONIC]] (efficiency: 15.98%): ^Quantity ^unit price TTC^Price per watt ^ Total price ^ Total power ^ | 1 | 194.99€ | 0.75€ | 195€ | 260W | | 13 | 184.99€ | 0.7115€ | 2405€ | 3380W | | 26 | 164.99€ | 0.6346€ | 4290€ | 6760W | * [[https://solaireshop.fr/panneau-solaire-280w-24v-mono-noir-sr280-60m-saronic.html?utm_source=Panneau+solaire&utm_medium=cpc&utm_campaign=Panneau+solaire&utm_term=Panneau+solaire&utm_content=Panneau+solaire&gclid=CjwKCAjwos7NBRAWEiwAypNCe5xOskSTHTQjHx8kUcydHiaWu33ztchaFNsYJXZZztbWTOUVJpMblxoCGo0QAvD_BwE|280W 24V MONO NOIR SR280-60M SARONIC]] (efficiency: 17.21%): ^Quantity ^unit price TTC^Price per watt ^ Total price ^ Total power ^ | 1 | 229.99€ | 0.8214€ | 230€ | 280W | | 17 | 219.99€ | 0.7857€ | 3740€ | 3640W | | 26 | 199.99€ | 0.7143€ | 5200€ | 7280W | * [[https://solaireshop.fr/panneau-solaire-150w-12v-mono-spv150m.html?utm_source=Panneau+solaire&utm_medium=cpc&utm_campaign=Panneau+solaire&utm_term=Panneau+solaire&utm_content=Panneau+solaire&gclid=CjwKCAjwos7NBRAWEiwAypNCe5_lOObH7mRmn1Ei2izohHNtd48MTKFeSd9CkbBnV-hIWMSKmY8ZUhoCN6QQAvD_BwE|150W 12V MONO SPV150M]] (efficiency 13%): ^Quantity ^unit price TTC^Price per watt ^ Total price ^ Total power ^ | 1 | 144.99€ | 0.9666 | 145€ | 150W | ===== Other references ===== * https://greenpowerscience.com/: this website is a portal to a lot of fun energy and other experiments (not directly related to the topic here) * [[https://www.youtube.com/watch?v=fP6UH4Vuxsc|Free Power Stirling Engine TAKING ONE APART HOT AIR]] * [[https://www.youtube.com/watch?time_continue=1&v=sFXngPx3w3M|Wine Bottle Cutter 30 seconds Perfect Edge Glass]] * [[https://www.youtube.com/watch?v=lcnWCIOHZFc|Make solar cell from LEDs]] * [[http://photovoltaique.canalblog.com/archives/2008/06/09/9461353.html|Explanations on kWh, hWc]] * [[http://ines.solaire.free.fr/pvreseau.php|Logiciel CalSol]] * [[http://www.bdpv.fr/fr/|Base de données d'installations photovoltaiques]] ===== Open questions ===== * Is there any alternative to using batteries in an off-grid setup ? (batteries are expensive, fragile, dangerous, etc) * How about setting up a wind turbine electricity production system ? * How would we build a support structure for the solar panels ? * How exactly would the Global Horizontal Irradiation value influence the energy production ? ~~DISCUSSION:off~~