diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-07-27 20:18:37 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-07-27 20:18:37 +0200 |
| commit | a246fd9b8f5ff13eb7411216163f47627bead94e (patch) | |
| tree | 5bad0ef23d297511f0cff07a7dfde506a46afdf3 | |
| parent | e058cab41cc1cd3ee9353fbb632dfe4590e17f48 (diff) | |
| download | blog-a246fd9b8f5ff13eb7411216163f47627bead94e.tar.gz blog-a246fd9b8f5ff13eb7411216163f47627bead94e.zip | |
update URLs after migration from gitweb to gogs
| -rw-r--r-- | .gitmodules | 10 | ||||
| -rw-r--r-- | content/tech/esp-ledstrip.md | 2 | ||||
| -rw-r--r-- | content/tech/internet-is-magic.md | 4 | ||||
| -rw-r--r-- | content/tech/jimmie-jammer.md | 2 | ||||
| -rw-r--r-- | content/tech/music-led-visualisation.md | 4 | ||||
| -rw-r--r-- | content/tech/weather-snowman.md | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/.gitmodules b/.gitmodules index e08daaf..72a240b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,15 +1,15 @@ [submodule "static/source/internet-is-magic"] path = static/source/internet-is-magic - url = git://schneefux.xyz/internet-is-magic + url = git://schneefux.xyz/electronics/internet-is-magic [submodule "static/source/music-led"] path = static/source/mpd-rgb-vis - url = git://schneefux.xyz/mpd-rgb-vis + url = git://schneefux.xyz/electronics/mpd-rgb-vis [submodule "static/source/weather-snowman"] path = static/source/weather-snowman - url = git://schneefux.xyz/weather-snowman + url = git://schneefux.xyz/electronics/weather-snowman [submodule "static/source/jimmie-jammer"] path = static/source/jimmie-jammer - url = git://schneefux.xyz/jimmiejammer + url = git://schneefux.xyz/electronics/jimmiejammer [submodule "static/source/esp-ledstrip"] path = static/source/esp-ledstrip - url = git://schneefux.xyz/esp-ledstrip + url = git://schneefux.xyz/electronics/esp-ledstrip diff --git a/content/tech/esp-ledstrip.md b/content/tech/esp-ledstrip.md index 6dfcbeb..ad43460 100644 --- a/content/tech/esp-ledstrip.md +++ b/content/tech/esp-ledstrip.md @@ -18,6 +18,6 @@ There are fewer long cables, which makes the controller more compact and less ug  On the ESP8266 runs a web server with a simple API to change the colors and a UDP listener that allows the Hyperion server to connect. -The Arduino sketch can be found [here](https://git.schneefux.xyz/?p=esp-ledstrip;a=blob;f=esp-ledstrip.ino). +The Arduino sketch can be found [here](https://git.schneefux.xyz/electronics/esp-ledstrip/src/master/esp-ledstrip.ino).  diff --git a/content/tech/internet-is-magic.md b/content/tech/internet-is-magic.md index 1d21027..ab72bad 100644 --- a/content/tech/internet-is-magic.md +++ b/content/tech/internet-is-magic.md @@ -23,7 +23,7 @@ Awesome! Let's connect the ponies to the world wide web. _Not much to see here_ -I wrote a quick-and-dirty Arduino sketch, [uploaded it]({% post_url 2015-10-14-esp8266%}) and was able to control the LEDs via netcat. You can find the sketch [here](https://git.schneefux.xyz/?p=internet-is-magic;a=blob;f=luminate.ino;hb=HEAD). +I wrote a quick-and-dirty Arduino sketch, [uploaded it]({% post_url 2015-10-14-esp8266%}) and was able to control the LEDs via netcat. You can find the sketch [here](https://git.schneefux.xyz/electronics/internet-is-magic/src/master/luminate.ino).  @@ -31,7 +31,7 @@ _The cables in the background supply power._ And now comes the fun part. Both of my friends chat with me via [Telegram](https://telegram.org). Unlike WhatsApp, Telegram has an open API that allows me to easily receive their online status. -I installed the [telegram-cli](https://github.com/vysheng/tg) client on my [Raspberry Pi](https://raspberrypi.org), a cheap and small computer, and set up an autostart script. telegram-cli runs in bot mode, a python script updates the LEDs every minute. I uploaded the script [here](https://git.schneefux.xyz/?p=internet-is-magic;a=blob;f=client.py;hb=HEAD). +I installed the [telegram-cli](https://github.com/vysheng/tg) client on my [Raspberry Pi](https://raspberrypi.org), a cheap and small computer, and set up an autostart script. telegram-cli runs in bot mode, a python script updates the LEDs every minute. I uploaded the script [here](https://git.schneefux.xyz/electronics/internet-is-magic/src/master/client.py). So whenever my friends are online, their corresponding pony starts to glow. diff --git a/content/tech/jimmie-jammer.md b/content/tech/jimmie-jammer.md index 4502193..da6b503 100644 --- a/content/tech/jimmie-jammer.md +++ b/content/tech/jimmie-jammer.md @@ -13,7 +13,7 @@ Jimmie Jammer is the solution to all your problems! At least, it is a nice prank The ESP8266 module is capable of sending almost arbitrary WiFi packets, including so-called deauthentication packets and packets including beacon information. Browsing the internet, I found that RandDruid [already did](https://github.com/RandDruid/esp8266-deauth) most of the work for me. He wrote software for the ESP that kicks everyone in range out of their WiFi hotspot. Why does that work? The router and the client talk to each other. The router can send a special packet - the deauthentication packet - to the client that makes the client disconnect. The software now searches for nearby hotspots and clients, and as soon as there are any found, the module, claiming to be the router, sends the deauthentication packet. -There is another special packet that tells a client a router's name (SSID) and a kind of address (MAC). kripthor wrote a [small example](https://github.com/kripthor/WiFiBeaconJam) that blasts a ton of random beacon packets in the air. I used their code as template for a function that I included in RandDruid's original software. You can download the code [here](https://git.schneefux.xyz/?p=jimmiejammer;a=blob;f=jimmiejammer.ino;). +There is another special packet that tells a client a router's name (SSID) and a kind of address (MAC). kripthor wrote a [small example](https://github.com/kripthor/WiFiBeaconJam) that blasts a ton of random beacon packets in the air. I used their code as template for a function that I included in RandDruid's original software. You can download the code [here](https://git.schneefux.xyz/electronics/jimmiejammer/src/master/jimmiejammer.ino). Next came the hardware part. The ESP8266 is a 3.3V device that draws up to 200mA, maybe about 100 mA on average in this application. As power supply, I used rechargable LiFePo4 batteries. Those are very robust and, unlike typical batteries, stay at 3V for a long time. Mine has a capacity of 700mAh which should be enough for a few hours. The battery can be directly connected to the ESP. I added a switch to be able to turn it on and off and save energy and nerves. diff --git a/content/tech/music-led-visualisation.md b/content/tech/music-led-visualisation.md index 7aeba80..97ae9de 100644 --- a/content/tech/music-led-visualisation.md +++ b/content/tech/music-led-visualisation.md @@ -13,9 +13,9 @@ _First tests show that the setup seems to work._ The setup consists of cheap RGB LED strips, 2 \* 5 meters, powered by two 12V 3.5A adapters and an Arduino with three TO-120 transistors each. For strips with 30 LEDs per meter, you need 0.5A per meter. To be safe, add additional 10% to the total. So for my 10 meters, I could also have used a single adapter with at least 5.5A. -The Arduino's GPIOs are not nearly able to supply 5.5A \* 12V = 66W, so we need transistors - either darlington transistors or MOSFETs. [Adafruit](https://learn.adafruit.com/rgb-led-strips/usage) has more information and detailed explanations. After wiring, the Arduino needs to be flashed with a software that communicates with the Raspberry Pi. I adapted a sketch that implements the Adalight protocol, you can find it [here](https://git.schneefux.xyz/?p=mpd-rgb-vis;a=blob;f=adastrip.ino;hb=HEAD). +The Arduino's GPIOs are not nearly able to supply 5.5A \* 12V = 66W, so we need transistors - either darlington transistors or MOSFETs. [Adafruit](https://learn.adafruit.com/rgb-led-strips/usage) has more information and detailed explanations. After wiring, the Arduino needs to be flashed with a software that communicates with the Raspberry Pi. I adapted a sketch that implements the Adalight protocol, you can find it [here](https://git.schneefux.xyz/electronics/mpd-rgb-vis/src/master/adastrip.ino). -The Raspberry Pi as server runs [Hyperion](https://github.com/tvdzwan/hyperion) which is AmbiLight-like. On the same host, MPD outputs music to speakers and a FIFO. I wrote a Hyperion plugin that processes the output of the FIFO and thus visualizes the music that is currently be played. The plugin and more installation instructions are [here](https://git.schneefux.xyz/?p=mpd-rgb-vis;a=blob;f=README.md;hb=HEAD). In my case, I started two Hyperion daemons, because I had two Arduinos connected and it is currently not possible to output the same data to two Hyperion compatible devices. +The Raspberry Pi as server runs [Hyperion](https://github.com/tvdzwan/hyperion) which is AmbiLight-like. On the same host, MPD outputs music to speakers and a FIFO. I wrote a Hyperion plugin that processes the output of the FIFO and thus visualizes the music that is currently be played. The plugin and more installation instructions are [here](https://git.schneefux.xyz/electronics/mpd-rgb-vis). In my case, I started two Hyperion daemons, because I had two Arduinos connected and it is currently not possible to output the same data to two Hyperion compatible devices. Initially, I planned using an ESP8266 instead of the Arduino. I had not the right parts to step down 12V to 3.3V and tried to hack something together with LEDs and a 7V-3.3V-stepdown converter. Well… that didn't work out quite well. I used Arduino Unos instead. diff --git a/content/tech/weather-snowman.md b/content/tech/weather-snowman.md index c55edcb..ec1a9fe 100644 --- a/content/tech/weather-snowman.md +++ b/content/tech/weather-snowman.md @@ -29,7 +29,7 @@ The ESP creates a wireless access point with a web server after powerup and asks Depending on the forecast, the blue and red LEDs glow in different patterns. If a rainy day is to be expected, the top red LED lights up and the bottom blue LED fades in and out. A storm at night is displayed via a deep blue head and a blinking snowman's body. -If you inspect [the source code](https://git.schneefux.xyz/?p=weather-snowman;a=tree), you'll see that there also is an Android app. The app simplifies the setup and runs a background service that makes your snowman's green LED flash on new notifications. +If you inspect [the source code](https://git.schneefux.xyz/electronics/weather-snowman), you'll see that there also is an Android app. The app simplifies the setup and runs a background service that makes your snowman's green LED flash on new notifications.  |
