Something is causing a delay when I switch pages

When I switch pages in answers there is a 7 second delay.  I'm using Firefox 3.62 and it does this on two systems running on different providers. If I go to a question page the page comes up and I don't have control of the cursor for 7 seconds.  The only error message I've been able to see said there was a script that was not finished.  I've checked for virus and malware.  When I go back to the main questions page the same thing happens. Does instructables have a broken script?

Posted by Re-design 8 years ago


premium membership

How long to activate after purchase?

Posted by wmasi 9 months ago


instructable not posted

I tried to post an instructable over a week ago and its still not showing up anywhere on instructables.

Posted by budsiskos 10 years ago


In a dark corner

What do you do when you publish an Instructable that would be helpful to many, but its posting is delayed several days. When it finally appears, there are five pages of newer Instructables and no one ever finds yours in the "Recent" listings? Do you unpublish and republish it, hoping it will get moved to the front of the pile? Does that even work? Do you shamelessly make comments leading others to it in previously published Instructables that are still gathering some hits? Do you just wait until people discover it somehow through using Randomizer and a link or two on Google?

Posted by Phil B 9 years ago


Long (ten hour) delay between writing an answer and seeing "Answer: 1" in list

Yesterday evening (at 10:42) I answered the question shown below. This morning at 8:20 the list of questions still claims the question is unanswered. The database usually isn't this slow to update.

Posted by kelseymh 9 years ago


Just submitted an Instructable....Where is it?

Hi there,  I just submitted my first instructable and I can't find it when I search.   Is there a delay until it becomes available?

Posted by w1se 5 years ago


One shot delay timer switch without a microcontroller?

How do you output a single short pulse in an electronic  circuit after a specific period of time has elapsed after the circuit is powered on such that when the circuit is powered on, the output remains zero for x seconds then it becomes +5 V just once for y seconds then again back to zero for the remaining time much like monostable mode of 555 timer except that the pulse here is output in the middle i.e. 0v-5v-0v. Can this be done without a microcontroller?

Posted by raftor 4 years ago


Ible delayed posting no longer new.

If you have an ible delayed of being posted for who knows what reason. When it gets posted it gets posted in the spot that it would of been  originally. Example, on 6/1 i published 3 ibles in one day. One posted in 10 minutes. The other 2 posted on 6/4. Now the two late posts do not get put at the top with the new ibles, no it gets put in at the date it was first submitted. My variable voltage supply took 6 days to post. So to find it you have to go through many pages of ibles to locate it. IT does not get posted as the newest ible. I had sent a msg to service@instructables but never did get a real person.    If peoples ibles are delayed for some flagging issue or what ever it would be nice to know what to avoid in the future. I have gotten a tip on some issues that may trip the filters, short keywords, not common or unrecognizable keywords. Such as eek. In msg or forums delays maybe from short question with active links.. These are tips are from someone that has been observing these things and are not a locked in rule.   Altho these are somewhat of gripes it is not anything that will stop me from posting ibles. I realy gain from Instructables. Before i joined here i never heard of Arduino now i am writing small sketches and manipulating larger ones.

Posted by WWC 5 years ago


Arduino seeing only one button input and ingoring the rest without delay?

Heya! I'm making a project that involves precision timing but I ran into a problem. I when I press a button the Arduino registers many '1's'. But in my code I want it to only see the first input and ignore the rest until the pin goes low again. I'm not trying to debounce or anything. Thanks!

Posted by HavocRC 4 years ago


Spamming Filters plugged.

Seems the spamming filters have been turned up pretty high and more that usual is getting caught causing that DELAY in posting weather it be an ible of post ect. Filtering spam is good of course but geez, i made a comment in the forums of a current bug problem and guess what my comment is not there . I can only say it is because of the filters. Maybe my comment will appear after the relevance of the topic is over. There needs to be a filter list added that puts the known non spammers into. The people that are submitting ibles and or comments that are not spam. You go ahead and make this secret like it is now so people won't complain about who's on it or not. The people that are your supporters should be in the Good Filter, let there ibles and comments submit without delay. So i am in favor of a GOOD FILTER list. I hope my forum topic gets published in time so as to still be relevant.   

Posted by WWC 5 years ago


I won a contest more than a month ago. Is my prize on its way?

Hello I won the Sodastream party food contest one month ago, and received my instructables prize pack shortly after, but the main prize (a Sodastream Penguin) has not arrived. Is it still coming? :sniffle Thanks

Posted by Bindlestiff 7 years ago


Slideshow still not showing up

So, it's been over a day and I'm still not seeing my slideshow. It's not my cache. My question is, how long does this normally take? I was hoping it would be up by the time it was approved, but obviously it wasn't. I've had over 500 views but I'm afraid none have actually seen anything. https://www.instructables.com/id/Nomad-Bookshelves-Desk/

Posted by WhyIsThisOpen 9 years ago


Slideshow Delay

When I edit a slide show it takes about a day to show the new pictures. Is this normal?

Posted by Wafflicious 9 years ago


Prize Shipment Delays

Hi everyone! If you have won a contest in the past month or will win a contest in the next month or so, there might be a slight delay in shipping your prizes out.  You might have noticed that we are hiring a shipping clerk, that's because we need one!  We are a little understaffed at the moment and we are shipping out for prizes as fast as we can, but unfortunately we are only human! Thanks for understanding!

Posted by Danger is my middle name 4 years ago


delay when posting new instructable

I was just wondering since this has happened quite a few times recently (and didn't occur in the past): when posting a new instructable, it can now take up to a day or so, until it shows up in the "recent instructables" list and gets any views. why is that? is that some kind of new spam-prevention engine or something similar? oddly, it doesn't happen with all the instructables and also the delay isn't always the same....

Posted by sursula 3 years ago


Delay for a timed switch?

Hi, I wont explain my purposes(maybe in an instructible if i get a good answer) but I need a simple(as in, requiring very few parts) schematic for a 555 timer. I need a setup where i have a battery, connected to a switch(the kind that you push, and it closes the circuit, then you push again, and it opens the circuit. I forget what its called) that goes to a 555 set to delay for 10 seconds. After the 10 seconds is up, it allows the electricity to go through. Anyone understand? If needed, I can upload a pic of what I need.

Posted by metrogdor22 8 years ago


Time delay LED

I have something I want to make, but I don't know what I need, how to make it, or what it would be called. Essentially I would like to have a few LEDs on a programmable/resettable timer. I.E. One LED would be programmed to say 3 minutes, 30 seconds from the 3 minute mark it would slowly start to light up then flash when it hits the mark. I would also like to be able to start/stop and reset the timer. I need a couple of them, and wiring the LEDs are simple enough, it's the time delay that's throwing me. Any assistance would be great.

Posted by nolan.vines 8 years ago


Delay washing machine start!

Hello, I love this place and I love making things and living cheaply. However Im stuck. I have just moved into a rented property with a brand new standard Bosh washing machine. I have a baby and lots of laundry! The house is on Economy 7, so electricty is waaaay cheaper from midnight till 6am. I need to delay the start on the washing machine until say 3am so that I can bring the bills down. Please note: The machine has no memory so I cant use a timer plug (tried) To start the program you have to touch (press & release - blu tack didnt work!) the start button No I cant stay up that late every night! Help! Basically I need a simple, discreet, failsafe idea for something to touch the start button at a preset time or say 3 hours after I ask it. Ideas extremely welcome. Dean.

Posted by dean_wales 8 years ago


Sentry Gun and PIR sensors

Hello, I have a question about PIR sensors for a robot I'm making. Most have a digital pin that goes high when movement is detected. The time that this pin stays high for (delay time) is often adjustable by a variable resistor on the sensor. My problem is that I need a sensor with no delay time - the digital pin should go low as soon as movement stops. If anyone could point me in the direction of a pir sensor with no delay time/one with a very short delay time (under 0.5s) I would be grateful. Or possibly, If I were to remove the variable resistor, would that remove the delay time? thanks.

Posted by SentryGunner 2 years ago


Filtering queue question/suggestion

Please correct me if I've mis-observed this, or if it has already been addressed. When I use Instructables, I always use the "Recent" option to browse recent Instructables. Often, when I look again after several hours or days, new Instructables have popped up, interspersed with ones I had viewed previously. So, when a new Instructable gets hung up in the filters, am I right in observing that it then gets inserted (when it is released) "back" to the time when it was originally published? It seems that it would be better to post it (chronologically) when it was released from the filters, rather than, in some cases, a page or two back.

Posted by aeray 7 years ago


Grounding Issue in DIY Circuit

Hello everyone, I'm having a bit of a problem getting my LM317 soft-start circuit to function properly. If you'll take a look at my schematic, I've built everything on the schematic up until the relays and diodes get involved (specifically where the output forks into two). In order to check that I soldered the board correctly, I hooked an LED up to where the fork would be to make sure the soft-start worked. Here's where things get funny: If the LED is connected to the rectifier's negative, the LED behaves as I expect it to, with a slow turn-on. However, if I keep the LED connected to the same positive point, but hook the led directly to ground, nothing happens. In fact, using a multimeter showed that no voltage would flow to ground from the positive, but that 14 volts were flowing between the same positive point and negative. I need voltage to flow to ground, this is a ground safety interlock for a welder I'm working on... does anyone have any suggestions? Thanks for reading :)

Posted by reakter 6 years ago


Delay Power To a Solenoid Valve

I am making a pneumatic cannon with a solenoid valve which is turned on by a switch. However, I am wondering how I could delay the switch. So, when I flick the switch the cannon doesn't instantly fire, instead it would be delayed by maybe a half a second or so for effect. Would I use a 555 timer? I'm really new to this, so could you tell me how I would go about doing this? Thanks Guys

Posted by Make me a SANDWICH 8 years ago


Delayed again!!!

I have been working on my plasma speaker for a long time, after I got everything working, I was about to take a good video of it working. But just then, the MOSFET exploded, and made a huge puff of smoke... Dang! Delayed again! I made and completed the instructable on making a plasma speaker (some of you might had seen it as you are subscribed to me), but I just need a video to prove that the plasma speaker is working. I was going to post the instructable today, but the MOSFET delayed it... :-( It may be a few more days before the instructable is published...

Posted by Plasmana 9 years ago


Delay in Login

Again I'm experiencing 2 - 3 minute delays in logging on (and this when my browser remembers my ID and password).  What's going on (or not going on)?

Posted by hartpete 8 years ago


arduino not following my else statment

Ive got a issue with my arduino moisture sensor readings because my if and else statments. my else statment will not follow it at all here is my code.. // 11 sen // 7 heater // 4 analog sen int sen = 11; int hOn = 7; int mot = 3; void setup() {   Serial.begin(9600);   pinMode(hOn, OUTPUT);   pinMode(sen, OUTPUT);   pinMode(mot, OUTPUT); } void loop() {   digitalWrite(mot, HIGH);   digitalWrite(hOn, HIGH);   digitalWrite(sen, HIGH);   analogRead(4);   delay(5000);   digitalWrite(sen, LOW);     if (analogRead(4)>=410)   {     Serial.print (analogRead(4));     Serial.print (" Moisture Level Is Bad ");     digitalWrite(hOn, LOW);     digitalWrite(mot, LOW);     delay(120000);     digitalWrite(mot, HIGH);     delay(300000);     digitalWrite(mot, LOW);     delay(120000);     digitalWrite(mot, HIGH);     delay(60000);   }   else if (analogRead(4)<=409)   {     Serial.print (analogRead(4));     Serial.print (" All Is Good ");     digitalWrite(hOn, HIGH);     digitalWrite(mot, LOW);     delay(120000);     digitalWrite(mot, HIGH);     delay(300000);     digitalWrite(mot, LOW);     delay(120000);     digitalWrite(mot, HIGH);     delay(60000);   } } // i have tryed just a plain "else" statment and also another plain "if" statment

Posted by yaene21 4 years ago


How to read uart data and write to i2c device.

// Port for the I2C #define I2C_DDR DDRD #define I2C_PIN PIND #define I2C_PORT PORTD // Pins to be used in the bit banging #define I2C_CLK 0 #define I2C_DAT 1 #define I2C_DATA_HI()\ I2C_DDR &= ~ (1 << I2C_DAT);\ I2C_PORT |= (1 << I2C_DAT); #define I2C_DATA_LO()\ I2C_DDR |= (1 << I2C_DAT);\ I2C_PORT &= ~ (1 << I2C_DAT); #define I2C_CLOCK_HI()\ I2C_DDR &= ~ (1 << I2C_CLK);\ I2C_PORT |= (1 << I2C_CLK); #define I2C_CLOCK_LO()\ I2C_DDR |= (1 << I2C_CLK);\ I2C_PORT &= ~ (1 << I2C_CLK); void I2C_WriteBit(unsigned char c) {     if (c > 0)     {         I2C_DATA_HI();     }     else     {         I2C_DATA_LO();     }     I2C_CLOCK_HI();     delay(1);     I2C_CLOCK_LO();     delay(1);     if (c > 0)     {         I2C_DATA_LO();     }     delay(1); } unsigned char I2C_ReadBit() {     I2C_DATA_HI();     I2C_CLOCK_HI();     delay(1);     unsigned char c = I2C_PIN;     I2C_CLOCK_LO();     delay(1);     return (c >> I2C_DAT) & 1; } // Inits bitbanging port, must be called before using the functions below // void I2C_Init() {     I2C_PORT &= ~ ((1 << I2C_DAT) | (1 << I2C_CLK));     I2C_CLOCK_HI();     I2C_DATA_HI();     delay(1); } // Send a START Condition // void I2C_Start() {     // set both to high at the same time     I2C_DDR &= ~ ((1 << I2C_DAT) | (1 << I2C_CLK));     delay(1);     I2C_DATA_LO();     delay(1);     I2C_CLOCK_LO();     delay(1); } // Send a STOP Condition // void I2C_Stop() {     I2C_CLOCK_HI();     delay(1);     I2C_DATA_HI();     delay(1); } // write a byte to the I2C slave device // unsigned char I2C_Write(unsigned char c) {     for (char i = 0; i < 8; i++)     {         I2C_WriteBit(c & 128);         c <<= 1;     }     //return I2C_ReadBit();     return 0; } // read a byte from the I2C slave device // unsigned char I2C_Read(unsigned char ack) {     unsigned char res = 0;     for (char i = 0; i < 8; i++)     {         res <<= 1;         res |= I2C_ReadBit();     }     if (ack > 0)     {         I2C_WriteBit(0);     }     else     {         I2C_WriteBit(1);     }     delay(1);     return res; }

Posted by Blixxer 3 years ago


ARDUINO UNO nested loops

Hi there. i'm using arduino uno and i found that the code below does not work. Seems like "if" do not work inside "if" statements. how do i solve this problem dear community. if(ButtonStateAUTO==HIGH) { while(1) { Serial.println("auto"); delay(1); if(ButtonStateON1==HIGH) //while(1) { Serial.println("autoON1"); delay(1);} } } else if(ButtonStateMAN==HIGH) { //lcd.clear(); while(1) { Serial.println("man"); delay(1); if(ButtonStateON2==HIGH) Serial.println("manuALon2"); delay(1); } }

Posted by lovetronic 4 years ago


Arduino code help

Hey guys first post.  I need some help with some code Im working on. What I want to do is have a pot controlled timer that moves a servo after a time dictated by the pot. The scale of delays I want is 0-3 minutes.  I eventually want to program an Attiny85 chip to do this. For now Im substituting a led in for the servo. Im a newbie with Arduino so any help with this simple project would be greatly appreciated. This is my code:  int sensorPin = 0;    // select the input pin for the potentiometer int ledPin = 13;      // select the pin for the LED int sensorValue = 0;  // variable to store the value coming from the sensor void setup() {     pinMode(ledPin, OUTPUT);    int val = analogRead(0);     val = map(val, 0, 1023, 0, 30000);       digitalWrite(ledPin, HIGH);       delay(val); delay(val); delay(val); delay(val); delay(val); delay(val);           digitalWrite(ledPin, LOW);                         } void loop() {                   }

Posted by Steven Wrigley 5 years ago


Streaming a video with a 20 minute delay?

I'm working on a project where I'd like to continuously record video from a camera and play it back on a projector, but the playback should have a 20 minute delay from the recording. Any thoughts on which tools to use? I'm considering writing something in OpenGL to take video input and play it back, but I suspect there may be an easier way. Thanks!

Posted by kynite 5 years ago


New here, first time posting. I want to add to the arduino insect bot

Well I am new here and this is my first post Well I have build the arduino insect bot from the book Arduino bots and gadgets. It is in the picture. I have it working but I want to add a touch sensor and attach it to the shell. I have an idea on how to build it. I would use a small button attached to the shell with the lie going to analog A0 pin. This would stop the robot by centering the servos and giving it the ability to stop when the shell was pressed down. Now the program is here. #include Servo frontServo; Servo rearServo; int centerPos = 90; int frontRightUp = 72; int frontLeftUp = 108; int backRightForward = 75; int backLeftForward = 105; int walkSpeed = 150; // how long to wait between steps int centerTurnPos = 81; int frontTurnRightUp = 63; int frontTurnLeftUp = 117; int backTurnRightForward = 66; int backTurnLeftForward = 96; // Ping Distance Measure int pingPin = 4; long int duration, distanceInches; long distanceFront=0; //cm int startAvoidanceDistance=20; //cm long microsecondsToInches(long microseconds) {   return microseconds / 74 / 2; } long microsecondsToCentimeters(long microseconds) {   return microseconds / 29 / 2; } long distanceCm(){   pinMode(pingPin, OUTPUT);   digitalWrite(pingPin, LOW);   delayMicroseconds(2);   digitalWrite(pingPin, HIGH);   delayMicroseconds(5);   digitalWrite(pingPin, LOW);     pinMode(pingPin, INPUT);   duration = pulseIn(pingPin, HIGH);     distanceInches = microsecondsToInches(duration);   return microsecondsToCentimeters(duration); } void center() {   frontServo.write(centerPos);   rearServo.write(centerPos); } void moveForward() {   frontServo.write(frontRightUp);   rearServo.write(backLeftForward);   delay(125);   frontServo.write(centerPos);   rearServo.write(centerPos);   delay(65);     frontServo.write(frontLeftUp);   rearServo.write(backRightForward);   delay(125);     frontServo.write(centerPos);   rearServo.write(centerPos);   delay(65); } void moveBackRight() {   frontServo.write(frontRightUp);   rearServo.write(backRightForward-6);   delay(125);   frontServo.write(centerPos);   rearServo.write(centerPos-6);   delay(65);   frontServo.write(frontLeftUp+9);   rearServo.write(backLeftForward-6);   delay(125);     frontServo.write(centerPos);   rearServo.write(centerPos);   delay(65); } void moveTurnLeft() {   frontServo.write(frontTurnRightUp);   rearServo.write(backTurnLeftForward);   delay(125);   frontServo.write(centerPos);   rearServo.write(centerPos-6);   delay(65);   frontServo.write(frontLeftUp-+9);   rearServo.write(backLeftForward-6);   delay(125);     frontServo.write(centerTurnPos);   rearServo.write(centerTurnPos);   delay(65); } void setup() {   frontServo.attach(2);   rearServo.attach(3);   pinMode(pingPin, OUTPUT); } void loop() {   distanceFront=distanceCm();     if(distanceFront > 1){       if (distanceFront         for(int i=0; i<=8; i++) {         moveBackRight();         delay(walkSpeed);       }             for(int i=0; i<10; i++){         moveTurnLeft();         delay(walkSpeed);       }      } else {        moveForward();        delay(walkSpeed);      }     } } I would like to know what line of code to add to receive input from pin AO and center the servo stopping the robot.

Posted by DHTArduinoNerd 6 years ago


Arduino Mega with Sim900

Recently I bought Sim900a module and Arduino Mega 2560 to run my old code for sending sms and call, but now there is a problem as I am unable to send sms or either call, my code is attached below. #include SoftwareSerial gsm(2,3); void setup() { gsm.begin(9600); // Setting the baud rate of GSM Module Serial.begin(9600); // Setting the baud rate of Serial Monitor (Arduino) delay(100); } void loop() { if (Serial.available()>0) switch(Serial.read()) { case 's': Send(); break; case 'r': Recieve(); break; case 'S': Send(); break; case 'R': Recieve(); break; } if (gsm.available()>0) Serial.write(gsm.read()); } void Send() { Serial.print("Sending"); gsm.println("AT+CMGF=1"); delay(1000); gsm.println("AT+CMGS=\"+xxxxxxxxxxxx\"\r"); // Replace x with mobile number delay(1000); gsm.println("Hello I am GSM modem!!!");// The SMS text you want to send delay(100); gsm.println((char)26); // ASCII code of CTRL+Z delay(1000); } void Recieve() { Serial.print("Receiving"); gsm.println("AT+CNMI=2,2,0,0,0"); // AT Command to receive a live SMS delay(1000); }

Posted by vicky58911 1 year ago


arduino moisture sensor values

Hey guys i have made this program but im a little concerned because my values from my moisture sensor jump around quite a bit and if the sensor values are wrong for to long it may keep the heaters on for too long which can cause a fire i did use an if statment instead of while im just trying differnt ways here is my code... #include LiquidCrystal lcd(7,8,9,10,11,12); int sen = 5; int hOn = 6; int mot = 3; void setup() {   Serial.begin(9600);   lcd.begin(16,2);   pinMode(hOn, OUTPUT);   pinMode(sen, OUTPUT);   pinMode(mot, OUTPUT);   lcd.print("Start Up");   lcd.setCursor(0,1);   lcd.print("Complete"); } void loop() {   digitalWrite(hOn, HIGH);   digitalWrite(mot, HIGH);   digitalWrite(sen, HIGH);   analogRead(4);   delay(5000);   digitalWrite(sen, LOW);     int val = analogRead(4);   int good = 451;   int bad = 450;   lcd.clear();    while(val <= bad)   {     lcd.clear();     lcd.setCursor(0,0);     lcd.print("Heaters On.");     lcd.setCursor(0,1);     lcd.print(val);     lcd.setCursor(4,1);     lcd.print("UpT:");     lcd.print(millis()/1000);     digitalWrite(hOn, LOW);     Serial.print (val);     Serial.println (" Moisture Level Is Bad ");     digitalWrite(mot, LOW);     delay(120000);     digitalWrite(mot, HIGH);     delay(300000);     digitalWrite(mot, LOW);     delay(120000);     digitalWrite(mot, HIGH);     delay(60000);   }   while(val >= good)   {     lcd.clear();     lcd.setCursor(0,0);     lcd.print("Heaters Off.");     lcd.setCursor(0,1);     lcd.print(val);     lcd.setCursor(4,1);     lcd.print("UpT:");     lcd.print(millis()/1000);     Serial.print (val);     Serial.println (" All Is Good ");     digitalWrite(hOn, HIGH);     digitalWrite(mot, LOW);     delay(120000);     digitalWrite(mot, HIGH);     delay(300000);     digitalWrite(mot, LOW);     delay(120000);     digitalWrite(mot, HIGH);     delay(60000);   } }

Posted by yaene21 4 years ago


ear bud case - delayed instructable

I posted an 'ible on creating ear bud cases out of a contact lens cases. However by the time it showed up on the recent-instructables list, it was already on page 7. If you are interested here is the link.https://www.instructables.com/id/Ear_bud_case_from_a_contact_lens_case/

Posted by mowdish 9 years ago


60 Second Time delay for photo cell LED's

Ok here is my dilemma. I have created hallway lighting with leds using the same setup as the blue bawls photo cell lights Blue Bawls . so what i need now is a way to delay the "on" time of the leds for 60 seconds after i break the beam. The trigger is a laser pointed at the photocell so when i break the beam the leds turn on. its currently running on 7.5V dc. Any suggestions or schematics are greatly appreciated .

Posted by AgentDanny 11 years ago


My PING sensor works only in one direction when the ping sensor is rotated to complete right direction . . . . having trouble in code :/ plz guide me for the code thanQ :)

