PROGRAMMING SCHOOL
RoboBUBI programs for RoboBUBI interface
1. IR SENSOR FISCHERTECHNIK - LINE (2)7. DC MOTOR CONTROL
2. IR SENSOR FISCHERTECHNIK - LINE (1)8. THRE LIGHTS CONTROL - TRAFFIC LIGHTS
3. PHOTO SENSOR (TRANSISTOR) - ANALOGUE (2)9. TWO LIGHTS CONTROL
4. PHOTO SENSOR (TRANSISTOR) - DIGITALY (1)10. TWO LIGHTS CONTROL
5. TWO LIGHTS CONTROL - TWO MINI-SWITCH11. LIGHT CONTROL
6. LIGHT CONTROL- MINI-SWITCH

IR SENSOR FISCHERTECHNIK - LINE (2)
spajanje011_rb.jpgRoboBubi011.jpg
WIRING:
Connect the motor to OUTPUT 1 and 2 (I1.A3 (A3) and I2.A2 (A2)). Connect the IR sensor to the INPUT 1 and 5 power supply (U1.A1 and U3.4). Connect the sensor power to OUTPUT 3 (I3.3).
PROGRAM TASK:
When the left sensor has a signal, the WHEEL (motor) must start to rotate to one side, and when the right sensor has a signal, the WHEEL (motor) must start to rotate to the other side. When both sensors have a signal, WHEEL (motor) must stop.

IR SENSOR FISCHERTECHNIK - LINE (1)
spajanje010_rb.jpgRoboBubi010.jpg
WIRING:
Connect the RED light to OUTPUT 1 (I1.A3) and GREEN to OUTPUT 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 has a signal, the RED indicator light should turn on, and when the right sensor has a GREEN LED signal mark. When both sensors are in the line, the RED lamp lights up.

PHOTO SENSOR (TRANSISTOR) - ANALOGUE (2)
spajanje009_rb.jpgRoboBubi009.jpg
WIRING:
Connect the RED lamp to OUTPUT 1 (I1.A3), and GREEN to OUTPUT 2 (I2.A2). Connect the PHOTOSENSOR 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) - DIGITALY (1)
spajanje008_rb.jpgRoboBubi008.jpg
WIRING:
Connect the RED lamp to OUTPUT 1 (I1.A3) and GREEN to OUTPUT 2 (I2.A2). Connect the PHOTOSENSOR 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 - TWO MINI-SWITCH
spajanje007_rb.jpgRoboBubi007.jpg
WIRING:
Connect the RED lamp to OUTPUT 1 and the GREEN lamp to the OUTPUT 2. Connect MINI-SWITCH 1 to INPUT 1, and MINI-SWITCH 2 to INPUT 2.
PROGRAM TASK:
Pressing the MINI-SWITCH 1 button will light up the RED light, and pressing MINI-SWITCH 2 button GREEN light will light up. Repeat.

LIGHT CONTROL- MINI-SWITCH
spajanje006_rb.jpgRoboBubi006.jpg
WIRING:
Connect the lamp to the OUTPUT 1. Connect the MINI-SWITCH to INPUT 1.
PROGRAM TASK:
After the button is pressed, the lamp lights up for 1 second. Then turn it off. Repeat.

DC MOTOR CONTROL
spajanje005_rb.jpgRoboBubi005.jpg
WIRING:
Connect the motor to OUTPUT 1 and OUTPUT 2 connector.
PROGRAM TASK:
The motor should run on one side 100 milliseconds. Stop the motor for 1 second. Run the emotor to the other side for 100 milliseconds. Stop the motor for 1 second. Repeat.

THRE LIGHTS CONTROL - TRAFFIC LIGHTS
spajanje004_rb.jpgRoboBubi004.jpg
WIRING:
Connect the RED lamp to OUTPUT 1 and YELLOW to OUTPUT 2 and GREEN to OUTPUT 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_rb.jpgRoboBubi003.jpg
WIRING:
Connect RED light bulb to OUTPUT 1, and GREEN to 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. repeated.

TWO LIGHTS CONTROL
spajanje002_rb.jpgRoboBubi002.jpg
WIRING:
Connect RED light bulb to OUTPUT 1, and GREEN to OUTPUT 2.
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. Turn off the green light for 0.5 seconds.

LIGHT CONTROL
spajanje001_rb.jpgRoboBubi001.jpg
WIRING:
Connect light bulb to output 1.
PROGRAM TASK:
Turn on the light for 0.5 seconds. Turn off the light for 0.5 seconds.