Sunday, 25 December 2016

Shoe Fan with Arduino

Have ever heared people joking about smelly shoes?

Well, this the perfect way of keep your shoes stink free. Let me explain how it works. There is a ultrasonic sensor which measure the distance between itsefl and a object front of it (in this case the shoes). When someone places shoes front of it, it turns on the servo motor which brings the main motor to the correct position and then the main motor turns on for few seconds (you can make it longer if you want) and then goes back to the side so that shoes don't come in the way.
Ad

The sketch
#include <Servo.h>

Servo myservo;  // create servo object to control a servo
int pos = 0;    // variable to store the servo position
int motor = 4;

int trigPin = 5;
int echoPin = 6;

void setup() {
  Serial.begin (9600);
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);
  myservo.attach(7);  // attaches the servo on pin 7 to the servo object
  pinMode (motor,OUTPUT);
}

void firstsensor(){ // This function is for first sensor.
  int duration1, distance1;
  digitalWrite (trigPin, HIGH);
  delayMicroseconds (10);
  digitalWrite (trigPin, LOW);
  duration1 = pulseIn (echoPin, HIGH);
  distance1 = (duration1/2) / 29.1;

      Serial.print("1st Sensor: ");
      Serial.print(distance1);
      Serial.print("cm    ");

  if (distance1 < 10) {  // Change the number for long or short distances.
//
  for (pos = 0; pos <= 95; pos += 1) { // goes from 0 degrees to 95 degrees
    // in steps of 1 degree
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(30);                       // waits 30ms for the servo to reach the position
  }
  digitalWrite (motor, HIGH);
      delay(10000);  // motor will keep rotating for 10 seconds
  digitalWrite (motor, LOW);    
    
  for (pos = 95; pos >= 0; pos -= 1) { // goes from 95 degrees to 0 degrees
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(30);                       // waits 30ms for the servo to reach the position
  }
//
  } else {
   // nothing
  } 
}

void loop() {
Serial.println("\n");
firstsensor();
delay(1000); // takes the reading after 1 second
}

Ad

Note:
If you use the sketch above then the main motor will come back  after each 11 to 12 second that's because the ultra sonic sensor gets reading after 1 second and the motor runs for 10 seconds.

How can you make the motor run long time?
To do that simply change the green highlighted delay to what ever amount of time you want.

How can you make the cycle longer like once in 2 hours?
To do that you can change yellow highlighted daley to delay(7200000); that means that the ultrasonic sensor will take the reading after each 2 hours.

Let's see the code in action

Ad



Wednesday, 21 December 2016

Adam Saleh got kicked out of Delta Flight

Adam Saleh a YouTube star prankster who recently got kicked out of a Delta flight because he spoke in Arabic on the phone with his mom and with his friend. He (Adam Saleh) said that when he spoke in Arabic people felt uncomfortable and that's why they removed him and his friend.
Ad

Well, if this incident would have happened with any other person I would have felt really bad for him, but for this (Adam Saleh) guy I don't feel anything. Because he is an attention seeker and loves to create scenes like this all the time, and his YouTube channel is full of pranks and lies. Let me show you some of his videos so that you understand that how long he might have been trying to create this scene for.






I think this Youtuber explains even better way. Watch the video below.

