Show Posts
Pages: 1 ... 7 8 [9] 10 11 ... 109
121  Community / Bar Sport / Re: Why Q for transistors? on: August 24, 2014, 09:16:48 pm
Hi, yes quite a few characters had it in for the poor Bluebottle,   "He's fallen in the water."

Tom.... smiley
"You deaded me!"
Bluebottle appears to have been 'deaded' in almost every episode.
122  Using Arduino / Programming Questions / Re: Looking for Ideas for multiple conditions / Best way to proceed. on: August 24, 2014, 08:21:28 pm
I want to:
1) watch the input of the level switch ( if low Green LED is on)
2)when level switch goes high, A)  Turn on an output for the motor (For a specified amount of time like 10 minutes)
                                                              B) turn off Green LED
3)after time has passed, turn off motor
4) Check Level switch again, if Still high A) Sound an alarm
                                                                              B) Do not allow Pump to turn back on until Alarm is acknowledged(See other ideas)
                                                                              C) Turn on Red LED 

Thats about it.
You've virtually written your program there.
Look up State Machine and the Switch-Case construct in the Learning pages of this site.
I'd define your states as:
1) if level switch indicates low, green LED on, else change to state 2.
2)Start timer and turn on motor, turn off green LED change to state 3
 (you may want to turn on a different LED to indicate the motor is on)
3)If time is up turn off motor ( and motor indicator LED) change to state 4
4)If level switch indicates low, change to state 1,  else sound alarm and turn on red LED, change to state 5
5)if alarm is acknowledged, silence alarm...What then?

123  Using Arduino / Project Guidance / Re: Another multiples LEDs blinking question on: August 24, 2014, 07:31:33 pm
So far... I'm not unhappy with what I've found (sketch below) and thanks to all of you for pointing me out where I should looking for. Array seems to be the solution.  It still abstract tho ...
Now, I like this sequence I've got but is it possible to add another sequence following this one and make them in loop ?
Only if you get rid of the delay()s.
Quote
I was hoping that copied the same code with different values would work but it didn't !
Any help would be appreciated.
But you haven't paid any attention to the help you've already been given.
Get rid of the delay()s and use the 'blink without delay' method instead. That's the ONLY way to achieve what you want.
124  Using Arduino / Project Guidance / Re: How to power the Arduino from a UK light switch on: August 24, 2014, 07:10:28 pm
All the circuits, including the lighting, in my house run through a leakage breaker in the fuse box. Damned annoying if it tripped after dark, until I installed a battery emergency lighting system.
Quote
That is precicely the reason that lighting circuits should be left off the circuit breaker , as should freezers and grannies iron lung be fed seperatley.
How does one do that when the  circuit breaker is part of the fusebox main switch, the one that's connected directly to the Supply Company's meter?
Anyway, I'd sooner the food in the freezer defrosted than someone was electrocuted.  The food can be replaced, people can't.
Granny no longer needs an iron lung as she's 6ft under.  smiley-cry
125  Using Arduino / Project Guidance / Re: Closing external circuits (Xbox one controllers) on: August 24, 2014, 06:49:27 pm

I had found a few resource that said I would need an optocoupler (which Im still not 100% of what its used/required for). - but for the sake of space if it can be avoided that would be cool.
An optocoupler, also known as an optoisolator, is a device with a LED and phototransistor inside. These are completely electrically isolated, the only 'connection' between them is the light.  When the LED is on, the phototransistor conducts. They are fairly small, the surface mount type are tiny. http://www.farnell.com/datasheets/1717170.pdf
126  Using Arduino / Project Guidance / Re: chess on an arduino uno on: August 24, 2014, 06:09:04 pm
Would the Arduino be required to physically move the pieces around the board or just notify a human what move it wants to make?
127  Community / Bar Sport / Re: Why Q for transistors? on: August 23, 2014, 09:29:40 pm
To (P)np or not to (P)np, That is the (Q)uestion.

When we want your NPN, we'll ask for it  smiley-grin smiley-grin
128  Using Arduino / General Electronics / Re: Crossover component on: August 23, 2014, 09:05:27 pm
You're for it now! Your fingerprint is on the internet   smiley-wink
129  Using Arduino / Programming Questions / Re: Trouble with millis() on: August 23, 2014, 08:48:21 pm
And take out all those blank lines. They add nothing and make your code more difficult to read.
130  Using Arduino / Project Guidance / Re: How to power the Arduino from a UK light switch on: August 23, 2014, 08:17:45 pm
Absolutley not.

Lightswitches in uk no not have a neutral.
The box behind the switch MAY  have a neutral running through it, but as you say, it's NEVER connected to the switch.
Quote
If you use the earth the very best situation would be you trip a leakage breaker if you have one.
They are not connected to lighting circuits in domestic situations any way.
All the circuits, including the lighting, in my house run through a leakage breaker in the fuse box. Damned annoying if it tripped after dark, until I installed a battery emergency lighting system.
Quote
Worst case various electrical devices in home will suddenly become live wrt local earth, FATAL.
No quibble there.
131  Using Arduino / Project Guidance / Re: Another multiples LEDs blinking question on: August 23, 2014, 07:39:32 pm
1) Look up 'blink without delay' in the learning  > examples pages. Read it, understand it and adopt it.
2) Look up 'State Machine' in the same pages.
3) Look up 'array' in the reference page.

We're not going to write your program for you (unless you're willing to pay) but, if you get stuck, we'll help you sort out your errors.
132  Community / Bar Sport / Re: Why Q for transistors? on: August 22, 2014, 09:49:36 pm
I guess "T" was already taken?
Transformers were invented before transistors.
133  Using Arduino / General Electronics / Re: Bread Boards & wishful thinking? on: August 22, 2014, 09:33:12 pm
Q;
 What voltages, other then the obvious 3.3 & 5vs, would be desired and at what amperage?

 Dizzwold.
For me, 12V @ 1.5 - 2.0A would be useful, others might want 24V as well.
134  Community / Bar Sport / Re: Winter vs Summer on: August 21, 2014, 10:51:45 pm
London had hail a week or so back, its the middle of summer.
It's not uncommon to get hail in the summer.
135  Using Arduino / Project Guidance / Re: teaching arduino to high school students? on: August 21, 2014, 10:21:17 pm
We still haven't heard from the OP about how much time and equipment is involved. Four weeks could be anything from 1 hour a week for 4 weeks to 4 weeks * 5 days * 6 hours. The former wouldn't give time for anything but the simplest of projects, but until he gives us more details, we're just guessing how complex it can be.
Pages: 1 ... 7 8 [9] 10 11 ... 109