Show Posts
Pages: [1] 2 3 ... 106
1  Community / Bar Sport / Re: Scotland Reveals Currency Plan on: September 19, 2014, 11:48:17 pm
Bagpipes are wonderful, when herd across a glen, better yet from the next glen over from that.
I only like them when they're playing "Over the hills and far away."
2  Using Arduino / General Electronics / Re: Need Suggestions for Extending Approximately 40 Wires within 1 larger Wire on: September 19, 2014, 11:22:00 pm
Remember that you'll need it to be fairly flexible so as not to stop you turning or tilting your head. I think wrapping the cable will make it too stiff. You want something like this:
http://www.maplin.co.uk/p/data-cable-multicore-25-way-grey-priced-per-metre-xr46a.
It's very flexible. They also sell 15 core cable. A metre is approx. 39", just 3" short of your 3.5 feet.
That cable is screened, so you get an extra 'core' you can use as a ground connection.
You haven't said where you are smiley-mad so you may have to look for local suppliers.

That looks great! Only problem is that I live in the U.S. so I'll have to find a similar product somewhere else. Any suggestions?
Yes. Put your location in your profile.
3  Using Arduino / Project Guidance / Re: AlarmLibrary or selfbaked? on: September 19, 2014, 10:21:58 pm
but do you think it wont be a problem that the arduino will get slow while he does this calculations?
Why would it do that?
Quote
at the moment I'm using a simple if (currentmillis>millis5secondsago+5000) {do my stuff}   in my loop function
 -  no delay() smiley-wink
How long do you think it will take to check that if statement? If the 'if' is untrue, it won't {do your stuff}.
To avoid problems when millis() rolls over, your if statement should be like this:
Code:
if (currentmillis - millis5secondsago > 5000) {
do my stuff;
}
4  Using Arduino / Project Guidance / Re: To Arduino or not to Arduino - Model Railways on: September 19, 2014, 10:05:56 pm
Thanks.
Are you using series resistors with the LEDs? They're not shown in your diagram.
Your Arduino can supply enough current to light your LEDs without the need for relays.
5  Using Arduino / Project Guidance / Re: How to automate uploading a series of sketches on: September 19, 2014, 09:28:33 pm
See http://forum.arduino.cc/index.php?topic=223286.0
6  Community / Bar Sport / Re: Who hasn't accidentally touched a mains voltage once or twice? on: September 18, 2014, 11:07:46 pm
Ha!  Yeah, I added an extension to our home line once.  We got an incoming call while I was wrapping the wires around the set screw in a wall biscuit.  It's a bit less obvious than mains... took a second to notice I was feeling something, then realized my fingers were starting to hurt!  I heard later from the calling party that the line was doing "strange things".  (Yeah, like electrocuting the recipient!)
You got the message...  smiley smiley smiley
7  Community / Bar Sport / Re: 60 capacitors? on: September 18, 2014, 10:59:05 pm
I don't suppose it would matter if all three decoders used a reference implementation -- or even the same library?  After all, all those $1k power cords use the same cheap 12/3 back to the breaker panel...
And even further back, the Supply Co. don't worry about audio quality on their underground cables and the National Grid.
8  Using Arduino / General Electronics / Re: Need Suggestions for Extending Approximately 40 Wires within 1 larger Wire on: September 18, 2014, 10:43:40 pm
Remember that you'll need it to be fairly flexible so as not to stop you turning or tilting your head. I think wrapping the cable will make it too stiff. You want something like this:
http://www.maplin.co.uk/p/data-cable-multicore-25-way-grey-priced-per-metre-xr46a.
It's very flexible. They also sell 15 core cable. A metre is approx. 39", just 3" short of your 3.5 feet.
That cable is screened, so you get an extra 'core' you can use as a ground connection.
You haven't said where you are smiley-mad so you may have to look for local suppliers.
9  Using Arduino / Programming Questions / Re: Converting a SubString to Word on: September 18, 2014, 09:55:23 pm
Quote
Is switch/case/break "more readable" than few if/else enough to be worth increasing the length of the code ? I don't think so

True, it's a matter of choice. Your code is shorter (1380 bytes) than mine (1396), but I always find a switch easier to read.  I wouldn't expect everyone to agree.
I'm with you on this. Suppose you have several (hundred?) cases. I'd get lost after the first 10 if/else/if statements.
10  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).
11  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.
12  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()
13  Using Arduino / Project Guidance / Re: Transformers on: September 18, 2014, 08:23:52 pm
What do you need 15kv for?
14  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!"
15  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.
Pages: [1] 2 3 ... 106