Control different speed of a small DC motor with push button

Hi, in this post I would like to share with the sketch (down below) of a pwm speed controller and the diagram of it. By uploading the skecth to your Arduino board you will be able to control speed of a small dc motor without a potentiometer and without pressing the reset button. Thanks to Jerico Viñas who shared the original sketch.

The sketch
const int motor = 4;
const int btn1 = 5;
const int btn2 = 6;
const int btn3 = 7;

int button1 = 0;
int button2 = 0;
int button3 = 0;
int var1 = 0;
int var2 = 0;
int var3 = 0;

void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(btn1,INPUT);
pinMode(btn2,INPUT);
pinMode(btn3,INPUT);
pinMode(motor,OUTPUT);

}

void loop() {
//Unlimited Execution
// Eco-Programmer
AST();
}

void AST(){
//This is the customized void
button1 = digitalRead(btn1);
button2 = digitalRead(btn2);
button3 = digitalRead(btn3);

if(button1 == HIGH){
var1=1;
var2=0;
var3=0;
Serial.write(var1);
}

if(button2 == HIGH){
var1=0;
var2=1;
var3=0;
Serial.write(var2);
}

if(button3 == HIGH){
var1=0;
var2=0;
var3=1;
Serial.write(var3);
}

if(var1 == 1){
digitalWrite(motor, HIGH);
delay(15);
digitalWrite(motor, LOW);
delay(40);
}

if(var2 == 1){
digitalWrite(motor, HIGH);
delay(15);
digitalWrite(motor, LOW);
delay(20);
}

if(var3 == 1){
digitalWrite(motor, HIGH);
delay(50);
digitalWrite(motor, LOW);
delay(10);
} else{
digitalWrite (motor, LOW);
 }
}




push button dc motor control arduino. arduino dc motor with push button. arduino push button dc motor. arduino dc motor control with button. motor button. button motor. arduino digitalread speed. speed control button. motor push button. control speed of dc motor arduino. dc motor with button arduino. arduino joystick dc motor control. arduino joystick motor control. dc motor speed control with joystick. arduino joystick dc motor control code. arduino dc motor speed control. push button motor. small dc motor arduino. arduino dc motor control code. arduino joystick motor control code. arduino control motor speed. dc motor joystick arduino. arduino dc motor potentiometer. 

arduino digitalwrite speed. speed control of dc motor using arduino. dc motor speed control arduino. how to control speed of dc motor using arduino. arduino uno motor control. motor speed control using arduino. dc motor control using arduino. arduino motor speed. arduino dc motor control. dc motor control arduino. control dc motor with potentiometer arduino. arduino joystick button code. dc motor control using arduino uno. arduino joystick push button. dc motor speed control arduino code.

How to recover your hacked facebook account 100% works


Are you frustrated that your Facebook account got hacked and  you don't have any control over it? Well, nothing to worry about. In this post you will find out how exactly you can take back cntorl of your account.

Step 1:- Go to default internet browser (Maybe Crome) and type for search www.facebook.com/hacked.

Step 2:- Click on the option my account is compromised.

Step 3:- To open your account click on forgotten password. 

Step 4:- Then enter your email address or phone number to search your hacked account. And type for security check.

Step 5:- select the hacked Facebook account. (Hacker might have changed the email, phone number and other details) so click the option no longer have access to these. 

Step 6:- Click on I cannot access my email account. Then login to your old account associated with your Facebook.

Note:- If you don't remember your phone number and your gamail / email then it's not possible to recover your account.

I hope this helped you. :)

Ad


How to Delete Whatsapp Group Invite Link


If you want to delete your whatsapp group invite link, then in this post you will find out how you can delete your WhatsApp group invite link and create a new one.

Step 1:- Select the WhatsApp group you want to delete.

Step 2:- Click on the three dots at the top right hand corner >> then select group info >> and click on the add participant.

Over here you will be able to see a link says "invite to group via link".

Step 3:- Click on the invite to group via link. And you'll find the WhatsApp group link.

Step 4:- Click on the Revoke link option. If you click on it then it will delete the old link and create a new one.

Note:- By revoking the old link, no one will be able to join this group by using the old link. To join this group again they will have to know the new link first.




How To Check If Someone Blocked You On WhatsApp


If someone blocks you on WhatsApp and you're not sure if he/she has really blocked you or not. Then in this post you'll find out how you can find out if someone has blocked you.

Step 1:- Click on the menu (3 dots at the top right hand corner).

Step 2:- Select New group and add that person in the group.

Step 3:- Give the group a name and you can see the group has been created. If you see an error message and can't add the person that means that person has blocked you.

Step 4:- If you want to be sure then click on the menu button (3 dots at the top right hand corner).

Step 5:- Click on the group info. Then click on the add participant.

Step 6:- Try to add the person. If you  still can't add the person then you will know for sure that the person has really blocked you.

Note: One thing keep in mind that if the person unblocks you again after some time he/she won't be able to see the messages you've sent in-between the he/she blocked time.

Ad



Why Pizza Ordering Shoes are useless?


Have you ever seen a shoe ordering pizza for you? Well, if not then please watch the video and see how amazing I mean how useless it is. It seems like well made shoe and might be quite pricey too, but the function is a very simple. I'm not sure how can someone waste money in this stupid thing.

I think you probably thinking why am I even so angry on this? Well, it's because the thing has nothing but a button on it which is link to your phone anyway. Before the button starts working you need to download an app and set your bank account and select your pizza and then only thig you will be left with is a button to press. For that you can use the same app, but they've made just a button and put it on the shoe. That button can be placed anywhere you want. Jut waste of money and a silly idea.
Ad



How to transfer files from MiA1 to laptop


If you are new user of Xiaomi Mi A1 you might find this problem too as I was really struggling to find out how to transfer videos and pictures from Xiaomi Mi A1 to my laptop. Although it was an easy and simple setting but I couldn't find it, and wasted quite lot of time. But in this post you will find out withing few seconds. So let's start.

Step1: When you plug into the laptop it will show you a blank window like the picture below. This means the phone is on charging mode.

Step2: To see the files or pictures you need to tap+hold+drag from the top of your screen then you will see an option called "USB charging this device". As you can see in the picture below.

Step3: Click on the "USB charging this device" option and you see 4 more options.
  1. Charge this device.
  2. Transfer files.
  3. Transfer photos (PTP)
  4. Use device as MIDI
Choose options number 3 if you just want to transfer video and pictures from your phone. And if you want to dig deeper into more folders then choose options number 2.

If you choose option number 3 then a window will pop up and you will see "Internal shared storage" like the picture below. Now you can go into that folder and look for your picture and videos and then transfer them to your laptop/PC. I hope you've found this helpful. Thanks for your time.






..................
how to connect mia1 to laptop. how to transfer files from mia1 to laptop. how to transfer photos from mia1 to laptop. how to connect mia1 to pc. how to transfer data from mia1 to laptop. xiaomi mi a1 transfer files to pc. how to transfer photos from mi a1 to pc. mi a1 transfer files to pc. mi a1 file transfer to pc. connect mia1 to laptop. how to connect mi a1 to laptop. how to connect mia1 to pc via usb. mi a1 not connecting to pc. mi a1 connect to pc. 

how to connect mi a1 with laptop. how to connect mi a1 phone to pc. how to transfer files from mia1 to pc. how to transfer files from pc to mi a1. mi a1 usb device not recognized. how to connect mia1 to laptop via usb. xiaomi mi a1 connect to pc. how to connect mi a1 to pc. connect mia1 to pc. mi a1 cannot connect to pc. mi a1 usb connection problem. how to connect mi a1 with pc. 

mi a1 usb file transfer. mi a1 usb not connected. mi a1 connect to laptop. how to connect mi a1 mobile to pc. mia1 not connecting to pc. xiaomi mi a1 usb connect to pc. connect mi a1 to laptop. mi a1 usb not detected. how to transfer data from mi a1 to laptop. how to transfer photos from mi phone to laptop. mi a1 usb not recognized. how to transfer files from laptop to mi a1. xiaomi mi a1 usb not recognized. xiaomi mi a1 cannot connect to pc. mia1 folder. how to copy photos from mi phone to laptop. how to connect mi phone to laptop. how to transfer photos from laptop to mi phone. how to connect mi phone with laptop. mi a1 not connecting to laptop. how to transfer file from pc to xiaomi. mi a1 data transfer to pc. 

how to transfer photos from xiaomi to pc. usb mi a1. how to transfer pictures from mi phone to laptop. xiaomi mi a1 backup to pc. transfer files from xiaomi to pc usb. mia1. mi a1 usb file transfer not working. mi a1 is not connecting to pc. connect xiaomi to pc. mi a1 pc connect. how to transfer data from mi to laptop. mi a1 usb not working. xiaomi transfer files to pc. how to transfer files from laptop to laptop. xiaomi connect to pc. connect mi a1 to pc. 

