74HC595 interfacing and use question.
Don M
Posts: 1,652
in Propeller 1
I've never played with a '595 before however I have some coming tomorrow. I have a project where I need to sequentially turn on 1 of 40 IR led's. I'm thinking I can probably daisy chain 5 '595's to get the 40.
The led needs to operate at 38KHz. I will be using a Propeller to create the 38Khz pulse and control the '595's so my question is how do you modulate the '595's so that each led output will be 38KHz? I know that I need to clock the '595 clock pins to switch sequentially to each output and somewhat understand that but to get each output to output a 38KHz pulse do I send that frequency to the OE pins (all tied together) ?
Sorry for the wording but hope you understand what I'm trying to ask here. Thanks in advance.
Don
The led needs to operate at 38KHz. I will be using a Propeller to create the 38Khz pulse and control the '595's so my question is how do you modulate the '595's so that each led output will be 38KHz? I know that I need to clock the '595 clock pins to switch sequentially to each output and somewhat understand that but to get each output to output a 38KHz pulse do I send that frequency to the OE pins (all tied together) ?
Sorry for the wording but hope you understand what I'm trying to ask here. Thanks in advance.
Don
Comments
JonnyMac wrote a Nuts & Volts article about using '595 chips with the Propeller not long ago. '595 chips are about the easiest chips to use and I think there are lots of examples of how to use them on the forum.
I used high power '595 chips with my RGB LED array project. I could get 5-bits of resolution for each color by PWM the '595 chips. The first set of PCBs I made didn't bring out the enable pins. It later occurred to me I could maintain the color resolution if I pulsed the enable pins. While I plan to adjust the brightness level by pulsing the enable pin, I haven't tried this yet. I'm pretty sure it will work.
I don't see why you couldn't modulate the IR LEDs with the enable pin.
If you need help finding other examples of using the '595 let us know.
Yes, for IR carrier modulation, you would common OE and that has 38KHz.
You need to shift in new data patterns fairly quickly ~1.5MHz updates 40 in one carrier cycle, ~ 3MHz updates 40 in half a cycle.
To allow a slower shift, you could make use of the transfer register (all tied together)
If you want to whack the IR LEDs harder, there are higher current C595's
Thanks guys.
Easy-peasy.
http://www.ti.com/product/tpic6c595
-Phil