facebook.png

ETC

ftcommunity.png

© Želimir Bistrović 2019

PROGRAMMING SCHOOL

Arduino Uno-F5 / T5 (F/T)

CAR + ULTRASONIC SENSOR

VJ: 031

Uno_spoj_31.jpgUno_031.jpg
DESCRIPTION:
Car avoiding obsticles with support of ultrasonic sensor. Turn left or right decides with RANDOM function. Motors are controled with PWM ( analogwrite()) control. Right motor ( look from back side ) is connected to outputs 10 and 11. Left motor on outputs 6 an 9. Red light is connected to output 3 and green on output 5. Ultrasonic sensor is connected to 5V supply. Signal wire are connected to input 0 (black) and input 1 (blue). On Uno-F5 signal wire are connected to input 2 (black) and input 7 (blue). If you use Uno-F5, then do not forget to change this input numbers in program.
DOWNLOAD:Uno_prog_31.zip

BARRIER: Photo sensor + Micro Switch

VJ: 030

Uno_spoj_30.jpgUno_030.jpg
DESCRIPTION:
Barrier open when light source is cut. After two seconds, barrier start to close. DC motor is connected to outputs 3 and 5. Sensor light is connected to output 9. Photo sensor is connected to input A5. Micro switch ,under the motor, is connected to input A0 and Micro swithc under barrier on input A2.
DOWNLOAD:Uno_prog_30.zip

COMMUNICATION - NRF24L01

VJ: 025

Uno_spoj_25.jpgUno_025.jpg
DESCRIPTION:
Two Arduino UNO moduls with NRF24L01 modul. Sending and reciving data. Program samples are for two LEDs (red and green) and two switches. If you use Uno-F5, not forget to change numbers of INPUTs on which are switches connected (SEND program).
DOWNLOAD:Uno_prog_25.zip

ENCODER MOTOR - HALF STEP - BETTER PRECISION

VJ: 024

Uno_spoj_24.jpgUno_024.jpg
DESCRIPTION:
We count the state changes (values 1 and 0). This method is better accurate than the previous one (STEP). The number of impulses we will count depends on the program itself. If the program only controls the engine, or still performs other operations. In the second case, especially at higher engine speed, the program will not be able to read all pulses.
DOWNLOAD:Uno_prog_24.zip

ENCODER MOTOR - STEP - LESS PRECISE

VJ: 023

Uno_spoj_23.jpgUno_023.jpg
DESCRIPTION:
We only count impulses (value 1). So we need to put a little pause to prevent multiple sensor readings. This method is less precise. The number of impulses we will count depends on the program itself. If the program only controls the engine, or still performs other operations. In the second case, especially at higher engine speed, the program will not be able to read all pulses.
DOWNLOAD:Uno_prog_23.zip

ULTRASOUND SENSOR (ANALOGUE)

VJ: 019

Uno_spoj_19.jpgUno_019.jpg
DESCRIPTION:
Using the ultrasonic sensor, we can measure the distance to the object in front of the sensor. Depending on the sensor, larger or smaller maximum distances can be read. The LED illuminates less when the distance from the sensor to the subject is smaller and vice versa.
DOWNLOAD:Uno_prog_19.zip

ULTRASOUND SENSOR (DIGITAL)

VJ: 018

Uno_spoj_18.jpgUno_018.jpg
DESCRIPTION:
With the help of an ultrasonic sensor we can detect an object when it is at a distance less than the one set in the program (the LED lights up). If the object is at a greater distance, the program will not register it.
DOWNLOAD:Uno_prog_18.zip

COLOR SENSOR - BLACK LINE

VJ: 017

Uno_spoj_17.jpgUno_017.jpg
DESCRIPTION:
The readings for white and black are usually different enough, so that with the help of two color sensors we can make robot car that follows the black line.
DOWNLOAD:Uno_prog_17.zip

COLOR SENSOR - COLORS

VJ: 016

Uno_spoj_16.jpgUno_016.jpg
DESCRIPTION:
The color sensor reads colors as values (analog). According to the apparent color value, a certain color of the LED lights up. The readings are VERY dependent on the conditions (illumination) and may vary even though the color patterns are the same
DOWNLOAD:Uno_prog_16.zip