xiaomi file transfer mode. how to connect xiaomi to pc. mi a1 pc. mia1 phone. xiaomi mia1. how to transfer photo from xiaomi to pc. how to connect mi phone to pc. a1 laptop. xiaomi transfer files. how to connect mi mobile to laptop. how to connect xiaomi mi a1 to pc. xiaomi file transfer. how to transfer data from laptop to laptop. how to transfer photo from mi phone to laptop. mi a1 pictures. mia 1 phone. mi a1 pics. mi a1 photos. mi a1 usb cable. how to transfer files from xiaomi to pc. how to transfer files from pc to laptop. how to transfer data from mi a1 to pc. mi a1 not detecting in pc. mi phone connect to pc. mi a1 data cable. how to transfer files from phone to laptop. mi a1 usb. mi phone not connecting to pc. 

mi file transfer. xiaomi usb file transfer. mi connect to pc. files a1. how to transfer data from mi to mi. how to transfer files from laptop to pc. unable to connect mia1 to pc. mi phone connect to laptop. how to transfer data from mi phone to laptop. xiaomi usb file transfer not working. xiaomi mi a1 photos. how to transfer photos from phone to laptop. transfer files from laptop to laptop. xiaomi usb transfer files. mi a1 folder. mi transfer pc. how to transfer files from mi phone to pc. mi a1 pic. mi a1 file manager. photo gallery in mi a1. mi a1 pc suite. transfer data xiaomi ke pc. usb not connected mi a1. how to transfer photos from xiaomi to laptop how to open file manager in mi a1 xiaomi file transfer pc. connect mi phone to pc. xiaomi usb connection setting. mi a1 tricks. a1 file. xiaomi usb not recognized. mi transfer files. how to transfer files from mi phone to laptop. connect mi phone to laptop. transfer photos from xiaomi to pc. xiaomi file transfer usb. 

gallery for mi a1. mia 1 mobile. mi a1 photo. a1 transfer. how to transfer data from mobile to laptop. laptop to laptop file transfer. transfer file xiaomi ke pc. xiaomi mi a1 pc. file transfer option not showing in mi. how to transfer video from phone to laptop. how to hide photos in mi a1. transfer data laptop ke laptop. xiaomi can't connect to pc. xiaomi transfer file. m1 a1 phone. how to transfer data from old phone to mi a1. how to transfer photos from laptop to whatsapp. how to transfer file from mobile to laptop. how to download photos from phone to laptop. xiaomi a1 connect to pc. how to transfer pics from mi phone to laptop. mi usb file transfer. 

how do i transfer photos from mi phone to laptop? transfer files to xiaomi. how to transfer files from redmi to pc. why my mi phone is not connecting to pc? how to connect mi mobile to pc. how do i transfer photos from redmi to computer? transfer data from mi to pc. mi a1 usb driver. how to transfer data from phone to laptop. mi share for pc. mi a1 not charging. how to transfer files from mobile to laptop. how to transfer data from laptop to pc. how to change usb preference in mi a1. how to transfer photos from redmi to laptop. redmi usb file transfer. xiaomi transfer data to pc. transfer files from xiaomi to pc. mi mobile connect to pc. mi mobile data transfer to pc. how to transfer videos from phone to laptop. miui 10 usb file transfer. xiaomi transfer. mobile to laptop file transfer. 

how to transfer data from pc to laptop. transfer data from laptop to laptop. transfer files from pc to laptop. mi connect to laptop. transfer file xiaomi. how to transfer photos from redmi phone to laptop. how to copy data from mi phone to laptop. how to transfer data from mi mobile to laptop. how to backup mi a1 to pc. xiaomi how to connect to pc. transfer data xiaomi to pc. xiaomi file transfer to pc. xiaomi not detected on pc. mi data transfer to pc. transfer photos from redmi to pc. xiaomi usb data transfer. transfer data to xiaomi. transfer xiaomi to pc. mi a1 problems. how to transfer photos to laptop. how to transfer data from laptop to mobile. mi to mi transfer. redmi a1 mobile. how to transfer photos from mobile to laptop. xiaomi mi a1 problems. laptop to laptop data transfer. transfer data from phone to laptop. how to transfer data from desktop to laptop. mi 1a. transfer data laptop to laptop. how to download pictures from phone to laptop. transfer data from pc to laptop. 

xiaomi desktop computer. how to transfer data laptop to laptop. transfer files from laptop. a1 folder. photos downloading. how to connect mia2 to laptop. a1 files. how to connect mia1 to pc suite. transfer photos from mi phone to pc. how to transfer data from redmi to laptop. mi phone data transfer to computer. xiaomi redmi usb file transfer. xiaomi transfer photos to computer. xiaomi cannot connect to pc. mi transfer for pc. how to transfer photos from xiaomi to computer. how to transfer data from xiaomi to pc. how to transfer file from xiaomi to pc. mi a1 images. xiaomi transfer file to pc. xiaomi not recognized by pc. xiaomi usb connect to pc. how to backup mi phone to pc. how to connect mi a1 to tv. how to download photos from xiaomi to computer. call waiting mi a1. amazing pic перевод. 

xiaomi mi a1 usb driver. laptop to pc data transfer. how to get gallery in mi a1. transfer data xiaomi. mobile to laptop data transfer. transfer xiaomi. mi usb connection setting. how to transfer videos from laptop to phone. xiaomi a1 usb driver. how to transfer photos from redmi note 4 to laptop. usb device not recognized xiaomi. mia1 mobile. xiaomi connect to pc usb. transfer data from xiaomi to xiaomi. how to connect redmi to pc. mi a1 backup to pc. xiaomi phone not connecting to pc via usb. how to send videos from phone to laptop. mi phone transfer. cara transfer file dari pc ke xiaomi dengan usb. 

how to connect redmi 4 to pc via usb. xiaomi file transfer mac. mi a1 phone. xiaomi usb device not recognized. transfer data from laptop to pc. how to share files from laptop to laptop. turn on file transfer mode. mi transfer. how to transfer file from laptop to laptop. xiaomi mac file transfer. transfer files from laptop to pc. how to transfer photos from laptop to pc. transfer photos from phone to laptop. how to transfer file from pc to pc. xiaomi desktop. images of mi. mia1 photos. mi a1 charging. how to connect mi mobile with laptop. xiaomi redmi transfer photos to pc. how to connect mi to laptop. how to transfer data to mi a1. mi phone not connecting to laptop. xiaomi a1 usb. xiaomi mi a1 usb. how to copy photos from redmi to laptop. how to transfer files from laptop to mi phone. how to connect mi phone to computer. mi phone usb not connecting to laptop. import photos from xiaomi to pc. xiaomi photo transfer to pc. transfer files from redmi to pc. 

how do i transfer photos from xiaomi to pc?. how to import photos from xiaomi to pc. connect xiaomi phone to pc. mi phone not detected in pc. mi transfer to pc. xiaomi transfer files from pc. mi file transfer to pc. mia1 usb driver. xiaomi transfer files to pc usb. redmi phone not connecting to pc. mi a1 driver. xiaomi redmi 6 usb file transfer. connect xiaomi to pc usb. how do i transfer files from xiaomi to pc? transfer files from mi phone to pc. cara transfer data dari pc ke xiaomi. redmi not connecting to pc. mi a1 usb drivers. how to enable pocket mode in mi a1. call forwarding in mi a1. how to transfer photo from laptop to mobile. xiaomi mi a1 usb driver windows 10. how to open xiaomi mi a1. how to transfer file from laptop to mobile. xiaomi file transfer windows. connect xiaomi with pc. how to move data from mi to mi. transfer data to laptop. usb option in mi. transfer data xiaomi to xiaomi. xiaomi data transfer to pc. file manager in mi a1. whatsapp folder not showing in pc. internal shared storage xiaomi. xiaomi phone connect to pc. how to share files from phone to laptop. mi phone picture. redmi transfer files to pc. 

