Show Posts
Pages: 1 ... 6 7 [8] 9 10 ... 96
106  Using Arduino / Project Guidance / Re: Arduino Uno and Motor Sheild Question running a Stepper Motor on: June 21, 2014, 03:36:41 pm
When posting code, please use code tags (the # key above the smileys).
When posting pictures, please make them no bigger than 1000 x 600.
107  Using Arduino / Project Guidance / Re: Project too complicated ? on: June 21, 2014, 11:33:18 am
OK. So the one side of the button / switch will be permanently connected to Ground, and the 'open' side will have a pull-up resistor.
Therefore, the 'open' side will be at about 5V when the switch is not pressed.
My thinking on the optocouplers was to use them to protect the Arduino.
Protect it from what?
108  Using Arduino / Project Guidance / Re: Project too complicated ? on: June 21, 2014, 12:10:57 am
I was planning to run the Vcc to the optocouplers, and then only the ground needs to go down the cat5e to the finish end for the buttons to return when pressed / circuit closed.
I don't understand your need for optocouplers. One side of your switches will be ground, the other side will have a voltage on it, whether you use optocouplers or not.
I understand your need to keep voltages away from the water to avoid shock, but insulation and waterproofing should be all you need for low voltages. Even if you're feeding your Arduino 12V, only 5V max. will appear on the I/O pins.
Thinking outside the box. Garden hose, when used normally, keeps water in. Run your cable through a new length of (dry) hose (use talc to make it slide through easier) to keep water out. Seal the ends of the hose with silicon sealant and keep them out of the water to keep your cable dry.
109  Using Arduino / General Electronics / Re: what is this? on: June 19, 2014, 03:37:25 pm
The resistance between the terminals and the body is also infinite. The unit turns. I think it's supposed to be a variable resistor.   I cannot plug it in now cause my bike is in pieces. I'm busy rebuilding it
How far does it turn? More than 360o or less than 360o?
Have you tried measuring the resistance whilst turning it slowly? It could be a reed switch housing.
110  Using Arduino / Project Guidance / Re: Dual-shield enclosures on: June 18, 2014, 02:34:18 pm
That's OK. It's a global world we live in, and Sonapost handles parcels from foreign lands like most others.............
But does AfghanPost, SomaliaPost, N.KoreaPost or CongoPost?
111  Using Arduino / Programming Questions / Re: Assembly language question on: June 17, 2014, 11:05:25 pm
Assembler code and delay() seem to be strange bedfellows.
It stops you needing to write several million NOPs.  smiley-grin
112  Using Arduino / Programming Questions / Re: FOR loop question on: June 17, 2014, 10:56:15 pm
(r = r - 1) == r--
113  Using Arduino / Project Guidance / Re: Dual-shield enclosures on: June 17, 2014, 09:41:01 pm
If you tell us where you live (country would do, but city would be better) you might get more appropriate responses. I could direct you to some UK suppliers of suitable cases, but I've no idea whether you could conveniently get there.
114  Using Arduino / Programming Questions / Re: Arithmetic Question on: June 16, 2014, 07:45:45 pm
(391/880) + (1/880) = 392/880
                                    = 196/440
                                    = 98/220
                                    = 49/110
115  Using Arduino / Project Guidance / Re: toggling a relay to bypass a switch on: June 15, 2014, 08:09:53 pm
Before posting code, please autoformat it (Ctrl +T in the IDE)
When posting code, please use code tags (the # button above the smileys)
Your code appears to be missing a final curly brace.
116  Using Arduino / Project Guidance / Re: Ball valves - H Bridge fake proportioning on: June 13, 2014, 10:39:18 pm
the poster is saying that one notch is about 100 times to fast.
How big, precisely, is one 'notch'?  Is it seven tads or nine tads?
Is that an Imperial 'notch' or a Metric 'notch'?
My mistake, I should have specified Millinotches...
If one 'notch' is too fast, he's either using the wrong size 'notch', or more likely, the wrong type of valve for the job.
117  Using Arduino / Project Guidance / Re: Ball valves - H Bridge fake proportioning on: June 12, 2014, 09:12:47 pm
I don't see the need for any complicated algorithms. If the flow is too fast, slow it down a little, else if the flow is too slow, speed it up a little. If the flow is within limits, do nothing. Depending on the length of your loop(), this will repeat many hundred times a second and should soon become fairly stable, depending on how much hysteresis you give it.
I'll assume you want a flow of ~3Ltrs/sec and that you're using a recirculating valve (closing the valve speeds up flow, opening the valve slows flow). Pseudo code:
void loop(){
Check flow rate;
if (flowrate<2.9){close valve one 'notch'} //it's too slow!
else if (flowrate>3.1){open valve one 'notch'} //it's too fast!
That won't give a flow rate of exactly 3Ltrs/sec but it will keep it within fairly close limits once it has stabilised. If you find the valve motor is constantly 'hunting', just increase the hysteresis by changing the limits to, say, 2.8 and 3.2.
You realise, of course, that as the sugar content rises, the fluid will get more viscous and the pump will have to work harder or the recirculating valve will have to close a little, to maintain the same flow rate. Code based on the above will do that automatically.
118  Using Arduino / Project Guidance / Re: Help for a simple code-checking on: June 12, 2014, 12:27:39 am
Write a comment after each of your closing curly braces saying something like "//end of if(LED on) ". That'll show you where your mistakes are. Also, the statements following your 'else' should be enclosed in a pair of curly braces.
119  Using Arduino / Project Guidance / Re: To recapitulate, on: June 12, 2014, 12:14:00 am
It appears the OP does not wish to attach connectors to the wires, as he wants to thread them through (rather small) holes and connect them without further soldering.
Yes. That's what I understood. "Eye of a needle" type stuff. Hence my ZIF socket suggestion. I've also seen some tiny (1/2") alligator clips that could be soldered to a PCB. Again, I don't know if they will hold that gauge wire.
But, as the OP hasn't told us what gauge wire he's using, we're just wasting our time guessing.
120  Using Arduino / Project Guidance / Re: just a thought, looking for opinions on: June 11, 2014, 11:26:37 pm
my question is not "how", This is simply a thought and am just wondering if you think its possible and why or why not.
I'm no expert either, but you have to remember that the limiting factor will be the Arduino's 16MHz clock speed.
Pages: 1 ... 6 7 [8] 9 10 ... 96