Show Posts
|
|
Pages: [1] 2 3 ... 8
|
|
1
|
Using Arduino / Project Guidance / Re: LED light Project
|
on: May 20, 2013, 08:49:03 am
|
|
Do you want them to turn on full or gradually brighten? I'd think that on full (while its still light out) then gradually dim as it gets dark, then possibly twinkle would be neat. Easy to do using the PWM Outputs.
|
|
|
|
|
2
|
Using Arduino / Project Guidance / Re: Sound Level Detector
|
on: May 09, 2013, 05:42:42 pm
|
Have a look at... http://tim.cexx.org/?page_id=374and about halfway down the page is a schematic and description of an "Analog beat detector". This circuit should do what you want. The comparator output is an impulse detector that tracks along with the background sound level. The lower Diode/C/R network at the "-" input is the "reference" or "sound level average" network.
|
|
|
|
|
3
|
Using Arduino / Project Guidance / Re: Arduino reading 4 or more fan tachs
|
on: May 07, 2013, 11:35:00 pm
|
|
Approx. what is the fan tach frequency? It's often a fraction of the fan RPM. You may be able to use the millis() or micros() to measure the delay between tach pulses (period) and then convert the period to frequency (f = 1/t) . An RC network (integrator) on each fan tach and analogRead() to measure the output voltage from the network would work, which essentially converts the pulse rate to a voltage and won't be terribly accurate but should be good enough for what you want.
|
|
|
|
|
4
|
Using Arduino / Project Guidance / Re: Sound Level Detector
|
on: May 07, 2013, 06:01:26 pm
|
|
"...sound abnormally exceeds that sound level" and "sensor detects a loud noise" are somewhat different. The former requires an sound level average while the latter, peak detection.
Do you want one (which one) or both? The Arduino can do both in software (with a little hardware to create an amplitude envelope, a "DC" level that reflects the sound amplitude) or both can be done in hardware and the Arduino can simply read the two levels.
|
|
|
|
|
6
|
Using Arduino / LEDs and Multiplexing / Re: Turning a simple 3w led w/arduino
|
on: April 30, 2013, 06:55:20 am
|
The 317 will work as a current source but is not directly PWM-switchable without additional components. This thread discusses some options... http://arduino.cc/forum/index.php/topic,102101.0.htmlI think the circuit with the transistor shutting off the ADJ pin will allow for a low-power transistor since it's only gating the high current output of the regulator. Uses a few more components but looks to be a better design (unless you're building a lot of them and looking for lowest parts count). THe other circuit will have large currents through the transistor and need a beefier heat-sinked transistor.
|
|
|
|
|
7
|
Using Arduino / LEDs and Multiplexing / Re: Turning a simple 3w led w/arduino
|
on: April 29, 2013, 06:43:35 am
|
There are lots of devices out there, particularly logic-level MOSFETS, that will directly take Arduino PWM outputs and drive high-power LEDs. Although I haven't used this one, I may in the future... http://www.onsemi.com/pub_link/Collateral/CAT4101-D.PDFTHis implies that you have soldering skills though. Otherwise there are many LED drivers out there. Just be certain to choose one with "logic-level" inputs, meaning that it will work directly with the TTL PWM signals from Arduino and not need level-shifting interface circuitry.
|
|
|
|
|
9
|
Using Arduino / LEDs and Multiplexing / Re: Brightness control
|
on: April 26, 2013, 01:11:27 am
|
|
Keep in mind that brightness levels of 0, 25, 50, 75 and 100% will look to the eye like brightness levels of about 0, 60, 80, 95 and 100%. This is due to the eye's nonlinear response to light. If you want visual levels of 0, 25, 50, 75 and 100% then you may want to start with 0, 3, 20, 50, and 100% and tweak from there. I recall seeing some algorithms that will calculate the relative "eye" brightness from LED % brightness.
|
|
|
|
|
12
|
Using Arduino / General Electronics / Clamp Comparator Output for Analog/Digital Input Pin
|
on: April 23, 2013, 12:21:54 am
|
|
I have an opamp as a comparator whose output I want to read with a digital or analog input pin and trigger an action when the comparator output goes high and a different action when low. Currently using +9v/-9v supplies for the opamp and want the comparator output to be compatible with the analog/digital pin (0 - 5v). A 5.1v zener from the comparator output to Gnd clamps the high output to around 5.1v but the low level is -0.7v. Is this -0.7v bad for an analog/digital input and how could I better the circuit to more accurately yield 0-5v comparator output for the analog/digital input?
|
|
|
|
|
13
|
Using Arduino / Project Guidance / Re: Can you run 2 different loops in 1 sketch??
|
on: April 19, 2013, 06:48:47 am
|
|
You can also set up an elapsed timer of sorts using millis() or micros() and save the time T0, then periodically check the time in a loop that goes off and does something else, and when the periodically checked time is greater than some chosen time span after time T0, trigger the other event. Kinda like watching your stopwatch until so many seconds have passed before doing something else. This allows you to "parallel process" in a sense based on elapsed time.
|
|
|
|
|