{"id":3514,"date":"2024-01-29T11:03:45","date_gmt":"2024-01-29T17:03:45","guid":{"rendered":"https:\/\/lab.rapternet.us\/?p=3514"},"modified":"2024-01-29T14:24:47","modified_gmt":"2024-01-29T20:24:47","slug":"espdeck-w-nfc","status":"publish","type":"post","link":"https:\/\/lab.rapternet.us\/?p=3514","title":{"rendered":"EspDeck w NFC: The NFCDeck"},"content":{"rendered":"\n<p>The time has come for a new iteration of the EspDeck. This time it&#8217;ll include a few new features, and a new form factor. The new version will include all the features of the <a href=\"https:\/\/github.com\/adonno\/tagreader\">Tag Reader<\/a>, original <a href=\"https:\/\/github.com\/AeroSteveO\/EspDeck\">EspDeck<\/a>, and a rotary encoder. <\/p>\n\n\n\n<!--more-->\n\n\n\n<p>The original 9 key pad will still be supported, this will just provide another option if the features are needed. The main use case of this new version is for controlling multi-room audio. The keypad will provide inputs for joining and leaving speaker groups etc, rotary encoder for volume on that rooms speaker, and the NFC reader will read cards for various things to play over the speakers (music, playlists, maybe even podcasts or audiobooks).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Features<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>4 models with varying features, 2 models being featured right now<\/li>\n\n\n\n<li>9 keys (8 key switches, 1 rotary encoder press)<\/li>\n\n\n\n<li>Rotary encoder<\/li>\n\n\n\n<li>Buzzer<\/li>\n\n\n\n<li>NFC Reader<\/li>\n\n\n\n<li>WS2812 LEDs backlighting the keys, individually addressable by Home Assistant<\/li>\n\n\n\n<li>Single press, double press, and press and hold on every switch<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Parts<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ESP32 DevKitv1<\/li>\n\n\n\n<li>1 x NFC Card Reader<\/li>\n\n\n\n<li>1 x Piezo Buzzer<\/li>\n\n\n\n<li>4 x Rubber Feet<\/li>\n\n\n\n<li>8 x Mechanical Key Switches (RGB variant \/ clear plastic bodies)<\/li>\n\n\n\n<li>8 x Relegendable Keycaps<\/li>\n\n\n\n<li>1 x Rotary Encoder<\/li>\n\n\n\n<li>1 x Knob<\/li>\n\n\n\n<li>8 x WS2812 LEDs (60 LED per Meter, 16.5mm interval)<\/li>\n\n\n\n<li>2 x 100 Ohm Resistors<\/li>\n\n\n\n<li>2 x 1 uf Capacitors<\/li>\n\n\n\n<li>4 x M2 Heat Set Inserts<\/li>\n\n\n\n<li>4 x M2 Screws<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Initial Design<\/h2>\n\n\n\n<p>The rotary encoder replaces one of the switches in the 9 key pad (since it has a click switch when pushing it in). We also add the buzzer, NFC reader, and WS2812 LED as new additions alongside the rotary encoder<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"600\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2023\/10\/circuit5.png\" alt=\"\" class=\"wp-image-3515\" style=\"width:490px;height:auto\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2023\/10\/circuit5.png 640w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2023\/10\/circuit5-300x281.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption class=\"wp-element-caption\">First Draft of the Electrical<\/figcaption><\/figure>\n<\/div>\n\n\n<p>I did a few drafts of the design like the one above, these changed pin selection on the ESP8266, component layouts, etc, then I ran into the major limitation that completely stopped me from using an ESP8266, the amount of internal flash.<\/p>\n\n\n\n<p>I threw together some demo software to try things and it requires just over 1MB of flash in order to run OTA updates, which the 8266 has ONLY 1MB of flash. So in this case, I can flash my software onto it initially, but I can&#8217;t update it without first flashing a minimal firmware, followed by the new firmware. I did a few things to see if I could work around this, and I found that I could remove the logger, and then I could run OTA updates, however debugging without the logger is not a fun thing to do, so I decided to go to an ESP32 with more than 1MB of flash. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ESP32 Based Design<\/h2>\n\n\n\n<p>I found the ESP32 dev kit v1 was a good one to start with, it had mounting holes I can use to screw it into my case, 2MB flash, and a decent amount of IO to make use of. I started out with research on the pinout of the ESP32, picking GPIO to use for my sensors that had all the capabilities I need. Below is the pin out for the ESP32 devkit v1 that I used for reference. All the GPIO pins I used are in the substitutions block in the ESPHome config to be easily swapped to a different controller if needed, and are also shown on the circuit diagrams.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"501\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/ESP32-DOIT-DEV-KIT-v1-pinout-mischianti-1024x501.png\" alt=\"\" class=\"wp-image-3653\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/ESP32-DOIT-DEV-KIT-v1-pinout-mischianti-1024x501.png 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/ESP32-DOIT-DEV-KIT-v1-pinout-mischianti-300x147.png 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/ESP32-DOIT-DEV-KIT-v1-pinout-mischianti-768x376.png 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/ESP32-DOIT-DEV-KIT-v1-pinout-mischianti-1536x752.png 1536w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/ESP32-DOIT-DEV-KIT-v1-pinout-mischianti.png 1685w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">ESP32 DevKitV1 Pinout<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Rotary Encoder Design Changes<\/h2>\n\n\n\n<p>While researching rotary encoders and how to properly include them in my circuit, I found a <a href=\"https:\/\/www.candrian.gr\/index.php\/3-pin-rotary-encoder-how-to\/\">blog post talking about the best way to incorporate them <\/a>while cleaning up the signal to the ESP micro controller. This included a circuit using two capacitors with pull-up resistors, that way when the rotary encoded rotated through, grounding the signal pins, the capacitors would take longer to discharge, keeping the pin high for a slightly delayed amount of time while also preventing any jumping in the signal that would cause incorrect incrementing from the encoder.<\/p>\n\n\n\n<p>I did experiment with forgoing the external pull-ups + capacitors in my rotary encoder, and I found that home assistant would jump heavily around when rotating the knob one direction, less so the other direction. This asymmetry would become quite difficult to navigate around without either a lot of software to clean the signal or hardware to do so. I&#8217;ll try out adding the hardware to see how that goes.<\/p>\n\n\n\n<p>I built a prototype circuit using the provided design, and found I was still having issues. I accidentally pulled 10 ohm resistors to build the circuit (my resistor trays were mislabeled). This almost worked however, the circuit counted up well without any major jumping, however counting down was problematic on the encoder. I tried the suggested 10k ohm resistors and had my rotary encoder only counting up, never counting down. I then decided to split the difference, I tried 100 ohm resistors and everything worked perfectly with them. Rotating the encoder left and right worked equally well, I could even spin it quickly both directions without the counters jumping the opposite directions.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"771\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0002041922005697669927689889-1024x771.jpg\" alt=\"\" class=\"wp-image-3729\" style=\"width:674px;height:auto\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0002041922005697669927689889-1024x771.jpg 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0002041922005697669927689889-300x226.jpg 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0002041922005697669927689889-768x578.jpg 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0002041922005697669927689889-1536x1157.jpg 1536w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0002041922005697669927689889.jpg 2000w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Prototype of the rotary circuit<\/figcaption><\/figure>\n\n\n\n<p>With this additional part of the circuit designed and prototyped, I had basically the entire NFC Deck circuit ready to draw out.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"880\" height=\"500\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/nfcdeck_whole_circuit.png\" alt=\"\" class=\"wp-image-3755\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/nfcdeck_whole_circuit.png 880w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/nfcdeck_whole_circuit-300x170.png 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/nfcdeck_whole_circuit-768x436.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Entire Circuit Diagram<\/figcaption><\/figure>\n<\/div>\n\n\n<p>I also split up the circuit into smaller digestible pieces. These are split out by component (except the 9 key pad which is kept as one large unit, and includes the rotary circuit too). We&#8217;ll start with the simplest part, the buzzer, which just connects to one GPIO pin and ground.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"340\" height=\"220\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/buzzer-only.png\" alt=\"\" class=\"wp-image-3757\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/buzzer-only.png 340w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/buzzer-only-300x194.png 300w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><figcaption class=\"wp-element-caption\">Buzzer Circuit<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Next we have the LED strip that is backlighting the keys. This needs 5v and data, so we connect it to D19, VIN and ground. We have a small enough number of LEDs that we won&#8217;t harm the ESP32 by using it to power the LEDs.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"340\" height=\"260\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/led-only.png\" alt=\"\" class=\"wp-image-3758\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/led-only.png 340w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/led-only-300x229.png 300w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><figcaption class=\"wp-element-caption\">LED Circuit<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Now we have the NFC reader, this needs two GPIO pins along with power.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"440\" height=\"340\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/nfc-only.png\" alt=\"\" class=\"wp-image-3763\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/nfc-only.png 440w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/nfc-only-300x232.png 300w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><figcaption class=\"wp-element-caption\">NFC Circuit<\/figcaption><\/figure>\n<\/div>\n\n\n<p>We get to the circuit that cleans the signal from the rotary encoder, this is where things get interesting. Each signal pin gets a pull-up resistor and a capacitor between the line and ground, then we just have the middle ground pin on the rotary to hook up. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"260\" height=\"300\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/rotary_signal_cleaner-1.png\" alt=\"\" class=\"wp-image-3707\"\/><figcaption class=\"wp-element-caption\">Rotary Circuit<\/figcaption><\/figure>\n<\/div>\n\n\n<p>The above rotary circuit can be found in place in the 9 key circuit below. I found it easier to build the circuit first, then add it into the rest of the NFCDeck wiring afterwards.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"880\" height=\"500\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/9key-only.png\" alt=\"\" class=\"wp-image-3756\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/9key-only.png 880w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/9key-only-300x170.png 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/9key-only-768x436.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">9 key + rotary Circuit<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Case design<\/h2>\n\n\n\n<p>The case design is very similar to the basic 9 key EspDeck, just extended in length. The additional length is to give it space for the NFC reader and additional electronics for it. This also lets the tags get close enough to the reader for it to read them.<\/p>\n\n\n\n<p>The will be 4 designs in total:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>9 key<\/li>\n\n\n\n<li>8 key + rotary<\/li>\n\n\n\n<li>3 key<\/li>\n\n\n\n<li>2 key + rotary<\/li>\n<\/ul>\n\n\n\n<p>For this first iteration of the design, I&#8217;ll just be focusing on the 9 key versions. Once these are done, I&#8217;ll start working on the designs for the 3 key iterations. This split in the designs will let me use an expanded keypad where it makes sense, and limit the number of keys where it makes sense to have a smaller number of interactions. Within the two designs, there will also be an option to use a rotary encoder or not.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"771\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240114_0056336398782310454521418453-1024x771.jpg\" alt=\"\" class=\"wp-image-3715\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240114_0056336398782310454521418453-1024x771.jpg 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240114_0056336398782310454521418453-300x226.jpg 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240114_0056336398782310454521418453-768x578.jpg 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240114_0056336398782310454521418453-1536x1157.jpg 1536w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240114_0056336398782310454521418453.jpg 2000w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Top variants side by side<\/figcaption><\/figure>\n\n\n\n<p>Use a thicker layer height when printing the top plate, 0.16mm or higher. This helps the details come out cleaner in the home assistant logo. Using thinner layer heights has given me more trouble when trying to get those details to print cleanly.<\/p>\n\n\n\n<p>Once I found an ESP32 unit with the right flash quantity and good support from EspHome, I modeled the ESP mount into the case. I printed a prototype to check if everything fit well and it all fit on the first try. All four mounting holes lined up perfectly.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"771\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240114_0330564724757299262707298712-1024x771.jpg\" alt=\"\" class=\"wp-image-3730\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240114_0330564724757299262707298712-1024x771.jpg 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240114_0330564724757299262707298712-300x226.jpg 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240114_0330564724757299262707298712-768x578.jpg 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240114_0330564724757299262707298712-1536x1157.jpg 1536w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240114_0330564724757299262707298712.jpg 2000w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Eyeing up hole mount spacing<\/figcaption><\/figure>\n\n\n\n<p>I used a soldering iron to install the heat set inserts. It takes a bit of a delicate touch to keep them vertical and from melting into the plastic too far. The M2 sizing was just about perfect to fit the holes I modeled into the case, though M3 should fit just fine as well.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"1024\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0113509487636779256655128944-771x1024.jpg\" alt=\"\" class=\"wp-image-3722\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0113509487636779256655128944-771x1024.jpg 771w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0113509487636779256655128944-226x300.jpg 226w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0113509487636779256655128944-768x1020.jpg 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0113509487636779256655128944-1157x1536.jpg 1157w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0113509487636779256655128944.jpg 1506w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Heat set inserts installed<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Assembly<\/h2>\n\n\n\n<p>The entire assembly process is outlined below. The general process is to print the parts, and then build and wire the entire top. After that the controller and rotary board can be soldered in, and then everything mounted to the base and hot glued together.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Print top<\/li>\n\n\n\n<li>Print case<\/li>\n\n\n\n<li>Insert heat set inserts<\/li>\n\n\n\n<li>Mount key switches to top plate<\/li>\n\n\n\n<li>Mount rotary to top plate<\/li>\n\n\n\n<li>Solder LED strips<\/li>\n\n\n\n<li>Mount LED strips to key switches \/ top plate<\/li>\n\n\n\n<li>Wire key switches and rotary<\/li>\n\n\n\n<li>Wire up NFC reader<\/li>\n\n\n\n<li>Mount NFC reader to top plate<\/li>\n\n\n\n<li>Attach all the wires to the ESP<\/li>\n\n\n\n<li>Mount ESP32 to case<\/li>\n\n\n\n<li>Hot glue in rotary side circuit board<\/li>\n\n\n\n<li>Hot glue top on<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p>Once I had the key switches and rotary mounted to the top plate, I started working on the LEDs for the backlighting. I have a few different LED strips hanging around from other projects I&#8217;ve assembled over the years, so I went to those first to look at different LED densities so that I could hopefully find one that gave me the minimum amount of work to install the backlighting. This ended up being the case with the 144 LED\/m WS2812 LEDs which lined up with three keys in a row without issue. If there were more keys, this wouldn&#8217;t have worked out since it wasn&#8217;t lining up perfectly, but in this case, it works well enough for my situation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"771\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0100110531479852247137135003-1024x771.jpg\" alt=\"\" class=\"wp-image-3670\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0100110531479852247137135003-1024x771.jpg 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0100110531479852247137135003-300x226.jpg 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0100110531479852247137135003-768x578.jpg 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0100110531479852247137135003-1536x1157.jpg 1536w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0100110531479852247137135003.jpg 2000w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Checking glow through of the WS2812<\/figcaption><\/figure>\n\n\n\n<p>I used the top plate to line things up for spacing the LED strips and then taped them to my soldering mat. This way when I  cut the connecting wires to length and soldered them in place, I&#8217;d have approximately the right spacing built in.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"771\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_011204904279722824660114054-1024x771.jpg\" alt=\"\" class=\"wp-image-3672\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_011204904279722824660114054-1024x771.jpg 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_011204904279722824660114054-300x226.jpg 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_011204904279722824660114054-768x578.jpg 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_011204904279722824660114054-1536x1157.jpg 1536w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_011204904279722824660114054.jpg 2000w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Eyeing up LED spacing<\/figcaption><\/figure>\n\n\n\n<p>When soldering the LED strips together, make sure to keep an eye on the input and output sides of the strips. Connect your DIN to DO and your connection to the ESP32 should be to the first DIN in the series.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"1024\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0139047721752261763687680231-771x1024.jpg\" alt=\"\" class=\"wp-image-3671\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0139047721752261763687680231-771x1024.jpg 771w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0139047721752261763687680231-226x300.jpg 226w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0139047721752261763687680231-768x1020.jpg 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0139047721752261763687680231-1157x1536.jpg 1157w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0139047721752261763687680231.jpg 1506w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Components installed<\/figcaption><\/figure>\n\n\n\n<p>Once the LED strip was hot glued in place, it was time to write the key switches and rotary button into the matrix layout needed. This will take 6 wires, one for each row and column. I like stripping the middle of my wires to solder into the middle pins, this way I don&#8217;t have to splice as many wires, but any method will do and this circuit is forgiving.<\/p>\n\n\n\n<p>Make sure you set the dip switches on the NFC reader BEFORE you mount it, or just mount it upside-down (make sure your wiring is coming out the right side for your mounting too).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"771\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0217141398258925662399548084-1024x771.jpg\" alt=\"\" class=\"wp-image-3669\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0217141398258925662399548084-1024x771.jpg 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0217141398258925662399548084-300x226.jpg 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0217141398258925662399548084-768x578.jpg 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0217141398258925662399548084-1536x1157.jpg 1536w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_0217141398258925662399548084.jpg 2000w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">All wired up<\/figcaption><\/figure>\n\n\n\n<p>I may like to strip the middle of wires a bit too much at times, but it&#8217;s so convenient when going between things like key switches. It does have a downside at times of potentially damaging the wire in a way you can&#8217;t entirely see. After my initial assembly and soldering the cables to the ESP this wire broke. I only noticed it was broken by that column of keys didn&#8217;t work. I went through and started investigating why, if I had tried to use a mode on a GPIO pin it didn&#8217;t support or another reason, luckily it wasn&#8217;t long till I found the broken wire and was able to fix it quickly.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"1024\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_2254456892695470622534126170-771x1024.jpg\" alt=\"\" class=\"wp-image-3692\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_2254456892695470622534126170-771x1024.jpg 771w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_2254456892695470622534126170-226x300.jpg 226w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_2254456892695470622534126170-768x1020.jpg 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_2254456892695470622534126170-1157x1536.jpg 1157w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240117_2254456892695470622534126170.jpg 1506w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Broken Column Wire<\/figcaption><\/figure>\n\n\n\n<p>I built the rotary encoder circuit on a small circuit board. It needs power, the signal in from the rotary, and the signal back to the ESP.  Afterwards I wired it into the ESP32 and the rotary encoder to hook that into the entire system.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"771\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240119_1852462165770973353140911481-1024x771.jpg\" alt=\"\" class=\"wp-image-3728\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240119_1852462165770973353140911481-1024x771.jpg 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240119_1852462165770973353140911481-300x226.jpg 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240119_1852462165770973353140911481-768x578.jpg 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240119_1852462165770973353140911481-1536x1157.jpg 1536w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240119_1852462165770973353140911481.jpg 2000w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Circuit side board with 2 of the 3 wire connections<\/figcaption><\/figure>\n\n\n\n<p>The esp32 can be screwed into place with the heat set inserts. This gives it a solid mount for when you plug and unplug the USB power to the keypad. I also hot glued the side circuit board into the corner of the case for the rotary encoder. If you don&#8217;t have heat set inserts, then just find some screws that thread into the plastic well, I built 3 keypads doing this and they hold up well.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"1024\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0120218298085232709288858148-771x1024.jpg\" alt=\"\" class=\"wp-image-3723\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0120218298085232709288858148-771x1024.jpg 771w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0120218298085232709288858148-226x300.jpg 226w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0120218298085232709288858148-768x1020.jpg 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0120218298085232709288858148-1157x1536.jpg 1157w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0120218298085232709288858148.jpg 1506w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">ESP32 and side board installed<\/figcaption><\/figure>\n\n\n\n<p>That&#8217;s basically the whole assembly, with all the internals in the case, it&#8217;s time to wiggle the lid on, trying to keep any wires from crimping between the case and lid and then hot gluing the lid on top. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Oddities to Note<\/h2>\n\n\n\n<p>I did notice something interesting when I went to try out the keypad for the first time after wiring it, other components in my design worked, but the entire 9 key pad didn&#8217;t. Now I&#8217;ve had rows or columns not work due to broken wires or GPIO without internal pullups, but never the entire pad until now. This however did seem to be an internal pull-up problem, as once I flipped the rows and columns in my configuration and re-uploaded it, everything started working again. The below configuration is the one that didn&#8217;t work at all.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">matrix_keypad:<br>  id: espdeck_keypad<br>  rows:<br>    - pin: $nine_key_pin_1<br>    - pin: $nine_key_pin_2<br>    - pin: $nine_key_pin_3<br>  columns:<br>    - pin: $nine_key_pin_4<br>    - pin: $nine_key_pin_5<br>    - pin: $nine_key_pin_6<\/pre>\n\n\n\n<p>However the next configuration works 100%.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">matrix_keypad:<br>  id: espdeck_keypad<br>  rows:<br>    - pin: $nine_key_pin_4<br>    - pin: $nine_key_pin_5<br>    - pin: $nine_key_pin_6<br>  columns:<br>    - pin: $nine_key_pin_1<br>    - pin: $nine_key_pin_2<br>    - pin: $nine_key_pin_3<br><\/pre>\n\n\n\n<p>My going theory is that this has to do with which pins can work with internal pullups turned on or not. I could have wired it differently for the rows\/columns, but since I do only have 9 keys, and they&#8217;re in a square layout, there&#8217;s no real reason to. The key numbers can be corrected in software.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Lighting The Keypad<\/h2>\n\n\n\n<p>To setup the lighting so that home assistant can address each key light individually, I made use of the <a href=\"https:\/\/esphome.io\/components\/light\/partition\">ESPHome light partition component<\/a>. This let me split the entire strip up into individual LEDs for easy use in automations etc.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">light:<br>  - platform: neopixelbus<br>    variant: WS2812<br>    pin: $neopixelbus_pin<br>    num_leds: 8<br>    flash_transition_length: 500ms<br>    type: GRB<br>    id: light_strip<br>    name: \"${friendly_name} LED\"<br>    restore_mode: ALWAYS_OFF<br>  - platform: partition<br>    name: \"Key 1 Light\"<br>    id: activity_led<br>    segments:<br>      - id: light_strip<br>        from: 0<br>        to: 0<br>  - platform: partition<br>    name: \"Key 2 Light\"<br>    segments:<br>      - id: light_strip<br>        from: 1<br>        to: 1<br>  - platform: partition<br>    name: \"Key 3 Light\"<br>    segments:<br>      - id: light_strip<br>        from: 2<br>        to: 2<\/pre>\n\n\n\n<p>Now the docs for the light partition do say to not split the LED strip up into individual LEDs using the feature as it uses a lot of resources, but we&#8217;re also not using that many lights, since there&#8217;s only 9 of them max in this design, so we&#8217;re going to do so anyways.<\/p>\n\n\n\n<p>There is also a funny when the whole light strip settings are used in addition to the per LED setting. If I have on 2 of my 9 keys with specific colors, and I turn on the entire keypad light, the individual keys will follow the strip setting, and if I turn off the entire keypad light, now ALL keys will turn off, including the two I turned on before. Home Assistant will still think these two lights are on though. This leads to an inconsistent state between home assistant and the lights, and even possibly EspHome&#8217;s state and the actual light state.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Rotary Debounce Filter<\/h2>\n\n\n\n<p>Even though I did add the side circuit board with a filter for the rotary encoder that cleans up the signal significantly, I still decided to add a debounce filter to it in the software as well. The debounce filter helps keep from getting arbitrary values out. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sensor:<br>  - platform: rotary_encoder<br>    name: \"Rotary Encoder\"<br>    pin_a: $rotary_pin_a<br>    pin_b: $rotary_pin_b<br>    publish_initial_value: true<br>    filters:<br>      - debounce: 0.1s<\/pre>\n\n\n\n<p>This combined with the circuit made for a pretty good system, though a fast spin can still act up on the rotary encoder. The debounce filter can be added onto the keypad keys as well if it&#8217;s needed. I haven&#8217;t had any problems with my 3 EspDecks that I have made so far, none of them using debounce.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pointers<\/h2>\n\n\n\n<p>When working on things, do remove the knob from the rotary. The beautifully machined surface on top of mine picked up gunk (flux) from my soldering mat like its going out of business. Cleaning it out of all the grooves is also a massive pain to do.<\/p>\n\n\n\n<p>Make sure the labels in your resistor box don&#8217;t move, otherwise you might end up using 10 ohm resistors instead of 10k ohm.<\/p>\n\n\n\n<p>When hot gluing the cap down, wait for the edges to cool a bit before cleaning them up, I tried to wipe the hot glue away before it solidified and it just got into the layer lines of the print and made things a lot uglier.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"1024\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_1449304878594052059997172637-771x1024.jpg\" alt=\"\" class=\"wp-image-3720\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_1449304878594052059997172637-771x1024.jpg 771w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_1449304878594052059997172637-226x300.jpg 226w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_1449304878594052059997172637-768x1020.jpg 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_1449304878594052059997172637-1157x1536.jpg 1157w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_1449304878594052059997172637.jpg 1506w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Hot glue in layer lines<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Finished Product<\/h2>\n\n\n\n<p>The final product came out pretty well. Some details could&#8217;ve been done a bit better in my build, but overall the finished product is solid. I&#8217;ve got it set up already to get some lighting notifications, and trigger various automations. I don&#8217;t have the rest of the home audio setup ready, so I don&#8217;t have the NFC reader and rotary encoder in use yet.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"2000\" height=\"1506\" data-id=\"3716\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0133126488121694085624940053.jpg\" alt=\"\" class=\"wp-image-3716\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0133126488121694085624940053.jpg 2000w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0133126488121694085624940053-300x226.jpg 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0133126488121694085624940053-1024x771.jpg 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0133126488121694085624940053-768x578.jpg 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0133126488121694085624940053-1536x1157.jpg 1536w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"2000\" height=\"1506\" data-id=\"3717\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0132398781265414725453002087.jpg\" alt=\"\" class=\"wp-image-3717\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0132398781265414725453002087.jpg 2000w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0132398781265414725453002087-300x226.jpg 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0132398781265414725453002087-1024x771.jpg 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0132398781265414725453002087-768x578.jpg 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240120_0132398781265414725453002087-1536x1157.jpg 1536w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>I also want to give a shout out to the adonno Tag Reader. I made use of their configurations for controlling the NFC reader, and buzzer in the NFC Deck. That part of the software is the most complex part of it, and they&#8217;ve done great work on that implementation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Potential Future Design Changes<\/h2>\n\n\n\n<p>Use heat set inserts to mount the keypad plate down to the base rather than using hot glue. This should probably make use of 6 screws, the 4 corners plus two in the middle.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Resources<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.home-assistant.io\/integrations\/tag\/\">NFC tags in home assistant<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/adonno\/tagreader\">Adonno Tag Reader GitHub repo<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/AeroSteveO\/EspDeck\">EspDeck GitHub Repository<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.candrian.gr\/index.php\/3-pin-rotary-encoder-how-to\/\">Blog talking about rotary encoder circuits<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/esphome.io\/components\/sensor\/rotary_encoder.html\">Rotary Encoder EspHome Documentation<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/devices.esphome.io\/devices\/Rotary-Encoder-Volume-Control\">Rotary Encoder Volume Control Knob<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/forum.arduino.cc\/t\/how-does-this-rotary-encoder-work-with-only-3-pins-used\/1075017\/5\">Forum Posts talking about rotary encoders<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/esphome.io\/components\/light\/partition\">Light Partition EspHome Documentation<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.candrian.gr\/index.php\/3-pin-rotary-encoder-how-to\/\">Rotary Encoder How To<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Additional Posts on the EspDeck<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/lab.rapternet.us\/?p=1397\">EspDeck Version 1<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/lab.rapternet.us\/?p=1506\">EspDeck Version 2<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/lab.rapternet.us\/?p=2811\">EspDeck Version 3<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/lab.rapternet.us\/?p=1616\">EspDeck Automations<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The time has come for a new iteration of the EspDeck. This time it&#8217;ll include a few new features, and a new form factor. The new version will include all the features of the Tag Reader, original EspDeck, and a rotary encoder.<\/p>\n","protected":false},"author":1,"featured_media":3717,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[76,74,39,75,100,103,49],"class_list":["post-3514","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","tag-espdeck","tag-esphome","tag-home-assistant","tag-macropad","tag-nfc","tag-nfcdeck","tag-smart-home"],"_links":{"self":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/3514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3514"}],"version-history":[{"count":74,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/3514\/revisions"}],"predecessor-version":[{"id":3815,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/3514\/revisions\/3815"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/media\/3717"}],"wp:attachment":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}