Yes, that should work fine, as long as you remember to use a pull down resistor on the pin (either internal or external) to assert a valid 'low' condition when the relay is open. Another way to accomplish the same thing, which is probably what I would do, is to have the relay pull to GND while using a pull UP on the pin. It doesn't really matter.
On Nov 15, 2016 22:18, "David Messem" <[email protected]> wrote: > I have another device with a relay, and I want to use the IOIO to sense > the state of that relay. > > I thought I would connect the input of the relay to the 3.3v pin, and > connect the output of the relay to a GPIO pin. > I this way, the GPIO pin will read 0v when the relay is open, and 3.3v > when the relay is closed. > > On Tuesday, November 15, 2016 at 10:16:51 PM UTC+2, Ytai wrote: >> >> Yeah sure, all pins can handle 0..3.3V (and some up to 5V). >> What you're describing sounds a bit strange, but maybe only because I >> don't fully understand what you're trying to do. >> >> On Mon, Nov 14, 2016 at 10:05 PM, David Messem <[email protected]> >> wrote: >> >>> Hi IOIO users! >>> >>> Apologies if this is a silly question, I am an electronics noob, and I >>> am worried about damaging the board. >>> >>> Can I jump a 3.3v pin directly to an input pin? >>> I want to send 3.3v to a relay, then send back the 3.3v into a pin when >>> the relay is triggered. >>> >>> Thanks! >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "ioio-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/ioio-users. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "ioio-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/ioio-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "ioio-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/ioio-users. For more options, visit https://groups.google.com/d/optout.
