Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4919

Camera board • Re: IR cut, how do I use it?

$
0
0
You want an L293D, as it has flyback diodes built in.

You should download the datasheet for the chip and read it. It's a dry read, but it tells you everything you need to know, so that when you copy someone's brain-dead instructable you have a chance of figuring out if it's likely to work.

https://www.ti.com/lit/ds/symlink/l293.pdf

You can wire the solenoids in parallel, and drive them with 5V supply to the L293D. The logic inputs will be triggered by 3.3V, so it will work with the Pi GPIO. You need to connect to 1A, 2A, and 1,2EN inputs, and 1Y and 2Y for outputs.

If the EN pin is low then the outputs are not driven, so that should be your idle state. When you are ready to change the IR filter then set 1A and 2A to drive the filter one way or the other. They should basically be opposite to each other. Then pulse EN high for a short time to drive the filter, then set it low again.

Done.

Statistics: Posted by ame — Tue Mar 05, 2024 3:37 am



Viewing all articles
Browse latest Browse all 4919

Trending Articles