Testing electronic modules

Learn how to use electronic sensors and actuators to make your robot move and react

Parts list:

– LOFI BRAIN Arduino-compatible controller with SENSORS TESTING script flashed in
– Sensros: potentiometer, light sensor, button, distance sensor HC-SR04
– Actuators: LED, DC motor

Upload Sensor testing script to LOFI Brain`s Arduino.

Test no. 1 – Light sensor + LED

LIGHT SENSOR (PHOTORESISTOR) connected to INPUT1
LED connectet to OUTPUT1

photoresistor and led

How it works:
Depending on the ammount of light detected by the light sensor the LED shines with a corresponding brightness. If you cover the light sensor with your hand the LED will turn off (almost) completely.

Test no. 2 – Button + LED

BUTTON connected to INPUT2
LED connected toOUTPUT2

przycisk dioda led

INPUT2 is programatically connected with OUTPUT2 but the signal from INPUT one is reversed – maximum value on INPUT2 gives ZERO value on OUTPUT2.

Test no. 3 – Distance sensor HC-SR04 + buzzer

DISTANCE SENSOR plugged into it`s LOFI Brain socket.
distance sensor

Buzzer gives pulsing squeacky sounds with tempo corresponding to the distance measured by HC-SR04 distance sensor.

Test no. 4 – Potentiometer + voltage meter + DC motor

POTENTIOMETER connected to INPUT4
VOLTAGE METER connected to OUTPUT4
DC MOTOR connected to M2
potentiometer dc motor voltage meter

Value measured by INPUT1 is directed to M1 mototr controller output and OUTPUT4

Podobne wpisy