Showing posts with label easy. Show all posts
Showing posts with label easy. Show all posts

Wednesday, August 24, 2016

Entry Level Door Monitoring Alarm System

Alright! So the idea struck out of blue one day when I was shocked to see someone sitting outside my office enjoying reading a newspaper!

I had no idea who this person was, when did he come and since how long was he enjoying his unsolicited stay just outside my cabin? You must be thinking what a fool I am but you gotta trust me on this, my office is one of the creepiest that one can get anywhere. Seriously!

I had an Arduino UNO clone ready at my disposal. So, all that I needed was an ultrasound sensor, and a Buzzer. Rest of the steps, circuit assemblies, software code are ensued in this tutorial. I hope this would excite few electronics newbies out there.





Male-to-Male Jumper Wires
1 x Computer with Arduino IDE installed


Optional


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


Step 2: Build Your Circuit.




Step 3: Upload The Code.



Download:



Source: here
 
Arduino Arduino UNO R3 buzzer easy project SR04 Ultrasonic Range Finder Ultrasonic Sensor Holder

Wednesday, August 17, 2016

Arduino Based Lie Detector


Hey everyone today I want to show you how to make an Arduino-controlled lie detector to see when your friends are lying to you or to measure the different responses that your bodies skin goes through depending on the situation you are in or the emotions you are feeling and the coolest thing of all is that we can see all of theses things happen in real time in an Arduino graph.


Our skin is amazing! It provides a medium for us to experience the sense of touch, it keeps infections out and keeps innards in but I bet you didn't know that our skin changes conductivity depending on many different things one being our mood! It called Electrodermal activity (EDA) and there's a really interesting Wikipedia page you can read here. The basics are that our skin changes its conductivity depending on how we feel.

We have to start by asking the subject some easy questions we know they will answer truthfully like "what is your name" and "where do you live" to get a baseline and from there we can start asking questions that they may lie about, if they do they would probably feel nervous and then we can read the change
 in the base line that be established earlier if they lie.



Step 1: What You Need?

1 x Arduino Nano
1 x Mini USB Cable
1 x Red LED
1 x Green LED
1 x Orange LED or Yellow LED
1 x 2k Ohm Resistor
Wires


Materials 
- Cardboard
- Tinfoil 
- Velcro 

Tools 
- Soldering Iron & Solder
- Hot Glue 
- Craft Knife 


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


Step 2: Build Your Circuit. 

The wiring for this is pretty easy, we will start by connecting them in this order:

  • Connect a long piece of cable to Arduino analog pin 0.
  • Connect the 2k resistor to ground and the the extended analog 0 pin.
  • Connect a long piece of cable to Arduino 5 volt pin.
  • Connect the anode (long leg) of the green led to pin 2 and the cathode (short leg) to ground.
  • Connect the anode of the orange led to pin 3 and the cathode to ground.
  • Connect the anode of the red led to pin 4 and the cathode to ground.

That's all the wiring for the Arduino, now we need a way to keep the sensor wires on our fingers we will cover this later.


Step 3: Upload The Code. 



The main piece of software we are going use is the newest version on the Arduino IDE. The new update brings a new way to see the data being received from the Arduino, instead of being in text form from the serial monitor, it can now be displayed in a real time graph which will help us identify when the data changes its pattern (when someone lies)



To open the plotter open Arduino and navigate to the tools menu and you should see it there just below serial monitor.


Step 4: Making The Finger Clips.


Now that the basic form of the project is done we can start adding features to make it easier to use we will start by adding finger clips to keep a stable connection between our fingers and the cables. 




