PROGRAMMING SCHOOL
RoboPRO programs for RoboBUBI interface
1. PHOTO SENSOR - ANALOGUE (2)8. TWO LIGHTS CONTROL WITH TWO MINI_SWITCH
2. FOTO SENSOR - ANALOGUE (1)9. LIGHT CONTROL WITH MINI-SWITCH
3. IR SENSOR FISCHERTECHNIK - LINE (3) - MOTOR CONTROL10. DC MOTOR CONTROL
4. IR SENSOR FISCHERTEHNIK - LINE (2)11. THREE LIGHTS CONTROL - TRAFFIC LIGHT
5. IR SENSOR FISCHERTEHNIK - LINE (1)12. TWO LIGHTS CONTROL
6. PHOTO SENSOR (TRANSISTOR) (2)13. TWO LIGHTS CONTROL
7. PHOTO SENSOR (TRANSISTOR) (1)14. LIGHT CONTROL

PHOTO SENSOR - ANALOGUE (2)
spajanje014_rp.jpgRoboPro014.jpg
WIRING:
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:
PROGRAM TASK:
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.

FOTO SENSOR - ANALOGUE (1)
spajanje013_rp.jpgRoboPro013.jpg
WIRING:
Connect the LAMP to OUT 1 (I1.A3). Connect the PHOTO Sensor (PHOTO LED or PHOTO RESISTOR, NOT LED transistor) to INPUT 1 (U1.A1). Adjust the value (<50) to your sensor:
PROGRAM TASK:
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.

IR SENSOR FISCHERTECHNIK - LINE (3) - MOTOR CONTROL
spajanje012_rp.jpgRoboPro012.jpg
WIRING:
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).
PROGRAM TASK:
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.

IR SENSOR FISCHERTEHNIK - LINE (2)
spajanje011_rp.jpgRoboPro011.jpg
WIRING:
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).
PROGRAM TASK:
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.

IR SENSOR FISCHERTEHNIK - LINE (1)
spajanje010_rp.jpgRoboPro010.jpg
WIRING:
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).
PROGRAM TASK:
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 line, the RED lamp lights up.

PHOTO SENSOR (TRANSISTOR) (2)
spajanje009_rp.jpgRoboPro009.jpg
WIRING:
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).
PROGRAM TASK:
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.

PHOTO SENSOR (TRANSISTOR) (1)
spajanje008_rp.jpgRoboPro008.jpg
WIRING:
Connect the RED lamp to OUT 1 (I1.A3) and GREEN to OUT 2 (I2.A2). Connect the PHOTO SENSOR to INPUT 3 (U3.4).
PROGRAM TASK:
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.

TWO LIGHTS CONTROL WITH TWO MINI_SWITCH
spajanje007_rp.jpgRoboPro007.jpg
WIRING:
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.
PROGRAM TASK:
Pressing the MINI_SWITCH 1 button will light up the RED light, and pressing MINI_SWITCH 2 GREEN LED will light up. Repeat.

LIGHT CONTROL WITH MINI-SWITCH
spajanje006_rp.jpgRoboPro006.jpg
WIRING:
Connect the light to the OUTPUT 1. Connect the MINI-SWITCH to INPUT 3 (U3.4). NOTE: INPUT 1 (U1.A1) and 2 (U2.A0) are analog. The output signals are inverted, 0 is pressed, and 1 is not.
PROGRAM TASK:
After the button on MINI-SWITCH is pressed, the lamp lights up for 1 second. Then turn it off. Repeat.

DC MOTOR CONTROL
spajanje005_rp.jpgRoboPro005.jpg
WIRING:
Connect the motor to the OUTPUT 1 (I1.A3) and OUTPUT 2 (I2.A2).
PROGRAM TASK:
The motor should run on one side 100 milliseconds. Stop the motor for 1 second. Run the motor to the other side for 100 milliseconds. Stop the motor for 1 second. Repeat.

THREE LIGHTS CONTROL - TRAFFIC LIGHT
spajanje004_rp.jpgRoboPro004.jpg
WIRING:
Connect the RED light to OUT 1 (I1.A3), and YELLOW to Output 2 (I2.A2) and GREEN to OUT 3 (I3.3).
PROGRAM TASK:
Turn on the RED light for 1 second. Turn off the RED and turn on the YELLOW lamp for 0.5 seconds. Shut YELLOW and turn on the GREEN lamp for 1 second. Repeat.

TWO LIGHTS CONTROL
spajanje003_rp.jpgRoboPro003.jpg
WIRING:
Connect the RED lamp to OUT 1 and GREEN to the output 2.
PROGRAM TASK:
Turn on the red and green lights for 0.5 seconds. Turn off the red and green light for 0.5 seconds. Repeat.

TWO LIGHTS CONTROL
spajanje002_rp.jpgRoboPro002.jpg
WIRING:
Connect the RED lamp to OUT 1 (I1.A3), and GREEN to output 2 (I2.A2).
PROGRAM TASK:
Turn on the red light for 0.5 seconds. Turn off the red light for 0.5 seconds. Turn on the green light for 0.5 seconds. Shut down the green light for 0.5 seconds. Repeat.

LIGHT CONTROL
spajanje001_rp.jpgRoboPro001.jpg
WIRING:
Connect the light to OUT 1 (I1.A3).
PROGRAM TASK:
Turn on the light for 0.5 seconds. Press the light for 0.5 seconds. Configure.