Hello everyone! I’m trying to hack together a project, and this is my first time using a photon. I think my question is more of a general one, as I’m trying to get the photon to act like a button press has happened when a web signal is received. Here’s my scenario:
My old phone has an IR blaster, and it’s great. I can use it to turn on/off my different TVs that just have an old school remote control. I love it, the TVs don’t have to be hooked up to the internet and get all “smart” and everything. Now that we are upgrading phones, I’m trying to find different options to keep things working the way I want them to. I already have code in place to trigger my photon to turn the LED on/off with the tutorial code, and in theory this is exactly what I want, but instead of sending a DC voltage to an LED, I’d like it to complete a circuit to two leads. I have disassembled my TVs remote control, wired up the power lead and ground cables to the 3.3V and gnd pins (it wanted two AAA batteries to begin with, so yay!) and I have scraped the conductive graphite off the board where the physical button used to be and connected two leads. When I test everything out, and power up the board and touch the two leads together, hooray, it acts as if the button was pushed because the circuit is completed and everything worked.
So, now I’m thinking that I need to connect those two leads to two different IO pins. Then, instead of sending a high or low write, I just want to connect the two pins so that it acts the same as when I just touch the two wires together. I may be going about this all wrong, so I’m curious what the community has to say about this.