Lets start by gluing a strip of tinfoil to the bottom of a strip of velcro, do this for both pieces of velcro (the hook and the loop. Now rap it around your finger until it makes a tight fit (check photos) then tape the exposed wire from analog pin 0 to the tin foil and repeat this step for the 5 volt pin (make sure it makes a good connection).




Step 5: Making The Case.


The plan is to make a small compartment for the finger pads to fold away and to have three holes for the LEDs to stick out. Its going to be made out of cardboard and to make it we will need to cut the following shapes out:
  • Cut two 15x3 cm rectangles
  • One 15x5 cm rectangle
  • Three 5x3 cm rectangles (cut a square in the middle on one of them for the nano usb)
  • One 9x5 cm rectangle
  • One 6x5 cm rectangle



The 15x5 rectangle is the base. The two 15x3 rectangles and two of the 5x3 rectangles get glued to the sides of the base. Now glue the third 5x3 rectangle to the base 6cm from the side (close to the middle, check photos) Now you should have a rectangle that's divided into two sides, one with a length of 6cm and the other with a length of 9cm. The side with a length of 6cm is where we are going to put the electronics and the other side is where the finger pads go. Next cut 3 holes (the size of LEDs) on the 6x5 rectangle and glue it down to the 6cm side (as a lid). Last we need to tape the short side of the 9x5 rectangle to the far side of the 9cm side (this acts as a lid that flips up and down to reveal the finger pads).





Step 6: Putting It All Together.


The last thing we need to do is put the electronics in the case start by gluing down the Arduino and all wires in the 6cm side and run the extended wires (pin analog 0 and 5 volt) to the other side of of the rectangle (9cm side). Now glue the three LEDs to the holes we made on the 6x5cm rectangle and give it a test if all goes well you should have a small portable Arduino lie detector but let me warn you this isn't the most accurate system in fact most real lie detectors use a host of other sensors to determine if someone is lying such as a heart rate monitor and others, what I'm saying is don't uses the result of this for serious questions.





Arduino Arduino Nano easy LED project

Monday, August 15, 2016

Enhanced Spider Robot With Arduino Nano


This spider robot is suitable for kids.

My version will have two operating modes:

  • Remote control using bluetooth module (HC-06) and an Android phone app. This is the default start-up mode.
  • Autonomous line-following. This mode is selected through an Android phone app.

Let’s start building.




Step 1: What You Need?

2 x Spider Robot Kit 
4 x Ni-MH Battery/ Charger combo and AA Battery Holder 
2 x IR Line Tracker Sensor Module 
1 x On-Off Switch 
1 x Mini Breadboard
1 x Arduino Nano
1 x Motor Driver ( Using TB6612FNG Breakout but L298x Based driver should work just as well)
1 x HC-06 Bluetooth Module 
1 x 9V Step-up Booster ( 4 x Ni-MH  is only 4.8V). While motors will use 4.8V, I need to boost voltage to 9V to power Nano through Vin)
1 x Mini USB Cable 
Male-to-Male Jumper Wires 
Approx 4" x 4" Cardboard (Used as platform)
1 x Computer with Arduino IDE


See http://letsmakerobots.com/node/37661 for building the base chassis. While 8 leg linkages are obtained from a single kit, you’ll need to use following parts from another kit to complete the chassis:
  • Motor and body
  • Axle
  • Leg linkage case without gears (This is used for joining two independent leg linkages)
  • Cross beam


Since the built-in battery housing on the body pieces are not needed in my design, cut off about 3mm from the height and glue the platform cardboard on top. Use leftover plastic pieces to build a truss to support the platform above motors and build mounting beams for IR line tracking sensors between two motors.


As for the on-off switch location, I put that on next to the battery pack. This required cutting the plastic underneath the platform. I think the better location would be between the cardboard and the plastic body underneath the cardboard and use a glue gun to secure it.



Step 3: Build Your Circuit. 


Wire all the components according to the diagram. You’ll notice that I use 9v step-up boost converter to power Nano through Vin pin. This eliminates having another 9V battery for the logic. Motors are still powered by 6V or 4.8V if using Ni-MH rechargeable batteries.





Step 4: Android Mobile App 


While I could have built my own app using MIT App Inventor, why reinvent the wheel when there are numerous already written apps that fit for this purpose? I downloaded few from Google Play to evaluate them and eventually decided to use Arduino Bluetooth Controller. In Controller Mode, I customized following buttons to send specific characters that are recognized by the code.

  • Left = “l” (turn left)
  • Right = “r” (turn right)
  • Up = “u” (go forward)
  • Down = “d” (go reverse)
  • X = “s” (stop)
  • Select = “t” (toggle between RC and Line Following Mode)


Step 5: Upload The Code.


Comments in the code should explain what’s going on in the code. It was written for Nano but it should work on other Arduino boards with no or little mods.


Step 6: Done! 


The kit comes with a motor that is designed for low voltage/high current environment. When using an H bridge driver such as TB6612FNG, it’s better to use high voltage/low current motors. This may explain why, with heavier alkaline batteries, it couldn’t lift the body up to take a step. 



