Show Posts
Pages: 1 ... 90 91 [92] 93 94 ... 225
1366  Using Arduino / Programming Questions / Re: Single button Multiple functions on: June 04, 2013, 11:43:37 am
Post the whole sketch, not just the part you think is relevant.
1367  Using Arduino / Project Guidance / Re: Help with timing function on: June 03, 2013, 12:00:08 am
When the button is pressed again, you'll probably want to set the LastWarningTime so that it is in sync with the main timer. Its hard to say how exactly, without seeing the full code.
1368  Using Arduino / Programming Questions / Re: Consistent flash on button press (Button + FlashWithoutDelay) on: June 02, 2013, 11:41:45 pm
I don't understand what you mean by seperating the logic though

Different if/else if/else blocks

Quote
or how to relate the boolean to the buttons.

One way would be to assume something is pressed and if you don't fine one pressed, set the boolean to false.
1369  Using Arduino / Programming Questions / Re: Noob - For Loop with Arrays on: June 02, 2013, 07:35:24 pm
You can't reference variables dynamically by there name without some sort of hash table. The compiler turns TankTempArray into a memory address by the time it finishes, so the String "TankTempArray" has no meaning to it. You can instead, use a multidimensional array (array of arrays) and pass the index of which one you wish to refer to.
1370  Using Arduino / Programming Questions / Re: Consistent flash on button press (Button + FlashWithoutDelay) on: June 02, 2013, 06:25:09 pm
I would like to learn how to accomplish this without using delays, and I'm still trying to work out the logic of what I want, but I'm stumped for now.

To get multiple switches working, separate the logic. The switch logic should only update the interval variable (and maybe a boolean that is set when at least one button is pressed).

Then, independent of the switch logic, you should have the BlinkWithoutDelay logic, almost exactly as it is in the example. Perhaps the only minor difference would be a check for the aforementioned boolean.
1371  Using Arduino / Programming Questions / Re: Arduino Uno .. Temperature Sensor with Led Display.. on: June 02, 2013, 09:57:52 am
Edit your post to surround your code with CODE tags.
1372  Using Arduino / Programming Questions / Re: Arduino Uno .. Temperature Sensor with Led Display.. on: June 02, 2013, 09:50:35 am
So what have you tried so far?
1373  Using Arduino / Project Guidance / Re: Additional Analog input via an external source on: June 01, 2013, 11:50:35 am
My question is how can I go about reading the said chip above on the arduino?

Quote
Interface Type:   Serial, SPI
1374  Using Arduino / Programming Questions / Re: Incremental Servo Movement on: May 31, 2013, 10:20:44 pm
prevPos is never updated, so it never changes.
1375  Using Arduino / Project Guidance / Re: how to programme arduino to move its servos at certain time,there is a ds1307RTC on: May 31, 2013, 03:50:44 pm
Thank you very much for replying to my message, can you give me an example because I need to see something to understand as Iam a total noob but I'd like to learn some things,
thank you again

There are plenty of examples that already come with the library for that particular component. Try playing with some of those.
1376  Using Arduino / Project Guidance / Re: Project Guidance for a website controlled Arduino greenhouse on: May 31, 2013, 03:48:44 pm
this is the error it gives: 'InitDHT' was not declared in this scope

You call the function in your code, but you don't define what its supposed to do, nor do you include a library that defines what it is supposed to do.
1377  Using Arduino / Project Guidance / Re: Project Guidance for a website controlled Arduino greenhouse on: May 31, 2013, 03:43:07 pm
I cant get the DHT 11 working when I compile it gives an error.

But you're not going to tell us what that error is?
1378  Topics / Home Automation and Networked Objects / Re: Solarometer Network problem on: May 31, 2013, 02:43:45 pm
It looks like "Network variables" belongs in a comment and not in the code.
1379  Using Arduino / Programming Questions / Re: How to check if a variable is a member of a set on: May 31, 2013, 02:41:16 pm
@ Arrch
I understand, but when you set it equal to zero, it does not show anything. Maybe it needs to be "if( (byte)((n & -n) + n) == 0)"

Yeah that, or mask away the higher order byte.
1380  Using Arduino / Programming Questions / Re: How to check if a variable is a member of a set on: May 31, 2013, 02:32:35 pm
Has to be 256

256 in byte form is 0.
Pages: 1 ... 90 91 [92] 93 94 ... 225