{
  "Config": {
    "Build": {
      "Board": "arduino:avr:uno"
    }
  },
  "Units": [
    {
      "Name": "__OpenWireRootUnit__",
      "Selection": [
        "Compare1"
      ],
      "Links": [
        {
          "Routed": true,
          "Begin": {
            "ID": "DualMotorDriver1.Motors._Item0.DirectionOutputPin",
            "Y": 752,
            "X": 1136
          },
          "Name": "TOWELink1",
          "End": {
            "ID": "Arduino.Digital._Item4.DigitalInputPin",
            "Y": 624,
            "X": 1280
          },
          "Points": [
            {
              "Y": 752,
              "X": 1216
            },
            {
              "Y": 624,
              "X": 1216
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "DualMotorDriver1.Motors._Item0.SpeedOutputPin",
            "Y": 768,
            "X": 1136
          },
          "Name": "TOWELink2",
          "End": {
            "ID": "Arduino.Digital._Item3.AnalogInputPin",
            "Y": 592,
            "X": 1280
          },
          "Points": [
            {
              "Y": 768,
              "X": 1232
            },
            {
              "Y": 592,
              "X": 1232
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "SpeedAndDirectionToSpeed1.OutputPin",
            "Y": 752,
            "X": 928
          },
          "Name": "TOWELink3",
          "End": {
            "ID": "DualMotorDriver1.Motors._Item0.InputPin",
            "Y": 752,
            "X": 1008
          }
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "AnalogValue1.OutputPin",
            "Y": 704,
            "X": 592
          },
          "Name": "TOWELink4",
          "End": {
            "ID": "SpeedAndDirectionToSpeed1.SpeedInputPin",
            "Y": 752,
            "X": 736
          },
          "Points": [
            {
              "Y": 704,
              "X": 624
            },
            {
              "Y": 752,
              "X": 624
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "Compare1.OutputPin",
            "Y": 768,
            "X": 560
          },
          "Name": "TOWELink5",
          "End": {
            "ID": "SpeedAndDirectionToSpeed1.ReverseInputPin",
            "Y": 768,
            "X": 736
          }
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "HumidityThermometer1.TemperatureOutputPin",
            "Y": 768,
            "X": 416
          },
          "Name": "TOWELink6",
          "End": {
            "ID": "Compare1.InputPin",
            "Y": 768,
            "X": 464
          }
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "HumidityThermometer1.SensorOutputPin",
            "Y": 800,
            "X": 416
          },
          "Name": "TOWELink7",
          "End": {
            "ID": "Arduino.Digital._Item2.DigitalInputPin",
            "Y": 544,
            "X": 1280
          },
          "Points": [
            {
              "Y": 800,
              "X": 432
            },
            {
              "Y": 928,
              "X": 432
            },
            {
              "Y": 928,
              "X": 1200
            },
            {
              "Y": 608,
              "X": 1200
            },
            {
              "Y": 608,
              "X": 1216
            },
            {
              "Y": 544,
              "X": 1216
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "Compare1.OutputPin",
            "Y": 768,
            "X": 560
          },
          "Name": "TOWELink11",
          "End": {
            "ID": "DetectEdge1.InputPin",
            "Y": 576,
            "X": 656
          },
          "Points": [
            {
              "Y": 768,
              "X": 640
            },
            {
              "Y": 576,
              "X": 640
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "DetectEdge1.OutputPin",
            "Y": 576,
            "X": 752
          },
          "Name": "TOWELink12",
          "End": {
            "ID": "TextValue1.Elements._Item0.InputPin",
            "Y": 576,
            "X": 800
          }
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "TextValue1.OutputPin",
            "Y": 544,
            "X": 928
          },
          "Name": "TOWELink8",
          "End": {
            "ID": "LiquidCrystalDisplay2.Elements._Item2.InputPin",
            "Y": 480,
            "X": 1040
          },
          "Points": [
            {
              "Y": 544,
              "X": 976
            },
            {
              "Y": 480,
              "X": 976
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "LiquidCrystalDisplay2.OutputPin",
            "Y": 336,
            "X": 1200
          },
          "Name": "TOWELink10",
          "End": {
            "ID": "Arduino.I2CChannels._Item0.InputPin",
            "Y": 400,
            "X": 1280
          },
          "Points": [
            {
              "Y": 336,
              "X": 1232
            },
            {
              "Y": 400,
              "X": 1232
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "HumidityThermometer1.TemperatureOutputPin",
            "Y": 768,
            "X": 416
          },
          "Name": "TOWELink13",
          "End": {
            "ID": "LiquidCrystalDisplay2.Elements._Item1.InputPin",
            "Y": 432,
            "X": 1040
          },
          "Points": [
            {
              "Y": 768,
              "X": 448
            },
            {
              "Y": 432,
              "X": 448
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "Compare1.OutputPin",
            "Y": 768,
            "X": 560
          },
          "Name": "TOWELink9",
          "End": {
            "ID": "DetectEdge2.InputPin",
            "Y": 640,
            "X": 656
          },
          "Points": [
            {
              "Y": 768,
              "X": 640
            },
            {
              "Y": 640,
              "X": 640
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "DetectEdge2.OutputPin",
            "Y": 640,
            "X": 752
          },
          "Name": "TOWELink14",
          "End": {
            "ID": "TextValue1.Elements._Item1.InputPin",
            "Y": 608,
            "X": 800
          },
          "Points": [
            {
              "Y": 640,
              "X": 768
            },
            {
              "Y": 608,
              "X": 768
            }
          ]
        }
      ],
      "*": [
        {
          "Name": "Arduino",
          "Width": 208,
          "Instance": {
            "Digital": {
              "*": [
                {
                  "+": "TArduinoAdditionalDigitalSerial0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSerial0Channel"
                },
                {
                  "DigitalInputPin": {
                    "SourcePin": {
                      "ID": "__OpenWireRootUnit__.HumidityThermometer1.SensorOutputPin"
                    }
                  },
                  "+": "TArduinoAdditionalDigitalInterruptChannel"
                },
                {
                  "AnalogInputPin": {
                    "SourcePin": {
                      "ID": "__OpenWireRootUnit__.DualMotorDriver1.Motors._Item0.SpeedOutputPin",
                      "Name": "__OpenWireRootUnit__.DualMotorDriver1.Motors.Item[ 0 ].SpeedOutputPin"
                    }
                  },
                  "+": "TArduinoBasicDigitalPWMInterruptChannel"
                },
                {
                  "DigitalInputPin": {
                    "SourcePin": {
                      "ID": "__OpenWireRootUnit__.DualMotorDriver1.Motors._Item0.DirectionOutputPin",
                      "Name": "__OpenWireRootUnit__.DualMotorDriver1.Motors.Item[ 0 ].DirectionOutputPin"
                    }
                  },
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMSPI0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalI2C0Channel"
                }
              ]
            },
            "Modules": {
              "*": [
                {
                  "+": "TArduinoEEPROMModule"
                },
                {
                  "+": "TArduinoWatchdogTimerModule"
                },
                {
                  "+": "TArduinoProcessor328Module"
                },
                {
                  "+": "TArduino_AVR328_AnalogInput_Config"
                }
              ]
            },
            "Serial": {
              "*": [
                {
                  "+": "TArduinoBreakHardwareSerial0"
                }
              ]
            },
            "I2CChannels": {
              "*": [
                {
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.LiquidCrystalDisplay2.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoI2C"
                }
              ]
            },
            "SPIChannels": {
              "*": [
                {
                  "+": "TArduinoSPI"
                }
              ]
            },
            "BoardType": "Arduino Uno R3",
            "+": "TArduinoBoard"
          },
          "X": 1280,
          "Height": 1088,
          "Y": 256,
          "Type": "Component"
        },
        {
          "Name": "DualMotorDriver1",
          "Width": 128,
          "Instance": {
            "Motors": {
              "*": [
                {
                  "DirectionOutputPin": {
                    "SinkPins": [
                      {
                        "ID": "__OpenWireRootUnit__.Arduino.Digital._Item4.DigitalInputPin",
                        "Name": "__OpenWireRootUnit__.Arduino.Digital.Digital[ 4 ].DigitalInputPin"
                      }
                    ]
                  },
                  "SpeedOutputPin": {
                    "SinkPins": [
                      {
                        "ID": "__OpenWireRootUnit__.Arduino.Digital._Item3.AnalogInputPin",
                        "Name": "__OpenWireRootUnit__.Arduino.Digital.Digital[ 3 ].AnalogInputPin"
                      }
                    ]
                  },
                  "InputPin": {
                    "SourcePin": {
                      "ID": "__OpenWireRootUnit__.SpeedAndDirectionToSpeed1.OutputPin"
                    }
                  },
                  "+": "TArduinoL9110SDualMotorDriverChannel"
                },
                {
                  "+": "TArduinoL9110SDualMotorDriverChannel"
                }
              ]
            },
            "+": "TArduinoL9110SDualMotorDriver"
          },
          "X": 1008,
          "Height": 160,
          "Y": 688,
          "Type": "Component"
        },
        {
          "Name": "SpeedAndDirectionToSpeed1",
          "Width": 192,
          "Instance": {
            "SpeedInputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.AnalogValue1.OutputPin"
              }
            },
            "ReverseInputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.Compare1.OutputPin"
              }
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.DualMotorDriver1.Motors._Item0.InputPin",
                  "Name": "__OpenWireRootUnit__.DualMotorDriver1.Motors.Item[ 0 ].InputPin"
                }
              ]
            },
            "+": "TArduinoSpeedAndDirectionToSpeed"
          },
          "X": 736,
          "Height": 64,
          "Y": 720,
          "Type": "Component"
        },
        {
          "Name": "AnalogValue1",
          "Width": 128,
          "Instance": {
            "+": "TArduinoFloatValue",
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.SpeedAndDirectionToSpeed1.SpeedInputPin"
                }
              ]
            },
            "Value": 1
          },
          "X": 464,
          "Height": 48,
          "Y": 672,
          "Type": "Component"
        },
        {
          "Name": "Compare1",
          "Width": 96,
          "Instance": {
            "Value": 27,
            "CompareType": "ctSmallerOrEqual",
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.SpeedAndDirectionToSpeed1.ReverseInputPin"
                },
                {
                  "ID": "__OpenWireRootUnit__.DetectEdge1.InputPin"
                },
                {
                  "ID": "__OpenWireRootUnit__.DetectEdge2.InputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.HumidityThermometer1.TemperatureOutputPin"
              }
            },
            "+": "TArduinoCompareValue"
          },
          "X": 464,
          "Height": 48,
          "Y": 736,
          "Type": "Component"
        },
        {
          "Name": "HumidityThermometer1",
          "Width": 160,
          "Instance": {
            "TemperatureOutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Compare1.InputPin"
                },
                {
                  "ID": "__OpenWireRootUnit__.LiquidCrystalDisplay2.Elements._Item1.InputPin",
                  "Name": "__OpenWireRootUnit__.LiquidCrystalDisplay2.Elements.AnalogField1.InputPin"
                }
              ]
            },
            "SensorOutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Arduino.Digital._Item2.DigitalInputPin",
                  "Name": "__OpenWireRootUnit__.Arduino.Digital.Digital[ 2 ].DigitalInputPin"
                }
              ]
            },
            "+": "TArduinoDHTSensor"
          },
          "X": 256,
          "Height": 80,
          "Y": 736,
          "Type": "Component"
        },
        {
          "Name": "TextValue1",
          "Width": 128,
          "Instance": {
            "+": "TArduinoTextValue",
            "Elements": {
              "*": [
                {
                  "+": "TArduinoTextSetValueElement",
                  "Name": "Set Value1",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.DetectEdge1.OutputPin"
                      }
                    ]
                  },
                  "Value": "OPEN"
                },
                {
                  "+": "TArduinoTextSetValueElement",
                  "Name": "Set Value2",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.DetectEdge2.OutputPin"
                      }
                    ]
                  },
                  "Value": "CLOSED"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.LiquidCrystalDisplay2.Elements._Item2.InputPin",
                  "Name": "__OpenWireRootUnit__.LiquidCrystalDisplay2.Elements.TextField2.InputPin"
                }
              ]
            },
            "Value": ""
          },
          "X": 800,
          "Height": 144,
          "Y": 512,
          "Type": "Component"
        },
        {
          "Name": "DetectEdge1",
          "Width": 96,
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.TextValue1.Elements._Item0.InputPin",
                  "Name": "__OpenWireRootUnit__.TextValue1.Elements.Set Value1.InputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.Compare1.OutputPin"
              }
            },
            "Rising": false,
            "+": "TArduinoDetectEdge"
          },
          "X": 656,
          "Height": 48,
          "Y": 544,
          "Type": "Component"
        },
        {
          "Name": "LiquidCrystalDisplay2",
          "Width": 160,
          "Instance": {
            "Elements": {
              "*": [
                {
                  "InitialValue": "TEMP:",
                  "Name": "TextField1",
                  "Width": 5,
                  "+": "TArduinoLiquidCrystalElementTextField"
                },
                {
                  "Name": "AnalogField1",
                  "Column": 7,
                  "Width": 10,
                  "Precision": 0,
                  "InputPin": {
                    "SourcePin": {
                      "ID": "__OpenWireRootUnit__.HumidityThermometer1.TemperatureOutputPin"
                    }
                  },
                  "+": "TArduinoLiquidCrystalElementAnalogField"
                },
                {
                  "Row": 1,
                  "Name": "TextField2",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.TextValue1.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoLiquidCrystalElementTextField"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Arduino.I2CChannels._Item0.InputPin",
                  "Name": "__OpenWireRootUnit__.Arduino.I2CChannels.I2C.InputPin"
                }
              ]
            },
            "+": "TArduinoLiquidCrystalDisplayI2C"
          },
          "X": 1040,
          "Height": 288,
          "Y": 304,
          "Type": "Component"
        },
        {
          "Name": "DetectEdge2",
          "Width": 96,
          "Instance": {
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.Compare1.OutputPin"
              }
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.TextValue1.Elements._Item1.InputPin",
                  "Name": "__OpenWireRootUnit__.TextValue1.Elements.Set Value2.InputPin"
                }
              ]
            },
            "+": "TArduinoDetectEdge"
          },
          "X": 656,
          "Height": 48,
          "Y": 608,
          "Type": "Component"
        }
      ],
      "Type": "Diagram"
    }
  ],
  "Version": "2",
  "Content": "OpenWire Diagram",
  "Product": "Visuino Pro - Visual Arduino Programming"
}
