Delivery throughout Europe

Ordered before 16:00 = Shipped today

Fast delivery with DHL

XNUMX days return *


Country

In this project you will learn how to make an Arduino alarm yourself
This is a nice project for your room, you can put it almost anywhere and it is easy to adapt to the environment by the simple code. You will also learn to work with the HC-SR04.
In this project we use the HC-SR04 ultrasonic sensor a buzzer and 3 different color LEDs. With the ultrasonic sensor we measure the distance of an object or person. If this person comes too close, an alarm will go off and a red LED will light up.

  • Level - Basic 10% 10%
  • Duration - 5/10 Min 10% 10%
  • Costs - € 26.40 euros complete 20% 20%

Step 1: Supplies Arduino Blink

  • Arduino Uno
  • USB cable

Step 2: Programming Arduino blink

 

Download the latest Arduino IDE on your computer / laptop.
Once installed, close the Arduino Uno to the computer via the USB cable.

Open the Arduino IDE, select Tools –> Board –> Arduino / Genuino Uno.
Then select the correct COM port.

Now your Arduino is ready to receive a code.

Select File -> Examples -> 01.Basics–> Blink

You should now see the following code:

// the setup function runs once when you press reset or power the board
void setup () {
// initialize digital pin LED_BUILTIN as an output.
pinMode (LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop () {
digitalWrite (LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay (1000); // wait for a second
digitalWrite (LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay (1000); // wait for a second
}

Now click on verify at the top left and wait for the software to finish compiling.
If it says Compile complete, you can upload the code by clicking Upload at the top left.

Once the code has been uploaded, the LED at Pin 13 will start to flash.

Your first project is now successfully completed!

Are you happy with the result?

Have you completed this project to your satisfaction and would you like to learn more about programming?
Perhaps it is programming this online course what for you!

The rating of www.elektronicavoorjou.nl at WebwinkelKeur Reviews is 9.3/10 based on 4991 reviews.