Skip to content

Commit

Permalink
Updated shutter firmware README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
genemars committed Feb 8, 2025
1 parent fc92b29 commit 32efc89
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions examples/shutter/README.md
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`

0 comments on commit 32efc89

Please sign in to comment.