1
0
mirror of https://github.com/whowechina/chu_pico.git synced 2024-11-24 02:50:11 +01:00

Fighting continues

This commit is contained in:
whowechina 2024-09-23 11:23:52 +08:00
parent 98ac249696
commit e57f880464
2 changed files with 10 additions and 10 deletions

View File

@ -178,11 +178,11 @@ So hereby I provide the IR air tower design, with a pair of air tower PCBs and t
3. For left side tower, use J1 to connect to the Raspberry Pi Pico, and for the right side tower, use J2. GPIO 3 -> A, GPIO 4 -> B, GPIO 5 -> C, ADC 0 (GPIO 26) -> Right S, ADC 1 (GPIO 27) -> Left S.
<img src="doc/air_tower_wiring.png" width="50%">
4. Steps for deployment.
1. Enable IR air tower in the firmware (command `ir enable`), this will disable ToF.
2. Enable diagnostics for IR (command `ir diagnostic`).
3. Place the air towers and watch the output of the diagnostics, higher value means beam is received.
4. Set the baseline after the towers are properly placed (command `ir baseline`).
5. Optionally, set the sensitivity, it's a percentage of expected change (command `ir trigger <1..100>`).
* Enable IR air tower in the firmware (command `ir enable`), this will disable ToF.
* Enable diagnostics for IR (command `ir diagnostic`).
* Place the air towers and watch the output of the diagnostics, higher value means beam is received.
* Set the baseline after the towers are properly placed (command `ir baseline`).
* Optionally, set the sensitivity, it's a percentage of expected change (command `ir trigger <1..100>`).
### Firmware
* UF2 file is in `Production\Firmware` folder.

View File

@ -186,11 +186,11 @@ Chu Pico 本身不需要红外空键。但是有些人可能用 Chu Pico 来做
3. 左侧空键 PCB 使用 J1 连接到 Pi Pico 主控,右侧空键 PCB 使用 J2 连接。GPIO 3 -> A, GPIO 4 -> B, GPIO 5 -> C, ADC 0 (GPIO 26) -> Right S, ADC 1 (GPIO 27) -> Left S。
<img src="doc/air_tower_wiring.png" width="50%">
4. 调试上线的过程如下:
1. 在固件中启用 IR 空键(命令 `ir enable`),它会自动禁用 ToF。
2. 启用 IR 的诊断功能(命令 `ir diagnostic`)。
3. 摆放两侧的空键塔,观察诊断输出,数值高代表着对应的红外光线已经对准接收器。
4. 在正确摆放好空键塔后,设置基线(命令 `ir baseline`)。
5. 可选,设置触发灵敏度,它用一个变化的百分比值来表达(命令 `ir trigger <1..100>`)。
* 在固件中启用 IR 空键(命令 `ir enable`),它会自动禁用 ToF。
* 启用 IR 的诊断功能(命令 `ir diagnostic`)。
* 摆放两侧的空键塔,观察诊断输出,数值高代表着对应的红外光线已经对准接收器。
* 在正确摆放好空键塔后,设置基线(命令 `ir baseline`)。
* 可选,设置触发灵敏度,它用一个变化的百分比值来表达(命令 `ir trigger <1..100>`)。
### 固件
* UF2 文件在 `Production\Firmware` 文件夹下。