Coding Arduino With MBlock
Coding Arduino With MBlock
Arduino is a programmable
development board based on
microcontroller. With Arduino, you
can make your own robots as well as
create your own electronic circuits.
Usb Input
Analog Pins
With the Mblock program, you can use cards other than the Arduino Uno model.
Arduino Nano
For projects where size is important, you can choose the Nano model,
which is smaller than Arduino Uno. In addition, there are 8 analog inputs
on the Nano.
ARDUINO MEGA
If the number of pins on the Arduino Uno is not enough, you can use the larger
Mega model.
CONNECTING ARDUINO TO COMPUTER
Arduino Uno
Menus
Wait 1 second
Wait 1 second
Electrons move from the (+) end of the battery to the (-) end.
As a result of this movement, a voltage is formed, we will call
this voltage Voltage and denote it with V. The movement of
electrons from the (+) end to the (-) end will be called current
and denoted by I. Current (I) and voltage (V) are two of the
fundamental components of a circuit. The third essential
component is resistance. Resistance is the difficulty that some
materials show against the flow of electrons, that is, current.
Resistance
ELECTRONIC CIRCUIT ELEMENTS
10
10
Necessary Materials
The color of the 220
Arduino Uno Ohm resistor is red, red,
brown. The color of the
Breadbord
330 Ohm resistor is
Led
220 Ohm or 330 orange, orange, brown.
Ohm Resistor
WALKING LIGTHS
Necessary Materials
1 Arduino Uno
1 Breadbord
3 Leds
1 Breadbord
1 Potentiometer
1 Led
The codes above transfer the value from analog 0 to digital pin 9 that we
have connected to the LED. A value between 0 and 1024 is sent from the
potentiometer. By dividing the obtained value by 4, we will obtain a value
between 0-255 which are the range of the value of light.
SENSORS
People use their sense organs to perceive the world around them
and what is happening around them.
BUZZER
Necessary Materials
1 Arduino Uno
1 Breadbord
1 Buzzer
1 Ultrasonic Sensor
SOIL MOISTURE SENSOR
We use the soil moisture sensor to measure the amount of water in the soil.
The tip of the sensor will be stuck in the ground. The control circuit, which we
connect to the end part via two cables, evaluates the values received from the
end part and sends them to the Arduino board.
Connect the GND pin to the GND pin on the Arduino board, the VCC pin to the
VCC pin, and the A0 pin to the A0 pin.
If the humidity in the soil is high, a value close to 500 is read. The lower the
humidity, the higher the reading. A maximum of 1023 is read.
According to the value read from the sensor, when the humidity is
good, the RGB Led will turn green, when it is medium, the RGB Led
will turn blue, and when the humidity is bad, the RGB Led will turn
red and the buzzer will make sound.
Necessary Materials
1 Arduino Uno
1 Breadbord
1 Buzzer
1 RGB Led