Monday, April 24, 2017

Webserver

Hello,
          I Am Ruchita with pictorobo. In this tutorial we are going to learn how to display any message on local server using Arduino.

 visit our main website for more more details www.pictorobo.in

for these tutorial we required 
Library File that is ESP8266 file.
let's discuss ESP8266 file using arduino.
these our program we need to edit ESP8266 library file.for installing these you have to go the "github URL" these is officially ESP8266 core for arduino github and all this step of installing is given here.
now go to the arduino→file→pref→preferences→copy the URL in this Arduino additional section→click OK→go to tools→board"NODE MCU 1.0(ESP_12Emodule)"

WALLETDREAMS

Learn the Better & Trusted Ways to Make Money OnlineGET FREE TIPS
 visit https://walletdreams.com/

Tuesday, April 18, 2017

Introdution ESP8266 With Node MCU

I  am going to give you the introduction of ESP8266 microcontroller.
How to get started with this ESP8266?
We are going to use here the Arduino IDE to write custom firmware that is gonna be download on the board & execute it.
The material required for this tutorial are:-

  1. The micro USB cables.
  2. The ESP8266 development board with translator chip by silicon lab.
  3. Yeah, I have taken this solderless breadboard because it is easy to use & I prefer this.
  4. Another thing we require is the ESP12e module.
we are going to need the Node MCU Lua ESP12e ESP8266 Wifi development board. This is the open source IoT platform.

It has several benefits of using this board like it is having necessary circuitry to manage the voltages.

And it is really very good that it manages 3.3v on the board. The USB to UART interfacing makes it very simpler to connect the computer.

To configure ESP8266 we are going to use the AT commands are sent via serial UART interface. this is the list of AT commands.

I will tell you how to configure the ESP8266 with AT commands in the next tutorial.

Arduino IDE is compatible with ESP8266 node MCU. Now go to the Arduino.cc website for downloading this software.

This file is better for windows. Depending on the OS, you can download.it will take a few minutes to download.

I have already downloaded this one.
For connecting USB to ESP8266, we need a USB to UART bridge driver. which is downloaded from silicon labs.

if we are not having the driver installed, it indicates a yellow triangle for downloading the driver,go through the silabs.com, (site a silicon lab. &download as per your os)
let us check the driver if it is installed or not, right click on computer→ manage →device manager→ports.

here silicon lab is already installed. you can also check further properties.
install both the software.

for that Open the Arduino go to file→preferences.
Additional boards manager URLs.








ESP8266 Node MCU & Ultrasonic HCSR-04[ Accurate measurement ]


             This Tutorial, We Are Going To used ESP8266 12E Node MCU with Ultrasonic Sensor Module (HC-SR04).

 HC-SR04 Is Used To Measure The Distance Between 2cm to 4meter With Ranging Accuracy Up to 3 Millimeter.

The material required for this tutorial are:-
  1. The Jumpers wires
  2. Arduino Board For (5v) Supply 
  3. Ultrasonic Sensor Module 
  4. Solderless Bread Board And ESP8266 Module It Self.

The Working Principle Of Module Is Very Simple.











It Emits Ultrasonic Sound Which Travelle With The Air If Any Obstacle Comes In The Path It will bounce back from the module.

consider the travel time speed of the sound by this formula:-
velocity=distance/time

   The ultrasonic module having 4 pins
  • GND 
  • VCC
  • ECHO
  • TRIGGER
As you can see the interfacing image on the video


To generate the ultrasonic sound we need to send a trigger on the high state for 10 microseconds.

And 8 the cycle of sonic burst which will the speed of sound and At the echo pin, you will get the double of its number.

The calculation part is as shown


now it's time to going for the tutorial and here design sample code is given. we have to find trigger pins and echo and in these cause these are pin no. 5&4 on ESP8266 NODE MCU then we will need long variables and

I have named it long duration for travel time which will be often for sensor and integer variable for distance in the setup trigger pin as work as input.to start serial communication for showing the result on the serial monitor we will say it board rate 9600
in the main program, we have to stay the trigger pin on low state up to 2 microseconds. now observe ultrasound we have to say trigger pin on high state up to 10 microseconds.

now using pulse in function:-
set the echo pin and second, it can be set high or low.
in the cause of high pulse, the function will wait for go to the high because bounce sound .......it is start timing.
it will wait for low when the sound stops timing. for calculating the distance 
distance*0.034/2

/*
* ESP8266 Node MCU & Ultrasonic HCSR-04[ Accurate measurement ]
*
* Crated by Ruchita devikar
* www.pictorobo.com
*
*/
// defines pins numbers
const int trigPin = 5;    // pin no. 5 is D1 ESP8266
const int echoPin = 4;    // pin no. 5 is D2 ESP8266
// defines variables
long duration;
int dist;
void setup() {
pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output
pinMode(echoPin, INPUT); // Sets the echoPin as an Input
Serial.begin(9600); // Starts the serial communication @9600
}
void loop() {
// Clears the trigPin
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
// Sets the trigPin on HIGH state for 10 micro seconds
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
// Reads the echoPin, returns the sound wave travel time in microseconds
duration = pulseIn(echoPin, HIGH);
// Calculating the distance
dist= duration*0.034/2;
// Prints the distance on the Serial Monitor
Serial.print("Distance: ");
Serial.println(dist);
}


for getting the distance go to the tool and serial monitor and you will get the output distance.
for more details, you can visit my website www.pictorobo.in.




Sunday, March 5, 2017

Audio Amplifier using LM386 with Noise Removal

Thanks for visiting my blog.

 visit our main website for more more details www.pictorobo.in

                     In this blog we have to make audio amplifier using LM386 and study how to remove noise in audio amplifier.Its very simple and cheap.
All this circuitary we have to make on a small mini breadboard.The circuit diagram or the connection of this setup is shown by using sketch.
                                                            firstly you need 3.5mm audio jack and separate this jack from the headphones.Next we need a LM386IC.It is so popular for audio amplification.This IC needs a minimum external connection ports.This IC also battery operated with wide supply voltage range 4 to 12V or 8 to 16V depending on the different manufactures series.
                                    Next moving to the ciruitary,I am using the 9V battery but I recommend 12V power supply or a 12V nickel-cadmium battery for better performance.
                                    Next I recommend 0.1uf(104) disc type capacitor which is connected in parallel with pin no 6 to pin no 2 connected ground through pin no 2. Pin no 6 is +Vcc.This disc type capacitor is connected parallel with the power supply for removing bebber and protecting IC from instant power supply.
                                  The pin no 7 is bypass.This pin is connected a 10uf capacitor which is used for filtering.In this 10 to 100 uf capacitor works good.
                                              You have seen a lots of circuits on the internet but in our circuit some changes at the output of the amplifier.The pin no 5 is the output pin their is a RC high pass filter.It passes (2MHz) high frequency to the ground,so it cannot interfare with the audio amplifier.So this RC high pass filter circuit is replaced with the only 0.1uf (104) disc type  capacitor.I found that this is the best solution and it works for all the speaker.And it also helps that the noise from power supply doesnt pass through audio amplifier.
And also at the output of the LM386 IC.I use a 1000uf (25V) electrolytic capacitor or use higher than that for removing DC offset it means no dc voltage pass into the speaker which will damage so capacitor prevent it and provide wide base speaker.
if you are connected disc type capacitor at the output pin its prevent from unwanted oscillation.

WALLETDREAMS

Learn the Better & Trusted Ways to Make Money OnlineGET FREE TIPS
 visit https://walletdreams.com/