Showing posts with label arduino uno buy. Show all posts
Showing posts with label arduino uno buy. Show all posts

Saturday, November 28, 2015

How to make Arduino Trumpet-Robomart

This is simple project using the three buttons, emulates a trumpet by playing notes. This is so easy to make and fun to play with, though it can only play one octave and no flats.
Step 1: Code

Load this code into your Arduino:
int speaker = 9; // Hook up speaker to digital pin 9
int sw1 = 15; // Switch hooked to analog pin 1
int sw2 = 16; // Switch hooked to analog pin 2
int sw3 = 17; // Switch hooked to analog pin 3
int valve1; 
int valve2; 
int valve3; 

void c () { // Presets the note "c" to be used later
digitalWrite(speaker, HIGH);
delayMicroseconds(1915);
digitalWrite(speaker, LOW);
delayMicroseconds(1905);
}
void d () {
digitalWrite(speaker, HIGH);
delayMicroseconds(1700);
digitalWrite(speaker, LOW);
delayMicroseconds(1690);
}
void e () {
digitalWrite(speaker, HIGH);
delayMicroseconds(1519);
digitalWrite(speaker, LOW);
delayMicroseconds(1509);
}
void f () {
digitalWrite(speaker, HIGH);
delayMicroseconds(1432);
digitalWrite(speaker, LOW);
delayMicroseconds(1422);
}
void g () {
digitalWrite(speaker, HIGH);
delayMicroseconds(1275);
digitalWrite(speaker, LOW);
delayMicroseconds(1265);
}
void a () {
digitalWrite(speaker, HIGH);
delayMicroseconds(1136);
digitalWrite(speaker, LOW);
delayMicroseconds(1126);
}
void b () {
digitalWrite(speaker, HIGH);
delayMicroseconds(1014);
digitalWrite(speaker, LOW);
delayMicroseconds(1004);
}
void C () {
digitalWrite(speaker, HIGH);
delayMicroseconds(956);
digitalWrite(speaker, LOW);
delayMicroseconds(946);
}

void setup() {
pinMode(speaker, OUTPUT);
pinMode(sw1, INPUT);
digitalWrite(sw1, HIGH);
pinMode(sw2, INPUT);
digitalWrite(sw2, HIGH);
pinMode(sw3, INPUT);
digitalWrite(sw3, HIGH);
// Serial.begin(9600);
}

void loop() {
valve1 = digitalRead(sw1); // Reads switch 1
valve2 = digitalRead(sw2); // Reads switch 2
valve3 = digitalRead(sw3); // Reads switch 3

if ((valve1 == LOW) && (valve2 == LOW) && (valve3 == LOW)) { // If all valves are pressed, then
c(); // It plays a "c"
}
else if ((valve1 == LOW) && (valve2 == HIGH) && (valve3 == LOW)) { // If the first and third valves are pressed, then
d(); // It plays a "d"
}
else if ((valve1 == LOW) && (valve2 == LOW) && (valve3 == HIGH)) { // If the first and second valves are pressed, then
e(); // It plays a "e"
}
else if ((valve1 == LOW) && (valve2 == HIGH) && (valve3 == HIGH)) { // If the first valve is pressed, then
f(); // It plays a "f"
}
else if ((valve1 == HIGH) && (valve2 == HIGH) && (valve3 == HIGH)) { // If no valves are pressed, then
g(); // It plays a "g"
}
else if ((valve1 == HIGH) && (valve2 == HIGH) && (valve3 == LOW)) { // If the third valve is pressed, then
a(); // It plays a "a"
}
else if ((valve1 == HIGH) && (valve2 == LOW) && (valve3 == HIGH)) { // If the second valve is pressed, then
b(); // It plays a "b"
}
else if ((valve1 == HIGH) && (valve2 == LOW) && (valve3 == LOW)) { // If the second and third valves are pressed, then
C(); // It plays a "C"
}
else{
delay(1);
}
}
Step 2: How can hook it up
Each of the three switches go to analog from ground in 1, 2, and 3. The Piezo goes from digital pin 9 to ground. Make sure to have the switches in the right order in order to have the correct fingerings. Afterwords, download the file and upload it to your Arduino.
Step 3: Resources

For this project you will need: 
Project box (4x2x1) 
Drill and 1/4 in bit along with 1/16 in
•3 momentary switches (NO) 
Step 4: Put it Together!!
First of all, open the box and on the outside of the box, mark the center and an inch out from the center. Where you will need to make a 1/4 in hole Now, dremel out the scraps of plastic and used the holders to hold a PC inside.
Step 5: How can I Fit it!



Insert switches and make sure that they fit and screw them . They are situated in the right place and enter the PIN and drill bit to drill holes with a 1/16 mark .
Step 6: Wireing

Now, wire and solder each of the analog input posts and attach the other side to the corresponding switch. Make sure to not get mixed up and solder the wrong switch to the wrong pin. Like before, solder the piezo to pin 9 and ground and the battery clasp to ground and voltage in. 
Step 7: Playing
Fingerings on the trumpet to trumpet a general ' as are' . ' Identical ' I mean , I had to make some changes .


on a normal trumpet its like this:
c..........0pen
d..........1-3
e..........1-2
f ..........1
g..........0pen / 1-3
a..........1-2 / 3
b..........2
C..........0pen / 2-3
________________________________________
On the Arduino Trumpet:
c..........1-2-3
d..........1-3
e..........1-2
f ..........1
g..........0pen
a..........3
b..........2
C..........2-3

I used half-step complicated and changing things and switches can put a octive . It would be awsome , however , it may be more complex and will require a large box .
HAVE FUN!!!!

Monday, November 23, 2015

Arduino - Bluetooth communication by Robomart

We have a tutorial session via Bluetooth communication between Arduino and computing are going to see In order for us to do that , a reasonable price we are going to use the court 06bluetooth board. We had some data to the stream , so that you need to build a simple Arduino sensor circuit are going to . Why not try to project our light sensor.
 Step 1: How to Wire up your Arduino 



Once we have some data to send , we need to connect the Bluetooth board 
Arduino side , the connecting wires
•A black wire to one of the GND pins
•A blue wire to digital pin 1 (usually marked TX for "transmit")
•A red wire from the 5v pin on the Arduino
•An orange wire to digital pin 0 (usually marked RX for "receive")
•A black wire to one of the GND pins
The red and black wires , Bluetooth Arduino board will provide power to the blue wire outgoing data and incoming data will bring the orange wire .
Step 2: Voltage divider

There's a problem.(Arduinos out there are many ) that we are using a 5V Arduino board , but the Bluetooth board input and output pins are only 3.3 volts . We send 5 volts to the Bluetooth board , then it would probably burn out .
For this reason , we have a " voltage divider " the need to build something - it's basically the Bluetooth board and (GND pin ) through the back rest to the Arduino to send something , two voltage divider that is a simple circuit .
Voltage divider resistors to build two are going to need . That one needs to be twice that of the other - except in the value of the resistors does not matter . We use a 200k resistor and a 100k resistor are . As shown in the picture with wire resistors :
•A black wire connected to the larger resistor (200k) - this black wire should lead back to any of the GND pins on the Arduino.
•A white wire connected to both resistors.The blue wire from the Arduino connected to the smaller resistor (100k).
WARNING: As shown in the picture , or you risk damaging your Bluetooth board just as sure to wire their circuits !
Step 3: How can wired up your Bluetooth board

As shown in the picture for us to provide a safe input signal is a voltage divider that , we can wire the Court 06 Bluetooth board :
•Connect the white wire from the voltage divider to the RX pin on the bluetooth board
•Connect the black GND wire from the Arduino to the GND pin on the bluetooth board
•Connect the orange wire from the Arduino to the TX pin on the bluetooth board
•Connect the red (5v) wire from the Arduino to the VCC pin on the bluetooth board
Step 4: Pair your computer with the Bluetooth board
We Arduino and the computer before starting the dialogue between the two needs to be added .
This process will depend on the operating system you are using - check their documentation for information
Bluetooth board is powered up and is looking for , so that should be on your Arduino 
Step 5: Select the Bluetooth serial connection

If your computer is paired with your Bluetooth board once , a new Bluetooth serial port Arduino IDE " port " will appear in the menu . This name is usually the name of the Bluetooth device will include ( in the photo above gives you we 've got boards that can see several HC- 06 ) .
Select the Bluetooth serial port from your ports list.
This time has been , (Serial. println use functions ) Arduino sent any data to be received by your computer via Bluetooth .
Step 6: Connect via Serial Monitor

Open Arduino by clicking on the magnifying glass icon on the top right of the window " Serial Monitor " above . Serial monitoring should look like over - " 9600 baud " window that has been selected in the dropdown menu below to make sure . Now any data appearing in the window that is being sent from your Arduino to be able to see it.
Step 7: Enjoy
Everything worked, so you should be able to receive data wirelessly from the Arduino. Equally, you also can send data wirelessly to your Arduino computing. It normally Serial Monitor can be used. Alternatively, you with your Arduino via serial communication that can write desktop applications.

Wednesday, November 18, 2015

How to make Motion Sensor Using Arduino - Robomart

In this tutorial you set up a motion sensor to your Arduino and a motion is detected or when to turn off the LED will give a simple example. With its new speed sensor wire and how to program the Arduino ? Well look no further. The principle is used in many fields of automatic door open , such as smart homes .... Arduino, HTML and CSS tutorial , keep the following .
Step 1: REQUIRED ELECTRONICS
 The parts required for this basic complex are

Step 2: HOW TO BUILDING THE  ELECTRONICS
  • If possible Place your controller on a breadboard! we are using Arduino micro so it is very convenient to put on a breadboard if we are not using a micro then we will need jumper wires to connect your Arduino to a breadboard so we can plug our output devices and sensors in more easily.
  • After all you are located , you can go ahead with the motion sensor and the ground should be labeled the pin Arduino you are going to place a wire from the ground.
  • You are going to take a pin on your Arduino and you let me use your PIN number five pins on the Arduino to a blank " out " label to connect the speed sensor are pin out.
  • Then you come out with the Arduino that is positive five volts to the VCC output speed sensors are going to connect the VCC output .
  • Next on my breadboard, LED is the positive side the lead now or go ahead and place both you and your leadership led to it being a small scar on the side of the one are the same for your breadboard Arduino place on the ground downside downside plug in, you then empty on the ground on a pin for making motion sensor LED pen to the ground can use a jumper wire to the positive Arduino LED Run a wire from the side.
  • I used this for a pin number 7 . We now proceed to the wires and controller programming , go to the next step .
Step 3: HOW TO CODING
int motion = 5;
int motionLed = 7;
void setup() {//ok i need to state what each pin will be doing. the led pin will//be an output and the motion pin will be an input.
pinMode(motion, INPUT);
pinMode(motionLed, OUTPUT);}
void loop(){ //what will happen in the sketch //if motion is detected we want to turn the led light on //if no motion is detected turn the led off //you also need to declare a variable to hold the sensor data long sensor = digitalRead(motion); //then the if statement to control the led
if(sensor == HIGH){
digitalWrite (motionLed, HIGH); }
else {
digitalWrite (motionLed, LOW); }
}

Monday, November 16, 2015

How to make Motion Security System With Arduino - Robomart

The project with the motion-sensitive sensor -based security system will do our Arduino. In  many ways, the security detection algorithms. What will our security system with sensors with Arduino are sensitive to the movement of the project . The system detects motion alarm circuit will inform us of entering.

 Step 1: Required ​Materials: 
  • Buzzer
  • Arduino
  • Led
  • PIR Motion Sensor 


    





Step 2: Diagram of Electronic Circuit:
Step 3: Description
After uploading the software our alarm system is ready.
Note :  While passive 'HIGH' case, while active 'LOW' What happens in case when Project actively used for buzzer. You are the exact opposite to be passive buzzer, the software in the 'HIGH' and 'LOW' to change the situation.
More information and arduino code


Arduino Software:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38





//Software development by Robomart
// Software license by Robomart
int inputPin = 2;
int pirState = LOW;
int val = 0;
int buzzerpin = 10;
int led = 13;
void setup() {
pinMode(inputPin, INPUT);
pinMode(buzzerpin, OUTPUT);
pinMode(led, OUTPUT);
Serial.begin(19200);
}

void loop(){
val = digitalRead(inputPin);
if (val == HIGH) {
beep(500);
digitalWrite(led, HIGH);
delay(500);

if (pirState == LOW) {

Serial.println("Hareket Algilandi!");

pirState = HIGH;
}
} else {
digitalWrite(buzzerpin, HIGH);
digitalWrite(led, LOW);
delay(150);
if (pirState == HIGH){
Serial.println("Hareket Algilanmadi!");

pirState = LOW;
}
}
}
void beep(unsigned char delayms){
analogWrite(10, 255);
delay(delayms);
analogWrite(10, 150);
delay(delayms);

}

 After the wiring and installing our software we have completed our alarm system.