Compare commits

...

5 commits

Author SHA1 Message Date
dd63cedbba updates 2023-08-18 20:11:07 -04:00
aad4cee5cb updates 2023-08-04 13:24:56 -04:00
8cf5784f1c updates 2023-06-28 00:07:17 -04:00
6588188886 updates 2023-06-19 17:10:22 -04:00
976867b8a4 updates 2023-06-01 22:20:04 -04:00
7 changed files with 99 additions and 20 deletions

View file

@ -7,25 +7,25 @@
[[attachment:ESP32-Pinout.png][ESP32-Pinout.png]]
| Connection | Pin | Pin | Connection |
|------------+---------+--------+------------|
| | EN | GPIO23 | SWITCH INH |
| ROT SWITCH | GPIO36* | GPIO22 | I2C SCL |
| | GPIO39* | GPIO1 | |
| | GPIO34* | GPIO3 | |
| | GPIO35* | GPIO21 | I2C SDA |
| ROT A | GPIO32 | GPIO19 | SWITCH B |
| ROT B | GPIO33 | GPIO18 | SWITCH A |
| DAC BCK | GPIO25 | GPIO5 | |
| DAC DIN | GPIO26 | GPIO17 | |
| DAC LRCK | GPIO27 | GPIO16 | |
| SPI CLK | GPIO14 | GPIO4 | |
| SPI MISO | GPIO12 | GPIO2 | |
| SPI MOSI | GPIO13 | GPIO15 | SPI CS |
| | GND | GND | GND |
| | VIN | 3V3 | VCC |
| Connection | Pin | Pin | Connection |
|------------+--------------+--------+------------|
| | EN | GPIO23 | SWITCH INH |
| ROT SWITCH | GPIO36* (VP) | GPIO22 | I2C SCL |
| | GPIO39* (VN) | GPIO1 | |
| | GPIO34* | GPIO3 | |
| | GPIO35* | GPIO21 | I2C SDA |
| ROT A | GPIO32 | GPIO19 | SWITCH B |
| ROT B | GPIO33 | GPIO18 | SWITCH A |
| DAC BCK | GPIO25 | GPIO5 | |
| DAC DIN | GPIO26 | GPIO17 | |
| DAC LRCK | GPIO27 | GPIO16 | |
| | GPIO14 | GPIO4 | |
| SPI MISO | GPIO12 | GPIO2 | |
| SPI MOSI | GPIO13 | GPIO15 | SPI CS |
| | GND | GND | GND |
| | VIN | 3V3 | VCC |
* Components
** Digital Potentiometer
** Digital Potentiometer (MCP4231)
*** Pins
- *SPI*
** OLED Display
@ -39,13 +39,24 @@
- VCC
- GND
** Digital Analog Converter (PCM5102)
*** Pins
Communicates via the [[id:8f2e7b85-ede4-486b-ae5e-e36dd568552a][I2S]] protocol.
*** Pins
- BCK
- DIN
- LRCK
- VCC
- GND
#+begin_comment
sck_pin = Pin(14) # Serial clock output
ws_pin = Pin(13) # Word clock output
sd_pin = Pin(12) # Serial data output
#+end_comment
| DAC Pin | I2S Counterpart | Pin |
|---------+-----------------------------------------------------------+------|
| LRCK | Word Clock (Word Select (WS) / Left-Right Clock (LRCLK))) | IO27 |
| DIN | Multiplexed Data Line (Serial Data (SD)) | IO26 |
| BCK | Bit Clock (Continuous Serial Clock / SCK) | IO25 |
| SCK | Master Clock (not part of the I2S standard) | GND |
*** Wiring notes
[[https://raspberrypi.stackexchange.com/a/94951/154943]]
@ -61,7 +72,7 @@ On the back (non-component side) there are 4 sets of 3 pads for the 4 functions:
- XSMT :: Soft mute control(1): Soft mute (Low) / soft un-mute (High)
- FMT :: Audio format selection : I2S (Low) / Left justified (High)
The centre pad is connected to the corresponding pin. Each of these function pads may be bridged with solder either high or low (or the pins connected to +3.3V / 0V). (My board is supplied with 1, 2 & 4 bridged low and 3 bridged high, i.e. normal latency filter, 44.1kHz de-emphasis disabled, soft-mute not asserted, I2S audio format.)
The centre pad is connected to the corresponding pin. Each of these function pads may be bridged with solder either high or low (or the pins connected to +3.3V / 0V). (My board is supplied with 1, 2 & 4bridged low and 3 bridged high, i.e. normal latency filter, 44.1kHz de-emphasis disabled, soft-mute not asserted, I2S audio format.)
The normal filter is an FIR with good response, delaying the signal by approx. 500us (at 44.1 kHz) which should be fine. The fast filter is an IIR with slightly poorer response and delays the signal approx. 80us. Very few (if any) audio sources have pre-emphasis applied so DEMP should be low. The XSMT pin would allow muting of the output via a GPI (if the solder bridge was removed). Raspberry Pi supports I2S bitstream so FMT should be low.

View file

@ -0,0 +1,9 @@
:PROPERTIES:
:ID: b13434f7-b9ea-4f81-9a79-10f31dbe2638
:END:
#+title: Create a PulseAudio network sink
#+begin_src sh :results silent
pactl load-module module-null-sink sink_name=Network sink_properties=device.description=Network
pactl load-module module-simple-protocol-tcp rate=22050 format=s16le channels=2 record=true port=8001 source=null-sink.monitor
#+end_src

5
20230626171739-i2s.org Normal file
View file

@ -0,0 +1,5 @@
:PROPERTIES:
:ID: 8f2e7b85-ede4-486b-ae5e-e36dd568552a
:END:
#+title: I2S
Inter-IC Sound Bus Protocol

27
20230627235323-xmage.org Normal file
View file

@ -0,0 +1,27 @@
:PROPERTIES:
:ID: 01663abf-a6c3-434d-a710-bcbcddfdcc1e
:END:
#+title: XMage
An open-source implementation of [[id:d5efa5bd-dac9-4ef5-b352-a2b794a37bd0][Magic: The Gathering]].
* Developing
** Requirements
- JDK 1.8+
- Maven
Ensure the correct JDK is set:
: export JAVA_HOME=/usr/lib/jvm/java-8-openjdk
To build, use:
: mvn clean install -DskipTests
To run the server:
#+begin_src sh
cd Mage.Server
mvn exec:java -Dexec.mainClass=mage.server.Main
#+end_src
To run the client:
#+begin_src sh
cd Mage.Client
mvn exec:java -Dexec.mainClass=mage.client.MageFrame
#+end_src

View file

@ -0,0 +1,4 @@
:PROPERTIES:
:ID: a521a84e-91c1-41dd-9b70-af8c93ce1417
:END:
#+title: AWeber

14
daily/2023-08-04.org Normal file
View file

@ -0,0 +1,14 @@
:PROPERTIES:
:ID: 22f2cd32-b5e0-4837-9365-d51393513e07
:END:
#+title: 2023-08-04
* Call with Scott Miller
Discussing coming back to work for [[id:a521a84e-91c1-41dd-9b70-af8c93ce1417][AWeber]]
- Tech lead is integrations
- Coming back as principal instead?
- Gave Scott my parting salary and asked about possibly coming on with my
previous vacation accrual.
- Scott will discuss bringing me back on with Gavin
- Stephanie will have to go through the interview process w/o guarantees
- Emailed Stephanie's resume to Scott

9
daily/2023-08-18.org Normal file
View file

@ -0,0 +1,9 @@
:PROPERTIES:
:ID: e2c91d11-a8b4-4673-a985-989d3084d7bb
:END:
#+title: 2023-08-18
* Call with Scott and Kathleen
Discussing rejoining [[id:a521a84e-91c1-41dd-9b70-af8c93ce1417][AWeber]] as a principle engineer
- Starting date will be [2023-08-28 Mon]
- Check Transunion to ensure the credit check won't be blocked / slowed down