// here is the code  // problem facing with the HEAD servo and the PING sensor  // this is paning from left to right but the problem is that PING works only in 1 direction. #define trigPin 3 #define echoPin 12 #define led 4 #define relay 8 Servo sl; Servo head; Servo sr; Servo el;   Servo er; int posh=0; int posl=0; int posr=0; void setup() {   sl.attach(9);   sr.attach(10);   el.attach(11);   er.attach(5);   head.attach(6);   Serial.begin (9600);   pinMode(trigPin, OUTPUT);    pinMode(relay, OUTPUT);   pinMode(echoPin, INPUT);   pinMode(led, OUTPUT); } void loop() {     for(posh = 0;posh <= 180; posh +=1)   {  delay(15);     head.write(posh);   }      for(posh = 180;posh >=0; posh -=1)   {       head.write(posh); delay(15);  }           //shoulder up   long duration, distance;   digitalWrite(trigPin, LOW);  // Added this line   delayMicroseconds(2); // Added this line   digitalWrite(trigPin, HIGH); //  delayMicroseconds(1000); - Removed this line   delayMicroseconds(10); // Added this line   digitalWrite(trigPin, LOW);   duration = pulseIn(echoPin, HIGH);   distance = (duration/2) / 29.1; if (distance < .1) {  // This is where the LED On/Off happens      digitalWrite(led,HIGH); // When the Red condition is met, the Green LED should turn off      Serial.println("WELCOME");    head.write(90);       for(posl = 0, posr = 180; posl <= 90 ; posl +=1)   {       sl.write(posl);      sr.write(posr);      posr -=1;     delay(15);   }           // elbow close      for(posr = 0,posl=180; posr <= 45; posr +=1)   {     er.write(posr);     el.write(posl);     posl -=1;     delay(15);   }     delay(3000);   //elbow open       for(posr = 45,posl=135; posr >= 0; posr -=1)   {     er.write(posr);     el.write(posl);     posl +=1;     delay(15);   }     //shoulder down       for(posr = 90,posl= 90; posr <= 180; posr +=1)   {     sr.write(posr);     sl.write(posl);     posl -=1;     delay(15);   }      digitalWrite(relay,HIGH);    delay(1000);     digitalWrite(relay,LOW);   }     else   {     digitalWrite(led,LOW);   }     delay(100);     }