how to share files from laptop to mobile. how to transfer photos from laptop to laptop. laptop to mobile file transfer. mi a1 charging problem. mi share for desktop. redmi 4 not connecting to pc. transfer data xiaomi ke laptop. gallery in mi a1. how to connect mi phone to pc without usb. how to connect xiaomi to pc via usb. mi a1 video. mi a1 windows driver. transfer data mi to mi. transfer to xiaomi. connecting xiaomi to pc. how to share photos from phone to laptop. mi a1 slow charging problem. file manager mi a1. mi a1 data connection problem. mi a1 not charging problem. mi data transfer. how to transfer photos from laptop to phone. access xiaomi phone from pc. transfer photos from mobile to laptop. how to copy photos from mobile to laptop. mi a1 cable. mi a1 charging ic. redmi a1 images. connect redmi to pc. download photos from phone to laptop. mi a1 tips and tricks. redmi software for pc. connect mi to pc. how to open mi a1 phone. my mi phone is not connecting to pc via usb cable. transfer files from xiaomi to mac. how to transfer photos from laptop to mobile. pictures of mi. file mi. mi files. transfer xiaomi to xiaomi. file transfer mobile to laptop. 

mi a1 settings. mi pc connect. m i a 1 mobile. how to transfer data from computer to laptop. siomi mia1. how to get photos from phone to laptop. how to transfer data from samsung to mi. transfer files from mobile to laptop. mi a1 usb type. photos from phone to laptop. xiaomi files. how to transfer files from xiaomi to mac. open xiaomi mi a1. transfer photos ptp. xiaomi pc connect. how to turn on file transfer mode. xiaomi mi a1 tricks. screen share xiaomi mi a1. transfer from samsung to xiaomi. xiaomi mi a1 open. how to copy files from mobile to laptop. how to connect mi phone with pc. transfer files to laptop. xiaomi data transfer. mobile to pc file transfer. redmi a1. xiaomi software for pc. how to backup photos in mi. xiamo mia1. a1connect. mi a1 drivers for pc. how to trace mi phone. pc suite for mi a1. a1 connect. how to connect phone to laptop to transfer files. mi laptop. xiaomi migrate to new phone. how to transfer videos from laptop to laptop. how can i transfer photos from a whatsapp to laptop? computer xiaomi. how to transfer file from pc to laptop. how to transfer pics from mobile to laptop. transfer photos to laptop. a1 phone. send mp3 via whatsapp. recognize any the video formats. transfer data from mi to mi.

How can you use free wifi on emirates a380

Great news for you if you are flying with Emirates. You can now use internet on air. This is my first time using internet on the plane. I was surprised and when I contacted my family while I was on the plane, they got shocked too. In this post I'll share how you can use free internet on the Emirates flights. So here are the step by step guide.

Step1: Turn on your Wi-Fi and open your browser. It will take you to a page where you'll have to go through some settings. If you want to use free Wi-Fi then I assume you'll have to select >> "Non-Skyward" and then put your >> email address and then  >> read the term and conditions and >>check the box and >> click on the connect button.
Step2: Now select the free 20 MB option and scroll down to the bottom and click connect. That's it, now you should be able to use your free internet.

Note:
Try to avoid using browsers, because it takes quite lot of data and doesn't work properly.





....................
emirates wifi hack. emirates free wifi hack. emirates free wifi. emirates a380 wifi. wifi on emirates. wifi emirates a380. wifi on emirates a380. is there wifi on emirates a380. emirates wifi. emirates wifi a380. free wifi on emirates. how to connect to emirates wifi. does emirates have wifi. does emirates a380 have wifi. does emirates have free wifi. free wifi emirates. a380 emirates wifi. wifi in emirates. free wifi on emirates flights. wifi in emirates a380. wifi on emirates flights. does a380 have wifi. do emirates have wifi. is there wifi on emirates. emirate wifi. emirates a380 internet. is emirates wifi free. emirates airline free wifi. 247 emirates. wifi emirates flights. emirates airline wifi. how to connect emirates wifi. wifi in emirates flight. emirates wi-fi. emirates wi fi. emirates inflight wifi. how to connect to wifi on emirates. is wifi free on emirates. a380 wifi. wi fi emirates.

wifi on emirates airlines. do you get free wifi on emirates. is there free wifi on emirates a380. does emirate airline have wifi. emerates wifi. do all emirates flights have wifi. is there wifi on emirates flights. a380 wifi emirates. emirates free wifi code. emirates flight free wifi. internet in emirates flight. emirates airlines wifi. wifi emirates. wifi a380 emirates. emirates wifi free. emirates a380 free wifi. emirates internet. do emirates planes have wifi. internet on emirates flights. free wifi in emirates flight. do emirates flights have wifi. emirates wifi plane. wifi in flight emirates. internet emirates a380. emirates plane wifi. emirates flights wifi. emirates on flight wifi.


Newly posted:
Reason why rich getting richer and poor getting poorer