update <!-- more --> in all articles

This commit is contained in:
kylejcarlton 2021-12-05 13:18:58 -06:00
parent 1c1b0994a8
commit 217872988c
8 changed files with 22 additions and 7 deletions

View file

@ -10,7 +10,9 @@ I first heard about Bitcoin in early 2013 and decided the best way to learn abou
{{ youtube(id="Gc2en3nHxA4", class="youtube")}}
I ordered the [Butterfly Labs](https://en.bitcoinwiki.org/wiki/Butterfly_Labs) 5 GH/s Miner in July of 2013 and actually received it in December 2013, ASIC mining was catching on like wildfire and they had a decent backlog of orders to fulfill. The most similar product they offer currently is a 10 GH/s miner. The miner connects as a peripheral via USB, so I started mining with it connected to my Windows 7 lap top using the EasyMiner Software. This reliance on my lap top to “drive” the miner wasnt optimal, so I found a Linux based alternative that runs on Raspberry Pi called [MinePeon](https://minepeon.com/). Now I had a reliable hardware setup that required little maintenance and more importantly my lap top was free to roam.
I ordered the [Butterfly Labs](https://en.bitcoinwiki.org/wiki/Butterfly_Labs) 5 GH/s Miner in July of 2013 and actually received it in December 2013, ASIC mining was catching on like wildfire and they had a decent backlog of orders to fulfill. The most similar product they offer currently is a 10 GH/s miner. The miner connects as a peripheral via USB, so I started mining with it connected to my Windows 7 lap top using the EasyMiner Software. This reliance on my lap top to “drive” the miner wasnt optimal, so I found a Linux based alternative that runs on Raspberry Pi called [MinePeon](https://minepeon.com/). Now I had a reliable hardware setup that required little maintenance and more importantly my lap top was free to roam.
<!-- more -->
{{ image(src="https://raw.githubusercontent.com/kylejcarlton/zola-theme-terminimal/master/img/ButterflyLabsMinerAndPi.png", position="left") }}

View file

@ -16,6 +16,8 @@ Heres a breakdown of costs:
Total cost of power over that period of approximately 14,136 hours was calculated assuming $0.19 / kWh by taking the average over a one year period. The power consumption was approximated by recording usage with a [P3 Kill A Watt](http://www.p3international.com/products/p4400.html) over a ten day period and interpolating linearly.
<!-- more -->
{{ image(src="https://raw.githubusercontent.com/kylejcarlton/zola-theme-terminimal/master/img/BTCMinerPowerUsage.png", position="left") }}
Thanks to the technology behind Bitcoin, you can see the full contents of the wallet where mining profits were deposited on [BlockChain.info](https://www.blockchain.com/explorer) @ [1BsWqHJh5kwLNHZzj6Q6DGaxRZVTK9U9A6](https://blockchain.info/address/1BsWqHJh5kwLNHZzj6Q6DGaxRZVTK9U9A6) and a graph over time.

View file

@ -8,9 +8,6 @@ tags = ["RaspberryPi", "UniversalRemote"]
I purchased the [Prototyping Pi Plate directly from adafruit](https://www.adafruit.com/product/801), and the [Raspberry Pi from Amazon](https://www.amazon.com/Raspberry-Pi-Motherboard-RASPBRRYPCBA512-MC-RP001-CLR/dp/B01CF0RTUG). The [IR Transmitters, Right Angle Mounts, Transistor, Resistor and IR Receiver from Mouser](http://www.mouser.com/). [The 22 AWG solid wire and soldering supplies from Frys](http://www.frys.com/).
{{ image(src="https://raw.githubusercontent.com/kylejcarlton/zola-theme-terminimal/master/img/OpensourceRemoteParts.png", position="left") }}
Parts List:
---
@ -24,6 +21,10 @@ Parts List:
- 1 x 22 [AWG Solid Core Wire](http://www.frys.com/product/7716148/)
---
<!-- more -->
{{ image(src="https://raw.githubusercontent.com/kylejcarlton/zola-theme-terminimal/master/img/OpensourceRemoteParts.png", position="left") }}
Here's [the circuit](https://upverter.com/alexbain/f24516375cfae8b9/Open-Source-Universal-Remote/#/) Ill be building:
<iframe width='800' height='600' frameborder='0' scrolling='no' src='https://upverter.com/eda/embed/#designId=f24516375cfae8b9'></iframe>

View file

@ -6,12 +6,14 @@ date = 2014-12-18
tags = ["RaspberryPi", "UniversalRemote"]
+++
The only items I didnt purchase online were the supplies for soldering and wiring. I went with the ECG 20 Watt Miniature Corded Soldering Iron, Sn60/Pb40 Solder and 22AWG Solid Copper Wire.
{{ image(src="https://raw.githubusercontent.com/kylejcarlton/zola-theme-terminimal/master/img/SolderingSupplies.png", position="left") }}
The only items I didnt purchase online were the supplies for soldering and wiring. I went with the ECG 20 Watt Miniature Corded Soldering Iron, Sn60/Pb40 Solder and 22AWG Solid Copper Wire.
With all the components and tools needed, the first step was assembling the Adafruit Prototyping Pi Plate Kit following [these instructions](https://learn.adafruit.com/adafruit-prototyping-pi-plate/solder-it). Once complete I built [the circuit for the IR receiver and transmitter](https://upverter.com/design/alexbain/f24516375cfae8b9/open-source-universal-remote/#/). With the assembly complete the Prototyping Pi Plate connects to the Raspberry Pi via the GPIO pins. In addition to referencing the circuit diagram [these high resolution pictures from alexba.in](http://alexba.in/blog/2013/06/08/open-source-universal-remote-parts-and-pictures/) were very useful.
<!-- more -->
{{ image(src="https://raw.githubusercontent.com/kylejcarlton/zola-theme-terminimal/master/img/SolderingSupplies.png", position="left") }}
{{ image(src="https://raw.githubusercontent.com/kylejcarlton/zola-theme-terminimal/master/img/UniversalRemoteHardwareAssembled.png", position="left") }}
With the hardware assembled the next step is to install [Raspbian](https://www.raspberrypi.com/software/) as the OS on the SD card and the application [LIRC](http://www.lirc.org/) for controlling the hardware to test functionality.

View file

@ -18,6 +18,8 @@ I discovered and modified a few things along the way, so heres what I did:
Since Id like to connect over WiFi Ive added a [Belkin USB F7D2101](https://www.belkin.com/us/support-product?pid=01t80000002G16OAAS). For future development, I also added a [ORICO BTA-402 USB Bluetooth 4.0 Micro Adapter Dongle](https://www.amazon.com/ORICO-Bluetooth-Adapter-Windows-Consumption/dp/B01827IICO) for controlling a Play Station 3 using [GIMX](https://gimx.fr/wiki/index.php?title=Main_Page).
<!-- more -->
{{ image(src="https://raw.githubusercontent.com/kylejcarlton/zola-theme-terminimal/master/img/RemoteBuildWirelessBT.jpg", position="left") }}
- With the Pi temporarily connected by Ethernet cable, I [set up the wireless connection via the command line](https://www.raspberrypi.com/documentation/computers/configuration.html) over SSH.

View file

@ -16,6 +16,8 @@ sudo /etc/init.d/lirc stop
sudo /etc/init.d/lirc start
```
<!-- more -->
- Use [irsend](https://www.lirc.org/html/irsend.html) to initiate an IR signal:
```bash

View file

@ -26,6 +26,8 @@ For my first project with the Photon, I created a wireless temperature monitor t
}
```
<!-- more -->
Then the temperature can be calculated based on the voltage output from the TMP36 using _Temp °C = 100*(reading in V) - 50_.
{{ image(src="https://raw.githubusercontent.com/kylejcarlton/zola-theme-terminimal/master/img/TMP36_Graph.png", position="left") }}

View file

@ -8,6 +8,8 @@ tags = ["Particle", "WiFiTemp"]
Since writing the first WiFi temperature monitor post, Ive implemented retrieving temperature values on a schedule, to generate a real-time dashboard. I came across this [Gadgets Apps Hacks Post](http://www.gadgetsappshacks.com/2014/01/how-to-record-daily-portfolio-values-in.html), which utilizes [Google Apps Scripts](https://developers.google.com/apps-script/) ability to connect to [External APIs](https://developers.google.com/apps-script/guides/services/external) and record stock ticker values over time in [Google Sheets](https://www.google.com/sheets/about/). The method I used in the first part to write the temperature sensor value in a Sheet is more suited for a single import of a larger data set in JSON format. There is also a [tutorial from Particle](https://docs.particle.io/tutorials/projects/maker-kit/#tutorial-4-temperature-logger) that uses [IFTTT](https://ifttt.com/) to log the data in a Sheet. Although the tutorial from Particle might be a little easier to implement, I chose to work solely with Google Apps Script; since I wanted to pull data from other APIs. Ill use [WeatherUnderground](https://www.wunderground.com/weather/api/d/docs) for the outside temperature and [Nest](https://developers.nest.com/documentation/cloud/get-started) for a comparison of inside temperature from another device.
<!-- more -->
{{ image(src="https://raw.githubusercontent.com/kylejcarlton/zola-theme-terminimal/master/img/Google_Apps_Script_Temp.png", position="left") }}
For communication with my Nest Thermostat, I didnt implement the [OAuth2.0](https://oauth.net/2/) standard completely inside the Apps Script; although this would be possible using [apps-script-oauth2](https://github.com/googlesamples/apps-script-oauth2). Following the [REST Quick Guide](https://developers.nest.com/documentation/cloud/how-to-auth), I generated a [PIN for my Nest](https://developers.nest.com/documentation/cloud/authorization-overview#pin-based-authorization) and then used [Postman](https://www.getpostman.com/) to initiate the POST call for the Access Token to be used in the script.