Pages: [1]   Go Down
Author Topic: Sensing current on an LED  (Read 462 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have an RN-42 Bluetooth Mate Silver module hooked up to my Arduino Uno. I'd like to solder a wire to the green "Connected" LED on the Bluetooth module, connect the wire to my Arduino to allow me to "sense" when the LED is illuminated.

Any suggestions on how to do this?

Here's the link for the schematic (PDF) for the RN-42 Bluetooth Mate Silver module. The Green LED is indicated on the right side of the drawing:

Massachusetts, USA
Offline Offline
Tesla Member
Karma: 201
Posts: 8657
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Connect your wire to the + side of the LED or pin 19 of the Bluetooth chip (same thing).  The 3.3V signal is high enough to be read by a 5V input.

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Online Online
Shannon Member
Karma: 199
Posts: 11642
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just be careful not to accidentally drive 5V into that signal - you could add a 10k resistor in series to prevent that possibility.

[ oh, and one caveat, its possible that the bluetooth module doesn't drive that signal high enough (due to the current load from the LED) - it needs to be 3.0V or more to guarantee working with the Arduino input - you can measure this voltage when the LED is on to double check this ]
« Last Edit: October 08, 2012, 07:49:43 am by MarkT » Logged

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

Offline Offline
Edison Member
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just adc the voltage on that 330ohm resistor - it gives you the current.

Now, that is highly simplistic: it assumes that if you sense a current on that resistor, there is current going through it (to ground). It is entirely possible that there is an open circuit so there is voltage on the resistor but no current going through it. You can software detect that.

to "sense" when the LED is illuminated.

That is actually quite different from sensing the current: you can have current going through an LED yet it is not illuminating.

If you really want to sense illumination, use a light sensor (photoresistor / diode / transistor for example).

Pages: [1]   Go Up
Jump to: