PCB with IR and 4 Buttons

Greetings to all Arduino forensics.
As mentioned in the title, I have a small PCB (I don't remember where it was taken from), with some components soldered on it, such as IR, 4 push buttons, 1 bicolor LED, etc.
As shown in the photo, an 8-wire cable comes out, named 5V, IR, GND, CLK, STB, DAT, R, G (the last two are the bicolor LED).
At first, the question would be more out of curiosity, but perhaps with this board it is possible to do something with Arduino (certainly), such as a clock, setting the time with the buttons or with the IR itself. In fact, I would like to know what other things this board could be used for, since it has these three nomenclatures: CLK, STB and DAT.
So, please, could someone help me by pointing me to some code that perhaps someone already has ready to use with this board?
I thank everyone for their possible help.

Interesting question, tell me what color is the blouse the lady in the boat I see out of the window is wearing. What else can you tell us?
Your problem is not unexpected, and your wiring may be the root cause. Since hardware is involved, it’s crucial to provide an accurate, annotated schematic of your circuit as it is currently wired. Please note that Fritzing diagrams are not considered proper schematics; they are wiring diagrams and are often not helpful for troubleshooting.

What to Include:

  1. Annotated Schematic: Show all connections, including power, ground, and power sources. This helps us understand how your circuit is set up and identify any potential issues.
  2. Technical Information Links: Provide links to technical documentation for each hardware device used in your setup. Avoid links to sales sites like Amazon, as they usually lack the necessary technical details. We need complete specifications to help you effectively.
  3. Additional Information Needed: If the above details are incorrect, more information is required. Tell us what hardware and software you are planning to use, the format of any data (like map data), and how your system determines what it needs to do. Does your project involves a robot, describe how it navigates and what computers are involved.
  4. Code Without code we cannot see the interrelationship between the code and hardware.
2 Likes

Hi friend, my question was very simple and clear, that is, first, I said it would be more out of curiosity (about the PCB) and, secondly, if anyone had any clock code that could be controlled with Buttons and/or IR Remote Control, both of which are on the PCB. And thirdly, about the board's Hardware, the output wires are identified, as I mentioned and, as per the PCB photo.
I forgot to mention that I understand a minimum of Arduino codes. Thank you.

It's a custom board for some product. There is no chance they made the code freely available. The best you can do is cannibalize the parts. Remove the buttons, caps, and the bi-colour LED, plus any connectors, and put them in your parts bin. The board is for the bin.

1 Like

you can start by trying to figure out what the pins are for

are 4 of them connected to GND when the buttons are pressed?

is it a dual LED, green and red? does 5V or GND turn the LEDs on? do they need resistors? (do you see resistors connected to it)? does 5V or GND turn the LED on?

a typical IR received LED has 3 leads: 5V, GND and out?

does it seems like there are not enough pins?

1 Like

Yes to all your questions.

I apologize to everyone for my ignorance on the subject, but I thought I could use the PCB with the components soldered on it to, for example, make a clock with a 7-segment display, and set the time with the buttons and/or a remote control, since these are soldered on the board.

I'll wait a little longer, if I don't get any more answers, I'll be discarding this.

Thanks to everyone

Maybe you can, but we have not enough info to help, as suggested by @gilshultz and @gcjr . The questions to answer are the ones in post#5.
A picture of the other side of the PCB can be useful too.

The buttons are likely arranged in some matrix type way.

I'm glad I cont'd reading and saw this, cause the way you answered @gilshultz was less than polite.

About the PCB, I'd say it once was the front panel of an Set Top Box (STB). It's hardly worth salvaging, but on the other hand nothing wrong with contributing to less e-waste.

1 Like

In no way did I mean to be rude or impolite.
When I mentioned ignorance, I was referring to the subject itself.

2 Likes

After a quick look it appears the switches may be wired as in the schematic below - which I generated from a defective lamp controller.

could the LEDs be polarity sensitive? R+/G- makes it red and R-/G+ makes it green?

I would suggest the same,
if you had all the information the friends here are asking for you wouldn´t need to open this topic in order to get help for knowing what you can do with it. The PCB looks nice but it´s not a custom board. If you want to build your own project unsolder the parts you can use and put them on your own PCB.

I will do this test

That's what I'll do. Thank you all for your help.

The pictures says otherwise.

from the PCB traces i see the LED has 3 pins, so the LED could be red, green or yellow if both are on. do they need resistors? (test with a 1k resistor

I'm old, and would probably not spend time on this board.

On the other hand, I have had fun dozens of times making schematics from stuff I scrounged, sometimes all the way to recovering original functionality, others to repurposing something like this as it is.

The PCB is one-sided with large traces; there are only a few components, all of which can be readily identified. The LED is labeled "G & R" and @Dancopy has already noted it is a bicolour unit… an IR receiver has three pins, there is no COB &c., &c.

I suggest that making a complete schematic would be worthwhile if only as an exercise. It is quite possible that having done, @Dancopy will find that it indeed could be used as is.

I didn't google "remote control clock Arduino". Maybe it will be unique - after fiddling with too few buttons to set a clock, how 'bout punching in the date and/or time on a TV remote?

OK, it's a stupid idea and nothing any of us do is equally stupid. :expressionless: Again, it would be worth undertaking as a project simply for the coding challenge it might be, getting all the parts working together.

What would making that schematic take any of us? An hour tops with time out for coffee and Minesweeper and playing with the cat.

Doing would be its own reward. It's just a matter of where you wanna spend time and what you call fun.

a7