Connect the LAMP to OUT 1 (I1.A3). Connect the PHOTO Sensor (PHOTO diode or PHOTO RESISTOR, NOT LED transistor) to INPUT 1 (U1.A1). Adjust the value (<50) to your sensor:
By turning sensor in the direction of light (daylight or lighting) the LIGHT must be switched ON. When turned from the light, it should be OFF. The program should use the VARIABLE to display the output value of the sensor.
IR SENSOR FISCHERTECHNIK - LINE (3) - MOTOR CONTROL
Connect the motor to OUT 1 and 2 (I1.A3 (A3) and I2.A2 (A2)). Connect the IR sensor to the power supply to INPUTS 4 and 5 (U4.12 and u5.8). Connect the sensor power to OUTPUT 3 (I3.3).
When the left sensor finds the line, the WHEEL (motor) must start to rotate to one side, and when the right sensor finds the line, the WHEEL (motor) must start to rotate to the other side. When both sensors have found a line, the WHEEL (motor) needs to be stopped.
Connect the RED light to OUT 1 (I1.A3) and GREEN to OUT 2 (I2.A2). Connect the IR sensor to the power supply (OUTPUT 3 - I3.3) and to INPUT 4 (U4.12) and INPUT 5 (U5 .8).
When the left sensor detects the line, the RED indicator lights up, and when the right sensor finds the line GREEN lamp. When both sensors are in the array, the light bulbs fall and go off alternately.
Connect the RED lamp to OUT 1 (I1.A3), and GREEN to OUT 2 (I2.A2). Connect the PHOTO SENSOR to INPUT 1 (U1.A1).
When the photo sensor has a signal, the GREEN lamp should turn on for 0.2 seconds. If the photo sensor does not have a signal, the RED indicator light for 0.2 seconds should be on. Use ANALOGUE Input Sensor Values - INPUT 1.
Connect the RED light to OUT 1 and the GREEN to OUT 2. Connect MINI_SWITCH 1 to INPUT 3 and MINI_SWITCH 2 to INPUT 4. NOTE: INPUTS 1 and 2 are analog. The output signals are inverted, 0 is pressed, and 1 is not.
Pressing the MINI_SWITCH 1 button will light up the RED light, and pressing MINI_SWITCH 2 GREEN LED will light up. Repeat.