Posted by speak2sainow 4 years ago


Password Security:Time delay lock

I've been reading about how easy it is for a computer to try 1000 passwords per second to get into your account. A human being could probably only try 1 every 10 seconds.  So why not put a timer on the gate?  If you enter the wrong password, you have to wait 10 seconds before trying another.

Posted by Toga_Dan 4 years ago


Help for first Arduino project

Greetings all! I just received my Arduino board in the mail on Saturday, and trying to learn how to write code for it. I have figured out how to make a button press trigger a pattern of LED's.  When button1 is pressed, pattern 1 is played.  When button 2 is pressed, it will run pattern 2 (once the first pattern has run twice). I would like to learn how to: 1.  Keep a pattern running continuously (unless the other pattern is initiated). 2.  Press the same button a second time, to turn the pattern off. Here is my code (forgive the sloppiness...I'm new at this): int pinled1 = 1; int pinled2 = 2; int pinled3 = 3; int pinled4 = 4; int button1 = 5; int button2 = 6; int buttonstate1 = 0; int buttonstate2 = 0; void setup() {   pinMode(pinled1, OUTPUT);   pinMode(pinled2, OUTPUT);   pinMode(pinled3, OUTPUT);   pinMode(pinled4, OUTPUT);   pinMode(button1, INPUT);   pinMode(button2, INPUT);   pinMode(8,OUTPUT); } void loop() {   digitalWrite(8,HIGH);   buttonstate1 = digitalRead(button1);   buttonstate2 = digitalRead(button2); if (buttonstate1 == HIGH){ {   buttonstate1 = digitalRead(button1);   buttonstate2 = digitalRead(button2);     digitalWrite(pinled1,HIGH);     digitalWrite(pinled2,HIGH);     delay(500);     digitalWrite(pinled1,LOW);     digitalWrite(pinled2,LOW);     digitalWrite(pinled3,HIGH);     digitalWrite(pinled4,HIGH);     delay(500);     digitalWrite(pinled3,LOW);     digitalWrite(pinled4,LOW);     }} else if (buttonstate2 == HIGH){ {   buttonstate1 = digitalRead(button1);   buttonstate2 = digitalRead(button2);     digitalWrite(pinled2,LOW);     digitalWrite(pinled1,HIGH);     delay(500);     digitalWrite(pinled1,LOW);     digitalWrite(pinled2,HIGH);     delay(500);     digitalWrite(pinled2,LOW);     digitalWrite(pinled3,HIGH);     delay(500);     digitalWrite(pinled3,LOW);     digitalWrite(pinled4,HIGH);     delay(500);     digitalWrite(pinled4,LOW);     digitalWrite(pinled3,HIGH);     delay(500);     digitalWrite(pinled3,LOW);     digitalWrite(pinled2,HIGH);     delay(500);     digitalWrite(pinled2,LOW); }} {   buttonstate1 = digitalRead(button1);   buttonstate2 = digitalRead(button2); }} Thank you to anyone who can pass on some knowledge!

