Friday, 23 October 2015

How to fix sound problem in windows 8


Few weeks ago I had a sound problem in my laptop (which runs on windows 8) but I could not think of any fault, so I thought let me just restart the laptop and see what happens. So I've re started the laptop and the sound came back. I said wao that was pretty easy!! But unfortunately it happened again yesterday and I thought last time I restarted the laptop and it started working. So why not do the same thing again. Then I have restarted the laptop, but didn't work. Did it again still didn't work. When I saw it is not working at all, then I did the final check up which you can see below.
Ad

Step1: Go to the control panel.

Step2: Click on Hardware and Sound

Step3: Click on Device Manager. You can Skip the first two steps just by searching "Device Manager" straight in the window's search engine.

Ad

Step4: Click on the arrow next to the speaker logo, then right click on the Conexant SmartAudio HD and then click Update Driver software.


Now it will download and install the driver from the Internet (if it's out of date) and when it's successfully updated it will show a box where it says "Do you want to restart your computer now?" you just need to restart the computer.

That's all  I did and my sound is back on track. :)

Note:
If you find this problem suddenly then Restart you PC by selecting the option "Restart" when you turn you PC off. It will solve the problem automatically.


Ad



Multiple soil moisture sensor at once in Arduino


In this post I will share a sketch which can control many soil moisture sensors at once. As you can see in picture above, I have used 2 soil moisture sensors to turn on and off 2 leds. I would have used more sensors if I had but that's all I had so I have used them all. Don't worry you can add more sensors if your Arduino board has too many pins control the thing you want.
Ad

The sketch:
int led1 = 4;
int led2 = 5;

void setup() {
// initialize serial communication at 9600 bits per second:
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
Serial.begin(9600);
}


void loop() {
// read the input on analog pin 1:
int sensorValue1 = analogRead(A1);

if (sensorValue1 >=600 && sensorValue1 <=800){
Serial.println(sensorValue1);
    digitalWrite(led1, HIGH);
  }
  else {
Serial.println(sensorValue1);
    digitalWrite(led1, LOW);
  }
 
int sensorValue2 = analogRead(A2);

if (sensorValue2 >=600 && sensorValue2 <=800){
Serial.println(sensorValue2);
    digitalWrite(led2, HIGH);
  }
  else {
Serial.println(sensorValue2);
    digitalWrite(led2, LOW);
  } 
delay(1000);
}

Places to edit:
int led1 = 4; // you can change it to what ever digital pin you like.
int led2 = 5; // you can change it to what ever digital pin you like.

int sensorValue1 = analogRead(A1); // I have  made A1 (analog pin number 1) for the first soil moisture sensor and A2 (analog pin number 2) for second sensor.

if (sensorValue1 >=600 && sensorValue1 <=800){ // Here the >=600 means if the value is over 600 and under 800  <=800 then it will turn on the first LED, and if the value is under 600 and over 800 the the LED will be turned off. You can change the number as you wish, but keep in mind that less value numbers means the soil is more wet and more value numbers means the soil is less wet.

What do you need:
  • 2x LEDs. What ever color you like.
  • 2x Soil Moisture Sensors.
  • 2x 10k ohm resistor. You can leave it if you want, I've used it just to make the leds dimmer.
  • One Arduino board. In this case I've used Arduino nano.
  • Few jumper wires
That's all for this post I hope this will help you. :)


Tags:
Multiple soil sensor Arduino

Ad



Sunday, 18 October 2015

How to search hashtags on facebook?

Everyone probably knows how use #hashtags on Facebook, but do you know how to search the specific hashtag that you want?

Well, you might say, what's so hard about that? Just put hashtag (#) before the word and search it.
Hmm, not really! because I've tried that many times and that didn't work.

So what can you do?
Well, you can find the specific hashtag by using two methods as I know.

First method:
Write the word you want to search after hashtag, for example #funny and post it, after you have successfully posting it, click on the hashtag.

Note: 
This may seems easy but the problem is that you  probably don't like to post just anything and everything, because once you post something it will pop up on every single one of your friend's wall, so you might not like every people to know what you are searching for.

Second Method:
Copy the link in the brackets (https://m.facebook.com/hashtag/) and paste in your address bar, then write the word you want to search after forward slash, for example funny in (https://m.facebook.com/hashtag/funny) then hit enter or go. That's it will show all the posts under #funny.

Note:
If you are using desktop the the URL would look like this (https://www.facebook.com/hashtag/funny).


Friday, 16 October 2015

Some handy youtube shortcuts you might be interested to know


As we you know some of us have been watching Youtube years after years still some of us doesn't know some basic shortcuts of Youtube video player. So here are some tips which might save you some time and make your life bit more easier.

Tip1:
While playing the video some us hits the "space Key" to pause the video, but the pause key for Youtube is the letter {K}.


Tip2:
If you want to mute the sound then simply press the letter {M} on your keyboard.

Tip3:
Press {F} to watch in full scree and press again to make it small.

Tip4:
By pressing the letter {J} you can go back 10 second and by pressing letter {L} you can go 10second forward.

Tip5:
If you click on the left arrow {} it will go 5 seconds back and if you click on the right {
} it will go 5 seconds forward. 
Press and hold {} for going fast backward and press and hold {} to go fast forward.

Tip6:
To start from the beginning press {0}.

Tip7:
Any video on the youtube is divided into 10 equal parts like 10%, 20%, 30%, 40% and so on. You can click on any number from 1 to 9 to start watching from the percentage you want, for example if you press 5 then it will start from middle of the video and if press 9 then it will play last 10% of the video.

I hope this shortcuts will help you and hopefully you'll remember me every time you press on a shortcut key. Lol, just joking. :)


Thursday, 15 October 2015

Does fame and money make people arrogant?

Well, I was thinking not to write anything about this topic but after reading some comments I couldn't hold myself back any longer.  It made me think that why all the famous people stay humble at the beginning and when they become famous they start showing their true colour. I know you might say not all of them like that. Yes, you probebly right but we can see most of them are like that though.

So what can normal people do about it?
Well, normal people can play big role in this. Imagine the root cause of it, it's most likely fame and money, and how do they get these two things? They get it because of normal people becoming mad and hardcore fans of them. Imagine what would happen if most of the fans if not all of them ignore these (famous) people, trust me they would beg you. It happened in the past and keep happening and will happen in the future too.

Let me give you a small example. There were few youtubers and they were quite popular all over the globe, so once they said that they are going to make a tour and said to their fans that we are going to meet andgreet here and there and we are taking part in this event and that event so you lot come. And they (fans) did show up in huge amount even though they (youtubers) charged them (fans) for tickets heavily.

But something happened when they went back to their country, they got split up and they don't make much videos together any more. And recently one of them announced that he's going on tour and asking his fans to come over but guess what, this time he is not charging for the tickets. Wow big deal!!! So that's kind of indicates that he knows this time people might not come that much or probebly they might not come at all, but because he has to hold his position that's why he's making it free. So in this story we can see that fans still can drag famous people down to their knees.

OK, coming back to the main cause of writing this post. Actually recently a Youtuber from Bangladesh become popular (even though in my view he is not that popular yet) he has got 135,203+ subscribers on youtube and 146,533+ on Facebook and his name is Salman Mohammad Muqtadir.

Yes, that's him and now let's see some of his comments.

I hope you've already understood up to the "Isnt it fuuny?" but you migh get some difficulties to understand what he wrote after that. Don't worry I'll try to help you out. He says "it doesn't matter how loud you yell, or how upset you become, or how much you swear (probebly he meant at him), your reach is up to that comment box. So don't cry. I won't swear at you, you may aswel do something, I'll salute you then. I swear!"

I liked it how he said "I'll salute you if you do something" (he probebly meant good positive things maybe), but look at the other things he said to him "your reach is up to that comment box" Lol, it seems like his (Mr. salman's) reach is to every single human on earth or something. Calm down!

Not everyone is lucky like you.
Some people try their best to show their talents but they can't do it because of lack means. You probebly got popularity from your youtube videos which viewed by normal people hundreds and thousands of times, and who knows he probably one of the hundreds and thousands who made you popular. Please try to appreciate people and not hurting them.

Let's see one more comment from him.

Wow, the way he says "each penny spent on my vacation by me. I worked hard for it.", making videos, taliking or making some move front of a camera is too hard for some people. But there are so many people in the same country (BD) who work hard (by this hard I mean really hard) from morning to evening and get only 2/3 dollars a day, and who knows from many of these poor people might be fans of him.
So once someone gets too many fans then making money is nothing for him. It's just like grabbing water from the rain. Forget hardship, he can even make money jsut by sitting like a begger with some sponsored shoes (don't get me wrong, just saying).

I know how AtiQur RahMan SherLock's feeling, because I've been and still going through that situation. Tell this " life is full of blessings" to someone who doesn't have money and can't go anywhere for vacation. Forget vacation, he can't even efford to have food 1 time a day, he will tell you how life is full of blessings.

It makes people very sad when a guy in a ferrari roaming around, enjoying his life then comes to a poor guy and says "wow life is so amazing and full of blessings". Think about the situation of the poor guy, how would he feel.

Request to famous people:
Please appreciate your fans, end of the day you are what you are because of those fans. If they dump you then you'll be unknown person again and no one will recognise you. Do good stuffs, because people look upto you and everyone tries to follow you and get success in their life.

Request to fans:
Please try not be a hardcore, mentally programmed like robot fan of someone. If you see something which you think is not suitable for him to say or do, then ignore him or dump him if necessary. You'll find many more entertaining people or things in the word to entertain you.

Please don't get me wrong. Stop hating each other and spread love and make the world a peaceful place to live on. Peace!!!

Tuesday, 13 October 2015

How to make sound with soil moisture sensor


What bettar way of knowing that your plant or garden wants water by giving you sound alert! Well, in this post I'll share a sketch which exactly does that. It make a sound alert when it needs water plus turns on a led to give you a visual alert too.

Let's see the circuit now.

And the sketch.
int led1 = 4;

void setup() {
// initialize serial communication at 9600 bits per second:
pinMode(led1, OUTPUT);
Serial.begin(9600);
}


void beep1(){

  tone(8, 440, 200);
  delay(50);
  noTone(8);
  delay(100);
 
  tone(8, 440, 200);
  delay(100);
  noTone(8);
  delay(100);
 
  tone(8, 440, 200);
  delay(200);
  noTone(8);
  delay(100);
 
}

void loop() {

int sensorValue = analogRead(A2);

if (sensorValue >=300 && sensorValue <=800){
Serial.println(sensorValue);
    beep1();
    digitalWrite(led1, HIGH);
  }
  else {
Serial.println(sensorValue);
    digitalWrite(led1, LOW);
  }
delay(300000);
// reads every five minutes
}

I've already talked about led, analog pin, and value in detail on my other post, if you need help on that then please see that post. Over here I've just added one extra function and that's Arduino's built in tone function. To make the sound you won't need any extra hardware, you just need few lines of code and that is

tone(8, 440, 200);
delay(50);
noTone(8);

  • The number 8 is in the code is for buzzer or speaker, remember if you change the pin number in one place change the number from other place too. Both should be the same number, otherwise your speaker won't work. 
  • 440 and 200 is to control the pitch of the sound. It will make different sound if you change the numbers up and downd.
  • delay(50); This number is to make the sound shorter or longer.
That's all for this post. Thanks :)

Friday, 9 October 2015

Turning led on and off with soil moisture sensor

Once you know how to turn a led with soil moisture sensor then you can do anything you like, for example turning on a motor and turning it off or turn on a tap to water the garden or turning light on and off and so on.

In this post I'll share with you a simple sketch but as I've said before by changing a bit you can control lot of other things, so let's see the sketch first.

The sketch to turn a led on and off
int led1 = 4;

void setup() {
// initialize serial communication at 9600 bits per second:
pinMode(led1, OUTPUT);
Serial.begin(9600);
}


void loop() {
// read the input on analog pin 0:
int sensorValue = analogRead(A0);

if (sensorValue >=600 && sensorValue <=800){
Serial.println(sensorValue);
    digitalWrite(led1, HIGH);
  }
  else {
Serial.println(sensorValue);
    digitalWrite(led1, LOW);
  }
delay(1000);
}
Pins:
  • GND of the sensor goes to GND of the Arduino.
  • VCC of the sensor goes to 3V. Even though in the manual it says it can handle 5volts and I've tried few times but it didn't work so I think 3 volts is fine.
  • A0 of the sensor goes to analogue pin 0 of the Arduino
  • I have made pin number 4 for LED but it's up to you which ever pin you want to use. 

What can you change?
  •  int sensorValue = analogRead(A0); // In this you can change the analogue pin 0 to other pins, but make sure you change in the "sensorValue" pin as well.
  •  if (sensorValue >=600 && sensorValue <=800){ // First let me tell you what this line actually does. Basically by putting 600 and 800 in the above line you telling the sensor that if the value number (which obviously tells you how moist the soil is) is above 600 and under 800 than turn on the led1 and that's done by this line digitalWrite(led1, HIGH);.
  •   if (sensorValue >=600){ // If you don't like the between value like shown at the example avobe than this code will do the trick. Basically this code means if value digits are more than 600 then it will turn the led on.
And if the moisture level is below 600 and above 800 it will turn the led1 off which is done by this line (digitalWrite(led1, LOW);). You can change the numbers (600 and 800) according to your need.
  •  (delay(1000);) This means the sketch takes reading from the sensor and prints it on serial monitor after every second, you can make it slower for example make it get the readings after each 15 minutes or faster like five times in one second as you wish.
To make it slow or fast you just need to change the number.
Here are some examples,
1000 means 1 second and
1000x60 seconds = 60000 that's one minute, and  that's how you can calculate.
That's all for this post, I hope you can make interesting things with this sketch and if you didn't understand something then please feel free to ask me in the comment below. Thanks :)

How to create clickable link in a blogspot comment

I've seen many people trying to post a comment with a clickable link on my posts, either they want to promote their websites or they want to refer to a site which explains more about that subject, which I don't mind them leaving the link on my posts, but remember I don't like people try to promote their site excessively, in that case it will be considered as a spam and unfortunately I'll have to delete it.

Any way coming to the main point, how can you make clickcble link? Well, it's simple just use normal html hyperlink code like the code below.
  • <a href="http://www.amazingtips247.co.uk/">Amazingtips247</a>
  • Remember to copy the code above from beginning to the end.
  • Replace the link (http://www.amazingtips247.co.uk/) with the link that you want.
  • Remember to name the link (>Amazingtips247<) accordingly. 
That's all for this tip, I hope you've liked it and I'm leaving the first comment as an example to let you see. :)
Note:
I'm sorry to say that my first link comment is not working, that's because I've changed to normal comment option to Google+ and I'm sure this is still works on normal blog.

Wednesday, 7 October 2015

Whatsapp hyperlink for website


In this small post I want to share with you a small yet very helpful tip. This tip is helpful for website owners, web masters, bloggers and normal visitors as well.

I'm talking about how you can share your website link straight on Whatsapp. As you know nowadays many people use their smart phones and tablets to brows the internet, and when they see something interesting and want share with their friends & families, they have to go through lot of hassle by going to the menu then clicking on the share then choosing Whatsapp then send the link to your friend.
Wouldn't it be a good idea if they just click on a link and it send the message or link straight to their whatsapp? Well, I think almost everyone will like the idea.
Ad

So let us see the code and make it work then.
<a href="whatsapp://send?text=http://www.amazingtips247.co.uk/2015/09/the-super-lucky-saudi-man.html">Whatsapp this page</a>

  • Copy the code above (from <a to /a>) and paste it on your site. 
  • Now after saving your site, open it on mobile and you will see a link like this (Whatsapp this page).
  • Now click on it.
  • Them select the person you want to send the link to, from the contact list.
  • That's it you are done. Now if someone visit your page on a moblie device and clicks on "Whatsapp this page"  and then select the person. They will see "http://www.amazingtips247.co.uk/2015/09/the-super-lucky-saudi-man.html" in their whatsapp ready to be shared. 

Remeber this works only on mobile devices.
Note:
Instead of the link if you write something for example <a href="whatsapp://send?text=This is testing message.">Send the message</a> then if someone click on "Send the message" they will see "This is testing message." in their whatsapp ready to be shared.
Ad

***
Related posts ::
How to see and save WhatsApp's sent pictures?
How to get specific whatsApp voice note from your mobile
How to share any link with Viber, WhatsApp and more (For normal people)
How to prevent WhatsApp from using up your mobile data

Friday, 2 October 2015

Circuit diagram of L293d motor driver and how to wire it up

After seeing some complicated circuit diagram of L293D motor driver online. I thought why not make it more easier for people. And that's why in this post I'm sharing a colourful circuit diagram of L293D. So that you can clearly understand which wire is going where.
Ad


In the diagram above you can see all the wires are in different colour except for both motor wires. Well, I've made it one colour for both, because the pin 3, 6, 11 and 14 can turn into + or - at any time. So I though there is no point of making  them in different colour.

OK, let's go through some important pins. Pin 3 and 6 is for left motor and pin 11 and 14 is for right motor. Pin 1, 9 and 16 for Arduino 5v and Pin 4, 5, 12 and 13 is for GND of both Arduino and the external power. Pin 2 and 7 is for controlling left motor and pin 10 and 15 is to control the right motor. And finally the pin number 8 is for v in of external power.

Now let us see the sketch, but before I share the sketch let me tell you what it actually does.
  • It starts with 2 seconds delay, just to give some time to settle down when you press the reset button.
  • Turns on the green LED to let you know that it's ready to go.
  • Goes forward 2 seconds.
  • Turns left.
  • Comes back.
  • Turns right
  • Comes back
  • Goes backward for 2 seconds.
  • It will do all the above tasks once then will stop, if you want to make it do again then press the reset button.
The sketch 


int lmotorf = 2;
int lmotorb = 3;
int rmotorf = 4;
int rmotorb = 5;
int greenled = 6;

// the setup routine runs once when you press reset:
void setup() {              
  // initialize the digital pin as an output.
  pinMode(lmotorf, OUTPUT);
  pinMode(lmotorb, OUTPUT);
  pinMode(rmotorf, OUTPUT);
  pinMode(rmotorb, OUTPUT);
  pinMode(greenled, OUTPUT);


  delay(2000);
  digitalWrite(greenled, 1);
  delay(500);
  digitalWrite(greenled, 0);
  delay(10);

  
  digitalWrite(lmotorf, HIGH);   // turn the leftforward on.
  digitalWrite(rmotorf, HIGH);  // turn the rightforward on.
  delay(2000);      // wait for a miliseconds
  digitalWrite(lmotorf, LOW);  // turn the leftforward off.
  digitalWrite(rmotorf, LOW); // turn the rightforward off.
  delay(1000);
 
  digitalWrite(rmotorf, HIGH);
  delay(500);
  digitalWrite(rmotorf, LOW);
  delay(1000);

  digitalWrite(rmotorb, HIGH);
  delay(500);
  digitalWrite(rmotorb, LOW);
  delay(1000);
 
  digitalWrite(lmotorf, HIGH);
  delay(500);
  digitalWrite(lmotorf, LOW);
  delay(1000);

  digitalWrite(lmotorb, HIGH);
  delay(500);
  digitalWrite(lmotorb, LOW);
  delay(1000);
 
  digitalWrite(lmotorb, HIGH); 
  digitalWrite(rmotorb, HIGH);
  delay(2000);
  digitalWrite(lmotorb, LOW);  
  digitalWrite(rmotorb, LOW);
  delay(50);
 
}

// the loop routine runs over and over again forever:
void loop() {
          
  delay(50);            
}


Few pin names which you might not have understood.
  • lmotorf = Left motor forward.
  • lmotorb = Left motor backward.
  • rmotorf = Right motor forward.
  • rmotorb = Right motor backward.

Just by getting control of the motors you can do lot of things. For example moving robotic arms up and down or turning it side to side and so on. This is a simple sketch, but just by editing a bit you can control the motor on your command. If you didn't understand something, please let me know in the comments below.

Let's see the sketch in action

Ad

  • l293d motor driver with motor connection
  • l293d ckt diagram
  • l293d diagram
  • l293d motor driver circuit diagram
  • l293d motor driver pin diagram
  • l293d motor driver
  • 4 motor driver circuit diagram
  • circuit diagram for motor drive
  • diagram of l293d
  • image of l293d motor driver
  • motor drive circuit from l293d
  • motor driver ic l293d circuit