Show Posts
Pages: [1] 2 3 ... 298
1  Using Arduino / Programming Questions / Re: Double Loop on: Today at 03:37:53 am
Classic case of the need for Blink Without Delay
2  Using Arduino / Programming Questions / Re: relay code !! on: Today at 12:21:01 am
Quote
make the aruino read it or something

I don't know what you mean: you don't "read" relays.

Put the code to turn it of and on, at the bottom of the code after you get the distance.

3  Using Arduino / Programming Questions / Re: relay code !! on: August 26, 2014, 11:46:56 pm
So test it with an led instead of relay.

Now you have the same question going in two related but different threads....  smiley-yell
4  Using Arduino / Programming Questions / Re: problem with my code :/ on: August 26, 2014, 11:45:28 pm
You could test that with an LED in place of the relay. I don't know what your hardware is: you would not want to drive the relay coil from an Arduino i/o pin. 

Relay tutorial
5  Using Arduino / Project Guidance / Re: Motor controller program help on: August 26, 2014, 11:42:17 pm
If I lived 600km North of where I do, "Zimbo" would be a good name....
6  Using Arduino / Programming Questions / Re: relay code !! on: August 26, 2014, 11:39:01 pm
I'm not asking you to take the risk of spending 1000000000 dollars on something that might not work and blow up the moon.... I'm asking you to think.
7  Using Arduino / Programming Questions / Re: relay code !! on: August 26, 2014, 11:31:04 pm
I'm not being funny, but where do you think it should go?
8  Using Arduino / Programming Questions / Re: problem with my code :/ on: August 26, 2014, 11:12:34 pm
Tip.... place your cursor just after any bracket and the IDE will highlight the matching one with a little box. See attached, red line is cursor, matching brackets in yellow.
9  Using Arduino / Programming Questions / Re: problem with my code :/ on: August 26, 2014, 10:42:37 pm
That delay() is below the closing } of loop()

edit... in fact your loop() doesn't have a closing }, you are one short
10  Using Arduino / Programming Questions / Re: problem with my code :/ on: August 26, 2014, 10:27:38 pm
 
Code:
// Convert measured value1 to value between 0-11, to display on LCD
  // Use Arduino built-in map and constrain functions
****************  int scaledValue = map(constrain(distance, highWater, lowWater), lowWater, highWater, 0, 11);
  lcd.clear();
  lcd.print("E    SENSOR 1    F");
  lcd.setCursor(0,1);
  while (scaledValue > 0) {
     lcd.print((char)0);
     scaledValue--;
  }
     
   delay(2000);  // Wait 2 seconds before printing the 2nd value.

  // Convert measured value2 to value between 0-11, to display on LCD
  // Use Arduino built-in map and constrain functions
 ************************* int scaledValue = map(constrain(distance2, highWater, lowWater), lowWater, highWater, 0, 11);//<<<<<<<<note distance2
  lcd.clear();
  lcd.print("E   SENSOR 2   F ");
  lcd.setCursor(0,1);
  while (scaledValue > 0) {
     lcd.print((char)0);

See the lines I marked *****************************.... you declare scaledValue both times. Once it's declared the first time, the second time, lose the "int"
11  Using Arduino / Project Guidance / Re: Motor controller program help on: August 26, 2014, 10:30:21 am
I would do as ZJimboZA suggests

 smiley-cool
12  Using Arduino / Project Guidance / Re: GRID SOLVING ROBOT AND OBJECT PICKING on: August 26, 2014, 10:28:58 am
Asking for help, as in ....

Quote
pleas help me

... means you have a problem with some coding or hardware that you already tried and got stuck. So you need to post what you already tried and someone will probably try to help, if you explain what isn't working properly.

On the otherhand, if you mean by "help" that you want a turnkey solution, probably with payment, then this post should be here, rather.
13  Using Arduino / Project Guidance / Re: Problem - arduino board/pushbutton action on: August 26, 2014, 09:57:12 am
The attached pic shows the connections for internal pullup, external pullup, external pulldown.
14  Using Arduino / Programming Questions / Re: Adding programs to demo program folder on: August 26, 2014, 09:20:28 am
This is also true of libraries: let's say you buy a component like a Real Time Clock and download a library to run it. There is a libraries folder in your Arduino install, but it gets overwritten if you do a new install. So if you put custom libraries in there, you'll lose them.

The sketchbook folder is where custom libraries ought to go, in a libraries folder in the sketchbook.... then they're safe from overwriting if you upgrade Arduino.
15  Using Arduino / Programming Questions / Re: Adding programs to demo program folder on: August 26, 2014, 09:09:38 am
I just recently retired ... I want to be able to take the breadboard & the Arduino to my parents house & show them.

Awesome....
Pages: [1] 2 3 ... 298