### 0 Views?

Perhaps a quick question, but I'm starting to wonder why my instructable shows up with 0 views. I do know that I've gotten more than that, what with the comments posted on... Is there some kind of algorithm that decides whether or not something is a view? Thanks if you actually answer :P

Topic by Ducky Boy 11 years ago  |  last reply 7 years ago

### What is 1 / 0 ? Answered

Here is tricky one try and answer it...

Question by PREDATOR_UK 8 years ago  |  last reply 8 years ago

### Infinity divided by 0?

Does infinity divided by zero theoretically equal any number other than 0 or infinity? I heard something about ohm's law applied to a circuit with an ideal voltage source (which is only theoretically possible) and having the terminals shorted out and at 0 ohms, resulting in the current going up to infinity?

Question by .Unknown. 9 years ago  |  last reply 7 years ago

### static int counter = 0; if ((++counter & 0x3f) == 0) Answered

Question by WWC 6 years ago  |  last reply 6 years ago

### 0-12V Digital Display?

Here's what I need, and haven't been able to figure out how to do it: I designed a motor speed controller that runs a 12V fan.  Speed control is via PWM through a 50K linear Potentiometer. I need to be able to read the percentage of run voltage ie: 0V=0%, 6V=50%, 12V=100%.  I want to display this on 3 7-segment LED displays. Anyone with insight would be greatly appreciated. Brian

Question by BrianAriz 3 years ago  |  last reply 3 years ago

### PDF's are 0 (zero) bytes

I am a 'new' Pro Subscriber. I tried downloading .PDF from this posting using Firefox (and Chrome);https://www.instructables.com/id/How-to-program-arcs-and-linear-movement-in-G-Code-/The files are zero bytes. What's up with that. What's the solution?

Question by squattingdog 7 days ago

### How to build a 0-36v, 0-10a, Regulated, AC/DC Power Supply? Answered

I'm looking for how to make a variable regulated power supply for DC electronics. I have wall warts and single range transformers for lots of different items ranging from battery chargers to toys to LED lights and am looking to combine them all down into one unit. I need to be able to adjust the voltage from ad little as 1.2v @ 200ma all the way up to 36v @ 10amps. I would normally take the easy way out and buy a power supply online that would handle it, but I am strapped for cash and this is more a luxury then a necessity. If possible I would like to be able to use LCD/LED panel meters that are powered by the input along with fine and coarse controls, along with dual outputs. Something along the lines of the Mastech HY5005E-2 that's pictured below. Maybe convert a cheap PC power supply with a digital multimeter? I can solder and work a basic circuit but I haven't done anything this complicated as yet.  I would appreciate any help offered. Thanks!

Question by Dochide 8 years ago  |  last reply 8 years ago

### Arduino Coding Question: How do I blink one LED 8 times and then another LED 8 times then repeat?

I'm using two 4017 decade counters to count to 16 and I figure two Arduino outputs would be a good way to go. I want one 4017 to receive 9 pulses then and then wait while the other 4017 receives 9 pulses. (one pulse is a holding position) For the moment I'm just trying to blink one LED 9 times and then another 9 times to represent two separate clock outputs. Here is a diagram: pin 13    1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, pin 12    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, Start      ------------------------------------------------------------------------------------------------------------ then loop. This is for multiplexing a 16x16 led screen so I don't think I should use the  delay(1000);  command. Each counter needs 9 pulses with the last pulse to the first counter happening simultaneously with the first pulse to the second counter. And similarly the first counter getting its first pulse at the same time as the second counter gets its 9th pulse. Get it?

Question by snotty 9 years ago  |  last reply 7 years ago

### Total Views Count - 01/06/2010

Here is the run for the Total Views Group for June 1st 2010. Well done to Canida for having this run's biggest increase in views and to reukpower for having this run's biggest increase as a percentage of their previous count. Instructabler 15/05/2010 01/06/2010    Gain canida 3,196,243 3,255,943 59,700 Kiteman 1,455,778 1,477,354 21,576 Tool Using Animal 1,339,055 1,366,778 27,723 gmjhowe 743,801 753,871 10,070 killerjackalope 721,763 734,416 12,653 PKM 648,766 656,805 8,039 lemonie 591,001 601,737 10,736 ChrysN 0 379,842 0 laxap 275,235 283,047 7,812 Spl1nt3rC3ll 0 242,954 0 plane phanatic 227,946 230,853 2,907 depotdevoid 0 222,694 0 KentsOkay 207,042 209,715 2,673 Lithium Rain 195,250 198,986 3,736 Doctor What 175,023 177,233 2,210 Jayefuu 148,468 153,747 5,279 AngryRedhead 124,911 131,186 6,275 yokozuna 119,854 121,104 1,250 DJ Radio 113,960 116,022 2,062 Lynne Bruning 101,396 103,489 2,093 reukpower 61,096 74,363 13,267 Ninzerbean 70,748 73,330 2,582 thermoelectric 70,675 72,733 2,058 Hiyadudez 66,425 69,878 3,453 Goodhart 67,133 68,296 1,163 BrittLiv 0 50,922 0 kelseymh 36,354 36,950 596 Killer%7ESafeCracker 0 35,014 0 Berkin 0 32,683 0 RavingMadStudios 0 29,226 0 MichelMoermans 0 19,027 0 Shadowman39 16,442 17,524 1,082 knuckel 0 15,725 0 Derin 0 14,927 0 zascecs 13,110 13,564 454 NachoMahma 9,329 9,405 76 MotaBoi 0 9,180 0 nickodemus 0 8,378 0 masterochicken 7,764 7,941 177 kcls 0 5,144 0 acidbass 0 4,721 0 Kryptonite 3,319 3,888 569 megametal8 0 1,395 0 tbcross 0 0 0 yo man 0 0 0 NachoTest01 0 0 0 hempnecklacestore 0 0 0 Steveastrouk                                           10,535

