It is not clear whether you want to control six pieces independently, or control 6 led's in one piece?
The 6 lamps are independently controlled by switches (on/off) to make varying different patterns.
You have space for about 2,000 instuctions inside the PIC, that's plenty to do almost anything you like with the data. Bear in mind what I said about other inputs needing external pull-up resistors.Using 2 more inputs, I will be able to trigger 2 further events.
I think I can work out how to do that, but how do I save the state until it is reset by a new event? Seeing as the power will be dropped when the piece is disconnected.
It is not clear whether you want to control six pieces independently, or control 6 led's in one piece?
You can feed varying width pulses to a 4017 IC (decade counter). It rotates the pulses to each led in turn.
The simulation shows two led's getting longer pulses, hence they will be brighter than the others. By varying the pulse widths you can control each led brightness independently.
It is easy for this method to get out of sync. You may need to create a reset signal to maintain sync.
Just, you don't need 20mA for the LEDs to be nice and bright, even 10mA should be more than ample - benefit of longer LED life and that of saving on power consumption of whole circuit.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?