Posted by huck alexander 6 years ago


bluetooth sheild library

I have created a library for bluetooth sheild . but its showing some errors while compiling .. plz help me .h file class BlueTooth { public: BlueTooth(int Rxd, int Txd); void setupBlueToothConnection(); private: int _Rxd; int _Txd; }; .cpp file BlueTooth::BlueTooth(int Rxd, int Txd) {   pinMode(RxD,INPUT);   pinMode(TxD,OUTPUT);   _Rxd = Rxd;   _Txd = Txd; } void BlueTooth::setupBlueToothConnection() {   blueToothSerial.begin(9600); //Set BluetoothBee BaudRate to default baud rate 38400   blueToothSerial.print("AT+ROL=0\r\n"); //set the bluetooth work in slave mode   blueToothSerial.print("AT+NAME=slave\r\n"); //set the bluetooth name as "Slave"   blueToothSerial.print("AT+PSWD=1234\r\n"); // DEFAULT PASSWORD = 1234   blueToothSerial.print("AT+CMOD=1\r\n"); // CONNECT TO ANY ADDRESS   delay(2000); // This delay is required.   blueToothSerial.print("AT+INQ\r\n"); //make the slave bluetooth inquirable   Serial.println("The slave bluetooth is inquirable!");   delay(2000); // This delay is required.   blueToothSerial.flush(); }

Posted by selvak 6 years ago


Moving Three Servos at Once

Hey Guys, I'm working on a project and I'm trying to figure out what power supply to use.  I have power supply rated for 5V and .7A.  I was going to test this power supply out by making all servos sweep back and forth at once, and see how it performs.  This question is main for the coders out there.  Is the following code correct?  I've had a long work day and I'm about to pass out and I was hoping if someone could critique this real quick.  Thanks in advance! /* Sweep by BARRAGAN This example code is in the public domain. modified 8 Nov 2013 by Scott Fitzgerald http://arduino.cc/en/Tutorial/Sweep */ #include Servo myservo01;  // create servo object  Servo myservo02: Servo myservo03: int pos = 0;    // variable to store the servo position void setup() {   myservo1.attach(9);  // attaches the servo on pin 9   myservo2.attach(8);   myservo3.attach(7); } void loop() {   for(pos = 0; pos <= 180; pos += 1)     // goes from 0 degrees to 180 degrees   {                                                                 // in steps of 1 degree     myservo01.write(pos);                      // tell servo to go to position 'pos'     delay(15);                                             // waits 15ms for the servo     myservo02.write(pos);     delay(15);     myservo03.write(pos);     delay(15);           }   for(pos = 180; pos>=0; pos-=1)     // goes from 180 degrees to 0 degrees   {                                    myservo01.write(pos);            // tell servo to go to position 'pos'     delay(15);                              // waits 15ms for the servo     myservo02.write(pos);                  delay(15);     myservo03.write(pos);                   delay(15);   } }

Posted by Casual_Engi 3 years ago


about button....

I have code on vb.net that will turn on led on my arduino but how can i turn it if i want to add button? how can i add button here in my code? #include int ledPin = 13; int buttonPin = 2;  // the number of the pushbutton pin      // the number of the LED pin int buttonState = 0;  // variables will change: LiquidCrystal lcd(12, 11, 5, 4, 3, 2); void setup() {   Serial.begin(9600); // set serial speed   pinMode(ledPin, OUTPUT); // set LED as output   digitalWrite(ledPin, LOW); //turn off LED      //   //         lcd.begin(16, 2);           lcd.setCursor(0,0);         lcd.print("     DaNeiL");          lcd.setCursor(0,1);         lcd.print("GASOLINE-STATION"); } void loop(){   while (Serial.available() == 0); // do nothing if nothing sent   int val = Serial.read() - '0'; // deduct ascii value of '0' to find numeric value of sent number     int buttonstate = Serial.read();       buttonState = digitalRead(buttonPin);   if (buttonState == HIGH) {         digitalWrite(ledPin, HIGH);     Serial.println("PLEASE WAIT WHILE REFUELING"); Serial.print('\n');     delay(9000); digitalWrite(ledPin, LOW);    // turn the LED off by making the voltage LOW     Serial.println("price 40");     Serial.print('\n');     Serial.print('\n');     Serial.println("liters 1");     }   else     // turn LED off:   if (val == 1) { // test for command 1 then turn on LED     Serial.println("P20.00                    1/2");     delay(10);     digitalWrite(ledPin, HIGH);// turn on LED      lcd.clear();      lcd.setCursor(0,0);      lcd.print("PRICE=  P20.00");      lcd.setCursor(0,1);      lcd.print("MILLILITERS=500");         }         {     Serial.println("P40.00                      1");     delay(10);     digitalWrite(ledPin, HIGH); // turn off LED      lcd.clear();      lcd.setCursor(0,0);      lcd.print("PRICE=  P40.00");      lcd.setCursor(0,1);      lcd.print("MILLILITERS=1000");       }   if (val == 3) { // test for command 1 then turn on LED     Serial.println("P80.00                      2");     delay(1000);     digitalWrite(ledPin, HIGH);// turn on LED      lcd.clear();      lcd.setCursor(0,0);      lcd.print("PRICE=  P80.00");      lcd.setCursor(0,1);      lcd.print("MILLILITERS=2000");       }   else if (val == 4) // test for command 0 then turn off LED   {     Serial.println("P120.00                      3");     delay(1000);     digitalWrite(ledPin, HIGH); // turn off LED      lcd.clear();      lcd.setCursor(0,0);      lcd.print("PRICE=  P120.00");      lcd.setCursor(0,1);      lcd.print("MILLILITERS=3000");       }       if (val == 5) { // test for command 1 then turn on LED       Serial.println("P160.00                      4 ");       delay(10);       digitalWrite(ledPin, HIGH);// turn on LED        lcd.clear();      lcd.setCursor(0,0);      lcd.print("PRICE=  P160.00");      lcd.setCursor(0,1);      lcd.print("MILLILITERS=4000");         }     else if (val == 6) // test for command 0 then turn off LED     {       Serial.println("P200.00                      5");       delay(10);       digitalWrite(ledPin, HIGH); // turn off LED        lcd.clear();      lcd.setCursor(0,0);      lcd.print("PRICE=  P200.00");      lcd.setCursor(0,1);      lcd.print("MILLILITERS=5000");         }       if (val == 8) { // test for command 1 then turn on LED     delay(10);     digitalWrite(ledPin, LOW);// turn on LED     lcd.clear();      lcd.print("     DaNeiL");          lcd.setCursor(0,1);         lcd.print("GASOLINE-STATION");       }           if (val == 9) { // test for command 1 then turn on LED     delay(10);     digitalWrite(ledPin, HIGH);// turn on LED     lcd.clear();      lcd.print("    FULL TANK");      lcd.setCursor(0,1);      lcd.print("PLEASE WAIT....");       }            if (val == 0) { // test for command 1 then turn on LED     delay(10);     digitalWrite(ledPin, LOW);// turn on LED                }   else if (val == 12) // test for command 0 then turn off LED   {     delay(10);     digitalWrite(ledPin, HIGH); // turn off LED           }   else {     }     }

Posted by NeilV2 3 years ago


help programming arduino

This is my code so far what i would like to do is connect a pir sensor,once activated there should be a delay of 2min then the two sevo's should be activated and run for 20 min then reset and only be able to reactivate pir after an hour #include Servo vert; Servo hor; void setup() {   vert.attach(10);   hor.attach(11); } void migrate(Servo &myServo;, int newPos) {   int wait=random(1,20); //randomize the wait to make it more interesting   int pos = myServo.read(); //Read the current servo position   if (pos < newPos) {     for (int i=pos; i < newPos; i++) {       myServo.write(i);       delay(wait);     }   } else {     for (int i=pos; i > newPos; i--) {       myServo.write(i);       delay(wait);     }   } }

Posted by airworx 2 years ago


Loop Time Ardunio

I need your help with a very very short code ?i have this code#include "Keyboard.h"#include "HID.h"void setup() { Keyboard.begin(); }void loop() {delay (1000); Keyboard.write(KEY_F1);delay (3000); Keyboard.write(KEY_F2);}this code works fine for me... but the problem isthis code give me only one "F1" and one "F2" in 4 seconds. i need "F1" appears every second (1000ms) and "F2" every 3 seconds (3000ms) in a infinyte loop

Posted by AngeloB49 5 months ago


Does 6X t-shirt delay prize package shipment?

I won runner up prize from recent Meat Contest. I can't wait for the book: Meat: Everything You Need To Know to be shipped. I haven't received the notification that my prize package has been shipped since I received the notification that I have a prize from Instructable.com on June 30. It didn't take this long in the past. I'm wondering if my order of a 6X t-shirt caused the delay? I don't wear that size, I just have a plan for a t-shirt of that size. At this point, should I change the t-shirt size in the prize form to speed up the process or that will cause more problem for Instructables.com? Anyone had the similar experience with me?         babybayrs 

Posted by babybayrs 3 years ago


Order of posting "delayed" questions should be changed.

When questions are delayed posting for whatever reason, they should not be posted in order based on the time they were asked, they should be posted to the top of the list. At least once a week I find a question of a gob of questions way back on page 3 or 4 that have no answers and sometimes have no views.  There are at least a dozen people here who look at every question, even the "boring ones".  There is no way a question posted at the top of the list can make it to page 3 with out even a look.   The way is works now if a question gets held up 24 hours (and that happens alot) it goes directly to page 2. It would work better if when the question gets posted it goes to the top of the list even if it takes a week to post it. Just my opinion.

Posted by Re-design 8 years ago


When will they post the RoBo contest winners?

Will they ever post who won the RoBo contest? They delayed it 3 times and will be mad if they do it again.

Posted by bannana inventor 10 years ago


2 months delay in discussion notifications

My "Discussions" tab showed no changes for about two months, and then yesterday it dumped about two months of replies that people had made on my various comments I made on the forums here. I think that qualifies as a bug. I mean, ideally my "Discussions" tab would notifiy me of replies in a matter of hours, so I could reply to those replies in a timely fashion, if it was the sort of thing where someone was expecting a reply from me.I am guessing this problem was maybe related to the recent big "improvements" to the site, to make it more readable for mobile lusers, and other changes to make the site more comment-able, question-able, tip-able, by everyone.Just wondering: Has anyone else experienced this same problem, i.e. a several weeks, or months, delay in notifications of replies to your comments?

Posted by Jack A Lopez 6 months ago


In the Pipeline

I have some parts on order and will be adding two more instructables in the near future. 1. Cascading multiple squibs with adjustable delay. 2. A miniature trigger module with increased sensitivity.

Posted by Crosius 9 years ago


Bug related to text editor rollout? Flag interface VERY SLOW to load

I just went to flag an obvious SPAM posting.  The flagging interface hung up, and took more than ten seconds to appear.  It had the same kind of problematic delay as the new text editor box.I wonder if these long delays are actually related, somehow, to the pretentiously fancy "fade in" technique that's being used.  A simple, and fast, pop-up would be much friendlier to the users, if not as sexy to the developer community.

Posted by kelseymh 8 years ago


Servos motion not smooth

Hi, im trying to program my servo to do a simple sweep (smooth motion). but instead it jerks a small degree everytime. the code i've used : #include Servo myservo;  // create servo object to control a servo void setup() {   myservo.attach(9);  // attaches the servo on pin 9 to the servo object } void loop() {   myservo.write(10);                  // sets the servo position according to the scaled value   delay(1000);                           // waits for the servo to get there   myservo.write(150);                  // sets the servo position according to the scaled value   delay(1000); }

Posted by fujiapple 6 years ago


How long am i supposed to wait for the package??

Am i supposed to wait for the package for six months or what? I won an Instructables Prize Pack in Pocket-Sized Contest! ( https://www.instructables.com/contest/pocketsize/ ) as a runner up prize. So why isn't it here yet? I asked once already about this delay, on forum i think, and they told me that it's because there are many prizes that are holding the sending back. So it's been six months, it should have arrived already, could still be the delay. 

Posted by Project 23 6 years ago