-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# shutter | ||
|
||
A smart shutter device and generic servo motor driver. Supports accurate positioning | ||
also using continuous rotation servos by using a GPIO switch as encoder pulse. | ||
The default version of this firmware can control up to 8 motors simultaneously. | ||
|
||
|
||
- [Documentation and firmware install page](https://homegenie.it/mini/1.2/examples/shutter/) | ||
|
||
|
||
## Firmware configuration | ||
|
||
In addition to default system options the following configuration options are available, | ||
where `<n>` is the number of the motor (from 1 to 8): | ||
|
||
| Key | Description | Default | | ||
|----------------|----------------------------------------|-----------------------------------------| | ||
| `stld-pin` | Status LED (RGB) pin | -1 (-1=not used) | | ||
| `stld-typ` | Status LED type | RGB/RGBW order mask (see code for ref.) | | ||
| `stld-spd` | Status LED speed | 0 (0=800kHz, 256=400kHz) | | ||
| `motr-typ#<n>` | Motor type ('Servo' or 'ServoEncoder') | 'Servo' | | ||
| `ctrl-pin#<n>` | Control GPIO# | 6 | | ||
|
||
|
||
### Parameters for `motr-typ`= '`ServoEncoder`' | ||
|
||
| Key | Description | Default | | ||
|----------------|---------------------------|----------------------------------| | ||
| `motr-spd#<n>` | Motor speed (1-10) | 5 | | ||
| `encd-pin#<n>` | Encoder switch GPIO# | -1 (emulated encoder step pulse) | | ||
| `encd-stp#<n>` | Maximum number of steps | 15 | | ||
|
||
|
||
### Parameters for `motr-typ`= '`Servo`' | ||
|
||
| Key | Description | Default | | ||
|----------------|----------------------|-----------------------------------------| | ||
| `angl-spd#<n>` | Seeking speed (1-10) | 5 | | ||
| `angl-min#<n>` | Start angle (0-179) | 0 | | ||
| `angl-max#<n>` | End angle (1-180) | 180 | | ||
|
||
|
||
### Manual build and install | ||
|
||
You can also manually build and install the firmware from source code | ||
as explained in the [Getting started](../../getting-started#custom-firmware) page | ||
and using the following commands for flashing the firmware: | ||
|
||
```bash | ||
pio run -e shutter[<target>] -t upload | ||
``` | ||
|
||
where the optional `<target>` suffix can be one of the following: | ||
- ESP8266 | ||
`-d1-mini` | ||
- ESP32 (generic) | ||
*none* | ||
- ESP32-C3 | ||
`-c3` | ||
- ESP32-S3 | ||
`-s3` | ||
- ESP32 D1 Mini | ||
`-d1-mini-esp32` |