Topic by Jayefuu 8 years ago  |  last reply 8 years ago

### which is suitable for producing KCLO3 by electrolysis, fertilizer grade KCL(0-0-60) or food grade KCL?

Fertilizer grade is 0% N, 0% P, 60%K and the rest is KCL while food grade KCL is about 49% KCL and the rest is NaCl

Question by davincicoder 6 years ago  |  last reply 6 years ago

### DIY, AC to DC Converter, Variable 0-60vDC, variable 0-10A : is this possible and done with shoestring budget?

Hey, I've been experimenting with Electrolysis and have reached the end of what I can do with a couple of car batteries and a car battery charger. I would like to build a AC to DC converter (as I can't find anything built with the options I want). I believe the sweet spot I am headed for is 52 Volts and 1.5 -3 Amps. I would like to have variable voltage output from 0-60 Volts and variable Amperage output of 0-10 Amps. Is this something than can be put together on a hobbyist's budget? Thanks In advance!

Question by jdevereaux1 7 years ago  |  last reply 7 years ago

### WT*#@ÃÂÃÂ° :0-(3

Why do only pro member now can dowload the PDF's???? the last time i remembered the free acounts could download them :0-(3 BunnyMacSteam verry sad   :0-(3

Topic by BunnyMacSteam 7 years ago  |  last reply 7 years ago

### Need help with DMX512 to Analog 0-10VDC Decoder

I am looking to *update* some old strobe lights that my theater uses to be able to control them through our DMX control board.  They have 2 analog 0-10V inputs to control the flash rate and the intensity.  I am looking for the simplest solution as we do not have a lot of money to throw at this project.  I have some experience in electronics as well as working with arduino, but not enough to tackle this job by myself.   Any thoughts on this would be appreciated!  Attaching the control spec sheet. Tom

Topic by AJackOfAllTrades 4 years ago  |  last reply 4 years ago

### Arduino 5x9 led display and 0-10V voltmeter. Answered

Arduino Duemilanove ATmega328 I want to make a 5x9 led display that monitors a 0-9.99VDC source for a huge motor. I would like to display up to a hundredth of a volt. I would like to do this all using 1 board. I plan on having it display the 3 digits using the 5x9 led display. Can I do this with the limited pins I have without using a shift register? (I think thats what it is called) Do I have all that I need? I have some knowledge of electronics but am in the learning stage but this project will help me a lot in my everyday life. This will be used to monitor a DC water turbine for my pool. I have: -tons of LEDS -Arduino -tons of resistors

Question by newrev426 8 years ago  |  last reply 8 years ago

Question by hydronics 6 years ago  |  last reply 6 years ago

### How to use an arduion to read 0-10vdc and convert it to 0-5k ohms out.Need this to control a curtis speed controller?

Question by mwild97 8 years ago  |  last reply 8 years ago

### will this code work? Answered

Q1-here is the code for picaxe 08m2 will it work or something is wrong Q2-to repeat a code what value do i have to give for the FOR loop i have assumed it to be 0 to 0 THE CODE--------- main: if pinc.4 = 1 then main2       if pinc.0 = 1 then main3       if pinc.1 = 1 then main4       goto main       main2:for b0 = 0 to 0       play 2,0       next b0       pause 2000       goto main       main3:for b0 = 0 to 0       play 2,1       next b0       pause 2000       goto main            main4:for b0 = 0 to 0       play 2,3       next b0       pause 2000       goto main

Question by e=mc^2 7 years ago  |  last reply 7 years ago

