Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
RGB
A rectifier that will emit
different colors by
compounding the three
basic colors red, green,
and blue
COMPONENTS OF THE SYSTEM
ULTRASONIC (HC-SR04)
It emits an ultrasound at
40 000 Hz which travels
through the air and if there
is an object or obstacle on
its path It will bounce back
to the module
COMPONENTS OF THE SYSTEM
PIEZO BUZZER
produces sound based on
reverse of the piezoelectric
effect
can be used alert a user of
an event corresponding to
a switching action, counter
signal or sensor input
COMPONENTS OF THE SYSTEM
I2C LCD
Used to display texts
and numbers
Circuit Connection
RGB
Circuit Connection
LCD
Circuit Connection
Buzzer
Circuit Connection
Ultrasonic Sensor
OVERALL SCHEMATIC CIRCUIT
CODING
Language Reference
analogWrite()
Writes an analog value to a pin
Long
extended size variables for number storage
Language Reference
#define
allows the programmer to give a name to a
constant value before the program is compiled
Language Reference
delay()
Pauses the program for the amount of time (in
miliseconds)
Serial.begin()
Sets the data rate in bits per second (baud) for serial data
transmission
Language Reference
Serial.print()
Prints data to the serial port as human-readable
ASCII text
Libraries
Pre set codes from the Libraries to be use:
NewPing : LiquidCrystal_I2c:
NewPing label(TRIGGER PIN, ECHOPIN, lcd.init(); to run the LCD
MAX DISTANCE);to define the input and lcd.backlight(); to turn on the backlight of
output pin .also indicate the label of the the LCD
new ping lcd.print(); to print in the LCD