Updated PAJ7620 (markdown)

Christian 2019-08-17 19:59:42 +02:00
parent f6a1c78703
commit aa587f9ca9
1 changed files with 31 additions and 12 deletions

@ -5,8 +5,25 @@ Compared to the APDS-9960 this sensor is roughly 3-4 times the price, but delive
## Usage:
Simple I2C-connection with the usual configuration in Tasmota.
## Wiring breakout boards
| Breakout | ESP8266 |
|----------|-----------|
| VCC/VIN | +3.3VDC |
| GND | GND |
| SCL | GPIO I<sup>2</sup>C SCL |
| SDA | GPIO I<sup>2</sup>C SDA |
| INT | NC |
### Tasmota configuration
Compile Tasmota with `#define USE_PAJ7620` uncommented in `user_config_override.h`
***
## Commands:
Sensor50 0…5:
## **Sensor50 0…5:**
### 0 - no readings / muted sensor
### 1 - Gesture Mode:
@ -21,25 +38,27 @@ TELE-message: …{Proximity:255} - virtually touching the sensor in close proxim
### 3 - Corner Mode:
Quarters of the sensing volume(area) are organised like this:
1|2
—-
3|4
| 1 | 2 |
|----------|-----------|
| 3 | 4 |
An object in one of the corners will trigger the corresponding number, a bit like a pie menu in a GUI.
TELE-message: …{Corner:2} - upper right corner
### 4- PIN mode:
Based on the corner mode a fluent movement of an object through a given sequence of corners (e.g. 1,2,3,4 -> begin upper left, move right, move diagonally down left, move right) will trigger a valid „PIN“
Based on the corner mode a fluent movement of an object through a given sequence of corners (e.g. 1,2,3,4 -> begin upper left, move right, move diagonally down left, move right) will trigger a valid „PIN“.
TELE-message: …{PIN:1} - valid PIN
### 5- cursor mode:
### 5- Cursor mode:
Shows x- and y-coordinates, mainly intended for debugging and „seeing“ the sensing area. This reads only the upper 5-bit-values, which automatically removes much of the jitter, giving values between 0 and 15.
TELE-message: …{x:1, y:15} - upper left corner
***
Gesture recognition seems to be more stable than on the APDS-9960, which on the other hand is a lot cheaper.
Gesture recognition seems to be more stable than with the APDS-9960, which on the other hand is a lot cheaper.
As expected NEAR and FAR gestures are tricky and you have to train your movements to catch them. Sometimes the sensor reports NEAR and FAR at once (which will be discarded).
There is some postprocessing to allow the object (hand or finger) to move into the sensing area and delay the initial direction report (up, down, left, right) to give the chance to trigger (the intended) NEAR or FAR movement. Especially FAR is a bit harder to achieve.