Arduino Nano bluetooth bluetooth module easy hc-06 IR IR Line Tracker Sensor Module motor driver project Spider Spider Robot Kit

Sunday, August 14, 2016

Mood Lamp with Arduino

Hi! In this tutorial you will learn to make a mood lamp with Arduino.

I know that you may have seen a lot of mood lamp projects with Arduino, but I wasn't very satisfied with them because they all change the color very abruptly. So, I decided to make a smooth mood lamp and I also made it to turn on only when the room is dark.


This project is good for those who are beginners in the Arduino's world.





Step 1: What You Need?

1 x Arduino UNO
1 x USB Type-B Cable
1 x 9V Battery Holder  or  9V Battery Snap
1 x Breadboard  or  Mini Breadboard
1 x RGB LED  or  1 Red & 1 Green & 1 Blue LED
1 x LDR (Light Dependent Resistor)
Male-to-Male Jumper Wires
1 x Computer with Arduino IDE
1 x 9V Battery
1 x Sheet of paper




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


Step 2: Write The Code & Upload. 

Write the code above on the Arduino program.
Darker the ambient light is, the higher is the value read from the LDR.
I used PWM to change led's brightness.

  


Step 3: Build Your Circuit.

Connect wire like the schematic above.


Step 4: It's done!

Try to add a sheet of paper around it to see it more smoothly, the paper acts as a diffuser.
Feel free to modify this project to your way, and tell me your progress. Comments are welcome.

Arduino UNO R3 easy LDR LED project RGB LED

Arduino MEGA 2560 Home automation with 8 channel relay



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


Step 2: Build Your Circuit.



Connect wire like the schematic above.






Step 3: Upload The Code.

You need to include the SPI and Ethernet Libraries.

You probably need to change the IP Address and gateway. Subnet will be as it is in most cases.

You can find this below on the top of the code to change IP and gateway.

byte mac[] = { 0xAE, 0xFE, 0xDE, 0xEF, 0xFD, 0xFD }; //You can change the mac address to!

byte gateway[] = { 192, 168, *, *** }; //

byte subnet[] = { 255, 255, 255, 0 }; //

ip(192,168,*,**);



To find out what your gateway:

Select Start > Run. Type command into the dialog box, then click OK.In the command line window, type ipconfig /all.

Here you will find your gateway.

To find the control panel. Just go to the IP address you assigned to the Ethernet Shield in your browser, phone or tablets browser. From here you can Control each relay.




Download:





8 Channel Relay Arduino MEGA 2560 easy Ethernet Shield project Relay

Friday, August 12, 2016

Arduino Based Mailbox Alert With KY-031 Shock Sensor

Hello world! I made a simple example project for the KY-031 sensor. In this tutorial I made a simple mailbox alert. Of course you can use this code for something else that produces shocks that you want to be notified of.




Step 1: What You Need?

1 x Arduino UNO
1 x USB Type-B Cable 

1 x RGB LED or 3 Color LED Module KY-016 or Other LED 

1 x Shock Sensor KY-031
1 x Buzzer or Buzzer Module KY-012 or PWM Digital I/O Output 5v Buzzer Piezo Module
Female-to-Male Jumper Wires
1 x Computer with Arduino IDE installed

All Sensor Module ( include KY-016, KY-031, KY-012) can be found in 37 Types Sensor in 1 Starter Learning Sensor Kit



Optional
1 x Mini Breadboard
Male-to-Male Jumper Wires 

USB To Power Jack Cable
Multicore Wires 

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


Step 2: Build Your Circuit.


Connect wire like the schematic above.




Arduino UNO R3 buzzer easy KY-012 KY-016 KY-031 project RGB LED Shock Sensor Starter Learning Sensor Kit

Arduino Based Earthquake Alarm with KY-002

Hello! Here I am again.

This time I made a Basic earthquake alarm with the KY-002 Shock sensor. Its can be used for multiple purposes, Like most sensors. In this case we use it as a earthquake sensor.





Step 1: What You Need?

1 x Arduino UNO
1 x USB Type-B Cable 

1 x RGB LED or 3 Color LED Module KY-016 

1 x Shock Sensor KY-002 or Arduino Adjustable Vibration Motion Sensor Module 3-pin
1 x Buzzer or Buzzer Module KY-012
Female-to-Male Jumper Wires
1 x Computer with Arduino IDE installed

