Show Posts
Pages: 1 ... 62 63 [64] 65 66 ... 209
946  Using Arduino / Project Guidance / Re: approach suggestions- photoresistor activation with series of blinks? on: June 19, 2013, 10:32:03 am
1) activate routine only when it is dark AND it detects, for example, 3 consecutive flashes from a flashlight (how could you "see" the sequence to indicate to the arduino it matches the series required to activate?)

You have to decide on what is considered a flash in terms of intensity and time. Probably the best approach would be to keep a running average of the current light level and when a reading goes above a certain threshold over the average, count that as a flash.
947  Using Arduino / Project Guidance / Re: Very new to this but need advice on: June 19, 2013, 10:24:29 am
I am trying to run 3 servos with a Uno.  They are to have three positions each 0, 90, 180.  What I am trying to get them to do is operate at the same time but maneuver between 0, 90, 180 randomly.  Any advice would greatly be appreciated

What have you tried so far?
948  Using Arduino / Programming Questions / Re: Get value from 'void receiveEvent' to 'void loop'? on: June 19, 2013, 07:39:40 am
Declare x as a global variable.
949  Using Arduino / Programming Questions / Re: Anyway to tell how much SRAM my sketch is using? on: June 18, 2013, 08:51:23 pm
Google Arduino free memory.
950  Using Arduino / Project Guidance / Re: About while loop, for loop and interrupt on: June 18, 2013, 08:26:43 pm
That is why I wanted to use a while loop for this purpose -- I am repeating the blinking process after a switch is pressed.

But this idea seems to be wrong eventually.

Its not wrong, just unnecessary. The problem in your code is that nothing outside the while loop is run while the condition is true, and you've put the code to check if the button is pressed or not, outside of said while loop. Think of it like boiling water. You put a pot of water on the stove and turn it on. You take a sheet of paper and write down if it's boiling or not. The first time you do that, it isn't so you go and watch TV until it starts to boil. Your code is telling it to keep checking the piece of paper that you wrote "NO" on, instead of getting up and actually checking if the water is boiling and updating your piece of paper.
951  Using Arduino / Project Guidance / Re: Dual Shift Register Help Please on: June 18, 2013, 08:20:20 pm
You assign a value to firstArg, but never use it. That should be a clue that something isn't right.
952  Using Arduino / Programming Questions / Re: Help with light project and remove bootload flash on: June 18, 2013, 08:16:57 pm
So if you don't want the initial flashing, don't use pin 13.
953  Using Arduino / Programming Questions / Re: Help with light project and remove bootload flash on: June 18, 2013, 07:27:29 pm
The usual: post your code.
954  Using Arduino / Programming Questions / Re: The HATRED for String objects - "To String, or not to String" on: June 18, 2013, 07:19:14 pm
Don't expect any of the "string" advocates to fix your code using the "string" functions

Give a man a fish...
955  Using Arduino / Project Guidance / Re: Digital Tape Measure NOT WORKING! please help on: June 18, 2013, 01:16:02 pm
There is a modify button you can press instead of making a new post every time you have a new thought.
956  Topics / Home Automation and Networked Objects / Re: replacing arduino with alternative in specific project on: June 18, 2013, 01:11:13 pm
This is not a specific question.

There is no general solution for non-specific scenarios. You can build a "standalone Arduino", use smaller AVR chips like the 84s or 85s, or you could use discrete/passive components. What should be done will depend on the scenario.
957  Using Arduino / Project Guidance / Re: voltage measurement using arduino on: June 18, 2013, 01:07:07 pm
OK, I missed that. However I would just wire the adapter's 5vdc output to a digital input pin rather then bothering to read it's value as it's a on or off type application alarm?

Lefty

Yeah, that's what I recommended as well:

Quote
you can simply connect the VCC to a digital pin
958  Using Arduino / Project Guidance / Re: Digital Tape Measure NOT WORKING! please help on: June 18, 2013, 01:06:11 pm
Not sure what ISRs have to do with this.

@OP How is the momentary switch wired up?
959  Using Arduino / Project Guidance / Re: voltage measurement using arduino on: June 18, 2013, 01:01:41 pm
Little point to trying to measure the board's 5 volt Vcc voltage via a analog input pin as it will always read 1023 counts as the same Vcc is used as the reference voltage. So even as the Vcc battery pack lowers in voltage the analogRead value will still report as 1023 counts.

 Best to state what you are trying to accomplish rather then how you think it should be done.

Lefty

He's not trying to measure the the board's power supply, he's using a wall wart to determine if there is AC power to an outlet (at least, that's what I've gathered from the limited information he's given).
960  Using Arduino / Project Guidance / Re: voltage measurement using arduino on: June 18, 2013, 12:55:12 pm
you mean A0 to A5...??ok then my 5v comming from my power pack..then 5v vcc and gnd wire how can i input to arduino??
thank you

You plug the 5v into an input pin and the ground to the ground pin of the Arduino, as has already been explained.
Pages: 1 ... 62 63 [64] 65 66 ... 209