add tui and persistent targets
This commit is contained in:
54
README.md
54
README.md
@@ -52,20 +52,31 @@ ls -la /dev/serial/by-id/
|
||||
|
||||
### Serial port permissions (Linux)
|
||||
|
||||
| Distribution | Group for serial access |
|
||||
|--------------|-------------------------|
|
||||
| Debian, Ubuntu, Raspberry Pi OS | `dialout` |
|
||||
| Arch Linux, CachyOS | `uucp` |
|
||||
**Recommended — udev rules (one-time, works in Cursor without re-login):**
|
||||
|
||||
```bash
|
||||
# Debian / Ubuntu / Pi
|
||||
sudo usermod -aG dialout $USER
|
||||
sudo ./scripts/install-udev-rules.sh
|
||||
# unplug and replug the Arduino
|
||||
```
|
||||
|
||||
This installs PlatformIO’s `99-platformio-udev.rules` (covers CH340 clone Nanos and other common adapters).
|
||||
|
||||
**Alternative — group membership:**
|
||||
|
||||
```bash
|
||||
# Arch / CachyOS
|
||||
sudo usermod -aG uucp $USER
|
||||
```
|
||||
|
||||
Log out and back in after adding your user to the group.
|
||||
You must **fully log out of the desktop** (not just reboot or open a new terminal) so `id` shows the new group. Cursor’s terminal often keeps the old group list until you restart Cursor after logging out.
|
||||
|
||||
**Immediate workaround** (no sudo, current terminal only):
|
||||
|
||||
```bash
|
||||
sg uucp -c "$HOME/.platformio/penv/bin/pio run -t upload"
|
||||
```
|
||||
|
||||
Verify access: `test -w /dev/ttyUSB0 && echo ok`
|
||||
|
||||
## First run
|
||||
|
||||
@@ -86,6 +97,31 @@ Log out and back in after adding your user to the group.
|
||||
|
||||
Send `help` over serial for all commands (`target`, `fan on/off`, `log on/off`, `status`, `pid`, etc.).
|
||||
|
||||
## Raspberry Pi logging
|
||||
## Raspberry Pi control
|
||||
|
||||
Optional CSV capture over USB is documented in [pi-instructions.md](pi-instructions.md).
|
||||
On the Pi, use the curses TUI to set targets and monitor the chamber (SSH with a TTY: `ssh -t`):
|
||||
|
||||
```bash
|
||||
python3 scripts/capture_csv.py tui
|
||||
```
|
||||
|
||||
Keys: `0` idle · `t` target · `p` material presets · `f`/`F` fan · `l` CSV log · `a` autotune · `:` command · `q` quit
|
||||
|
||||
Headless CSV-only logging (e.g. systemd) is documented in [pi-instructions.md](pi-instructions.md).
|
||||
|
||||
## Filament drying table
|
||||
|
||||
| Filament | Dryer temperature | Drying time (hours) |
|
||||
|----------|-------------------|---------------------|
|
||||
| PLA | 50–55 °C (122–131 °F) | > 6 |
|
||||
| ABS | 60–65 °C (140–149 °F) | > 6 |
|
||||
| PETG | 60–65 °C (140–149 °F) | > 6 |
|
||||
| Nylon | 70–75 °C (158–167 °F) | > 24 |
|
||||
| Desiccants | 60–65 °C (149 °F) | > 12 |
|
||||
| PVA | 40–45 °C (104–113 °F) | > 24 |
|
||||
| TPU/TPE | 50–55 °C (122–131 °F) | > 8 |
|
||||
| ASA | 60–65 °C (140–149 °F) | > 8 |
|
||||
| PP | 50–55 °C (122–131 °F) | > 6 |
|
||||
| HIPS | 60–65 °C (140–149 °F) | > 8 |
|
||||
| PC | 70–75 °C (158–167 °F) | > 12 |
|
||||
| PEEK | 120–125 °C (248–257 °F) | > 24 |
|
||||
Reference in New Issue
Block a user