1
0
mirror of https://github.com/whowechina/iidx_pico.git synced 2025-02-11 16:43:05 +01:00

Update Readme on analog part

This commit is contained in:
whowechina 2023-04-19 20:40:36 +08:00
parent d0a45b2594
commit 5344ea93c5
2 changed files with 43 additions and 42 deletions

View File

@ -26,13 +26,13 @@ This Pico IIDX project:
Move forward only if you're REALLY interested.
## **Disclaimer** ##
Due to my limited personal time, this document is still in progress. So stay tuned!
This project already has a working "release" but I haven't make it a real release yet. There will be updates to all components and firmware as I'm trying to make it better. Luckily, there hasn't been any big mistakes so far. But still there's a chance I will make some, which may lead to your time or money loss. This open source project is provided as is, I can't promise anything.
Due to my limited personal time, this document is still in progress. So stay tuned!
This project already has a working "release" but I haven't make it a real release yet. There will be updates to all components and firmware as I'm trying to make it better. Luckily, there hasn't been any big mistakes so far. But still there's a chance I will make some, which may lead to your time or money loss. This open source project is provided as is, I can't promise anything.
Please don't hate me.
## HOW TO BUILD
### Turntable Materials
* 1x AS5600 hall angular sensor board set (23mm\*23mm)
* 1x AS5600 hall angular sensor board set (23mm\*23mm)
<img src="doc/as5600.png" width="150px">
* 1x 6mm\*2mm magnet (must be radially magnetized), normally comes with the AS5600 board set.
* 1x 61804-2RS deep groove ball bearing (20x32x7mm), normally < 5US$;
@ -41,7 +41,7 @@ Please don't hate me.
* 4x M3*12mm screws, for spinning disc.
* 1x REF3030 (3.0V Voltage Reference, SOT-23-3).
* 1x Custom cut black acrylic disc, 4mm thickness.
* 11x 12mm non slip self-adhesive silicon pads (also for Keyboard).
* 11x 12mm non slip self-adhesive silicon pads (also for Keyboard).
https://www.amazon.com/Cabinet-Dampening-Adhesive-Circular-Stoppers/dp/B07XXWG818
### Keyboard Materials
@ -69,25 +69,25 @@ Please don't hate me.
<img src="doc/pogopin.jpg" width="300px">
### Step 1 - Buy
* Keyboard PCB
* Keyboard PCB
Just go [JLC](https://jlcpcb.com/) and make the order. Make sure the board thickness is **1.2mm**, it's very important!
* Turntable PCB
* Turntable PCB
It's an optional one. It makes the wiring and soldering inside the turntable a litter easier.
* Acrylic disc
* Acrylic disc
Choose the dxf file according to your disc size and find a vendor to cut the 4mm black acrylic.
Documentation still in progress, come later...
### Step 2 - 3D Print
#### Keyboard
* PCB bottom (pcb_bottom_*.stl, choose one according to your connector choice)
* PCB bottom (pcb_bottom_*.stl, choose one according to your connector choice)
FDM, PLA/PETG transparent, 0.2mm layer, 4 walls.
* PCB top (pcb_top.stl)
FDM, PLA transparent, 0.2mm layer, 4 walls.
* PCB top (pcb_top.stl)
FDM, PLA transparent, 0.2mm layer, 4 walls.
If you have Bambu Lab's AMS system, use PLA black/gray for 3.0mm+ layers.
#### Turntable
For following prints, FDM, PLA, 0.4 nozzle, 0.16-0.2mm layer, 4 walls. And very important: "Seam Position" should be set to "**Random**" in your slicer, not only it looks better, it makes the bearing-flange coupling smoother and tension distributed more evenly.
For following prints, FDM, PLA, 0.4 nozzle, 0.16-0.2mm layer, 4 walls. And very important: "Seam Position" should be set to "**Random**" in your slicer, not only it looks better, it makes the bearing-flange coupling smoother and tension distributed more evenly.
These are all printed with
* Base (TT_base_xxx.stl), choose one of the 150, 170 or 180, based on your choice of disc size, 20-60% fill.
* Bearing seat (bearing_seat_6804.stl), 20-60% fill.
@ -95,48 +95,49 @@ These are all printed with
#### Pogopin Connector
It's very small and requires higher accuracy.
* Housing for pogopin connector (pogo_bottom.stl, pogo_top.stl).
* Housing for pogopin connector (pogo_bottom.stl, pogo_top.stl).
FDM, PLA, **0.2 nozzle** is recommended, 0.1mm layer, 4 walls, 60% fill.
#### Button keycaps
SLA (resin), regular white, 0.05mm layer, check out my orientation:
SLA (resin), regular white, 0.05mm layer, check out my orientation:
<img src="doc/keycap_support.png" width="300px">
### Step 3 - Solder
* Keyboard
* Keyboard
* WS2812 choices for main 7 main keys, for each key: solder 1x WS2812B-3528 under the key switch, or 4x WS2812-1516 around the key switch.
* IMPORTANT: be careful about the orientation of LEDs, they're different at different rows or columns.
* IMPORTANT: be careful about the orientation of LEDs, they're different at different rows or columns.
<img src="doc/led_3528_orientation.jpg" width="300px">
<img src="doc/led_1615_orientation.jpg" width="300px">
* Connector choices: solder 2x pogopin connectors, or solder 1x 3.5mm headphone input jack.
* It's very easy to miss the USB pins of the Raspberry Pico Pi, it's at the other side. And it's difficult to solder as you may leave an airbubble in the soldering hole. My trick is to use sharpest iron tip, super-slowly apply solder wire only at one side. This is my result:
* It's very easy to miss the USB pins of the Raspberry Pico Pi, it's at the other side. And it's difficult to solder as you may leave an airbubble in the soldering hole. My trick is to use sharpest iron tip, super-slowly apply solder wire only at one side. This is my result:
<img src="doc/solder_usb_txrx.jpg" width="300px">
* Turntable
* General
Typical AS5600 development board comes with 3.3V configuration, we can't feed 5V to it directly, it would burn the AS5600 or the main Pi Pico. The GPIO we use to communicate with AS5600 can never go beyond 3.6V. So we need a lower voltage, I chose REF3030, a precise 3.0V voltage reference.
You need to scrape off some solder mask to expose the ground copper (don't scrape the solder mask under 5V pin). I found a good place to mount the REF3030, this is how I handled it:
* Turntable
* General
Typical AS5600 development board comes with 3.3V configuration, we can't feed 5V to it directly, it would burn the AS5600 or the main Pi Pico. The GPIO we use to communicate with AS5600 can never go beyond 3.6V. So we need a lower voltage, I chose REF3030, a precise 3.0V voltage reference.
You need to scrape off some solder mask to expose the ground copper (don't scrape the solder mask under 5V pin). I found a good place to mount the REF3030, this is how I handled it:
<img src="doc/ref3030.jpg" width="300px">
* If you go with digital (magnetic pogo pin connector)
There're a set of I2C and a WS2812B signal line together in the cable that connects turntable and the keyboard. Unfortunately, these signals crosstalk. So, we have to use shield cables for them. Two I2C lines should have a shield cable, and the WS2812B signal should have another shield cable. Good thing is, an HDMI cable has 4 shield cables and bunch of other small cables. We can make use of it.
<img src="doc/pogopin_wiring.jpg" width="300px">
* If you go with digital (magnetic pogo pin connector)
There're a set of I2C and a WS2812B signal line together in the cable that connects turntable and the keyboard. Unfortunately, these signals crosstalk. So, we have to use shield cables for them. Two I2C lines should have a shield cable, and the WS2812B signal should have another shield cable. Good thing is, an HDMI cable has 4 shield cables and bunch of other small cables. We can make use of it.
<img src="doc/pogopin_wiring.jpg" width="300px">
* If you go with analog (3.5mm headphone jack)
Crosstalk maybe no longer an issue, but ground level becomes a concern. When driving the turntable LED ring, there's a considerable amount of current travelling through the ground cable which lifts AS5600 ground level. There're two ways to handle this.
* One is to use a 5 wire cable, separate LED ground from the sensor ground. You can use a Type-C to Type-C cable, it normally has 5 wires inside. You can use red and black to power the LED and others to serve sensor ground and signals.
<img src="doc/5A_usb.jpg" width="300px">
<img src="doc/USB_ground.jpg" width="600px">
* The other one is to minimize the ground wire resistance. A metal braid shielding cable can be used with the metal shield serving as the ground line. Or you can find a 4 wire cable with thick core copper.
Here's the pin definition.
<img src="doc/headphone_jack_wiring.png" width="200px">
The "ANGLE" is the AS5600 analog OUT. You need to remove a resistor to get OUT pin working.
* If you go with analog (3.5mm headphone jack)
Here's the pin definition.
<img src="doc/headphone_jack_wiring.png" width="200px">
The "ANGLE" connects to the AS5600 analog OUT. You need to remove a resistor from as5600 board to get OUT pin working.
<img src="doc/as5600_mod.png" width="300px">
Note: For analog, crosstalk maybe no longer an issue, but ground level becomes a new concern. When driving the turntable LED ring, there's a considerable amount of current travelling through the ground cable which lifts AS5600 ground level. There're two ways to handle this.
* One is to use a 5 wire cable. You need to separate LED ground from the sensor ground. A typical Type-C to Type-C cable has 5 wires inside. You can use red and black to power the LED and others to serve sensor ground, sensor analog out and LED signal.
<img src="doc/5A_usb.jpg" width="300px">
* The other one is to minimize the ground wire resistance. A metal braid shielding cable can be used with the metal shield serving as the ground line. Or you can find a 4 wire cable with thick core copper.
### Step 4 - Assemble
* Assemble the turntable
I don't know how to draw an explosion diagram, this is done by coding in OpenSCAD:
<img src="doc/tt_assemble.png" width="500px">
These shows how a bearing is installed.
I don't know how to draw an explosion diagram, this is done by coding in OpenSCAD:
<img src="doc/tt_assemble.png" width="500px">
These shows how a bearing is installed.
<img src="doc/bearing_1.jpg" width="300px">
<img src="doc/bearing_2.jpg" width="300px">
<img src="doc/bearing_3.jpg" width="300px">
@ -144,11 +145,11 @@ It's very small and requires higher accuracy.
<img src="doc/bearing_5.jpg" width="300px">
* Install the low-profile stabilizers.
https://docs.keeb.io/choc-stabs
https://docs.keeb.io/choc-stabs
A little trick here. As the PCB footprint is made to support both choc v1 and v2, that leaves some wobble space for choc v1 and makes it difficult to align. So leave the key switch unsoldered, when the stabilizer, the key switch and the keycap are all in place, push the keycap down and then solder the key switch. This way the key switch will be aligned to the stabilizers better.
* Assemble the keyboard
It's very easy.
<img src="doc/kb_assemble.png" width="500px">
It's very easy.
<img src="doc/kb_assemble.png" width="500px">
<img src="doc/kb_1.jpg" width="300px">
<img src="doc/kb_2.jpg" width="300px">
<img src="doc/kb_3.jpg" width="300px">
@ -161,13 +162,13 @@ It's very small and requires higher accuracy.
* For now, some configurations are hardcoded, if you want to change something, you need to build by yourself.
### What If?
* I can't find pogopin connector.
* I can't find pogopin connector.
**Solution:** I figured out another connector choice, which is a 3.5mm 4P headphone jack. It uses analog to communicate turntable movements, but I'm still testing it, so stay tuned. I will update this document.
* I don't have Bambu Lab's machine, or I don't have an AMS system.
* I don't have Bambu Lab's machine, or I don't have an AMS system.
**Solution:** There're many online vendors and people providing paid Bambu printing service. Or you can just use other 3D printers. It's just the numbers in the OpenSCAD source file or STL files are finetuned on my Bambu Lab X1. You may need to adjust a little on your 3D printer system to get perfect result. And regarding the multi-color thing, maybe you can just paint the top layer by hand. I know people do miniature painting, I think it would be similar.
* STL files are not accurate, difficult to assemble.
* STL files are not accurate, difficult to assemble.
**Solution:** 3D printer systems are different one from another, it results in small differences even with same model file and some configuration. If the printed parts are not happy with each other, you can fiddle with the OpenSCAD source file and the numbers in it for your case.
* I don't have resin printer.
* I can't find Kailh low-profile stabilizer.
* I don't have electronic DIY gears.
* I don't have electronic DIY gears.
**Solution:** OK, this is an electronic hobby project, maybe it's not for you if you don't plan to do electronic DIYs. There're many good IIDX controllers you can purchase somewhere online.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 KiB