I never mentioned an EEPROM on the I2C bus, but the processor has a means of storing info for program execution. This cannot be I2C. I2C EEProms are designed to store configuration data. Often EEProms have to be erased in blocks.
As I guessed in post #3, most suggestions have been to use a microcontroller for this project.
Makes sense. Ideal project for a small controller.
The only downside is the learning curve for writing code (if you have no experience of that, that can be quite daunting) and the need to buy some kit to program the microcontroller. Both fine, especially if you are intending to expand your knowledge and perhaps go on to further projects?
But, just as an exercise, I though I would sketch out the sort of thing you would need to do this in hardware. It actually works out quite cheap, and building it on stripboard, I would reckon about £5.....
That of course is for one sequencer. Up to 16 instructions ('bells' or 'gaps') and a couple of adjustments to get the bell pulse and the sequence rate to sound 'right'. All quite simple.
The downside is if you need to have several sequences pre-programmed to be available from different input buttons, without re-programming. Then you'd need one of these for each stored sequence. You can of course program this sequencer easily -- you simply adjust the switches as required - but it could get expensive if you need 10 or 20 pre programmed sequences available at the same time!
For that, the micro-controller option wins hands down.... it's just the extra time you might need to learn to write the specific code, and the cost of buying any programming kit required.......
Anyway, here's a sketch of my hardware idea :View attachment 83246
It's not very pretty I'm afraid -- but it's only to illustrate the sort of circuitry that would be involved ......
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?