hello,
Is it possible to write an Arduino code that discriminates between the flashing of two IR Leds?
( I have two Infra red Leds connected to an Arduino. The first one is always on and the second one is flashing. what should I write in my Arduino code to make my IR camera know which Led is which? the camera is also connected to the arduino)
any help would be appreciated.
It would be a change to the part in the code you didn't post in code tags as per the PLEASE READ BEFORE POSTING THREAD AT THE TOP OF THE PROJECT GUIDANCE FORUM SECTION.
The first one is always on
Then, it is pointless to read the state of that pin, isn't it? If you already know the answer to a question, is there any point in asking the question?
So, you already seem to know which pin is which.
I am pretty sure that you need to re-phrase your question.
PaulS:
Then, it is pointless to read the state of that pin, isn't it? If you already know the answer to a question, is there any point in asking the question?So, you already seem to know which pin is which.
I am pretty sure that you need to re-phrase your question.
It is more than just useful to read the state of the pin. because as I said I need the camera to distinguish between these two leds. I know that the led is always on but the camera doesn't.
if you don't have anything helpful to say, there's no point in shaming others for asking simple questions.
thank you for replying.
sunny12:
It is more than just useful to read the state of the pin. because as I said I need the camera to distinguish between these two leds. I know that the led is always on but the camera doesn't.if you don't have anything helpful to say, there's no point in shaming others for asking simple questions.
thank you for replying.
I think PaulS is actually trying to nudge you into going over your logic in your head again.
Let me try it this way: what does it mean for the camera to "know" which led is which? Is the camera examining the pins? Is it looking at the leds optically? Or what? Why does it need to know? If something (the state of an led) is to play a part in some decision, but that state never changes, it's not actually playing a part in the decision.
It's possible that there's an xy problem here, where you have a question based on a half-formed solution, so the question makes little or no sense.
Are there 2 separate Arduions? One with the LEDs and another with the camera?
groundFungus:
Are there 2 separate Arduions? One with the LEDs and another with the camera?
it's the same arduino
sunny12:
it's the same arduino
How about taking the time to write a comprehensive description of the project you want to create and the problem that you are trying to figure out, including posting any code that you have already tried.
You have obviously have a lot of information in your head that we are not aware of.
Help us to help you.
...R
sunny12:
what should I write in my Arduino code to make my IR camera know which Led is which?
What Inputs/Outputs does the camera have?
I think that the best you can tell it is if the flashing led is on or off because what other information CAN you provide to the camera? Does it have a computer that can scan the picture and a serial connection that you can give it coordinates?
Hi,
Welcome to the forum.
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html .
Is this thread part of your project?
https://forum.arduino.cc/index.php?topic=626815.0
Thanks.. Tom..