Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : (DM) More Outputs with decoder?
Page 1 of 2 | |||||
Author | Message | ||||
mariae71 Regular Member Joined: 22/08/2012 Location: SwedenPosts: 43 |
I was thinking... Would it be possible to connect a MM74HC4514 (or similar 4-to-16 decoder) to 4 pins on the DuinoMite and get 16 outputs by setting the 4 pins in binary code? Or have I misunderstand the function of that chip? 2 x DuinoMite Mega 1 x DuinoMite eMega |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6098 |
That would give you ONE output high at a time. Is that that is what you are after? Jim VK7JH MMedit MMBasic Help |
||||
MicroBlocks Guru Joined: 12/05/2012 Location: ThailandPosts: 2209 |
With that chip you will be able to switch on only one of the 16 pins at a time. Great if that is what you need. Microblocks. Build with logic. |
||||
mariae71 Regular Member Joined: 22/08/2012 Location: SwedenPosts: 43 |
Thanks! English is not my native language, but does not "latch" imply that that chip hold the state? So i can set one pin of the chip, and then set another and the first pin is still set until i unset it? 2 x DuinoMite Mega 1 x DuinoMite eMega |
||||
MicroBlocks Guru Joined: 12/05/2012 Location: ThailandPosts: 2209 |
It will latch the 4 bits. The 4 bits internally will then not change when the data on the input is removed. The single output selected by those 4 bits will stay high until the next time a 4 bit value is 'latched'. You can think of a latch as a small memory. Microblocks. Build with logic. |
||||
mariae71 Regular Member Joined: 22/08/2012 Location: SwedenPosts: 43 |
Ah! Oki, then it's not what I'm after... Thanks... :) 2 x DuinoMite Mega 1 x DuinoMite eMega |
||||
bigmik Guru Joined: 20/06/2011 Location: AustraliaPosts: 2914 |
Hi Oki, Maybe it would be easier to help you if you explain EXACTLY what you need fr your project.. How many outputs? How many inputs? Individually on/off or either/or outputs? It might end up cheaper with 2 duinomites talking to each other...Or there are simple i/o expander chips avail as well. Please provide a bit more detail. Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
mariae71 Regular Member Joined: 22/08/2012 Location: SwedenPosts: 43 |
Ah! Sorry... I don't have any current application/requirement for more outputs, I was just planning ahead for a possible NC table I'm thinking about making (planning to print the coordinates on LCDs and they steal a lot of output pins)... But what little I have thought about it 10 extra outputs would be a luxury... I do have another DuinoMite Mega and a DuinoMite eMega lying around, so the option with getting a couple of them to talk to each other is a really good option... 2 x DuinoMite Mega 1 x DuinoMite eMega |
||||
BobD Guru Joined: 07/12/2011 Location: AustraliaPosts: 935 |
You could use one (or 8) of these to get some extra I/O pins. 8 ports on up to 8 chips all on an I2C bus. PCF8574 Remote 8-bit I/O expander for I2C-bus. 2012-11-11_093826_PCF8574_data_sheet.pdf |
||||
bigmik Guru Joined: 20/06/2011 Location: AustraliaPosts: 2914 |
Hi Oki, Of course you could program the duinomite with DMBasic and have a full 20 io pins but you would need to use line numbered code... Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
PCF8574 Remote 8-bit I/O expander for I2C-bus. 2012-11-11_093826_PCF8574_data_sheet.pdf Use of a PCF8574 is described in the Beginning Maximite document. Micromites and Maximites! - Beginning Maximite |
||||
BobD Guru Joined: 07/12/2011 Location: AustraliaPosts: 935 |
PCF8574 Remote 8-bit I/O expander for I2C-bus. 2012-11-11_093826_PCF8574_data_sheet.pdf Use of a PCF8574 is described in the Beginning Maximite document. I like the application but it needs the voice too and that would be huge. Next version please CG. Gotta get out the old dvds tonight. |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
I would say "By your command" if I had a mod file that said 'by your command'... Micromites and Maximites! - Beginning Maximite |
||||
bigmik Guru Joined: 20/06/2011 Location: AustraliaPosts: 2914 |
Here a WAV file for you if you can convert it By Your Command Regards, Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
mariae71 Regular Member Joined: 22/08/2012 Location: SwedenPosts: 43 |
PCF8574 Remote 8-bit I/O expander for I2C-bus. 2012-11-11_093826_PCF8574_data_sheet.pdf Use of a PCF8574 is described in the Beginning Maximite document. Thank you very much guys, this seems to be a very nice solution. :) 2 x DuinoMite Mega 1 x DuinoMite eMega |
||||
mariae71 Regular Member Joined: 22/08/2012 Location: SwedenPosts: 43 |
Here a WAV file for you if you can convert it By Your Command Regards, Mick That particular sample was corrupted somehow, but i found another one and made a mod file with Milky Tracker: 2012-11-12_000630_By_your_Command.mod.zip edit: Pitch was wrong and sound to quiet... New version 2012-11-12_001729_By_your_Command.mod.zip 2 x DuinoMite Mega 1 x DuinoMite eMega |
||||
jman Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
Take look at this post PCF8574 Regards John |
||||
mariae71 Regular Member Joined: 22/08/2012 Location: SwedenPosts: 43 |
PCF8574 Regards John That's very elegant! Thanks! :) 2 x DuinoMite Mega 1 x DuinoMite eMega |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
PCF8574 Regards John Excellent solution! Micromites and Maximites! - Beginning Maximite |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
Here a WAV file for you if you can convert it By Your Command Regards, Mick That particular sample was corrupted somehow, but i found another one and made a mod file with Milky Tracker: 2012-11-12_000630_By_your_Command.mod.zip edit: Pitch was wrong and sound to quiet... New version 2012-11-12_001729_By_your_Command.mod.zip Played on my PC but didn't play on the ColorMax. Micromites and Maximites! - Beginning Maximite |
||||
Page 1 of 2 |
Print this page |