This is my setup process experience, being unexperienced user on Windows platform, below I will explain the steps I took, to help other users, to have some
- Your computer, based on Linux or Windows (I was using Windows in this case)
- DS18B20 Sensor
The very first thing to start with is to connect your sensor to a V2 Smart Controller. But even earlier you have to make sure your controller is off power to avoid any problem.
Connecting sensors is easy. I got my sensor with bare wires and then soldered it to normal Prototype Boards pins that I used to connect to V2 Controller. Wiring scheme is following: black wire goes to GND (ground) red wire is a +5V and the yellow one stands for data, and connected to the dedicated pin (which means that this pin is preconfigured for that exact sensor and should be used for DS18B20 only). Please see the picture for reference:
You can also notice there red resistors cover, these are switches for parasitic 4,7 ohm resistors that we have to use for one wire connections, just make sure that the one standing for pin 26 is on (same position with my picture).
After wiring you should turn on the controller and access it through web manager http://api.kijanigrows.com/app. You should open Map Device Sensors page and map the sensor to get it working.
When you open Map Device Sensors section you will see a table with two columns,
where first one stands for the sensor pin where you should choose the “nutrientTemp”. And the second one is the sensor type, and in this case you need to choose ”temperature_sensor”. When both are set up correctly just press the button Add Sensor Mapping. Which will add the mapping into system, allowing you to monitor your sensor.
When it’s done you can open “Device Sensors” page and see the sensors readings in real time (last picture).
If needed to add multiple DS18B20, just wire it in parallel (I used protoboard) to the same pins. And do the same process with adding, but, now the variables on “Map Device Sensors” page will be different: “temperature” and “temperature2” for the Sensor column.
Now you can check Device Sensors section and see there your sensors.
Please also pay attention to the Switch on the V2 Smart Controller pcb, right above the USD port (marked blue on the picture). It must be in a correct position, turned to the side of AR9331, not Arduino, other ways, you controller will not be updating any data to the web, and you won’t finish your installation.
There is one more thing that helps me to add sensors is this tool: http://api.kijanigrows.com/v2/device/get/KK2
On this page you can see your controller information. When done wiring my sensors, I turn on controller and check this page first. Since, it might be not done booting, when you try to map your sensors, to avoid that I monitor
This line, which is showing uptime of the controller, if it’s not changing, than your controller is still booting.
What’s more you can also see your sensors on this page. For example, if you open the page with Dallas Temperature sensor connected, you will see this line:
Which is showing your sensor reading. Same goes for any other sensor that has been connected to the V2 Smart Controller.