Posts

Showing posts from April, 2021

HOW TO USE HC-SR04 WITH ARDUINO

Image
Hello. In this article, you will find answers to your calls such as arduino hc-sr04 , arduino ultrasonic sensor , arduino hc-sr04 distance measuring , arduino hc-sr04 example code . In order for our ears to perceive any sound, that sound must have at least 20 (20 Hz) vibrations per second, and a maximum of 20,000 (20 Khz) vibrations. Ultrasonic sensors, on the other hand, produce sound waves higher than these values when the correct encoding is performed and they start to listen to the reflected waves. HC-SR04 ultrasonic distance sensor also operates at a frequency of 40Khz and the distances of objects between 2cm and 400cm can be measured when correct coding is achieved by creating accurate results from the data obtained from the sensor. HC-SR04 ultrasonic sensor has trigger, echo, VCC and GND pins. In order for the sensor to generate sound waves, it is necessary to trigger the trigger pin for 10us (microseconds). When the trigger pin is triggered sufficiently, our sensor generates 8 ...

HOW TO USE L298N MOTOR DRİVER

Image
In this article, you will find answers to your searches about dc motor control with arduino , use of l298n motor driver board with arduino  and arduino l298n motor speed control .  You can easily drive brushed dc motors with L298N motor driver board. With this circuit board, you can control two different dc motors at the same time completely independently of each other. Can deliver up to 2 amps of output current to motor channels. You should take care not to draw more current than this, otherwise you may cause malfunction of your motor driver card. Before controlling our dc motors with Arduino, let's take a look at the components on the L298N motor driver board and perform the circuit setup for our needs. On our board, there are two terminals required to connect our two-pin motors, and one three-pin power terminal. When we look at our power pins, we see that there is a 12V supply input, a GND pin and a 5V output so that we can give the necessary power to our card. This 5V outp...

SERVO MOTOR CONTROL WITH ARDUINO

Image
Hello. In this article, you will find answers to your searches such as servo motor control with arduino, arduino servo motor. ARDUINO SERVO MOTOR Servo motors are electronic components that we can move between 0 and 180 degrees. There are many different types according to the needs. It is evaluated according to the materials it is made of or how much load the servo motor can undergo. In this project, I will use SG90 Servo Motor, which is generally used in small jobs. You can use more powerful engines according to your needs. However, there are important points to be considered here. How many volts does the motor you use?, how many amps it draws under maximum load or idle? etc.Since these chapters will be a bit long and this is not our topic in this article, I am passing this section for now. If you do not have enough knowledge, do not try to control powerful motors or more than one motor with Arduino for now. You can break your Arduino board. Now let's see how to use SG90 Servo Mot...

Serial Communication Between Two Arduino Boards

Image
Hello everyone. In this article, you will find answers to your calls such as communication between two arduino's, and two arduino's serial communication example. You may want to communicate with two arduino. This may be due to a shortage of input/output pins. I will use two arduino uno models in this project. You can communicate between any two arduino models you want. Let's take a look at how to communicate step by step between two arduino's. Step 1: Required Components Arduino UNO Board x 2 Jumper Wires Step 2: Circuit Diagram Make a circuit as per the given diagram. Connect both the RX and TX pins of Arduino vice versa (first Arduino’s TX pin to another’s RX pin and first Arduino’s RX pin to another’s TX pin). Also, common the ground pin of both Arduino. Step 3: Let's Write the Codes Here we need to write two different codes for the receiver arduino and the sending arduino. Code For Sender Arduino First I made the character definition required to send the word ...