[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself

Search:


View post   

>> No.2391264 [View]
File: 6 KB, 442x114, proxy-image.jpg [View same] [iqdb] [saucenao] [google]
2391264

>>2391140
>>2391173
You can have the optocouplers either common-emitter or common-collector, doesn't matter since the phototransistors have a floating base. But whichever way you go, you'll need pull-up/pull-down resistors respectively. Circuit A would work with pull-down resistors.

Also the arduino may have a register you can set to invert input logic levels. I know my MCU has one to invert output logic levels, not sure if it works on inputs too. Either way I bet some demorgan's laws could help you clean up the logic. Not like you'll be pressed for processor time.

Additionally, it's an option to flip the opto LED circuit so they're turned off only when the button is pressed. Though I'd definitely go common-collector before resorting to that.

t. starting another unskilled retail job tomorrow

Navigation
View posts[+24][+48][+96]