TXT
Smart Home
ROBOTICS
17
Robotics Sensor Station IoT
Project 1
As soon as it becomes dark, the lights should turn on. It will be
necessary for you to find the
threshold value
experimentally.
Start the program with the “Green walk light”. First you need a program
command to “Branch analog”
ROBO Pro Help 8.1.4
which checks the
resistance of the photo resistor. Drag this to the work screen and drop it
below the “Green walk light”.
Information on “drag and drop” and “docking” is given in
ROBO Pro Help
3.3 and 3.4
.
You will find that this command has 2 outputs. Y for Yes
and N for No You can ask a simple question here.
If the value at input I1 is “> greater than 0“ then branch
to Y, otherwise to N. Since your program continually
checks the
resistance value
of the photo resistor, the N
output is connected to the input.
First it will be necessary for you to set the type of sensor
connected for the branching operation. For this purpose
click on the command with the “right mouse button”. The context menu
for the branching operation appears. Use the mouse to click on the
“Down Arrow” button for “NTC resistor”. Another context menu appears,
in which you can select “Photo resistor”
Then insert the program command “Motor output”
ROBO Pro Help 8.1.6
in to your program. Since you
want all of the lamps to come on, it will be necessary for
you to insert this command 3 times.
Here it is also necessary for you to make a few changes.
Click on the command with the right mouse button. A
context menu opens for setting various parameters.
It is necessary to switch over from “Motor” to “Lamp”.
In the action field click on the circle in front of “On”.
This causes the light to switch on when the previous
condition is met (Y). It is also necessary for you to specify the lamp
connections, M1 – M3.
Analog Branch
Motor Output