HI all,
I am using thge arduino to replicate a model railroad level crossing, eg. 3 led's to
resemble traffic lights and a 3v motor raising and lowering the barrier.
So far i have messed around controlling it via a remote control with a L293 to control the
motor through pwm. I have this working perfect after a lot of learning but i want to go
further. I have about 10 4-16 decoders/ demultiplexers that i would like to use in
conjunction with the arduino to control 10 "level crossings" but this is a serious amount of
arduino pins and to be honest would just be extreemly sloppy.
After reading the datasheet over and over I have been able to get the decoders to function
as demultiplexers using the 4 pins to make each pin high or low using the high or low
arangements from the datasheet, but i actually wanted to send the binary bits to the decoder
to sellect which pin is high or low. From what i read my decoders are able to do this but i
just cant work it out. I have been reading for 2 days now and i think at this stage im just
confussing myself more and more.
MY basic problem is clock pin, i cant work it out with these decoders. Do they have one ?
are they the same as decoders with a clock pin ? anything i read or try uses clock pin. I
suppose my basic question is how to use these decoders before i break my pressios arduino.
Its driving me crazy at this stage (nothing worse than feeling stupid) i dont want to give
up even tho im close. Am i just missing something simple or am i way off ? I presumed i
could use a couple of 4-16 decoders but only use 5 or 6 of arduino pins excluding the power(seperate source) and just sent a series of 0's and 1's to controll each output.
If someone could point me in the right direction i would really appriciate it
I have 3 different types of latch decoders 74hc259n, cd74hc4514ene4, cd4514bee4.
arduino mega 2560