summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-12-09 22:00:32 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2023-12-09 22:00:32 -0500
commit048ca346f30d9f597733bcf54a473297094a772b (patch)
tree37570465aefbb4e6932c55490291ed22210a6eba
parent0d0cf895d9ecf90775682c2b0e5ca3873dd4fd2a (diff)
Continue writing project articles
-rw-r--r--content/projects/amp-automation.md10
-rw-r--r--content/projects/amp-automation/cambridge-cxa60-ir-codes.pngbin0 -> 163027 bytes
-rw-r--r--content/projects/amp-automation/index.md52
-rw-r--r--content/projects/python-encryption/index.md4
-rw-r--r--content/projects/uebersicht-todoist.md6
-rw-r--r--content/projects/uebersicht-todoist/index.md16
6 files changed, 69 insertions, 19 deletions
diff --git a/content/projects/amp-automation.md b/content/projects/amp-automation.md
deleted file mode 100644
index 474f1b9..0000000
--- a/content/projects/amp-automation.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: "Amp Automation"
-date: 2023-10-25T20:01:27-04:00
-tags: ["Shool Projects"]
----
-
-My parents music amplifier had an idle timeout. To avoid
-having to turn it on manually, I configured a rasperry pi
-to send infrared signals which turned it on and set its input
-channel when a device would want to stream music.
diff --git a/content/projects/amp-automation/cambridge-cxa60-ir-codes.png b/content/projects/amp-automation/cambridge-cxa60-ir-codes.png
new file mode 100644
index 0000000..d2b8c09
--- /dev/null
+++ b/content/projects/amp-automation/cambridge-cxa60-ir-codes.png
Binary files differ
diff --git a/content/projects/amp-automation/index.md b/content/projects/amp-automation/index.md
new file mode 100644
index 0000000..15e612a
--- /dev/null
+++ b/content/projects/amp-automation/index.md
@@ -0,0 +1,52 @@
+---
+title: "Amp Automation"
+date: 2023-10-25T20:01:27-04:00
+tags: ["Shool Projects"]
+---
+
+My parents music amplifier had an idle timeout. To avoid
+having to turn it on manually, I configured a raspberry pi
+to send infrared signals which turned it on and set its input
+channel when a device would want to stream music.
+
+Whenever that Cambridge Amplifier was idle for 45 minutes, it automatically
+shut itself off to save power. The main issue with this design is that the
+amplifier could power two distinct zones. In the case of my parents, those
+zones were the living room and the kitchen. This meant that, since the
+amplifier itself was in the living room, whenever we wanted to stream music in
+the kitchen, we had to:
+
+1. Walk to the living room
+2. Turn on the amplifier an set it's zone to only the kitchen
+3. Pair the device that would stream music via bluetooth to it
+4. Walk back to the kitchen
+
+Doing this once or twice is fine, but having to do it daily quickly became tedious. So
+I decided to see what I could do to automate it. Back then, I already had a raspberry
+or 2 lying around so I took that as my starting point. The Cambridge came with a remote
+so I figured I could use infrared signals to control it. after a bit of digging, I found
+this precious little datasheet detailing the different IR codes which existed for the
+model of amplifier my parents had:
+
+![Cambridge CXA60 IR Datasheet](cambridge-cxa60-ir-codes.png)
+
+Another tool I discovered during my research was [shairport-sync][1]. It emulates
+an airport express which allowed me to stream my music directly to it instead of walking
+to the living room. Another great this this utility has are hooks. I could tell it to
+execute a command whenever music got started or stopped. I figured if my music was streaming
+through this, I could set a command to send IR signals whenever I started/stopped streaming
+music. To do this, I needed to do two things:
+
+- Make a small circuit for an infrared diode
+- Figure out a way to correctly send the IR code to the diode via a script
+
+Thankfully, hooking up a diode to a raspberry pi isn't all that hard. A transistor,
+a resistance, and a couple of wires and you're good to go. When it came to sending the signal,
+I discovered a beautiful little python package called [lirc][2] which can properly convert
+numeric codes into impulses that can be sent to the raspberry pi's GPIO pins.
+
+AND IT WORKED! All in all, this was quite a simple project. But getting to use it everyday,
+I must say it did feel quite gratifying and fun!
+
+[1]: https://github.com/mikebrady/shairport-sync
+[2]: https://lirc.readthedocs.io/en/latest/
diff --git a/content/projects/python-encryption/index.md b/content/projects/python-encryption/index.md
index 0cc198f..3ebd70b 100644
--- a/content/projects/python-encryption/index.md
+++ b/content/projects/python-encryption/index.md
@@ -2,10 +2,9 @@
title: Encryption in Python
author: Benjamin Chausse
date: 2023-10-25T20:01:27-04:00
+draft: true
---
-
-
During my last year of highschool, I designed my very own text encryption
algorithm. I wrote software in python to encode and decode text using a
custom algorithm I made solely to better understand information theory.
@@ -40,4 +39,3 @@ and the password in a format that feels much more intuitive to manipulate.
So this is what I did:
![How the password gets encoded](psswd-encode.gif)
-
diff --git a/content/projects/uebersicht-todoist.md b/content/projects/uebersicht-todoist.md
deleted file mode 100644
index a0fadf2..0000000
--- a/content/projects/uebersicht-todoist.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-title: "Todoist Desktop Viewer"
-date: 2023-10-23T23:20:05-04:00
----
-
-Lorem ipsum dolor sit amet, officia excepteur ex fugiat reprehenderit enim labore culpa sint ad nisi Lorem pariatur mollit ex esse exercitation amet. Nisi anim cupidatat excepteur officia. Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia. Sit irure elit esse ea nulla sunt ex occaecat reprehenderit commodo officia dolor Lorem duis laboris cupidatat officia voluptate. Culpa proident adipisicing id nulla nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit commodo ex non excepteur duis sunt velit enim. Voluptate laboris sint cupidatat ullamco ut ea consectetur et est culpa et culpa duis.
diff --git a/content/projects/uebersicht-todoist/index.md b/content/projects/uebersicht-todoist/index.md
new file mode 100644
index 0000000..34bd4bc
--- /dev/null
+++ b/content/projects/uebersicht-todoist/index.md
@@ -0,0 +1,16 @@
+---
+title: "Todoist Desktop Viewer"
+date: 2023-10-23T23:20:05-04:00
+draft: true
+---
+
+Lorem ipsum dolor sit amet, officia excepteur ex fugiat reprehenderit enim
+labore culpa sint ad nisi Lorem pariatur mollit ex esse exercitation amet. Nisi
+anim cupidatat excepteur officia. Reprehenderit nostrud nostrud ipsum Lorem est
+aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud
+officia pariatur ut officia. Sit irure elit esse ea nulla sunt ex occaecat
+reprehenderit commodo officia dolor Lorem duis laboris cupidatat officia
+voluptate. Culpa proident adipisicing id nulla nisi laboris ex in Lorem sunt
+duis officia eiusmod. Aliqua reprehenderit commodo ex non excepteur duis sunt
+velit enim. Voluptate laboris sint cupidatat ullamco ut ea consectetur et est
+culpa et culpa duis.