MAGNETIC SENSOR (DIGITAL)

VJ: 015

Uno_spoj_15.jpgUno_015.jpg
DESCRIPTION:
A magnetic sensor detects a magnetic field. By approaching the sensor to a magnetic field (permanent or electromagnet), the LED lights up.
DOWNLOAD:Uno_prog_15.zip

HEAT SENSOR (ANALOGUE)

VJ: 013

Uno_spoj_13.jpgUno_013.jpg
DESCRIPTION:
By heating the thermal sensor to a certain temperature, the LED lights up. We heat the thermal sensor with light bulb.
DOWNLOAD:Uno_prog_13.zip

IR SENSOR (ANALOGUE)

VJ: 012

Uno_spoj_12.jpgUno_012.jpg
DESCRIPTION:
By analogous reading of the IR sensor, a white surface can be detected at a distance of several centimeters.
DOWNLOAD:Uno_prog_12.zip

IR SENSOR (DIGITAL)

VJ: 011

Uno_spoj_11.jpgUno_011.jpg
DESCRIPTION:
Depending on the IR sensor readout, the LEDs light up. The white surface gives the reading 1 and the black (line) 0.
DOWNLOAD:Uno_prog_11.zip

DC MOTOR - SPEED CONTROL (ANALOGUE)

VJ: 010

Uno_spoj_10.jpgUno_010.jpg
DESCRIPTION:
Program, changes the rotation speed of the DC motor. Lower rotation speed, usually means lower engine power.
DOWNLOAD:Uno_prog_10.zip

DC MOTOR - TWO WAYS ROTATION (DIGITAL)

VJ: 009

Uno_spoj_09.jpgUno_009.jpg
DESCRIPTION:
Pressing the switch A and B, alternates the direction of rotation of the DC motor (both directions).
DOWNLOAD:Uno_prog_09.zip

DC MOTOR - ONE WAY ROTATION (DIGITAL)

VJ: 008

Uno_spoj_08.jpgUno_008.jpg
DESCRIPTION:
By pressing switch, the DC motor starts to rotate in one direction.
DOWNLOAD:Uno_prog_08.zip

DC MOTOR (DIGITAL)

VJ: 007

Uno_spoj_07.jpgUno_007.jpg
DESCRIPTION:
The DC motor starts rotating in one direction for 100 ms. It stops for 2 seconds and then repeats the action.
DOWNLOAD:Uno_prog_07.zip

PHOTO SENSOR - LED LIGHT (ANALOGUE)

VJ: 006

Uno_spoj_06.jpgUno_006.jpg
DESCRIPTION:
The LEDs light up depending on the value read by the PHOTO sensor.
DOWNLOAD:Uno_prog_06.zip

PHOTO SENSOR - LED LIGHT (DIGITAL)

VJ: 005

Uno_spoj_05.jpgUno_005.jpg
DESCRIPTION:
The LEDs light up when the PHOTO sensor is sufficiently illuminated.
DOWNLOAD:Uno_prog_05.zip

LED LIGHT - MICRO SWITHCH (ANALOGUE)

VJ: 004

Uno_spoj_04.jpgUno_004.jpg
DESCRIPTION:
By pressing the button, the bright LEDs light up.
DOWNLOAD:Uno_prog_04.zip

LED LIGHT (ANALOGUE)

VJ: 003

Uno_spoj_03.jpgUno_003.jpg
DESCRIPTION:
The program slowly increases the brightness of the LED.
DOWNLOAD:Uno_prog_03.zip

LED LIGHT - MICRO SWITCH (DIGITAL)

VJ: 002

Uno_spoj_02.jpgUno_002.jpg
DESCRIPTION:
Pressing the switch, the LED lights up.
DOWNLOAD:Uno_prog_02.zip

LED LIGHT (DIGITALY)

VJ: 001

Uno_spoj_01.jpgUno_001.jpg
DESCRIPTION:
The LED lights up and goes out at half-second intervals.
DOWNLOAD:Uno_prog_01.zip