I don't really understand why people are getting mad on this issue. I don't think this would go that far if he was an unknown person. :(

Later Aljazeera reported [Delta Airlines said the man, Adam Saleh, and the other passenger were removed because they "sought to disrupt the cabin with provocative behaviour, including shouting".]

Well, I'm not shocked at all, and they probably right because this guy is obsessed with those kind of behaviour. You can watch his videos on YouTube if you don't believe.  Greedy piece of sh*t! Does all these for subscribers and views = $$$$



.......
Most frequently asked questions about Adam Saleh
.......
Ad


Monday, 19 December 2016

10 Funny tweets of the day S01

Tweet 1.

Tweet 2.

Tweet 3.

Tweet 4.
Tweet 5.

Tweet 6.

Tweet 7.

Tweet 8.

Tweet 9.

Tweet 10



Saturday, 17 December 2016

Arduino rgb led code

In this post I will share a small sketch by which you can control a RGB led and make what ever colour you want.
Ad

How many colour can you make with this sketch?
Actually it's all up to you how many colours you want to make, but in this sketch 5 colours has been set.
  • Red
  • Green
  • Blue
  • Yellow
  • Aqua
Functions:
After wiring up the led and uploading the sketch you can use these commands to cotrol the led.
on = On
off = Off
g = Green
r = Red
b = Blue
y = Yellow
a = Aqua

The Sketch

int redPin = 4;
int greenPin = 5;
int bluePin = 6;

#define COMMON_ANODE
void setup() {
// initialize serial communication at 9600 bits per second:
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
 Serial.begin(9600);
}

void setColor(int red, int green, int blue)
{
#ifdef COMMON_ANODE
red = 255 - red;
green = 255 - green;
blue = 255 - blue;
#endif
analogWrite(redPin, red);
analogWrite(greenPin, green);
analogWrite(bluePin, blue);



String str;

void r(){
  setColor(255, 0, 0); // red
  Serial.println("The red led is on now");
}

void g(){
setColor(0, 255, 0); // green 
  Serial.println("The green led is on now");
}

void b(){
 setColor(0, 0, 255); // blue
   Serial.println("The blue led is on now");
}

void y(){
 setColor(255, 255, 0);// yellow
   Serial.println("The yellow led is on now");
}

void a(){
setColor(0, 255, 255);// aqua 
  Serial.println("The aqua led is on now");
}

void on(){
setColor(255, 255, 255);// on
  Serial.println("The light is on now");
}

void off(){
setColor(0, 0, 0);// off
  Serial.println("The light is off now");
}


void loop() {
 
  if(Serial.available())
{
str = Serial.readStringUntil('\n');

if(str == "g"){
g();
  }

if(str == "r"){
r();
  }

if(str == "b"){
b();
  }

if(str == "y"){
y();
  }

if(str == "a"){
a();
  }

if(str == "off"){
off();
  }

if(str == "on"){
on();
  }
 }
}

How do you make these colours?
Well, it's simple just by controlling and mixing these three (Red, Green and Blue) colours you can make as many colours you want.

For example by turning on red and green you make yellow colour. setColor(255, 255, 0);// yellow
and  by mixing green and blue you make a Aqua colour. setColor(0, 255, 255);// aqua 

Where can I find the RGB codes?
Just Google it you will find plenty of them make sure you don't get html code that's different than these.
Note: You might use resistors for led, I didn't use it because it was not making colours properly for me.

Ad



Wednesday, 14 December 2016

Dad tries to save his kid from bullies and gets beaten up


There is video clip going viral now in which a dad tries to defend his kid from some bullies and gets beaten up very badly. I knew nowadays kids don't respect elders much, but never knew they can go this far.

Some people are saying that the dad pushed and punch other kid as you can see in the video above. But it seems like the dad tried to go closer to his son and the other kid came and provoked him. You can see in the video below he (the dad) "I thought they were jumping in on him. What would do you if it was your kid?".
Ad

Many people frustrated by this incident and showing their anger through comments.

1. [ If it was my kid doing the bullying and beating???? I would beat his or her ass........to be sure!!!! They would feel the wrath and know what it is like to be bullied and beaten!!!]

2. [i would've gotten back in the car and run those fucks over, that is if i hadn't already beaten one of them to a pulp with the metal pipe i carry in my trunk]

3. [Fucking cunts if you did that to me I would hunt you one by one and I swear I would fucking destroy you, I would die for my son trying to protect him against bullies!! ]

4. [First I would like to say way to go Dad for sticking up your son. Second what the HELL is wrong with kids now days??? They all need to spend a few nights in jail for doing this.]
Well, it seems like this guy is right. Nowadays kids got too much freedom they can do what ever sh*t they want and they won't get punished and they know this very well that's why they act like wild animals.

5. [ This happens when children are not disciplined and taught respect. I got my ass beat growing up, there just isn't decency anymore. ]
Ad



Tuesday, 13 December 2016

How can you lock your computer with real lock?

You might have seen fake pictures where people have zipped their mouth and locked with a padlock but never seen a computer locked with a real lock. Did you?

Ad

Well, in the video below you can see this guy came up with the idea to fit a lock on a normal computer so that people can't even turn it on.


What does it do and how does it work?
First you need a lock that can turn something on/off by turning it right or left with the key. Once you get the lock you need to connect it with the power switch on the computer, like two parallel switches. That means if you try to turn on with the one switch you can't turn it on until you turn on the other switch too. You need to turn both switch on to turn on the computer and in this case one normal switch and another with the key. So if you disconnect the power with the key switch and take the key with you then no one will be able turn the power on to use the computer. Simple as that.


Ad


Monday, 12 December 2016

6 Best ways to avoid clickbaits

If you are one of those people who try to be a grammar police and judge an article by how it's been  written and not what it's actually trying to say, then you deserve the clickbaits. That's because people like you make them do that. In this post I've tried to explain how you can avoid the clickbaits but it may not be suitable for grammar police kind of people.

Ad

Why people use clickbaits.
As you already know that every one wants to make money, and how can they make more money? The answer is by grabbing attention of people in such a way that they definitely visit their websites.

But people don't easily go to a site (like this one) where it trys to be simple and straight to the point. Instead they want to go somewhere, where they get hooked up with useless things and start going round and round and never find a way out.

Ok let's start with the some ideas now: 
1. Don't click any link that is not familiar to you.

How can you find out what kind of link you clicking?
Well, some times it might be a bit difficult to know which lick you clicking because it's hidden under the nice attention grabbing words or could be hidden under a picture. For example, Click here to see 10 Jaw-Dropping dog photos. But if you click on the link you will go the home page. So to find out these kind of misguided links, just hover you cursor on the link and you will see the destination link (URL) at bottom left hand corner of your browser is you are using Firefox or Chrome.

 2. Read the comments first. If you are on facebook and see a clickbait kind of article link first read the comments because there will be at least an idiot who has clicked on it found it terrible or some experienced people commented what kind of link is that.

3. Stay away from links contains “exclusive”, “shocking” or “sensational” kind of word in it.

4. Stay away from unrealistic pictures like below. Most of the time pictures like these been used just to grab your attention.
You will find most big YouTubers do this (that's how they became big) and I don't blame thaem. That because you don't get views if you stay normal and straight to the point. I've experienced myself. People don't give sh*t about your videos although you spend hours and hours behind making the video.
Ad

5. If anyone (even your friend) sends a link never click on it until you know where it will take you to.

6. Make a list of sites that you had bad experience so that when you see a link which trying to take you to that site you can avoid.

These are the few tips to avoid clickbaits for those people who really look for info that they want. And not like people who think to be smart (actually dumb) but keep going to the same place again and again and never learn from their mistakes. And  still go there and complain about the clickbaits, and when they see their idol didn't listen to them they still go there and watch his/her videos. Those people really deserve the clickbait and should never complain about it, because they simply can't use their brain.


Ad



Sunday, 11 December 2016

How to save viber chat history without an email?

If you are trying to save and back up your viber conversations there is a simple way of doing that and that is to email your back up files to what ever email address you want. But many people might not want share their privet messages via email so in this post I'll show you how you can back up your chat and send it to another phone directly without any emails.

Ad

So here is what you need to do.
  1. Open Viber
  2. Select More options (Menu)
  3. Select Settings
  4. Select Calls and messages 
  5. Select Email message history
When you will click on the "Select Email message history" it will make a compressed zipped folder where it will save all the chat history for every single person you have ever talked to from last viber installation. Be patiant, it might take some time to prepare all the chat files.

6. Once it finishes preparing the files it will ask you if you would like to send via email or any other options? Select via BlueTooth.

Now once you get the folder on your phone you can transfer that to your computer and laptop. Remember you can only see text messages only and you will not get your photo messages.

Can you save a specific chat?
Well, there is an option in WhatsApp but sadly I didn't see that option on viber.

Why not Google drive and email?
Your data will not be protected by Viber encryption as Viber says. That means any third party who can get access to your email and Google drive can see your messages.

 That's all for this post I hope it helps you.


Ad


Thursday, 8 December 2016

Stonehenge mystery solved by a construction worker


A man from Michigan has discovered how to move and lift 20+ tonne blocks by hand using only wood, pebbles, counterweights and man power. He Creates a compelling argument for the methods used in the construction of Stonehenge, the Pyramids etc...

I hope the video doesn't get deleted so that you can see for yourself that how he has managed to do it, and know that you don't need scientists and bib big degrees to solve every mystery. In this case scientists have trying to solve this for ages but a simple construction worker has solved it for them. So never see anyone down graded, who knows he probably knows something which big people don't know.

Ads

Some best comments:

[You gotta be shitting me. Holy f**k! I gotta try this asap. And all the Ph.D scientists with Ivy League "degrees" couldn't figure out this technique, but a construction guy from MI did? LOL............crazy shit.]

[Brillant!! This guy shud be given an award:) God has given every human so much potential to do things all we need is a will to do it :)]

[Takes someone who thinks outside the lines to solve these age old mysteries.]

[Humans can figure anything out over time and that's why I knew all along aliens didn't build the pyramids humans did.]

Ads


Wednesday, 7 December 2016

Why you should ignore hits from Samara, Russia


If you are website owner or a blogger, soon or later you might see many hits from Samara (The capital of spammers and mentally ill people).

In one month I saw more than 1000 hits from Russia and most of the hits were from Smara. I got quite happy to see those hits but when I opened my AdSense to check how much I got from them, I didn't even find a single penny. Then I did a small research and found out that these are all useless hits from spam robots and not from actual human.
Ads

What to do?
If you want you can block the domains where the hits coming from, but I think it will be useless because these mentally ill people will come with other ideas to spam your site.

Never visit their sites if you do first search on Google and see what people have said about it.

Are they getting any benefits for doing this?
Well, if they are doing this for political gain then they might have taken some money or something to spam your site. If they have already taken the money then that's their profit so it does matter what yoy say and how you feel.

These scumbags might come up with other names as referral like listed below, never fall into there trap.
  • washingtonpost.com
  • backlinkwatch.com
  • blackhatworld.com
  • motherboard.vice.com   
And more.....

If they are thinking that by spamming they can bring their website on top of Google page rankings, then they clearly didn't understand how Google SEO works and this way they will never ever come close to Google's first page forget about first link.

And one more thing, by spamming they are defaming their country and city . Who ever came across this problem will never ever see Russia same way again as he used to see it before. And when ever he will hear about Russia will think, Oh no that bulshit country full of spammers (mentally unstable).

My question:
What did I do to you? If I didn't harm you in any way then why you harming me by spamming my site?
Let me tell you what harm they did to me. After lot of spam hits Google delayed indexing my new posts to Google and therefore I'm losing more real hits from human. And because of that I'm losing money what ever small amount I was getting. :(

What I wish:
Before I go to bed every day, I wish please no hits from Russia! No, not even a single hit from those scum bags. Please! Please! Please!

Do you judge people by money?
You might think that because I didn't get any money from Russian people that's why I'm upset. Well, actually That's not the case completely. I do need money specially if you think about the amount of time I spend behind this website to make it more helpful day by day so that people can get help from, and in return I should have at least some rights to expect for some money don't you think so. I'm sure if you were in my place you would have expected even more than  what I do.

I'm a poor guy who hopes that one day he will leave his day job and live on the earnings of this website. This is the only my hope for money and getting reach. I hope one day I can travel around the world with this money but that (hope) will go in vain if spammers keep coming here.

So F off you Russian scum bags pigs. You will never ever get a single visit from me, you can do what ever shit you want.
Shame on you! Can't even efford to get a decent browser and come here to spam and say you dominate the internet and Google with your bulshit. Really they are high even in their dreams!!!

Ads



Tuesday, 6 December 2016

10 Best WhatsApp tips will make your life more easier

I don't think I need to introduce you what WhatsApp is because out of 7.5 billion total world population over 1 billion are WhatsApp users. Although we might use it more frequently but sometimes we still miss out the most basic functions. So here are some cool WhatsApp tips which will make your life much easier.

Ad

1. Quote in reply.
Just select the message and tap the reply button (left arrow at the top).

2. Change font formatting
*your word* << For bold, make sure no space between the star and first letter and between star and the last letter.
_your word_ << For italics.
~yoyr word~ << For strike through.

3. Chech when messages delivered and read.
Long tap the message and tap on the message info (round icon includes an i in the middle).

4. Bookmark important messages.
Specific chat > specific message > long tap message and then tap the star at tge top.

To see all the bookmarked messages, open WhatsApp >> Menu >> Starred Messages.

5. Send your message in new font.
Use this special character 3 times before and after what ever you want send ```hello```.

6. Backup your chats Conversation.
Menu >> settings>> chats >> chat back up >> click on the backup button.

Ad

7. Email your chat.
Menu >> settings >> chats >> Chat history >> Email chat. Remember the chat you will send via email it will be in a text file.

8. Stop automatic downloading pictures and videos on your phone.
Menu >> Settings >> Data usage >> uncheck Photos, Audio, Videos and Documents from "When using mobile data", "When connected on Wi-Fi" and "When roaming".

9. WhatsApp Web (Use WatsApp on your computer without an app).
On your coputer go to web.whatsapp.com then on your phone tap the Manu then thap on WhatsApp Web and scan the QR code which showing on your computer.

10. Send one message to multiple WhatsApp users.
Long tap the message or messages you want to send, then tap on the forward arrow and then choose people from the contacts and send.

I hope this helped you if it did please feel free to share this with your friends. Thanks

Ad


Sunday, 4 December 2016

Can anyone take control over your drone?

Well, you might get surprised by this news that a company called droneshield has already made a device which can take control of your drone within 2 km range.

How does it work?
If you go to the official website then you may not find where it says how it works, but according to rt.com it is a "jammer that bamboozles drones through pulses of radio waves at frequencies between 2.38 and 5.82Ghz.".

Ad

Coverage:
It can cover up 2km in a wide range of environmental conditions.

Are you allowed to have this?
It seems like if  are in the USA then you may not be able to buy it at the moment, that's what it says. "This device is not, and may not be, offered for sale or lease, or sold or leased, in the United States, other than to the United States government and its agencies, until such authorization is obtained."



Let's see what other people thinking about this DroneGun.

*[Also this is pointless since drones can be programmed to return to its launch location when it loses signal.]*
 He is probably talking about the drone which comes to its original place when it loses signal from the remote by using GPS. But because GPS can also be spoofed, so his argument may not be valid.

*[This is the finest bullshit I've ever seen so far... You can't just hook into a secured and encrypted connection between a DJI remote and drone like that, max. you can do is to cut the connection between the drone and the pilots remote tho then the drone will simply hover 2 minutes in the air and return to home after that, but NOT LAND IN FRONT OF THE DRONEGUN USER!]*

This comment sounds good but what if the gun can record the frequencies of the encrypted data from the remote then sends it to the drone? Remember drone can generate frequencies between 2.38 and 5.82Ghz.

If you read the comments under the video on YouTube, you will find many people are still skeptical about this device. Some of them are saying that it maybe a fake video.

Ad


Saturday, 3 December 2016

How to use lock screen as a reminder

If you are like me who easily forgets things but never forgets to check his phone every few minutes then this trick is for you to remember important stuffs.

Ok, before I tell you how you can do that let answer a you a question, which you probably thinking in your head that why can't you just set the reminder?

Ads

Well, I think that people set the reminder for certain things that if it (reminder in the phone) reminds ones you can remember that for whole day or until the thing is done. But there are some things that is not very important but kind of important as well. So for those kind of things you need a constant reminder, because if it reminds you once you might forget it.

How to do it?
This is for Android users, I'm sure there must be a way for iPhone users too.
1. Go to the settings.
2. Click on the "Lock screen" icon.
3. Scroll down and click on "Owner information".
4. You will see a pop up, write what ever you want to be reminded.
5. Make sure you check the "Show owner info on lock screen." then hit OK.

Can you write a full list of things?
Well, I think it would be better if you write the full list of things on the Memo and just write "Check the list of things on the memo" that will do that job.

Ads


Thursday, 1 December 2016

Why can't I copy facebook comments


Did you ever come across this problem, where while browsing through facebook posts you have seen a nice funny comment that you wanted to copy, so that you can save it in text file and read it afterwards but you couldn't copy it?

Ad

Well, that happened to me lot of times, specially on my phone and tablet not on computer though.

How can you solve this problem?
You can solve it in two ways or maybe more, but I got these two ideas in my head which worked for me.
  1. Set the browser to desktop version. This sometimes worked for me and sometimes it didn't.
  2. Take a screenshot of that comment >> then crop it to the specific part that you want to copy >> then upload the picture to a site called onlineocr.net >> after uploading the picture enter captcha code >> then hit the convert button. Now you'll have all text file only which you can copy and save it anywhere you want.
Can you get text from any picture?
Yes if you find a picture and there are some texts in it, you can convert that to normal text file by using that website.

It so helpful that for example you go somewhere and saw something on the billboard and you didn't understand it, so you can just take a picture and convert it into texts then translate it by Google translator. It can even save your time, for example you saw a phone number and an address which you need to copy. Just take a picture of that and convert it to text, that's all. It will take less time to convert the picture into texts than writing everything, but remember the picture should be in good quality and clear.
That's all for this post I hope it helps you.

Ad



Monday, 28 November 2016

DHT22 with sound alert Arduino


After testing Dht11 temperature and humidity sensor I thought why not try with the next one which is high quality and can get the measurement more precisely. And that is DHT22/AM2302 Temperature Humidity Sensor. Let me give you some specification of it then I'll go for the sketch and at end give you some explanations.

Ads

Specification of DHT22/AM2302:
  • Type: AM2302
  • Accuracy resolution: 0.1
  • Humidity range: 0-100%RH
  • Temperature range: -40~80℃
  • Humidity measurement precision: ±2%RH
  • Temperature measurement precision: ±0.5℃
  • 4-pin package
  • Ultra-low power
  • No additional components
  • Excellent long-term stability
  • All calibration, digital output
  • Completely interchangeable
  • Long distance signal transmission
  • Relative humidity and temperature measurement
What does the sketch do?
If you can successfully upload the sketch to your Arduino broad then it will measure the temperature and humidity. And on the certain degree (which ever you set) it will turn on the LEDs and at same time it will give you a sound alert (what ever audio file you've saved) so that you can hear without looking at it.

The sketch

#include <SoftwareSerial.h>
#define ARDUINO_RX 10 //should connect to TX of the Serial MP3 Player module
#define ARDUINO_TX 9 //connect to RX of the module
SoftwareSerial mySerial(ARDUINO_RX, ARDUINO_TX);
static int8_t Send_buf[8] = {0} ;

#define CMD_SEL_DEV 0X09
#define DEV_TF 0X02
#define CMD_PLAY_W_VOL 0X22
#include <dht.h>
dht DHT;
#define DHT22_PIN 2
int led1 = 3;
int led2 = 4;

void setup()
{
  mySerial.begin(9600);
  Serial.begin(9600);
  Serial.println("DHT TEST PROGRAM ");
  Serial.print("LIBRARY VERSION: ");
  Serial.println(DHT_LIB_VERSION);
  Serial.println();
  Serial.println("Type,\tstatus,\tHumidity (%),\tTemperature (C)");

pinMode (led1,OUTPUT);
pinMode (led2,OUTPUT);
delay(500);//Wait chip initialization is complete
        sendCommand(CMD_SEL_DEV, DEV_TF);//select the TF card
delay(200);//wait for 200ms
}

void loop()
{
  // READ DATA
  Serial.print("DHT22, \t");
  int chk = DHT.read22(DHT22_PIN);
  switch (chk)
  {
    case DHTLIB_OK:
        Serial.print("OK,\t");
        break;
    case DHTLIB_ERROR_CHECKSUM:
        Serial.print("Checksum error,\t");
        break;
    case DHTLIB_ERROR_TIMEOUT:
        Serial.print("Time out error,\t");
        break;
    default:
        Serial.print("Unknown error,\t");
        break;
  }
  // DISPLAY DATA
  Serial.print(DHT.humidity, 1);
  Serial.print(",\t");
  Serial.println(DHT.temperature, 1);

if (DHT.humidity >60){
   digitalWrite (led1, HIGH);
   sendCommand(CMD_PLAY_W_VOL, 0X1E002); //play the sound track
   delay(4000); // length of the sound track
 } else {
      digitalWrite (led1, LOW);
 }

  if (DHT.temperature >24){
   digitalWrite (led2, HIGH);
   sendCommand(CMD_PLAY_W_VOL, 0X1E001); //play the sound track
   delay(4000); // length of the sound track
 } else {
      digitalWrite (led2, LOW);
 }

  delay(1000); //set how much time you want between readings
}

void sendCommand(int8_t command, int16_t dat)
{
  delay(20);
  Send_buf[0] = 0x7e;
  Send_buf[1] = 0xff;
  Send_buf[2] = 0x06;
  Send_buf[3] = command;
  Send_buf[4] = 0x00;//0x00 = no feedback, 0x01 = feedback
  Send_buf[5] = (int8_t)(dat >> 8);//datah
  Send_buf[6] = (int8_t)(dat); //datal
  Send_buf[7] = 0xef; //ending byte
  for(uint8_t i=0; i<8; i++)//
  {
    mySerial.write(Send_buf[i]) ;
  }
}
//
// END OF FILE
//

Note:
You may need few files in the Arduino library so that this sketch can work properly. You can get it from http://playground.arduino.cc/Main/DHTLib. Once you go there you will find a sketch and one dht.h and dht.cpp grab those two files and put it in a folder and call that folder DHT and then put that folder in the Arduno libraries folder. Anyways, this post is combination of my other two other posts DHT11 and Catalex MP3 player  if you find this post hard to understand then please have a look at those two posts first I've explained it in detail.

Things you need:
  • 2x LEDs
  • Catalex mp3 player
  • 1x 10k ohm resistor
  • 1x speaker
  • Adruino board
  • 1x DHT22
  • 1x micro sd card with sound files named 001and 002
That's all I think, I hope it helps you. And special thanks to icstation.com for providing me DHT22 and they have got so many other interesting things about Arduino. If are interested then please have a look at their site you might as well like it. http://www.icstation.com/dht22am2302-digi-temperature-humidity-sensor-p-1469.html


Tags:
Temperature And Humidity, Arduino Humidity, digital temperature humidity sensor, humidity and temperature sensor. 
 Ads



Sunday, 27 November 2016

Facebook is not showing comments on the right place


Ads

I don't really know if I'm the only one who is experiencing this problem or you as well going through the same.

Well, recently I have noticed that when I log in to Facebook (happened only on mobile devices) and click any of the news feed comments, then the comments are shown at the bottom of the page with the last post.

That's kind of very weird when it doesn't match with the post above them and make you think crazy. :(
After finding the solution I thought why not share with you so that it might make life much easier. :)

Solution:
It's simple, you can either set the browser as Desktop version or click on the comments and hold it for a second then click Open in new tab.

Note:
I've noticed this problem with Android tablet and Samsung S5 mini.

That's all, I hope it helps you.

Ads



Friday, 25 November 2016

How much big Youtubers really earn?


I used to think that people are not allowed to show their Youtube earning in public. Maybe because the big big Youtubers keep dragging the subject. So that people don't find out how much they are earning.
Well, Watch the video below and get the idea that how much they really earn. Although he is not that big but still the amount he is earning I can only think of that in my dream.


Ads

As you've seen pewdiepie hardly talked about how much he earns, but see the other guy who showed almost everything. That shows how sincere he is with his fans.

Comments:

* You are the real  MVP for doing this, most youtubers are to p***y, to into themselves to keep it real with the audience that made their youtube career so thanks for doing this and keeping things into perspective. I wish you the BEST of success on youtube and you got a new sub.

* To be honest, I've got no clue who you are. I saw the 24k and I was clickbaited :p But I have to say I like your honesty.

*Wow, that's pretty good amount of money you get from YouTube. Thanks for sharing this. Now I wanna create content for my channel.

Ads



Thursday, 24 November 2016

Best text to speech app I've ever found


If you have reach here by searching then you probably don't like to  reading much, and you are right how much can a person read. Well, nowadays people are too busy in social media sites and apps, and don't have time to read much particularly when you see a wall of text front of you.

So in this post I'll show you an android app which is really helpful and I have used it myself and found amazing. The app is called @Voice Aloud Reader. 1 million downloads! If the app is not good enough then why would hundreds of thousands of people download it?

Ads
Helpful features:
  • After opening the app if you go to any website and just copy any text it will automatically read it out loud for you.
  • You can save the text as an audio format.
  • After opening the app if you go to google and search something then click on the link and copy it, it will read the whole page (the link you tried to go).
  • You can save links to hear them afterwards.
  • You can listen to full page.
  • Well, there are some more features but these are the most useful I thought which you might need quite often.
How can you hear the full page?
First go to the page that you want to listen to. Then click on the menu (3 dots) >> Then click Share after that you will see two icons of @Voice Aloud Reader. One for add to the list to listen to it afterwards and another is to listen to it straight away, choose which ever you would like to do.

How to save the text as an audio?
If you want t save the texts as an audio file then >> Open the app >> click on the menu (3 dots) >> click Record sound file >> Check the box says Record sound file the next time I press the "Play" button. That's it, now if you go back and press the "Play" button it will make all the texts in one audio file.

I hope this helps you and if it does then feel free to share this. Thanks

Ads



Tuesday, 22 November 2016

Will Li-Fi be available everywhere and work?


After watching the video you probably thinking that how slow your Wi-Fi is and feeling very upset about it, and at the same time thinking how crap the Wi-Fi is against the Li-Fi. Well, in the reality it is not like that. Of course there are some  good sides about the Li-Fi but there are some good sides of Wi-Fi too, and that is what I want to talk about in this post.
Ad

Li-Fi vs Wi-FI
Speed:
Of course in this case Wi-Fi is no way near to Li-Fi.

Connectivity through the wall:
Li-Fi can't transfer data through walls so in this case Wi-Fi gets the wins.

Public internet connectivity:
People are saying that in the future they want Li-Fi to be in public places. Well, as you have seen in the video that to transfer data from your mobile phone to Li-Fi you have to have a receiver and emitter (in this case a light). So for example if you want to download a youtube video so you send a request to the Li-Fi, but it won't be able get the request until you show your emitter (light) towards the direction of Li-Fi receiver. How many times would you do that? How odd it will look if everyone start showing light towards the sensor. But with the Wi-Fi you can even send a request and download the video from inside your pocket.

Internet of Things
At the end of video above you probably have seen that he's trying to say that in the future people will try to connect almost everything with Li-Fi. Well, what I'm thinking is that people are not that stupid, specially who wants to connect bridge sensors with Li-Fi? First of all you don't need lighting speed to get few kb or mb of data to the sensor and another thing is that the Li-Fi receiver will get dirty for staying outside and once it gets covered by dust or so it will stop receiving any data. It's better to use radio transceiver for this and not Li-Fi. To get smart is good but to get over smart is foolish.

Security:
He said that Wi-Fi sends radio waves through the wall so it's easily picked up by others and that's why it's not safe. Well, I think he forgot to mention that you can put password on it and there is something called encryption and decryption. If you send something via Wi-Fi encrypted then no one can find out untill they have the right decrypting software. And same thing goes to Li-Fi so in this one I think both are same.

My final thought about Li-Fi:
Only thing I liked about Li-Fi is the speed, other than that I haven't found any good use of it til now. The guy in video might have made you think that Li-Fi is best, because that's how he gets more views and subscribers and therefore more money. Remember if you get something in a nice expensive box that doesn't mean that the object inside the box will be always nice and expensive. Please don't get me wrong, of course he must have done good research on it but I just can't agree everything he said.


Ads



Saturday, 19 November 2016

Why should you see criticism positively

Ads

I know it is hard to take criticism positively but in this post I will share a story with you which might change your mind about that.

This is a story about a well known celebrity in Bangladesh, his name is Hero Alom (real name Ashraful Hossen Alom). He came from a poor family and because of his financial problem he couldn't study much and started working. And after some time he started selling and renting song and movie CDs/DVDs. But that didn't go for long and the DVD business started going down so he started (small) satellite dish business.

The business was going quite well until a video song producer came to his village to shoot a video song. And Hero Alom got inspired by that and thought why not start making video songs. So he started making video songs on his own and started showing them to local people through his his dish channel.

He made more than 500 video songs here are few of them.





As you probably guessed it, most people didn't take him seriously because he didn't have much knowledge about acting and his looks and other stuff wasn't up to the standard as people think. So people (specially youngsters) started  dissing him and sharing his videos on YouTube, Facebook and other social media sites and that's how he became popular in short period of time.

So once he became famous and popular people and even big big companies started coming to him to interview him and offering to work with them. Now he kind of super star in Bangladesh and a very busy actor.

Note:
Because people disliked him at the beginning and shared his videos as a joke and he got popularity by that, and once he became famous many people came to rescue and started liking him. And now he is one of the successful actor.  So work hard to reach your goal no matter what people say and the success will be yours at the end.
Ads



Friday, 18 November 2016

Apple launched a book costs $300


Ads
Well, I thought it was a joke but Apple really launched a book with just the photos of their products costs about $300.00 and people are getting crazy about the price. Read the comments and I hope you will like it.

*I think the Apple employees have a challenge amongst themselves as to who can sell the most useless shit for the highest price. And we might just have a winner here.

*Apple can sell horse shit wrapped in white paper and these idiots would pay $300 for it. this is more than ridiculous.

*iKids will still support this product and say things like "This is the most innovative product the world has ever seen" *claps*

*Bad news for book publishers. Apple will probably patend the rectangular shape and the concept of stacking sheets of paper into a device that will unfold from one side and will have pictures and/or text printed on them.

*Apple can even sell a pen-pineapple-apple-pen for $500.

*And girls will be Like- Aww I need this in my college course.

 *Now the people who get this book will have to buy description pages again.

Well, it seems like someone even came to justify.
*Stupid people that doesn't t realise what is for. Have you ever step into a library? I see nobody complaining about B&O doing the same thing years ago.

Anyway I hope you enjoyed it and if you are an iPhone user then please don't get angry because the comments I've collected are just for fun.

Ads


Did you know that you can find all the pictures on the internet and you don't even need to spend $1?