Would connecting like 2 or more single cylender horizontal engines like briggs and strattons together flywheel to shaft run as like a 2 cylender in line engine? or has anyone done it even? example : if      [0-     represents an engine with the [ being the flywheel, the 0 the crankcase/block and the - a shaft then this is my idea [0-[0-[0-  and so on like a two cylinder would be [0-[0- would this work? what would i have to do to get this to work?

Question by chris24f22 7 years ago  |  last reply 7 years ago

### Countdown timer doesn't exit and the loop never repeats?

We want to run the stepper motor by 180 degrees and want to repeat it after long delay (say 2 hours or so) with a countdown timer displayed in LCD attached to Arduino. Every thing happening successfully except the loop doesn't start after the countdown ends. #include #include const int stepsPerRevolution = 200;  // change this to fit the number of steps per revolution // for your motor // initialize the stepper library on pins 8 through 11: Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11); // initialize the library with the numbers of the interface pins LiquidCrystal lcd(7, 6, 5, 4, 3, 2); int hours = 0; // start hours int minutes = 0; //start min int seconds = 10; //start seconds int stepCount = 0;         // number of steps the motor has taken void setup() {   // initialize the serial port:   Serial.begin(9600);   pinMode(13, OUTPUT);   // set up the LCD's number of columns and rows:   lcd.begin(16, 2);   // Print a message to the LCD. } void loop() {   // set the cursor to column 0, line 0   // (note: line 0 is the first row, since counting begins with 0):   lcd.setCursor(0, 0);   lcd.print("DRUM ROTAING");   for (int i = 0; i <= 100; i++) {     // step one step:     myStepper.step(1);     Serial.print("steps:");     Serial.println(stepCount);     stepCount++;     delay(125);   }   lcd.clear();   lcd.setCursor(0, 0);   lcd.begin(16, 2);   lcd.print("Count Down Timer ");   delay(150);   while (hours > 0 || minutes > 0 || seconds >= 0) {     lcd.setCursor(4, 2);     (hours < 10) ? lcd.print("0") : NULL;     lcd.print(hours);     lcd.print(":");     (minutes < 10) ? lcd.print("0") : NULL;     lcd.print(minutes);     lcd.print(":");     (seconds < 10) ? lcd.print("0") : NULL;     lcd.print(seconds);     lcd.display();     stepDown();     delay(1000);   } } void stepDown() {   if (seconds > 0) {     seconds -= 1;   } else {     if (minutes > 0) {       seconds = 59;       minutes -= 1;     } else {       if (hours > 0) {         seconds = 59;         minutes = 59;         hours -= 1;       } else {               }     }   } } We used break, return 0, continue, etc. but somehow didn't work. Kindly tell how to exit so that program repeats itself. Thanks.

Question by meetshivam 2 years ago  |  last reply 2 years ago

### My instructable has 0 View for about 1 day ! ?

Hi, I know this is a common error but what is the solution ??

Question by ram mere 4 years ago  |  last reply 4 years ago

### Most Contests Showing as "0 days left" in Firefox Browser

When using Firefox to browse the list of contests the majority are showing as "0 days left" to enter, even though the contests are still open. I can only re-create the problem when using the Firefox browser (v54.0.1), Chrome and Internet Explorer behave as expected. I have completely reset my browser (including cookies, history, cache etc.) but the problem persists. If I open a contest page the description shows "Only 0 s left to enter the...." , however the "Enter Now" button is available and appears to work as expected.

Topic by ThirdEarthDesign 1 year ago  |  last reply 1 year ago

### How to control speed motor dc 0-5000rpm with Arduino?

Hello,  please I need help to control the speed of a dc motor with, for ex, Arduino. I need it to set the rotate speed of a device that we use in I+D at the Uni. The roate speed that we use is between 0 to 5000 rpm.  Any idea and help is more than welcome!!!!

Question by marianoaste 4 years ago  |  last reply 4 years ago

### Which type of diode for 12v 10amp to 12v 0 amp?

Hi all, wondering if you can offer any advice, I'm making a circuit that has two sub circuits:- circuit 1 10 amp transformer, connected to lights circuit 2 6 amp transformer, connected to lights Both these sub circuits will be bridged to  a large circuit , however  I believe I need a diode that will stops the 6 amp transformer getting to circuit 1, but the transformer from circuit 1 to power the lights in circuit 2. If this is correct could someone advise that type of diode I would need to drop the amps to 0. I'm not sure how diodes work however I'm using led lighting that will run off 5v so I'm aiming to have as close to a one way valve for power. Also will I have to place a diode on both the positive and negative or will one surface? Thanks for any help you can offer

Question by C2L 3 years ago  |  last reply 3 years ago

### sys/time.h missing when compiling in MS VC++

Question by GraffikeL 6 years ago  |  last reply 6 years ago

### Controlling a motor with a touch screen ?

Question by etkoehn 4 years ago

### Need help with Arduino. Xbees won't connect when I upload my code?

Question by ReshamP 3 years ago  |  last reply 3 years ago

### arduino button problems, again

I have a problem with two buttons and a RGB LED. I want the two buttons to be pressed and then the brightness decreases/increases but it isn't working. When i press it, it decreases it but then it doesn't do it again. Any help would be appreciated. Code included below (problem is in bold) : int button = 8; int button_two = 7; int redPin = 6; int greenPin = 5; int bluePin = 3; int val = 0; int val_two = 0; int numb = 0; int r = 0; int g = 0; int b = 0; int i = 0; void setup() {   pinMode(redPin, OUTPUT);   pinMode(greenPin, OUTPUT);   pinMode(bluePin, OUTPUT);   pinMode(button, INPUT);   pinMode(button_two, INPUT);   Serial.begin(9600); } void loop() {   val = digitalRead(button);   val_two = digitalRead(button_two);     if (val == HIGH && val_two == LOW && numb < 7) {     numb++;     delay(300);     } else if (val_two == HIGH && val == LOW && numb > 1) {     numb--;     delay(300);     } else {     numb=numb;   }     if (numb == 1){       r = 255;       g = 255;       b = 255;   }   if (numb == 2){       r = 255;       g = 0;       b = 0;   }   if (numb == 3){       r = 0;       g = 255;       b = 0;   }   if (numb == 4){       r = 0;       g = 0;       b = 255;   }   if (numb == 5){       r = 255;       g = 255;       b = 0;   }    if (numb == 6){       r = 255;       g = 0;       b = 255;   }    if (numb == 7){       r = 0;       g = 255;       b = 255;   }   if (val == HIGH && val_two == HIGH) {       int r_cal = r / 5;     int g_cal = g / 5;     int b_cal = b / 5;         r = r - r_cal;     g = g - g_cal;     b = b - b_cal;   Serial.println(r);   Serial.println(g);   Serial.println(b);   delay(300);   } else {     val == LOW;     val_two == LOW;   }   analogWrite(redPin, r);   analogWrite(greenPin, g);   analogWrite(bluePin, b); }

Topic by Isaac Emery 1 year ago

### can i get the circuit diagram of a variable 0-12vdc motor drive circuit using 741IC?

I've made a dc drive circuit using bridge rectifier and 3 741IC op-amp circiut, but the problem is im getting 0-18v across the pot instead of 0-12v.. Canyone suggest how to rectify this problem ?

Question by sumantharisthus 4 years ago  |  last reply 4 years ago

### why i get the following error 'QTR_NO_EMITTER_PIN' was not declared in this scope?

Here is my code: #include #define NUM_SENSORS   1     // number of sensors used #define TIMEOUT       2500  // waits for 2500 us for sensor outputs to go low #define DETECT_LEVEL  150   // Sensor needs to change this amount for detection #define TRIGGER_COUNT 10    // Wait n successive readings valid detection // Create instance of sensors. We are only using one sensor connected to pin 12 PololuQTRSensorsRC qtrrc((unsigned char[]){12}, NUM_SENSORS,TIMEOUT,QTR_NO_EMITTER_PIN); unsigned int sensorValues[NUM_SENSORS]; unsigned int sensorValuesBase[NUM_SENSORS]; unsigned int detect_count[NUM_SENSORS];    // Number of successive times sensor                                            // has detected a drop in value. If                                            // this is greater than trigger_count                                            // then white line detected // Setup pins for SN754410 Motor chip int lf = 6;      // Left motor Forward int lr = 5;      // Left motor Reverse int rf = 11;     // Right motor Forward int rr = 10;     // Right motor Reverse int led = 3;    // LED and resistor across pins 2 and 3 int led_gnd = 2; unsigned char line_detect=1; unsigned char do_turn=0; void setup()  {   pinMode(led, OUTPUT);   pinMode(led_gnd, OUTPUT);     digitalWrite(led_gnd, LOW);    // LED ground     pinMode(13, OUTPUT);   digitalWrite(13, HIGH);        // turn on Sensor   //Read and store the baseline values   qtrrc.read(sensorValues);    sensorValuesBase[0] = sensorValues[0];    } void loop()  {     if(line_detect==1){       // Line Detect is enabled     qtrrc.read(sensorValues);     if(sensorValues[0] < (sensorValuesBase[0]- DETECT_LEVEL)) {       // Detected drop on value - brighter object detected       detect_count[0]++;   // incerment count       if(detect_count[0] >= TRIGGER_COUNT) {         // White Line detected         detect_count[0]=0;          // Reset count         do_turn=1;                  // Start the turn         digitalWrite(led, HIGH);    // turn on LED              line_detect=0;              // Turn off detection until turn complete               // Come to s stop         analogWrite(lf, 0);                 analogWrite(rf, 0);         analogWrite(lr, 0);                 analogWrite(rr, 0);              delay(200);            }      }     else {       detect_count[0]=0;     }    }   if(do_turn==1){     //Turn right a bit to avoid obstacle     analogWrite(lr, 0);         analogWrite(rf, 0);     analogWrite(lf, 200);     analogWrite(rr, 200);           delay(500);                // Turn for half a second     line_detect=1;             // turn line_detect back on     do_turn=0;                 // turn off     digitalWrite(led, LOW);    // turn off Led   }   else {     // go forward until we detect something     // Forward     analogWrite(lr, 0);             analogWrite(rr, 0);     analogWrite(lf, 250);             analogWrite(rf, 250);       } } i add the library and it appear in sketch import library?

Question by hayhackerall 5 years ago  |  last reply 5 years ago

### how to make an RC delay to led (not flashing) ? Answered

How to make an RC delay to led (not flashing) ? i have 3 leds and i want them to light up in sequence once they are powered and they keep lighting without flashing for example second 0 > 1 0 0 second 1 > 1 1 0 second 2 > 1 1 1

Question by aessam1 7 years ago  |  last reply 7 years ago

### how to write a program to control switch and LED

This program is based on How to Program Switch and LED Connected with PIC16F877A. http://www.kynix.com/BlogImage/9.4.7.png    The following code demonstrate, how to write a program that scan the switch status and turn on and off LED. The switch is connected at PORTE bit-0 and LED connected on PORTB bit-0. When switch is read as high state, the LED is turn-on and when switch state is low, LED is turn-off. The switch debouncing rate is 5msec. The code is written in “mikroC PRO for PIC v.5.6.1” IDE and simulation is done with Proteus 8.0 SP0.  PIC16F877A-I/L Datasheet Code in mikroC [code] // switch connected on porte #define SW_AT_PORT PORTE // debounce rate 5msec #define DBOUNCE_RATE 5 // direction signal sbit LED_dir at TRISB.B0; sbit SW_dir at TRISE.B0; // bit labels portb sbit LED at PORTB.B0; sbit SW at PORTE.B0; // old state save flag bit oldstate_one_to_zero; bit oldstate_zero_to_one; void main(void) { // set porta and porte as digital ADCON1 = 0x06; // set direction as output LED_dir = 0; // set direction as input SW_dir = 1; // init LED LED = 0; // init old state flag oldstate_one_to_zero = 0; oldstate_zero_to_one = 0; while(1) { // Detect logical one if(Button(&SW;_AT_PORT, 0, DBOUNCE_RATE, 1)) { // Update flag oldstate_one_to_zero = 1; } // Detect one-to-zero transition if (oldstate_one_to_zero && Button(&SW;_AT_PORT, 0, DBOUNCE_RATE, 0)) { // Update flag oldstate_one_to_zero = 0; // LED ON LED = SW; } // Detect logical zero if(Button(&SW;_AT_PORT, 0, DBOUNCE_RATE, 0)) { // Update flag oldstate_zero_to_one = 1; } // Detect zero-to-one transition if (oldstate_zero_to_one && Button(&SW;_AT_PORT, 0, DBOUNCE_RATE, 1)) { // Update flag oldstate_zero_to_one = 0; // LED OFF LED = SW; } }} [/code]

Topic by narne 1 year ago  |  last reply 1 year ago

I started trying the Arduino programming 1 days ago so I'm not sure what is wrong with my program (also, sorry for the messy look) const int buttonPin = 2;     int buttonState = 0;         #include Servo myservo;  int n = 0; int pos; int lc = 0; void setup() {   myservo.attach(9);   pinMode(buttonPin, INPUT);   myservo.write(pos); } void loop() {   buttonState = digitalRead(buttonPin);   if (buttonPin == HIGH)  {     if (lc == 0) {     for(pos = n; pos <= 180; pos++) {     myservo.write(pos);                   buttonState = digitalRead(buttonPin);     if (buttonPin == LOW){       n = pos;       break; }     if (pos == 180) {       n=pos;       lc = 1;}      delay(15);   } }     else {   for(pos = n; pos>=0; pos--)        {                                    myservo.write(pos);                   buttonState = digitalRead(buttonPin);     if (buttonPin == LOW){       n = pos;       break; }     if (n == 0) {       n = pos;       lc = 0;}      delay(15);    } }   } } Basically, it's to use a button to control the servo, if the button is press, the servo will spin (0 to 180 then 180 back to 0), if the button is released, it will stop the servo, and pressing the button will continues the servo movement (not resetting it). The "lc" int is used to show if the servo was moving from 0 to 180 (lc = 0) or 180 back to 0 (lc = 1). I only studied Pascal before so I have a bit trouble understand it so if there was big mistake in my program, please let me know. Thanks for your help.

Question by Shizen 4 years ago  |  last reply 4 years ago

I'm trying to write code so I get an interrupt on an atmega168 when timer0 overflows. Right now I've got it set up so it blinks an LED every 8th interrupt(~1 second @16mHz /w div 8 prescaler I think), but it doesn't work, so this is where I came. Here's the code:#include #include volatile int flag=0;ISR(TIMER0_OVF_vect){ flag+=1; if(flag>=8){ flag=0; PORTB = (1<<0); }} int main(void){TCCR0A=0b00000000; TCCR0B=0b00000010; TIMSK0 |= (1< TCNT0=0; sei(); DDRC=0b00111100; DDRB |= (1<<0); PORTB |= (1<<0); while(1){ } //End while loop return 0;} //End Main

Question by geeklord 9 years ago  |  last reply 9 years ago

### favourite button

Hi :0) I've gone "pro" but can't see a "favourites" option on the Instructables. Please help. Thanks :0)

Topic by porcupinemamma 9 years ago  |  last reply 9 years ago

### hii can you help me i dunno how or where i will input the codes to make 0-59 to this code 0 -99?

Int digit1 = 9; int digit2 = 10; int digit3 = 11; int digit4 = 12; int A = 2; int B = 3; int C = 4; int D = 5; int E = 6; int F = 7; int G = 8; void setup() {                  pinMode(A, OUTPUT);   pinMode(B, OUTPUT);   pinMode(C, OUTPUT);   pinMode(D, OUTPUT);   pinMode(E, OUTPUT);   pinMode(F, OUTPUT);   pinMode(G, OUTPUT);   pinMode(digit1, OUTPUT);   pinMode(digit2, OUTPUT);   pinMode(digit3, OUTPUT);   pinMode(digit4, OUTPUT);     pinMode(13, OUTPUT); } void loop() {   displayNumber(millis()/1000); } void displayNumber(int toDisplay) { #define DISPLAY_BRIGHTNESS  1000   long beginTime = millis();   for(int digit = 4 ; digit > 0 ; digit--) {      switch(digit) {     case 1:       digitalWrite(digit1, HIGH);       break;     case 2:       digitalWrite(digit2, HIGH);       break;     case 3:       digitalWrite(digit3, HIGH);       break;     case 4:       digitalWrite(digit4, HIGH);       break;     }     lightNumber(toDisplay % 10);     toDisplay /= 10;     delayMicroseconds(DISPLAY_BRIGHTNESS);           lightNumber(10);        digitalWrite(digit1, LOW);     digitalWrite(digit2, LOW);     digitalWrite(digit3, LOW);     digitalWrite(digit4, LOW);   }   while( (millis() - beginTime) < 10) ; } void lightNumber(int numberToDisplay) { #define SEGMENT_ON  LOW #define SEGMENT_OFF HIGH   switch (numberToDisplay){   case 0:     digitalWrite(A, SEGMENT_ON);     digitalWrite(B, SEGMENT_ON);     digitalWrite(C, SEGMENT_ON);     digitalWrite(D, SEGMENT_ON);     digitalWrite(E, SEGMENT_ON);     digitalWrite(F, SEGMENT_ON);     digitalWrite(G, SEGMENT_OFF);     break;   case 1:     digitalWrite(A, SEGMENT_OFF);     digitalWrite(B, SEGMENT_ON);     digitalWrite(C, SEGMENT_ON);     digitalWrite(D, SEGMENT_OFF);     digitalWrite(E, SEGMENT_OFF);     digitalWrite(F, SEGMENT_OFF);     digitalWrite(G, SEGMENT_OFF);     break;   case 2:     digitalWrite(A, SEGMENT_ON);     digitalWrite(B, SEGMENT_ON);     digitalWrite(C, SEGMENT_OFF);     digitalWrite(D, SEGMENT_ON);     digitalWrite(E, SEGMENT_ON);     digitalWrite(F, SEGMENT_OFF);     digitalWrite(G, SEGMENT_ON);     break;   case 3:     digitalWrite(A, SEGMENT_ON);     digitalWrite(B, SEGMENT_ON);     digitalWrite(C, SEGMENT_ON);     digitalWrite(D, SEGMENT_ON);     digitalWrite(E, SEGMENT_OFF);     digitalWrite(F, SEGMENT_OFF);     digitalWrite(G, SEGMENT_ON);     break;   case 4:     digitalWrite(A, SEGMENT_OFF);     digitalWrite(B, SEGMENT_ON);     digitalWrite(C, SEGMENT_ON);     digitalWrite(D, SEGMENT_OFF);     digitalWrite(E, SEGMENT_OFF);     digitalWrite(F, SEGMENT_ON);     digitalWrite(G, SEGMENT_ON);     break;   case 5:     digitalWrite(A, SEGMENT_ON);     digitalWrite(B, SEGMENT_OFF);     digitalWrite(C, SEGMENT_ON);     digitalWrite(D, SEGMENT_ON);     digitalWrite(E, SEGMENT_OFF);     digitalWrite(F, SEGMENT_ON);     digitalWrite(G, SEGMENT_ON);     break;   case 6:     digitalWrite(A, SEGMENT_ON);     digitalWrite(B, SEGMENT_OFF);     digitalWrite(C, SEGMENT_ON);     digitalWrite(D, SEGMENT_ON);     digitalWrite(E, SEGMENT_ON);     digitalWrite(F, SEGMENT_ON);     digitalWrite(G, SEGMENT_ON);     break;   case 7:     digitalWrite(A, SEGMENT_ON);     digitalWrite(B, SEGMENT_ON);     digitalWrite(C, SEGMENT_ON);     digitalWrite(D, SEGMENT_OFF);     digitalWrite(E, SEGMENT_OFF);     digitalWrite(F, SEGMENT_OFF);     digitalWrite(G, SEGMENT_OFF);     break;   case 8:     digitalWrite(A, SEGMENT_ON);     digitalWrite(B, SEGMENT_ON);     digitalWrite(C, SEGMENT_ON);     digitalWrite(D, SEGMENT_ON);     digitalWrite(E, SEGMENT_ON);     digitalWrite(F, SEGMENT_ON);     digitalWrite(G, SEGMENT_ON);     break;   case 9:     digitalWrite(A, SEGMENT_ON);     digitalWrite(B, SEGMENT_ON);     digitalWrite(C, SEGMENT_ON);     digitalWrite(D, SEGMENT_ON);     digitalWrite(E, SEGMENT_OFF);     digitalWrite(F, SEGMENT_ON);     digitalWrite(G, SEGMENT_ON);     break;   case 10:     digitalWrite(A, SEGMENT_OFF);     digitalWrite(B, SEGMENT_OFF);     digitalWrite(C, SEGMENT_OFF);     digitalWrite(D, SEGMENT_OFF);     digitalWrite(E, SEGMENT_OFF);     digitalWrite(F, SEGMENT_OFF);     digitalWrite(G, SEGMENT_OFF);     break;   } }

Question by MiguelV60 2 years ago  |  last reply 2 years ago

### How do I use an Arduino to write say 2.1 volts? Hobo dataloggers accept 0-2.5vdc inputs. Arduino outputs PWM.. thanks!? Answered

I'm working with a university and they love their Hobo's and I don't blame them... they're pretty straight forward to use...  I'd like to write to the Hobo... here's the hobo analog inputs: 0 to 2.5 Vdc; 0 to 5 Vdc; 0 to 10 Vdc; 4-20 mA Hobo stats: http://www.onsetcomp.com/products/data-loggers/u12-006 Analog channels: 0 to 2.5 Vdc; 0 to 5 Vdc; 0 to 10 Vdc; 4-20 mA Accuracy (logger only): ± 2 mV ± 2.5% of absolute reading; ± 2 mV ± 1% of reading for logger-powered sensors Resolution: 0.6 mV Sample Rate: 1 second to 18 hours, user selectable Time accuracy: ± 1 minute per month at 25°C (77°F), see Plot A Operating range: -20 to 70°C (-4° to 158°F) Operating temperature: Logging: -20° to 70°C (-4° to 158°F) Launch/readout: 0° to 50°C (32° to 122°F), per USB specification Humidity range: 0 to 95% RH, non-condensing

Question by hydronics 6 years ago  |  last reply 6 years ago

### Why do DC-DC buck-converters not start at 0 volts? Answered

I have been looking into DC-DC converters to build a variable power supply but I've haven't been able to find one which starts at 0 volts. Most of them seem to start at 5-10 volts with the lowest I've seen starting at 0.8 volts. Is there any reason for this? Thanks,

Question by Smret45 2 years ago  |  last reply 2 years ago

### 123D make: "Number of sheet generated is 0" How to fix this problem?

I got this problem when  I want to print stacked slices. What Do yI do? I CANT CLICK IN SETTINGS "GEAR" BUTTON!

Topic by DIAGONALLIS 2 years ago  |  last reply 2 years ago

### How do I create/buy a 0-9v LED Voltmeter?

I am doing a school science fair project and I need to create/buy a LED Voltmeter. It will be hooked up to a DC motor that is connected to my bike. This DC motor is producing about 0-9v. This LED Voltmeter will be used to display how much power is going to be made.

Question by 7Chris Crash 10 years ago  |  last reply 6 years ago

### My 'ible isn't showing up on the "recent" list, 0 views! Answered

Ok, I do have one view...but only because I gave a direct link to my friend. I've waited several hours, but it still hasn't shown up on the recent list...this has never happened to me before! Are instructables processed somehow? Does it sometimes take a long time? The instructable in question is here

Question by nepheron 9 years ago  |  last reply 9 years ago

### Instructable has been published for over a day and has 0 views

My pokeball earring instructable has been published for about a day now, but there seems to be 0 views. I know someone must have viewed it, because I shared it with friends, and it was accepted into the Game.Life 2 challenge. A few minutes after I published the instructable, I tried to view said instructable but it said "Instructables is down temporarily" or something to that effect. I waited about five minutes, and came back to see that it was back up again. Everything was working again. This might be an irrelevant detail, howevever. Also the layout is a bit messed up. It might be a problem on my end since I'm using an outdated browser on my school's computer. Check attached image. I'm not sure if this has been addressed already or not, but I wanted to get this out there with the hopes that someone else might have the same problem. Best Regards, ~ Tomcat94

Topic by Tomcat94 7 years ago  |  last reply 7 years ago

### 0. What is Current ? 1. What is Voltage? 2.What is Frequency?

My Dout is : 0. What is Current ? 1. What is Voltage? 2.What is Frequency? I know Definition. But i need practical example for this thing OK. So what is my dout is 1. When voltage increased current is also increased !      But in some case When voltage increased current decreased OR voltage decreased current increased. How it is possible Current is depend on voltage so When Voltage is zero then current is also zero only know For Example: When 100 Watt bulb receive high voltage then high electron will flow through tungsten of bulb then bulb will give high brightness ok Then same 100 Watt bulb receive low voltage then low amount of electron only flow through the bulb then bulb give low brightness This is the Rule or Nature So Current is depend on voltage only. Then how voltage decreased when current increased. This is my basic dout not only this and many dout about frequency also And Thank U for Replying ME. Thank U

Question by Xzyamaha 7 years ago  |  last reply 1 year ago

### Arduino: How do I convert a decimal to ASCII? Answered

I'm following this Instructable which is about communicating between 2 Arduinos with RF modules. The received value is stored in buff[0]  and if this value is "1", a light switches on. However, I was going to experiment with sending values other that 1 or 0 from the other Arduino and first added Serial.println(but[0]) but in the serial monitor, it read 49, which if you treat as a decimal value and convert ASCII, you get "1". Equally, when "0" was sent from the sending Arduino, the monitor read 48, which is decimal of the ASCII value "1". I'm a bit confused as the if-statement below works fine. Basically, I want "1" and "0" to be printed to the serial monitor not 48 and 49. How do I do this? Thanks, theRedBryophyte Serial.println(buf[0]); if(buf[0]=='1'){   //some code here... }

Question by theredbryophyte 3 years ago  |  last reply 2 years ago

### Help With arduino Tic tac toe

//This program is a 2 human player tic tsc toe//Created on August 26, 2008 int val; int O; int val2; int playerTurn = 1; int spotOne = 01; // These are the varibles for each possible spot on the grid int spotTwo = 02; int spotThree = 03; int spotFour = 04; int spotFive = 05; int spotSix = 06; int spotSeven = 07; int spotEight = 8; int spotNine = 9; int Player1 = 00; // these will be used to have the players choose their spot on the grid int Player2 = 11; void setup () { Serial.begin(9600); (playerTurn == 1); Serial.println ("Welcome to the two player tic tac toe game."); Serial.println ("Players will take turns putting their choices into the terminal by number."); Serial.println ("Each free space on the grid will have a number on it from 1 to 9."); Serial.println ("Player one will be an 0 and player two will be an 11"); Serial.println ("The first person you get 3 of theor symbols in a row wins"); delay (5000); }void loop (){Serial.println(val);Serial.print (spotOne);Serial.print (" !");Serial.print (spotTwo);Serial.print (" !");Serial.println (spotThree); //First LineSerial.print (spotFour);Serial.print (" !");Serial.print (spotFive);Serial.print (" !");Serial.println (spotSix); //line 2Serial.print (spotSeven);Serial.print (" !");Serial.print (spotEight);Serial.print (" !");Serial.println (spotNine);Serial.print ("It is player ");Serial.print (playerTurn);Serial.println ("'s turn, enter your selection");delay (500); if (playerTurn = 1){ if (Serial.available()) { (val = Serial.read()); if (val == 49){ if (spotOne != 11 || 0){ (spotOne == 11); (playerTurn = 2); } if (val == 50){ if (spotTwo != 11 || 0){ (spotTwo == Player1); (playerTurn = 2); } if (val == 51){ if (spotThree != 11 || 0){ (spotThree == Player1); (playerTurn = 2); } if (val == 52){ if (spotFour != 11 || 0){ (spotFour == Player1); (playerTurn = 2); } if (val == 53){ if (spotFive != 11 || 0){ (spotFive == 11 ); (playerTurn = 2); } if (val == 54){ if (spotSix != 11 || 0){ (spotSix = Player1); (playerTurn = 2); } if (val == 55){ if (spotSeven != 11 || 0){ (spotSeven = Player1); (playerTurn = 2); } if (val == 56){ if (spotEight != 11 || 0){ (spotEight = Player1); (playerTurn = 2); } if (val == 57){ if (spotNine != 11 || 0){ (spotNine = Player1); (playerTurn = 2); }}}}}}}}}} } } if (playerTurn = 2){ if (Serial.available()) { (val = Serial.read()); if (val == 49){ (spotOne == 0); (playerTurn = 1); } if (val == 50){ if (spotTwo != 11 || 0){ (spotTwo = Player2); (playerTurn = 1); } if (val == 51){ if (spotThree != 11 || 0){ (spotThree = Player2); (playerTurn = 1); } if (val == 52){ if (spotFour != 11 || 0){ (spotFour = Player2); (playerTurn = 1); } if (val == 53){ if (spotFive != 11 || 0){ (spotFive = Player2); (playerTurn = 1); } if (val == 54){ if (spotSix != 11 || 0){ (spotSix = Player2); (playerTurn = 1); } if (val == 55){ if (spotSeven != 11 || 0){ (spotSeven = Player2); (playerTurn = 1); } if (val == 56){ if (spotEight != 11 || 0){ (spotEight = Player2); (playerTurn = 1); } if (val == 57){ if (spotNine != 11 || 0){ (spotNine = Player2); (playerTurn = 1); }}}}}}}}} } }} Can anyone help me with this program. I cant quite get it to work properly. You can make changes anywhere.

Topic by sotsirh194 10 years ago  |  last reply 10 years ago

### Same thing different name

Is it me or has the same cheap ass projects being posted over and over and over and over and over and over.

Topic by 0-Xero-0 12 years ago  |  last reply 12 years ago

### need help with coding for the interactive table designed by grahmaustin

Topic by CulturalC 1 year ago  |  last reply 1 year ago

### How to use Multiple mcp23017 chips with the adafruit mcp23017.h library?

Question by DELETED_MakiY2 1 year ago  |  last reply 1 year ago

### Trying to make a arduino based photo booth, and need help with my code for the countdown to be triggered by a button?

Question by DanielB118 3 years ago  |  last reply 3 years ago

### can anybody tell me why my return command in void loop isnt working?

Int keyscan() {     const int keys[12]={     1,2,3,4,5,6,7,8,9,10,11,12                  };       int r=0;   int c=0;   int keypress=99;   int ColState = 0;    //variable to store column state, 0 = low } const int led2pin = 10; const int led3pin = 9; const int led4pin = 8; const int buzzer = 12; const int LidSw =  13; const int ROW0 = 7; const int ROW1 = 6; const int ROW2 = 5; const int ROW3 = 4; const int COL0 = 3; const int COL1 = 2; const int COL2 = 1;   int keypress=99;    int r=0;   int c=0;   int ColState = 0; void setup() {   pinMode(ROW0, OUTPUT);   pinMode(ROW1, OUTPUT);   pinMode(ROW2, OUTPUT);   pinMode(ROW3, OUTPUT);   pinMode(COL0, INPUT); pinMode(COL1, INPUT);   pinMode(COL2, INPUT);   }   void loop()   {while(keypress=99)   {               for(r=0; r<4; r++)                          //loop for 4 rows     {       digitalWrite(ROW0, HIGH);       for(c=0;c<3;c++)                          //loop for 3 columns       {         ColState =  digitalRead(COL0);         if(ColState==1)         {           digitalWrite(ROW0, LOW);  //reset row           tone(buzzer, 450, 500);           ColState = 0;                //reset ColState variable           keypress = ROW0+COL0;    //identify key pressed           delay(500);                  //debounce         return keypress;         }       }       digitalWrite(ROW0, LOW);     }   } }

Topic by endara 6 years ago  |  last reply 6 years ago