add hw support for cheap analog moisture sensor

This commit is contained in:
Marcus 2024-04-01 18:36:39 +02:00
parent b51949f074
commit 891198b6d1
2 changed files with 604 additions and 16 deletions

View file

@ -481,6 +481,169 @@
) )
) )
) )
(symbol "Device:D"
(pin_numbers hide)
(pin_names
(offset 1.016) hide)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(property "Reference" "D"
(at 0 2.54 0)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Value" "D"
(at 0 -2.54 0)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Footprint" ""
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "~"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "Diode"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Sim.Device" "D"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Sim.Pins" "1=K 2=A"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_keywords" "diode"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_fp_filters" "TO-???* *_Diode_* *SingleDiode* D_*"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(symbol "D_0_1"
(polyline
(pts
(xy -1.27 1.27) (xy -1.27 -1.27)
)
(stroke
(width 0.254)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 1.27 0) (xy -1.27 0)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 1.27 1.27) (xy 1.27 -1.27) (xy -1.27 0) (xy 1.27 1.27)
)
(stroke
(width 0.254)
(type default)
)
(fill
(type none)
)
)
)
(symbol "D_1_1"
(pin passive line
(at -3.81 0 0)
(length 2.54)
(name "K"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "1"
(effects
(font
(size 1.27 1.27)
)
)
)
)
(pin passive line
(at 3.81 0 180)
(length 2.54)
(name "A"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "2"
(effects
(font
(size 1.27 1.27)
)
)
)
)
)
)
(symbol "Device:R" (symbol "Device:R"
(pin_numbers hide) (pin_numbers hide)
(pin_names (pin_names
@ -2026,12 +2189,6 @@
(color 0 0 0 0) (color 0 0 0 0)
(uuid "1da81631-da6b-476d-b8b7-532d1e198468") (uuid "1da81631-da6b-476d-b8b7-532d1e198468")
) )
(junction
(at 96.52 128.27)
(diameter 0)
(color 0 0 0 0)
(uuid "1db8297d-9fdb-4662-927a-4d45f886205b")
)
(junction (junction
(at 201.93 116.84) (at 201.93 116.84)
(diameter 0) (diameter 0)
@ -2074,6 +2231,12 @@
(color 0 0 0 0) (color 0 0 0 0)
(uuid "481cf788-c97b-48ab-9d17-8e2e6d8a885a") (uuid "481cf788-c97b-48ab-9d17-8e2e6d8a885a")
) )
(junction
(at 107.95 128.27)
(diameter 0)
(color 0 0 0 0)
(uuid "537a62d5-5266-4cbd-a83e-62ba4d53cec3")
)
(junction (junction
(at 76.2 120.65) (at 76.2 120.65)
(diameter 0) (diameter 0)
@ -2098,6 +2261,12 @@
(color 0 0 0 0) (color 0 0 0 0)
(uuid "86b0fa74-bdbc-4882-9ce7-38fa88e6e628") (uuid "86b0fa74-bdbc-4882-9ce7-38fa88e6e628")
) )
(junction
(at 96.52 128.27)
(diameter 0)
(color 0 0 0 0)
(uuid "91ebf928-3206-4abd-b9f5-1516976c9802")
)
(junction (junction
(at 203.2 138.43) (at 203.2 138.43)
(diameter 0) (diameter 0)
@ -2128,6 +2297,12 @@
(color 0 0 0 0) (color 0 0 0 0)
(uuid "bcd150de-5c02-47e1-bec1-a53a32897324") (uuid "bcd150de-5c02-47e1-bec1-a53a32897324")
) )
(junction
(at 113.03 74.93)
(diameter 0)
(color 0 0 0 0)
(uuid "d68e4a4d-c8fc-4ee1-b8e8-3949c30f459c")
)
(junction (junction
(at 194.31 102.87) (at 194.31 102.87)
(diameter 0) (diameter 0)
@ -2336,6 +2511,16 @@
) )
(uuid "28ab5e54-0c4e-482e-84c3-246d70d3c359") (uuid "28ab5e54-0c4e-482e-84c3-246d70d3c359")
) )
(wire
(pts
(xy 135.89 74.93) (xy 135.89 162.56)
)
(stroke
(width 0)
(type default)
)
(uuid "28cf53cf-5d6e-465f-a364-2216104e9424")
)
(wire (wire
(pts (pts
(xy 196.85 59.69) (xy 196.85 72.39) (xy 196.85 59.69) (xy 196.85 72.39)
@ -2386,6 +2571,16 @@
) )
(uuid "4026cdb7-033a-484c-88e5-c6770c1b0e6b") (uuid "4026cdb7-033a-484c-88e5-c6770c1b0e6b")
) )
(wire
(pts
(xy 91.44 162.56) (xy 91.44 139.7)
)
(stroke
(width 0)
(type default)
)
(uuid "40644718-ffc9-4633-a512-44422256a150")
)
(wire (wire
(pts (pts
(xy 240.03 123.19) (xy 215.9 123.19) (xy 240.03 123.19) (xy 215.9 123.19)
@ -2526,6 +2721,16 @@
) )
(uuid "5ecd1b0f-67d6-4a9e-bab7-85b9c749eef1") (uuid "5ecd1b0f-67d6-4a9e-bab7-85b9c749eef1")
) )
(wire
(pts
(xy 104.14 128.27) (xy 107.95 128.27)
)
(stroke
(width 0)
(type default)
)
(uuid "60f78313-3ef1-44c6-bd6e-48a5aafe45bd")
)
(wire (wire
(pts (pts
(xy 184.15 62.23) (xy 184.15 67.31) (xy 184.15 62.23) (xy 184.15 67.31)
@ -2576,6 +2781,16 @@
) )
(uuid "6e5434af-f46b-4937-b366-c34056bd7ea2") (uuid "6e5434af-f46b-4937-b366-c34056bd7ea2")
) )
(wire
(pts
(xy 111.76 74.93) (xy 113.03 74.93)
)
(stroke
(width 0)
(type default)
)
(uuid "70079a58-2613-4dee-8900-9eda77ca27eb")
)
(wire (wire
(pts (pts
(xy 63.5 113.03) (xy 76.2 113.03) (xy 63.5 113.03) (xy 76.2 113.03)
@ -2646,6 +2861,16 @@
) )
(uuid "8382cb2d-934a-4963-90a0-3019f97da332") (uuid "8382cb2d-934a-4963-90a0-3019f97da332")
) )
(wire
(pts
(xy 107.95 128.27) (xy 146.05 128.27)
)
(stroke
(width 0)
(type default)
)
(uuid "85da33ee-9885-40b4-ad1c-f63407a4e92b")
)
(wire (wire
(pts (pts
(xy 66.04 120.65) (xy 66.04 128.27) (xy 66.04 120.65) (xy 66.04 128.27)
@ -2766,16 +2991,6 @@
) )
(uuid "a86c5d20-d0f9-4a10-8c89-5778e67bae69") (uuid "a86c5d20-d0f9-4a10-8c89-5778e67bae69")
) )
(wire
(pts
(xy 96.52 128.27) (xy 146.05 128.27)
)
(stroke
(width 0)
(type default)
)
(uuid "a8d9b66a-3f61-40fe-a48b-beaf19f2fd42")
)
(wire (wire
(pts (pts
(xy 194.31 52.07) (xy 207.01 52.07) (xy 194.31 52.07) (xy 207.01 52.07)
@ -2796,6 +3011,16 @@
) )
(uuid "ace69f2c-3267-4ce8-a778-c6e0444813ab") (uuid "ace69f2c-3267-4ce8-a778-c6e0444813ab")
) )
(wire
(pts
(xy 91.44 139.7) (xy 105.41 139.7)
)
(stroke
(width 0)
(type default)
)
(uuid "ada52d3b-0874-4940-bf28-10b942b6aa54")
)
(wire (wire
(pts (pts
(xy 195.58 49.53) (xy 195.58 62.23) (xy 195.58 49.53) (xy 195.58 62.23)
@ -2836,6 +3061,16 @@
) )
(uuid "b3178a5e-1bda-43d9-966f-0ecf57635e67") (uuid "b3178a5e-1bda-43d9-966f-0ecf57635e67")
) )
(wire
(pts
(xy 113.03 74.93) (xy 135.89 74.93)
)
(stroke
(width 0)
(type default)
)
(uuid "b33a6673-3a5a-4954-8f6b-041508be1124")
)
(wire (wire
(pts (pts
(xy 186.69 34.29) (xy 186.69 62.23) (xy 186.69 34.29) (xy 186.69 62.23)
@ -2856,6 +3091,16 @@
) )
(uuid "b788c283-51b8-4890-9093-660e75121bcb") (uuid "b788c283-51b8-4890-9093-660e75121bcb")
) )
(wire
(pts
(xy 105.41 139.7) (xy 105.41 147.32)
)
(stroke
(width 0)
(type default)
)
(uuid "b7ea1a94-2996-422d-a3e2-3becdf645a92")
)
(wire (wire
(pts (pts
(xy 219.71 147.32) (xy 229.87 147.32) (xy 219.71 147.32) (xy 229.87 147.32)
@ -3006,6 +3251,16 @@
) )
(uuid "db61337a-958a-42db-afb6-f9a590107788") (uuid "db61337a-958a-42db-afb6-f9a590107788")
) )
(wire
(pts
(xy 107.95 139.7) (xy 107.95 128.27)
)
(stroke
(width 0)
(type default)
)
(uuid "ddf7dd90-db97-477a-ba0b-157cbfd8ba17")
)
(wire (wire
(pts (pts
(xy 207.01 54.61) (xy 207.01 55.88) (xy 207.01 54.61) (xy 207.01 55.88)
@ -3056,6 +3311,16 @@
) )
(uuid "e9145738-193a-4f13-a9c3-7cc978167835") (uuid "e9145738-193a-4f13-a9c3-7cc978167835")
) )
(wire
(pts
(xy 135.89 162.56) (xy 91.44 162.56)
)
(stroke
(width 0)
(type default)
)
(uuid "efe3b9dc-bf06-4068-83bf-956a4968708e")
)
(wire (wire
(pts (pts
(xy 182.88 64.77) (xy 182.88 41.91) (xy 182.88 64.77) (xy 182.88 41.91)
@ -3186,6 +3451,16 @@
) )
(uuid "775809ed-2a46-4309-b3e6-c2542e0c428d") (uuid "775809ed-2a46-4309-b3e6-c2542e0c428d")
) )
(text "1 - GND\n2 - VCC\n3 - AOUT"
(exclude_from_sim no)
(at 119.126 147.066 0)
(effects
(font
(size 1.27 1.27)
)
)
(uuid "a1650987-1fd0-4684-839d-80d4778c0e67")
)
(text "1 - OK\n2 - WARN\n3 - CRIT" (text "1 - OK\n2 - WARN\n3 - CRIT"
(exclude_from_sim no) (exclude_from_sim no)
(at 53.594 133.35 0) (at 53.594 133.35 0)
@ -3397,6 +3672,72 @@
) )
) )
) )
(symbol
(lib_id "power:GND")
(at 102.87 147.32 180)
(unit 1)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(dnp no)
(fields_autoplaced yes)
(uuid "0ba8036f-dc7e-47e1-a778-81d853c3ca59")
(property "Reference" "#PWR012"
(at 102.87 140.97 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Value" "GND"
(at 102.87 142.24 0)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Footprint" ""
(at 102.87 147.32 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" ""
(at 102.87 147.32 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "Power symbol creates a global label with name \"GND\" , ground"
(at 102.87 147.32 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(pin "1"
(uuid "571cab05-b5e0-4161-b5ec-eabbaec464cd")
)
(instances
(project "CanGrow"
(path "/42428fce-ab8c-4a80-af19-dee4f0070d36"
(reference "#PWR012")
(unit 1)
)
)
)
)
(symbol (symbol
(lib_id "power:GND") (lib_id "power:GND")
(at 219.71 157.48 0) (at 219.71 157.48 0)
@ -4367,6 +4708,77 @@
) )
) )
) )
(symbol
(lib_id "Connector:Conn_01x03_Pin")
(at 105.41 152.4 90)
(unit 1)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(dnp no)
(fields_autoplaced yes)
(uuid "8e87be0e-7475-4764-86d9-28193eaa2670")
(property "Reference" "J9"
(at 105.41 154.94 90)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Value" "analog moisture sensor"
(at 105.41 157.48 90)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Footprint" "Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical"
(at 105.41 152.4 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "~"
(at 105.41 152.4 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "Generic connector, single row, 01x03, script generated"
(at 105.41 152.4 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(pin "1"
(uuid "526b5a39-9c72-46d1-a218-2d7e70678b14")
)
(pin "3"
(uuid "742a1ade-410d-422f-8234-9b4d9e604c9c")
)
(pin "2"
(uuid "05e210fb-6851-4453-b5bc-a62ba39b56bf")
)
(instances
(project "CanGrow"
(path "/42428fce-ab8c-4a80-af19-dee4f0070d36"
(reference "J9")
(unit 1)
)
)
)
)
(symbol (symbol
(lib_id "Transistor_FET:BUZ11") (lib_id "Transistor_FET:BUZ11")
(at 217.17 152.4 0) (at 217.17 152.4 0)
@ -4648,6 +5060,92 @@
) )
) )
) )
(symbol
(lib_id "Device:D")
(at 100.33 128.27 180)
(unit 1)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(dnp no)
(fields_autoplaced yes)
(uuid "989421c9-ff1f-4ea0-ba31-3d0065021ff3")
(property "Reference" "D1"
(at 100.33 121.92 0)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Value" "D"
(at 100.33 124.46 0)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Footprint" "Diode_THT:D_DO-15_P12.70mm_Horizontal"
(at 100.33 128.27 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "~"
(at 100.33 128.27 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "Diode"
(at 100.33 128.27 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Sim.Device" "D"
(at 100.33 128.27 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Sim.Pins" "1=K 2=A"
(at 100.33 128.27 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(pin "1"
(uuid "a1f150c1-df80-4c25-8ac3-ab78d16347d1")
)
(pin "2"
(uuid "f6ba0af8-2425-4594-a862-159360536548")
)
(instances
(project "CanGrow"
(path "/42428fce-ab8c-4a80-af19-dee4f0070d36"
(reference "D1")
(unit 1)
)
)
)
)
(symbol (symbol
(lib_id "I2C_Connector:I2C_Conn_01x04_Pin") (lib_id "I2C_Connector:I2C_Conn_01x04_Pin")
(at 201.93 63.5 0) (at 201.93 63.5 0)
@ -5065,6 +5563,94 @@
) )
) )
) )
(symbol
(lib_id "Device:D")
(at 107.95 143.51 270)
(unit 1)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(dnp no)
(fields_autoplaced yes)
(uuid "bcc49de9-25fe-4d07-ac16-da2af4bb20ac")
(property "Reference" "D2"
(at 110.49 142.2399 90)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
)
(property "Value" "D"
(at 110.49 144.7799 90)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
)
(property "Footprint" "Diode_THT:D_DO-15_P12.70mm_Horizontal"
(at 107.95 143.51 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "~"
(at 107.95 143.51 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "Diode"
(at 107.95 143.51 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Sim.Device" "D"
(at 107.95 143.51 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Sim.Pins" "1=K 2=A"
(at 107.95 143.51 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(pin "2"
(uuid "ad743c0a-55eb-4ebd-9c4d-2682f52426ce")
)
(pin "1"
(uuid "44f9f896-76e9-433c-b902-250ffcdc07db")
)
(instances
(project "CanGrow"
(path "/42428fce-ab8c-4a80-af19-dee4f0070d36"
(reference "D2")
(unit 1)
)
)
)
)
(symbol (symbol
(lib_id "I2C_Connector:I2C_Conn_01x04_Pin") (lib_id "I2C_Connector:I2C_Conn_01x04_Pin")
(at 201.93 50.8 0) (at 201.93 50.8 0)

View file

@ -38,6 +38,8 @@ I want to automate as much as possible which makes sense and is easy to build.
- Start of Grow - Start of Grow
- day of grow - day of grow
- grow profile - grow profile
- watering amount per week
- light cycle
- wifi settings - wifi settings
- settings in general - settings in general
- Easy to build and use for beginners (i hope so!) :red_circle: - Easy to build and use for beginners (i hope so!) :red_circle: