Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 109
61  Using Arduino / Programming Questions / Re: Avoiding Delay (blinkwithoutdelay) help on: September 18, 2014, 09:29:02 pm
How about if you don't reset previousMillis until after the the second interval and use:
Code:
if (currentMillis - previousMillis > (pingDelay *2)){
for the second one (assuming the intervals are equal).
62  Using Arduino / Project Guidance / Re: To Arduino or not to Arduino - Model Railways on: September 18, 2014, 09:17:09 pm
There's code there, but no schematic. Schematic = circuit diagram.

Henry

Will photo do?

Jim
Sure, if it's clear what components you're using.
63  Using Arduino / Project Guidance / Re: AlarmLibrary or selfbaked? on: September 18, 2014, 08:41:25 pm
Look at the 'blink without delay' example. Study it, absorb the principle and use it.
Use it to regularly (say every minute) check the time. If the time is after 7:59 PM, turn on the lights.
Even if there's been a power cut, the lights will come on as soon as there's power available.
DO NOT USE DELAY()
64  Using Arduino / Project Guidance / Re: Transformers on: September 18, 2014, 08:23:52 pm
What do you need 15kv for?
65  Community / Bar Sport / Re: Scotland Reveals Currency Plan on: September 17, 2014, 08:57:16 pm
Looks like a good one.
"Do not pass Gretna. Do not collect 200 Numptie!"
66  Community / Bar Sport / Re: 60 capacitors? on: September 17, 2014, 08:49:26 pm
See the attached photo...

This to me looks like a way of selling unused stock, anyone happen to know if there's any benefit to using this method ie 60 small caps vs several large capacitors instead? Except less soldering that is...
I see 68 capacitors on it. But, maybe larger caps would be too tall for the space it is to fit in.
67  Using Arduino / Programming Questions / Re: <insert tech term here> Does this really matter which way I use this? on: September 17, 2014, 08:24:04 pm
If I recall correctly, the \ on the end is a continuation character and means the next line is part of this line. So since this line is a comment, the next line which is actually code, becomes part of the comment and is thus "mysteriously" ignored.
Thanks.
68  Using Arduino / Programming Questions / Re: Code error on: September 17, 2014, 08:19:42 pm
That's where the LNIT comes in to arbitrate.....
Better would be to use the author's name and D.O.B.*, but how many would be willing to divulge that personal information?
* 365.25 times about 70 years = ~25,567.5 different possible combinations.
69  Using Arduino / Programming Questions / Re: I have an error "serial_mem_test:48: error: 'unit16_t' does not name a type". on: September 17, 2014, 07:18:16 pm
Check again smiley

unit16_t
And use code tags (the # button above the smileys) when posting code, to avoid the unwanted smileys.
70  Community / Bar Sport / Re: Who hasn't accidentally touched a mains voltage once or twice? on: September 16, 2014, 11:17:48 pm
The other thousand people are not posting because they're dead smiley

The reason I asked is because this has happened to me several times and frankly, I am underwhelmed.  Now, I was never drenched in salt water and standing in a puddle when this happened, but still.  I do wonder about the people in 240V countries.  I have to imagine that the voltage is substantially more dangerous there.
Yep. About twice as dangerous...
71  Using Arduino / General Electronics / Re: Soldering problem on: September 16, 2014, 11:09:13 pm
Hi Henry,
                    Your in the UK like me, so we only use C? don't we? Yes I used F in the 1960's, but then I also use Feet and inches, and gallons. Now I've changed with the times.

Regards

Mel.
Likewise, but our American cousins still use oF and, without giving units, it can be confusing.
72  Using Arduino / Programming Questions / Re: Problem Inserting Small Sketch into Large Sketch on: September 16, 2014, 10:59:15 pm
Quote
just ensure the cake TASTES good
At the last wedding I went to, there was a beautiful cake. Fancy decorations, on discs of styrofoam. Obviously, it was a prop only, and they didn't even serve cake.
I hear that styrofoam doesn't taste too good.
73  Using Arduino / Programming Questions / Re: Code error on: September 16, 2014, 10:51:22 pm
It would be nice if there was a "library name issuing authority" so that names aren't duplicated. Or at least a naming convention eg to use author's initials or name so that we would know button_jim.h is not the same as button_fred.h.
But what happens when two Jims each write a library called button.h ?  smiley-roll-blue
74  Using Arduino / Programming Questions / Re: <insert tech term here> Does this really matter which way I use this? on: September 16, 2014, 10:38:13 pm
A word of warning - don't try to get all cutesy and symmetrical with comments like
Code:
//   this is a dangerous thing to do \\
x++;
I don't but, just out of curiosity, what does it do?
75  Using Arduino / Programming Questions / Re: Need help programming in a switch.. on: September 16, 2014, 10:22:37 pm
Or just wire the two switches in series and treat them as one input.
Pages: 1 ... 3 4 [5] 6 7 ... 109