Please refer to the picture attached.
When the switch closes the circuit, the buck converter at the bottom of the image turns on (as expected) and the code I have running in the Raspberry Pi detects a low signal going into the Raspberry Pi pin the transistor's emitter is connected to (also as expected). Now here's where things get really confusing for me...
When the switch opens the circuit, I expect the buck converter at the bottom of the image to turn off, but it doesn't! Can someone explain why?
To try to figure things out, I disconnected both wires going into the Raspberry Pi and then reconnected the wire going from the transistor's emitter back into the pin it was connected to in the Raspberry Pi. The screen went dark and now the Raspberry Pi seems to be fried. I have zero clue why this happened!
Here's what I am trying to do: When the switch closes the circuit, I want the buck converter at the bottom of the image to turn on so I can detect that the circuit was closed in the Raspberry Pi code. When the switch opens the circuit, I want the buck converter to turn off so I can detect that the circuit is open in the Raspberry Pi code.
I didn't have anything connected to the 24 VAC relay and I did not a signal wire connected to the 5 VDC relay when this happened (those components are in the image just so you guys can see the whole thing as I have it).
Any help here is greatly appreciated. I am going nuts trying to understand this and can't :-(
When the switch closes the circuit, the buck converter at the bottom of the image turns on (as expected) and the code I have running in the Raspberry Pi detects a low signal going into the Raspberry Pi pin the transistor's emitter is connected to (also as expected). Now here's where things get really confusing for me...
When the switch opens the circuit, I expect the buck converter at the bottom of the image to turn off, but it doesn't! Can someone explain why?
To try to figure things out, I disconnected both wires going into the Raspberry Pi and then reconnected the wire going from the transistor's emitter back into the pin it was connected to in the Raspberry Pi. The screen went dark and now the Raspberry Pi seems to be fried. I have zero clue why this happened!
Here's what I am trying to do: When the switch closes the circuit, I want the buck converter at the bottom of the image to turn on so I can detect that the circuit was closed in the Raspberry Pi code. When the switch opens the circuit, I want the buck converter to turn off so I can detect that the circuit is open in the Raspberry Pi code.
I didn't have anything connected to the 24 VAC relay and I did not a signal wire connected to the 5 VDC relay when this happened (those components are in the image just so you guys can see the whole thing as I have it).
Any help here is greatly appreciated. I am going nuts trying to understand this and can't :-(
Attachments
-
1.3 MB Views: 38