I am obviously new to Raspberry and Stack, but would be great if community can advice.
My setup is the following:
- YwRobot 545043
power supply (controller) connected to the breadboard and to the Raspberry, which powers it (the controller)
- the USB input from YwRobot is connected to LED lamps; once button on controller is switched on, LED are lighted up
What I want to do
Connect the button on YwRobot
to the Raspberry board somehow, so that when it is pressed, I receive input/output into the Raspberry
Use case is:
Designing an alarm that through while
loop will check current time, and when condition is met, it will turn the leds on; when button on controller or breadboard is pressed -- turns them off.
What I cannot figure: Is there a way to associate this YwRobots physical button with, say another button on breadboard that can send actual state of the buttoon back to Raspberry.
Essentially I need to link button 1
to Raspberry or to button 2
Much appreciate any ideas!
Here is a schema below
.... no, it is not a schematic .... it is a picture of wires – jsotola Oct 26 '18 at 5:40