All Sensor Module ( include KY-016, KY-002, KY-012) can be found in 37 Types Sensor in 1 Starter Learning Sensor Kit



Optional
1 x Mini Breadboard
Male-to-Male Jumper Wires
USB To Power Jack Cable


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


Step 2: Build Your Circuit.

Connect wire like the schematic above.




Step 3: Upload The Code.


Arduino UNO R3 buzzer easy KY-002 KY-012 KY-036 project RGB LED sensor Touch Sensor

Tuesday, August 09, 2016

Arduino Color Mixer

This tutorial is pretty easy and requires a little Arduino and electronics knowledge, if you're not familiar with Arduino, I'll include links to guide you through the tutorial.

In this tutorial we'll generate all the possible colors that you can see with just a twist. It will also make you see through the RGB color model and understanding how today's displays work.

We'll also use Arduino analog Input / Ouput ( referred to as I/O later in tutorial ) and will learn how to read and write analog voltages on Arduino pins.







Step 1: What You Need?

1 x USB Type-B Cable 
3 x 5k Ohm Potentiometers
3 x 330 Ohm Resistors
1 x RGB LED or RGB Module 
Optional
Cable Cover
Arduino Compatible UNO Ultimate Starter Kit / Learning Kit
USB To Power Jack Cable



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


Step 2: Connecting The Pot.

The pot will be our voltage divider circuit, where Vout is the Arduino pin.
Voltage Divider Circuit

In a nutshell, it transforms a adjustable amount of the voltage (changes by twisting the rotor) to the Arduino analog input pin ( Vout ) this link explains the topic even further.


Pot Voltage Divider 


Connect the pot as illustrated in the image, connecting the outer terminals on either 5v or GND doesn't matter at all, the most important connection is the middle terminal, which goes to the analog input pins.

You obtain the 5v and GND from the Arduino pins.

I'm using the Orange for the 5v ( instead of Red ) to make easier to differentiate between power and signal lines.




Repeat this connection for the 3 pots for each color.

I want to keep the connections as tidy as possible so I'll connect the pot for the Red color on A0, Green on A1 and Blue on A2.



Step 3: Connecting The RGB LED.

The RGB LED uses the same concept of the conventional LED (diode) the magic happens because it contains 3 LEDS beside each other, when the light from those LEDs fall on your retina they represent different colors because you view them as a single combined color.


Since we have 256 value for each PWM output and 3 pins that represent Red Green Blue, we have a total of 256 * 256 * 256 colors which is 16,777,216 colors (almost 17 Million).



The RGB Led is connected the same way you'd connect a normal LED but you repeat the work 3 times.

NOTE: Don't forget to connect the 330 Ohm resistor because I made this mistake and got my Red LED burnt out electricity won't do much work to get an LED burnt, so take care.


Step 4: Upload The Code.

 
The code of the Arduino does those simple tasks in a sequential manner.

In the Setup

  • Set the mode of 3 analog input pins to input
  • Set the mode of 3 pwm (analog output) pins to output

In the Loop
  • Read the value of the pot. using analogRead function
  • Map the value from the analog pin to a matching PWM value using the map
  • function
  • Write the PWM value to the analog pin using analogWrite function


Step 5: Test Your Circuit.


Now you have the ultimate color generator with 17M colors! congrats!!


Arduino UNO R3 easy project RGB LED

Monday, August 01, 2016

Breath analyzer with OLED and MQ3 gas sensor


Hi, guy today we are going to make a breath analyzer which detects alcohol vapour. so, first you need to show how does the sensor work so, the sensor work with a chemical reaction with what it will tell you the readings. so, lets begin!!




Step 1: What You Need?

1 x USB Type-B Cable 
1 x OLED or LCD
1 x MQ-3 Gas Sensor 
Optional
Cable Cover
Arduino Compatible UNO Ultimate Starter Kit / Learning Kit
USB To Power Jack Cable



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



Step 2: Make A Shield For Arduino



1.The OLED ---VCC wire will go to 3.3v of the Arduino. GND will go to GND. SCL to A5. SDA to A4.

2.The MQ-3 gas sensor --- VCC to 5v. Gnd to Gnd. AD to A0.




Step 3: Upload The Code 

  
When you upload the code if it say warning up so then wait 15 mins if it give the reading it is working well. if check the code or your connections.

Arduino UNO R3 easy gas sensor LCD MQ-3 MQ-3 Gas sensor oled project

 

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