Easy way to replace arduino libraries in new IDE
Have you just installed Arduino IDE on a new PC or laptop and you thinking how your old sketches will work on your new PC?
Don't worry, in this post I'm going to show you a straight forward and simple way to relace your new libraries with the old one so that what ever library you've put in the old one can be found in the new one. After doing this you won't have to worry about copying and pastting every single library one by one all over again.
Note: This is only for the Arduino libraries not for any other files for example if have written something then save the as an example in the old IDE then you might have have to replace the examples folder too.
Where can you find library folder?
Well it's very easy, first go to your C: drive then look for program files (where you find all the programs installed on your PC) then open Arduino folder there you will find the libraries folder if you are using windows 8 then you copy this C:\Program Files (x86)\Arduino paste in the address bar of any folder it will take you to your destination.
How to edit program files with notepad?
Notepad is a very powerful windows built in software. Which you can use for many things. For example writing normal texts files, editing software files and many more. In this post I'm going to show you how to edit and write a HTML file. This is a web file which if you upload on a server then anyone can view as a website.
Step1:
Go to your desktop and right click on an empty space choose New then Text Document.
Step2:
After opening the file, copy the code below and paste into the file.
It's time to save the file so go to File > Save As after clicking on save as you need to keep few things in your mind.
a) After naming (what ever name you want) the file make sure you write .html
b) File type should be All Files
c) Last thing you should choose Encoding as ANSI then click save.
That's it you've made your first web page with Notepad.
Edit a program file.
It is very simple, to edit a program file right click the file you want to edit then choose Open with then Notepad as you can see the picture at the top of this page.
Note:
Remember which ever file you edit don't delete the file name from the dot for example .php, .html, .dll, and .h or what ever name you see and another thing is that backup the file before you edit it because if you make any mistake in the coding you can always replace with the backup ones.
I hope this will help you in lot of places. Thanks
Step1:
Go to your desktop and right click on an empty space choose New then Text Document.
Step2:
After opening the file, copy the code below and paste into the file.
<html>
<head>
<title>This is the title</title>
</head>
<body>
<center>My first web page!</center>
This is everything that goes in the document!
</body>
</html>
Step3:It's time to save the file so go to File > Save As after clicking on save as you need to keep few things in your mind.
a) After naming (what ever name you want) the file make sure you write .html
b) File type should be All Files
c) Last thing you should choose Encoding as ANSI then click save.
That's it you've made your first web page with Notepad.
Edit a program file.
It is very simple, to edit a program file right click the file you want to edit then choose Open with then Notepad as you can see the picture at the top of this page.
Note:
Remember which ever file you edit don't delete the file name from the dot for example .php, .html, .dll, and .h or what ever name you see and another thing is that backup the file before you edit it because if you make any mistake in the coding you can always replace with the backup ones.
I hope this will help you in lot of places. Thanks
Ways to add Google analytics to your blogger
First way:
Go to the Google analytics's admin area and copy the code. Admin > Property > .js Tracking Info > Tracking Code
After getting the code go ahead and open your blogger and then go to the Layout > Add a Gadget > HTML/JavaScript > Paste the code in the Content box > Then save it
Remember not to write anything in the "Tiltle" box just leave it emty and another thing as you can see a red box in the picture above, that's where you can find your own Google analytics ID.
Second way:
This one is more easier and neater then the above one. First get the analytics ID from your analytics code as you can see in the picture above or you can find it right next to your website name when you open your Googe anlytics.
After getting the ID go ahead and open your blogger and then go to the Settings > Other > then at the bottom you will find an emty box next to "Analytics Web Property ID" just paste your ID in the box and save it.
That's it, Enjoye!!! :)
how to make your website appear on top of google search
In this post I am going to share few proven tips with you, if you follow
it your website may come on Google's first page or even the first link of
google. People say you need to have long and well written article to
come on first page of Google but I say no you don't need that to come on the first page.
And some people say your page must have to have too many views like 2000 or 5000 but I say you don't even need that too, in fact my page came on Google's first page and it was the first link with only 57 views and 14 Google+ in just 3 days as you can see the screen shot below.
Tip1: Your website title.
You should carefully choose your title, first search the title that you want which will appear on google for example search for "Make your website Google's first link" if you see there are already too many titles like this then try something thing different remember not to copy exact same title you find on the first page.
Note: If you copy exact same title then Google might send your link further back which I don't think you'll like it in fact no one likes that.
Tip2: Using social media to promote.
Nowadays it is very easy to promote your link so use it as much as you can, use #hashtags in Google+, Twitter, and Facebook and some other places.
Why hashtags?
well, that's because when you put hashtags with a link your link appears in different pages for example you have a link just say "Link collider review with issues" and you put three hashtags like this #linkcollider, #review, and #issues so your link will appear at least in three different pages and people might share as well so it goes to many more pages too and when google sees your link is in so many places it pays special attention to your link and brings it to the top and that's how your link becomes Googles first link.
Google+ is the best!
Well, I like this platform the most because when you post something on your Google+, Google picks it up very quickly and when you put hash tag on Google+ most of the time it spreads like spider webs and who doesn't like his links to be seen everywhere? Of course everyone likes it.
Why this page is not on Google's first page?
You probably thinking if these tips are right then why this site is not on google's first page? Well, you are right my friend if you search normally then you might not find this site on the first page but if you add tips247 with my title and search you will definitely find this site on google's first page.
I've used these tips for all of my posts and I'm happy that most of the post are within first three pages of Google (if you want you can copy any of my post title and search in Google to check) and other search engines are catching up too.
That's all for this post I think, and I don't want to make it too long if you just try these two tips I'm sure your link will be on the first or at least within three pages of google I hope. Please let me know your result I'll be happy to hear that! :)
And some people say your page must have to have too many views like 2000 or 5000 but I say you don't even need that too, in fact my page came on Google's first page and it was the first link with only 57 views and 14 Google+ in just 3 days as you can see the screen shot below.
Tip1: Your website title.
You should carefully choose your title, first search the title that you want which will appear on google for example search for "Make your website Google's first link" if you see there are already too many titles like this then try something thing different remember not to copy exact same title you find on the first page.
Note: If you copy exact same title then Google might send your link further back which I don't think you'll like it in fact no one likes that.
Tip2: Using social media to promote.
Nowadays it is very easy to promote your link so use it as much as you can, use #hashtags in Google+, Twitter, and Facebook and some other places.
Why hashtags?
well, that's because when you put hashtags with a link your link appears in different pages for example you have a link just say "Link collider review with issues" and you put three hashtags like this #linkcollider, #review, and #issues so your link will appear at least in three different pages and people might share as well so it goes to many more pages too and when google sees your link is in so many places it pays special attention to your link and brings it to the top and that's how your link becomes Googles first link.
Google+ is the best!
Well, I like this platform the most because when you post something on your Google+, Google picks it up very quickly and when you put hash tag on Google+ most of the time it spreads like spider webs and who doesn't like his links to be seen everywhere? Of course everyone likes it.
Why this page is not on Google's first page?
You probably thinking if these tips are right then why this site is not on google's first page? Well, you are right my friend if you search normally then you might not find this site on the first page but if you add tips247 with my title and search you will definitely find this site on google's first page.
I've used these tips for all of my posts and I'm happy that most of the post are within first three pages of Google (if you want you can copy any of my post title and search in Google to check) and other search engines are catching up too.
That's all for this post I think, and I don't want to make it too long if you just try these two tips I'm sure your link will be on the first or at least within three pages of google I hope. Please let me know your result I'll be happy to hear that! :)
It keeps changing so sometimes you might see before 3rd page or after it but if you just add tips247 at the end you will definitely this page as Gooogle's first link.
Random web page and image rotator script
Are you looking for a script that can randomly rotate webpages or images?
Right, if you are looking for a script that can do what I have mentioned above then you've come to the right place. In this post I'm going to show you a small yet powerful php script which can either rotate only links and images or it can rotate all of the mixed together.
What do you need to do?
You need to create two file, first one PHP (php code goes in this file) and the other one just a plain TXT file (here all the urls and image liks goes) make sure that both (php and txt) files are in the same directory.
Where to put URLs and image links?
As I have told you before that you need to put all the image links and page urls in the "text" file but make that every singe link should be in separate line as you can see in the picture below.
.....................................................................................................................................................................
.....................................................................................................................................................................
The code.
<?php
$urlist=file("links.txt");
$nl=count($urlist);
$np=rand(0,$nl-1);
$url=trim($urlist[$np]);
header("Location: $url");
exit;
?>
Note: if you rename the txt file then you'll have to edit "links.txt" in the php code as well.
That's it enjoye!!!
Traffboost Reviews
Hi there, as you might already know that when I write a review of something I try to cover both sides good and bad so that you get the best idea what to do next. So in this post I want to write something about TraffBoost.net today, if you don't know what traffboost is then let me explain a bit.
It is a traffic exchange website where you get points when you visit a website and then use those points to get visitors for your own websites and if you don't want to visit any website then you can buy the points as well.
Note: Keep in mind you can only get visitors on traffboost no other social activities for example Facebook shares, likes, Google+, Youtube subscribers and so on.
Features that I liked
1. Assigning your points
You can assign what ever amount of points you want, you can even assign down to 1 point as well.
2. Rotating your links
Your link will rotate again and again untill you run out of your points even though you just assign 1 point for a link but if you want to have more visitors then I think it is better to assign as much as you can because if do that you'll get more visitors plus your link could be listed in "Top-10 Websites were Visited in last 24hrs" which everyone can see it and they might as well visit your site too so you'll get extra visitors.
3. Back links
When you log in, on your right hand side you'll see "Top-10 Newest Backlinks" that shows your link could be listed there too if you could send some visitors through your website.
4. Iframe
when someone clicks on your link a window pops up with timer it doesn't close automatically untill he clicks on the cross, so if someone finds something interesting on your site then they can stay longer.
5. Search a content of your choice
You can even search for a content that you like for example "weight loss" search it you'll find lot of articles on that click on which ever you like and get the point plus read your favourite article.
The things I didn't like in TraffBoost.
1. The first thing I didn't like at all is that in the title it says "Boost up your website traffic in just 1 minute!" but I think that doesn't happen at all, I don't understand why they say that?
2. Another thing is that they say "Refer your friends to TraffBoost to earn up to 500 points" but if someone signs up through your link they might say sorry you can't get points because the person signed up is inactive, as you can see first they saying "Refer your friends to TraffBoost to earn up to 500 points" without mentioning active and inactive in it, but when someone signs up then they bring active and inactive issue and who knows how many people they hide too.
3. Adding links
You can add 10 links at a time and if you want to add more then you have to delete some of your links.
In case if you don't know how to delete your links on traffboost, here is the way to do it.
Go to "My websites" >> click on the link you would like to delete >> then click on "Delete this website" which you can find bottom left hand side, right opposite of "Update".
Would you like to try it out click here to visit traffboost.
The ultimate bluetooth remote control arduino
Hi, in this post I'll show you how you can control as many things you want remotely with arduino via bluethooth.
Why did I call this ultimate remote control?
Well, I've called it ultimate because you can control too many things with any smart phone and you don't need multiple remote control plus another good thing about this one is that you can set your own pass code for example "ron" to turn red led on and "roff" to turn it off, not like "R" to turn it on and "r" to turn it off which I've seen in many places and that's very easy to get access but I wanted bit different and now in this way you can use 4 or 5 even more letters to control it so that no one can get access to you stuff so easily.
What do you need to make this?
well, you need
1x "BlueSerial Beta" app for your phone to send and receive data.
1x Arduino board
1x Bluetooth transceiver
1x 10k resistor
1x 20k resistor
few jumper wires and the code.
Note: a) Try not to connect the bluetooth transceiver straight to 5v it might burn it, connect the vcc to 3.3v and for the rest of it please see the diagram below.
Before I share the code with you I'd like to give huge thanks to Adison Mhanna whos has written this code for me.
The sketch:
//Written by Adison Mhanna int rdled = 2; int motor = 3; int gnled = 4; int relay = 59; void setup() { Serial.begin(9600); Serial.setTimeout(100); pinMode(rdled, OUTPUT); pinMode(motor, OUTPUT); pinMode(gnled, OUTPUT); pinMode(relay, OUTPUT); } String str; void loop() { if(Serial.available()) { str = Serial.readStringUntil('\n'); if(str == "ron") { digitalWrite(rdled, HIGH); Serial.println("Red led is on"); } if(str == "roff") { digitalWrite(rdled, LOW); Serial.println("Red led is off"); } if(str == "mon") { digitalWrite(motor, HIGH); Serial.println("Motor is on"); } if(str == "moff") { digitalWrite(motor, LOW); Serial.println("Motor is off"); } if(str == "gon") { digitalWrite(gnled, HIGH); Serial.println("Green led is on"); } if(str == "goff") { digitalWrite(gnled, LOW); Serial.println("Green led is off"); } if(str == "rlon") { digitalWrite(relay, LOW); Serial.println("Relay led is on"); } if(str == "rloff") { digitalWrite(relay, HIGH); Serial.println("Relay led is off"); } } } |
You can play the video to see the code in action.
LinkCollider review (with issues)
Hi, you might already know what link collider is and you'll find all most everyone on the net is praising it. Let's see what this gentlemen is saying about the link collider.
"I'm currently using many traffic exchange sites for quality traffic. But after using Link Collider I found it much helpful. I'm using this site for quality traffic. Also I use this site for some seo service.
They provide sharing websites into facebook, twitter, Stumbleupon and many more, this is not the end. I also use this site for backlinks and directory submission. But to do all of these thing I need points, and they provide free 1000 points everyday for free. I use another process to earn points, like browsing sites or sharing sites in to social networking sites. So basically I'm using Link Collider and it's very good for seo and traffic exchange. I recommend it to use if you are looking for these kind of services."
Ad
Some issues:
1. You're not getting very much tweeter followers!
You're right that's because in link collider when someone clicks on the twitter follower button a window pops so that the person can sign in and follow you. But what happens is if he clicks on unfollow button then clicks the follow button again he gets more tokens and if he keeps doing this he keeps getting tokens, that's how you loosing your tokens but not getting much followers. Luckily he only can do this for up to 40 times before he could do that for ever. So I think it's better not to try to get followers with link collider untill they fix this.
2. Not getting much tweets!
Well, what can I say about this one, this is similar to the top one. People can get tokens without tweeting or they even can tweet what ever they want without your one (what you wanted to tweet) and they still get the tokens. But one thing good about this one is that when you put less tokens then some time people not even bother to edit the tweet they'll tweet it and this is how you might get some of your tweets being tweeted for you if you are lucky enough.
3. Losing too much tokens through clicks!
Lol, this one even bigger issue, when someone clicks on a website to brows and get tokens, he has to wait for 30 seconds to get the tokens. After getting the tokens if he reloads the page again he gets more tokens, and if he keeps doing this he keeps getting tokens. The funny thing is (if you are a web developer you'll understand this) that you can turn this to an auto surf just by copying the url and make an iframe which reloads every 35 seconds you will keep getting tokens without doing anything.
4. Not getting much real facebook shares!
Right, how would you know that how many people actually shared on face and how many people are still sharing? Well, it's very simple go to google search for "Facebook share buttnot" change the "URL to share" to yours then you'll know that how many people still sharing your link. I don't recomend anyone to use this service of link collider because link collider showed me 100s of people shared the link on face book but when I checked I found almost nothing. OK I understand that some of them must have removed but I didn't expect 99% of them removed from there page.
See the result and I think you'll be shocked!!! Link collider says I've got 149 shares but in reality I've only got 4. When I saw this result, I've stopped sharing immediately.
These are the few issues I've found you might find some more, please let me know in the comment below about your experience with link collider. Love to hear that! :)
"I'm currently using many traffic exchange sites for quality traffic. But after using Link Collider I found it much helpful. I'm using this site for quality traffic. Also I use this site for some seo service.
They provide sharing websites into facebook, twitter, Stumbleupon and many more, this is not the end. I also use this site for backlinks and directory submission. But to do all of these thing I need points, and they provide free 1000 points everyday for free. I use another process to earn points, like browsing sites or sharing sites in to social networking sites. So basically I'm using Link Collider and it's very good for seo and traffic exchange. I recommend it to use if you are looking for these kind of services."
Some issues:
1. You're not getting very much tweeter followers!
You're right that's because in link collider when someone clicks on the twitter follower button a window pops so that the person can sign in and follow you. But what happens is if he clicks on unfollow button then clicks the follow button again he gets more tokens and if he keeps doing this he keeps getting tokens, that's how you loosing your tokens but not getting much followers. Luckily he only can do this for up to 40 times before he could do that for ever. So I think it's better not to try to get followers with link collider untill they fix this.
2. Not getting much tweets!
Well, what can I say about this one, this is similar to the top one. People can get tokens without tweeting or they even can tweet what ever they want without your one (what you wanted to tweet) and they still get the tokens. But one thing good about this one is that when you put less tokens then some time people not even bother to edit the tweet they'll tweet it and this is how you might get some of your tweets being tweeted for you if you are lucky enough.
3. Losing too much tokens through clicks!
Lol, this one even bigger issue, when someone clicks on a website to brows and get tokens, he has to wait for 30 seconds to get the tokens. After getting the tokens if he reloads the page again he gets more tokens, and if he keeps doing this he keeps getting tokens. The funny thing is (if you are a web developer you'll understand this) that you can turn this to an auto surf just by copying the url and make an iframe which reloads every 35 seconds you will keep getting tokens without doing anything.
4. Not getting much real facebook shares!
Right, how would you know that how many people actually shared on face and how many people are still sharing? Well, it's very simple go to google search for "Facebook share buttnot" change the "URL to share" to yours then you'll know that how many people still sharing your link. I don't recomend anyone to use this service of link collider because link collider showed me 100s of people shared the link on face book but when I checked I found almost nothing. OK I understand that some of them must have removed but I didn't expect 99% of them removed from there page.
See the result and I think you'll be shocked!!! Link collider says I've got 149 shares but in reality I've only got 4. When I saw this result, I've stopped sharing immediately.
These are the few issues I've found you might find some more, please let me know in the comment below about your experience with link collider. Love to hear that! :)
SG90 servo wiring
You might be bit confused about wiring up your TowerPro SG90 but don't worry here is the solution.
The brown wire is ground (-) and the middle one seems like orange or red that's (+) vcc and yellow or kind of orange that's for data/signal.
The brown wire is ground (-) and the middle one seems like orange or red that's (+) vcc and yellow or kind of orange that's for data/signal.
You can try the sketch below or get it from Arduino site.
#include <Servo.h> Servo myservo; // create servo object to control a servo // twelve servo objects can be created on most boards int pos = 0; // variable to store the servo position void setup() { myservo.attach(3); // attaches the servo on pin 3 to the servo object } void loop() { for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees // in steps of 1 degree myservo.write(pos); // tell servo to go to position in variable 'pos' delay(5); // waits 15ms for the servo to reach the position } for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees myservo.write(pos); // tell servo to go to position in variable 'pos' delay(5); // waits 15ms for the servo to reach the position } } |
Note: If you don't know what sg90 servo motor is, then her is a video for you to watch.
This was a very short post just to explain howto wire up the servo SG90 and a small testing sketch to try it out. I hope it helps you, if it does please don't forget to come back and leave comment. Thanks
Subscribe to:
Posts (Atom)
Newly posted:
Reason why rich getting richer and poor getting poorer