facebook.png

ETC

ftcommunity.png

© Želimir Bistrović 2019

PROGRAMMING SCHOOL

Arduino programs for RoboBUBI interface

IR SENSOR FISCHERTECHNIK - LINE (2)

VJ: 011

spajanje011_ar.jpgArduino011.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.
DOWNLOAD:Arduino011.zip

IR SENSOR FISCHERTECHNIK - LINE (1)

VJ: 010

spajanje010_ar.jpgArduino010.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.
DOWNLOAD:Arduino010.zip

PHOTO SENSOR (TRANSISTOR) - ANALOGUE (2)

VJ: 009

spajanje009_ar.jpgArduino009.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.
DOWNLOAD:Arduino009.zip

PHOTO SENSOR (TRANSISTOR) - DIGITALY (1)

VJ: 008

spajanje008_ar.jpgArduino008.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.
DOWNLOAD:Arduino008.zip

TWO LIGHTS CONTROL - TWO MINI-SWITCH

VJ: 007

spajanje007_ar.jpgArduino007.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.
DOWNLOAD:Arduino007.zip

LIGHT CONTROL- MINI-SWITCH

VJ: 006

spajanje006_ar.jpg 	Arduino006.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.
DOWNLOAD:Arduino006.zip

DC MOTOR CONTROL

VJ: 005

spajanje005_ar.jpgArduino005.jpg
WIRING:
Connect the motor to OUTPUT 1(A3) and OUTPUT 2 (A2)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.
DOWNLOAD:Arduino005.zip

THRE LIGHTS CONTROL - TRAFFIC LIGHTS

VJ: 004

spajanje004_ar.jpgArduino004.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.
DOWNLOAD:Arduino004.zip

TWO LIGHTS CONTROL

VJ: 003

spajanje003_ar.jpgArduino003.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.
DOWNLOAD:Arduino003.zip

TWO LIGHTS CONTROL

VJ: 002

spajanje002_ar.jpgArduino002.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.
DOWNLOAD:Arduino002.zip

LIGHT CONTROL

VJ: 001

spajanje001_ar.jpgArduino001.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.
DOWNLOAD:Arduino001.zip