Pages: [1]   Go Down
Author Topic: Put some analog Meters + dimming LEDs on an Arduino Mini  (Read 382 times)
0 Members and 1 Guest are viewing this topic.
Berlin
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi smiley
I want to build a little CPU/RAM/etc. meter with 6x 1mA ammeters and want them to be lightened up with a little LED per meter that only shines a little if the meter is around 0% and then get's brighter and brighter according to the meter.
Is that possible with the 6 PWM outputs from the Arduino? How do I have to solder that together?

Thank you smiley
Logged

0
Offline Offline
Shannon Member
****
Karma: 160
Posts: 10426
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Since mechanical galvonometers (that's the precise word for the analog ammeters you mean) have a mechanical mass they automatically low-pass-filter a PWM signal nicely.  You just need to limit current appropriately.   For a 1mA FSD (full scale deflection) you want a total of 5k resistance from a 5V PWM  signal.   The meter itself will have a resistance of a few hundred ohms or so (this should be in the specs), so try a 4k7 resistor in series.
Logged

[ I won't respond to messages, use the forum please ]

Berlin
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yes my meters have 410Ω ^^
but I don't understand/know how to hook the LEDs to that and let them dim =/
(sorry for being such a n00b xD)
Logged

UK
Offline Offline
Faraday Member
**
Karma: 92
Posts: 3969
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

yes my meters have 410Ω ^^
but I don't understand/know how to hook the LEDs to that and let them dim =/
(sorry for being such a n00b xD)

LED+resistor in parallel with the meter+resistor.
Logged

Why not visit my eBay shop? http://stores.ebay.co.uk/Majenko-Technologies
Replacement for the Arduino IDE: UECIDE - Proper serial terminal, graphing facilities, plugins, overhauled internals.
Java isn't bad in itself, but it has enabled morons to write programs.

Berlin
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So just something like this ?
Code:
               /----(Resistor)--(LED)------\
Arduino PWM --:                             :-- Ground
               \----(Resistor)--(Meter)----/
Logged

0
Offline Offline
Shannon Member
****
Karma: 160
Posts: 10426
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yup, perfect - make sure the resistor for the LED limits the current to 10mA or less or the output voltage to the meter will droop (or use a different pin and drive the LED upto 25mA.  The pin output transistors have a finite resistance around 30 to 40 ohms when running from 5V
Logged

[ I won't respond to messages, use the forum please ]

Berlin
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you so much smiley
One (hopefully last) more question: Does a 0,6W 0.1% resistor do it?
Logged

Pages: [1]   Go Up
Jump to: