Hi.
I have a Bluetooth audio transmitter that when it is connected to a device, its LED is constantly on, and if it is searching for a device, its LED blinks.
What code should I write so that my Arduino can detect that the LED is blinking or constantly on?
You will have to hardwire to the Bluetooth device if you do not use a sensor. I would suggest using the sensor so you don't have to modify the bluetooth device.
Is it possible to do this without a sensor?
That is, connect wires to the LED pins to one of the Arduino digital pins, and use the Arduino digital pins to detect the LED is blinking or it is constantly on.
There are four possible configurations for LED drive, common ground or common V+, resistor first or LED first. Also you have to consider the LED forward voltage drop.
Are you comfortable with reverse engineering to find out? Then soldering jumpers to tiny little SMD pads? Risking uncontrollable ground current loops?
That is not going to happen. This is a self help forum. One good idea, would be to simply create a logical definition of what constitutes "blinking" and "continuously on". Then code it.
Also, it's doubtful that you can complete the hardware interface.