From ffc76ab8fb8f05eb36bd96014822ed5ee3e4ec41 Mon Sep 17 00:00:00 2001 From: Tyeth Gundry Date: Thu, 21 Aug 2025 16:09:26 +0100 Subject: [PATCH 1/4] Add AS5600 magnetic angle sensor --- components/i2c/as5600/definition.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 components/i2c/as5600/definition.json diff --git a/components/i2c/as5600/definition.json b/components/i2c/as5600/definition.json new file mode 100644 index 0000000..6c7a391 --- /dev/null +++ b/components/i2c/as5600/definition.json @@ -0,0 +1,16 @@ +{ + "displayName": "AS5600 Magnetic Angle Sensor", + "vendor": "ams", + "productURL": "https://www.adafruit.com/product/6357", + "documentationURL": "https://learn.adafruit.com/adafruit-as5600-magnetic-angle-sensor", + "description": "Magnetic angle (0-359) I2C sensor with 0.1° precision and 0.4° accuracy", + "published": false, + "i2cAddresses": [ "0x36" ], + "subcomponents": [ + { + "displayName": "Angle", + "defaultPeriod": 5, + "sensorType": "raw" + } + ] +} From bba537abc3541ae9ede0dfc45680671df668ed03 Mon Sep 17 00:00:00 2001 From: Tyeth Gundry Date: Fri, 22 Aug 2025 11:17:13 +0100 Subject: [PATCH 2/4] Reduce minimum poll period This sensor makes sense to poll at a higher speed than 30seconds. Setting minimum to 1 to match IO-rails. --- components/i2c/schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/i2c/schema.json b/components/i2c/schema.json index 0c8d82a..dc75ca3 100644 --- a/components/i2c/schema.json +++ b/components/i2c/schema.json @@ -29,7 +29,7 @@ "defaultPeriod": { "description": "What period to the form should default to for this sensor.", "type": "number", - "minimum": 30, + "minimum": 1, "maximum": 86400 } } From c1114276a57a23e5e81904e0bde373f5c89c85a6 Mon Sep 17 00:00:00 2001 From: Tyeth Gundry Date: Fri, 22 Aug 2025 11:17:33 +0100 Subject: [PATCH 3/4] fix(as5600): Reduce title length --- components/i2c/as5600/definition.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/i2c/as5600/definition.json b/components/i2c/as5600/definition.json index 6c7a391..3ef5724 100644 --- a/components/i2c/as5600/definition.json +++ b/components/i2c/as5600/definition.json @@ -1,5 +1,5 @@ { - "displayName": "AS5600 Magnetic Angle Sensor", + "displayName": "AS5600 Magnetic Angle", "vendor": "ams", "productURL": "https://www.adafruit.com/product/6357", "documentationURL": "https://learn.adafruit.com/adafruit-as5600-magnetic-angle-sensor", From c7f2b283c6c2f1d09cd2fada09ddd033af2a6ebe Mon Sep 17 00:00:00 2001 From: brentru Date: Thu, 28 Aug 2025 15:36:06 -0400 Subject: [PATCH 4/4] Publish --- components/i2c/as5600/definition.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/i2c/as5600/definition.json b/components/i2c/as5600/definition.json index 3ef5724..07eaf4a 100644 --- a/components/i2c/as5600/definition.json +++ b/components/i2c/as5600/definition.json @@ -4,7 +4,7 @@ "productURL": "https://www.adafruit.com/product/6357", "documentationURL": "https://learn.adafruit.com/adafruit-as5600-magnetic-angle-sensor", "description": "Magnetic angle (0-359) I2C sensor with 0.1° precision and 0.4° accuracy", - "published": false, + "published": true, "i2cAddresses": [ "0x36" ], "subcomponents": [ {