Showing posts with label beginner. Show all posts
Showing posts with label beginner. Show all posts

Friday, July 08, 2016

Electronic Piano Keyboard With Preset Songs


This is an electronic keyboard with 7 piano keys, programmed to Middle B / A / G / F / E / D / C, and an 8th button used to access a menu of preset songs. 



See how it work:



Step 1: What You Need?

8 x Buttons
1 x 560 Ohm Resistor
1 x Buzzer
1 x Computer with Arduino software installed
Don't have components? Don't worry. Just click the component's name. 

Step 2: Build Your Circuit.

Schematics

Circuit Diagram

Step 3: Upload Code To Board.


(NOTE: Please let me know if you face problem.)


Download: 

Arduino software
Schematic
Circuit Diagram



Sources:[https://create.arduino.cc/projecthub/lindsi8784/electronic-piano-keyboard-with-preset-songs-74ee7c?ref=platform&ref_id=424_trending___&offset=26]

Arduino Arduino UNO R3 beginner button buzzer easy LCD LED Piano project simple

Sunday, July 03, 2016

Food Detector



This project is super simple. The Food Detector detects the food by measuring the resistances. Watch the video below: 



Step 1: What You Need?

1 x Arduino UNO R3 or anything that has a computer brain 
2 x Metal Rods (You can make it from paper clips)
1 x Computer with Arduino installed

Don't have components? Don't worry. Just click the component's name. 

Step 2: Built Your Circuit.


- Connect the A0 of Arduino UNO R3 and resistor with wire. 
- Connect the Probe (metal rod) to another 'leg' of resistor. 
- Connect the +5V and Probe.  
-  Place an insulator so that you can hold the probles. 

Step 3: Upload Program Code to Arduino Board

Different foods have different resistances. You can use Food Detector to detect your favorite food by just put it into IF and ELSE loop. 

So here is the breakdown for you: 
  • Check resistance range of different foods using Serial Output.
  • Use those resistances to make create a range. 
  • Serial Output the food name. 

The code below will cut down your time, but do it yourself, so you can learn !!

Remember setting the 'Type of Board' and 'Port' used before upload. 
NOTE: The Resistances below are not gonna be similar to the fruits I used, so use your own. 

Download: 


Sources: [https://create.arduino.cc/projecthub/crispylol/food-detector-6178cc?ref=platform&ref_id=424_trending__beginner_&offset=1]
Arduino Arduino UNO R3 Basic beginner easy Food Detector LCD project

Friday, July 01, 2016

Servo Motors and Arduino


Motors are an incredibly important and common component in most projects. There are several different kinds of motors available for you to use, everything from DC motors that simply spin when a voltage is applied to stepper motors that can turn an exact number of spins. 

The main reason I'm not starting with a DC motor or stepper motor is because DC motors typically need a large voltage and current, more than the Arduino board can supply. Stepper motors use a complicated control method that usually requires extra boards and code to control accurately. 


Let's get started.

Step 1: What You Need

1 x Arduino Board (Arduino UNO R3) (can be any kind of Arduino board)
1 x Servo Motor (for this I use Tower Pro 9g SG90)
1 x Computer with Arduino installed 

Don't have components? Don't worry. Just click the component's name. 

Step 2: Build Your Circuit 

Connect the RED lead from the servo motor to the +5V pin on the Arduino board. Connect the BROWN lead from the servo motor to the 'GND' ground pin on the Arduino board. Connect the YELLOW lead from the servo motor to pin 9 on the Arduino board. 



Step 3: Upload The Code To Arduino 


Download: 

Arduino software


Sources:[http://www.simplesmartdesign.com/arduino-projects-9/]
Arduino Arduino UNO R3 Basic beginner servo motor simple

Detecting Obstacles and Warning with Arduino and HC-SR04 Ultrasonic Sensor


This is tutorial to help you understand ultrasonic and buzzer and go deeper into learning Arduino, follow these steps and give me feedback please. It is an easy to make fun project that you can build in 30 minutes or so. Lets get started !!


Step 1: What You Need

1 x Arduino UNO R3
1 x HC-SR04 Ultrasonic Distance Sensor
1 x Buzzer
1 x Breadboard
1 x Arduino USB Cable
1 x Computer with Arduino 
Few Wires

Don't have components? Don't worry. Just click the component's name. 

Step 2: Connect Your Circuit 

Connect the Buzzer POSITIVE terminal to the Arduino pin 2 and the NEGATIVE terminal to the Gnd. Connect the VCC pin of ultrasonic to +5V pin of Arduino board and the Gnd to the ground. Connect trig pin to pin 10 and echo pin to pin 19. The schematic circuit diagram may help you.


Schematic Ciruit Diagram 


Step 3: Upload The Code To Your Arduino 


Download: 




Sources:[https://www.hackster.io/ammaratef45/detecting-obstacles-and-warning-arduino-and-ultrasonic-13e5ea?ref=platform&ref_id=424_trending___&offset=59]
Arduino Arduino UNO R3 Basic beginner buzzer HC sensor simple SR04 Ultrasonic Range Finder

Blink LED with Arduino


I'm going to show you how to make a simple blink LED with an Arduino with 1-second intervals,as shown below. 




Step 1: What You Need:



1 x Arduino Board (Arduino UNO R3) (it can be any kind, but for this I use the UNO board).
1 x LED (can be any color)
3 x Cables
1 x Computer with Arduino software installed
      Download here: Arduino IDE
1 x Breadboard
1 x USB cable 

Don't have components? Don't worry. Just click the component's name. 


Components requires - Photograph by Instructables

Step 2: Attaching the Power Cables and resistor to the Breadboard




Firstly, you will need to plug one end of a wire into the '5V' power output on the Arduino, and the other end into the Positive section of the breadboard. 
Connect the '5V' Power to breadboard - Photograph by Instructables
Then you need to plug one end of a wire into the Ground ('GND') power output, and the other end into the Negative section of the breadboard. 
Connect the Ground to breadboard - Photograph by Instructables
Finally, you need to plug one end of the resistor from the Negative section of the Breadboard to any horizontal line on the main section. 
(NOTE: It is very important to use AT LEAST a 330 ohm resistor with this circuit. If you don't, then you will almost certainly blow the LED.)
Place resistor on breadboard - Photograph by Instructables

Step 3: Attach the control wire to the Breadboard



Attach a wire from digital port '0' on your Arduino to the hole directly above the resistor. 

Connect control wire to breadbroad - Photograph by Instructables

Step 4: Attaching LED 



Now to attach the LED into the circuit. The way this is done is to put it so that each pin is next to a wire/resistor. This sounds, unclear, but pictures should help you. 
(Be warned, it will NOT do anything until you have uploaded the code to the board, which is done at a later stage.)

You have to put the 'LONGER' pin next to the wire connected to the port, and the 'SHORTER'  pin next to the resistor. 
Place LED to breadbroad - Photograph by Instructables

Step 5: Plug into computer



Now you need to plug the Arduino board into the computer. Nothing really to say here, just make sure that you don't break anything!
Connect Arduino to computer with USB cable - Photograph by Instructables

Step 6: Upload the code to the device



I've attached the code here. All that you have to do is open it with the Arduino sketch program and click upload to device. 

To do this perfectly, you have to ensure the following step:
  1. You have to select the Arduino board type in your IDE. I'm using an Arduino UNO board. To choose the board, find Tools on menu bar. Choose the option "Board" >> select your correct Arduino board. I have chosen the Arduino/Genuino UNO. See the screenshot below. 


 2. The port number is assigned while installing the hardware drive of board. You can find the port number by accessing device manager on Windows. See the section Port (COM&LPT) and look for an open port named "Arduino Uno (COMxx)". If you are using a different board, you will find a name accordingly. What matters is the xx in COMxx part. In my case, it's COM3. So my port number is 3. 
To select the right port, go to Tools >> Port >> Select the port number. Refer screenshot below. 

  3. We are going to upload the verified program in Arduino IDE to the Arduino board. 
To do this, press the "upload" button (see the button with right arrow mark). 


A click on the "upload" button will begin the process of burning the compiled program to Avr mircocontroller on your Arduino board. Depending on the size of your program, this will take a little time. If you look on your Arduino board, you can see the 2 LED's near Tx and Rx blinking. This is an indication of successful communication between your PC and Arduino board. If the program has been uploaded successfully, you will see a message like "Done Uploading". If the uploading process was not successful, you will see an error message accordingly. 

Program Code:
































Sources:[http://www.instructables.com/id/Basic-Arduino-Tutorials-01-Blinking-LED/]
Arduino Arduino UNO R3 Basic beginner easy LED simple

 

  • Copyright © Arduino Tutorial ™ is a registered trademark.
    Designed by Templateism. Hosted on Blogger Templates.