Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 14:00 26 Nov 2024 Privacy Policy
Jump to

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: Sweden
Posts: 43
Posted: 09:58pm 10 Nov 2012
Copy link to clipboard 
Print this post

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: Australia
Posts: 6098
Posted: 10:34pm 10 Nov 2012
Copy link to clipboard 
Print this post

That would give you ONE output high at a time.
Is that that is what you are after?

JimEdited by TassyJim 2012-11-12
VK7JH
MMedit   MMBasic Help
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 10:35pm 10 Nov 2012
Copy link to clipboard 
Print this post

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: Sweden
Posts: 43
Posted: 10:40pm 10 Nov 2012
Copy link to clipboard 
Print this post

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? Edited by mariae71 2012-11-12
2 x DuinoMite Mega
1 x DuinoMite eMega
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 10:51pm 10 Nov 2012
Copy link to clipboard 
Print this post

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: Sweden
Posts: 43
Posted: 10:55pm 10 Nov 2012
Copy link to clipboard 
Print this post

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: Australia
Posts: 2914
Posted: 11:16pm 10 Nov 2012
Copy link to clipboard 
Print this post

  mariae71 said   Ah! Oki, then it's not what I'm after... Thanks... :)


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: Sweden
Posts: 43
Posted: 11:28pm 10 Nov 2012
Copy link to clipboard 
Print this post

  bigmik said  
  mariae71 said   Ah! Oki, then it's not what I'm after... Thanks... :)


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.




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: Australia
Posts: 935
Posted: 11:41pm 10 Nov 2012
Copy link to clipboard 
Print this post

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: Australia
Posts: 2914
Posted: 11:41pm 10 Nov 2012
Copy link to clipboard 
Print this post

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...

MickEdited by bigmik 2012-11-12
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1425
Posted: 06:40am 11 Nov 2012
Copy link to clipboard 
Print this post

  BobD said   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


Use of a PCF8574 is described in the Beginning Maximite document.
Micromites and Maximites! - Beginning Maximite
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 09:01am 11 Nov 2012
Copy link to clipboard 
Print this post

  CircuitGizmos said  
  BobD said   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


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 States
Posts: 1425
Posted: 12:30pm 11 Nov 2012
Copy link to clipboard 
Print this post

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: Australia
Posts: 2914
Posted: 01:20pm 11 Nov 2012
Copy link to clipboard 
Print this post

  CircuitGizmos said   I would say "By your command" if I had a mod file that said 'by your command'...


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: Sweden
Posts: 43
Posted: 01:28pm 11 Nov 2012
Copy link to clipboard 
Print this post

  CircuitGizmos said  
  BobD said   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


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: Sweden
Posts: 43
Posted: 02:06pm 11 Nov 2012
Copy link to clipboard 
Print this post

  bigmik said  
  CircuitGizmos said   I would say "By your command" if I had a mod file that said 'by your command'...


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.zipEdited by mariae71 2012-11-13
2 x DuinoMite Mega
1 x DuinoMite eMega
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 02:22pm 11 Nov 2012
Copy link to clipboard 
Print this post

Take look at this post

PCF8574

Regards

John
 
mariae71

Regular Member

Joined: 22/08/2012
Location: Sweden
Posts: 43
Posted: 02:45pm 11 Nov 2012
Copy link to clipboard 
Print this post

  jman said   Take look at this post

PCF8574

Regards

John

That's very elegant! Thanks! :)
2 x DuinoMite Mega
1 x DuinoMite eMega
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1425
Posted: 03:14pm 11 Nov 2012
Copy link to clipboard 
Print this post

  jman said   Take look at this post

PCF8574

Regards

John


Excellent solution!
Micromites and Maximites! - Beginning Maximite
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1425
Posted: 03:25pm 11 Nov 2012
Copy link to clipboard 
Print this post

  mariae71 said  
  bigmik said  
  CircuitGizmos said   I would say "By your command" if I had a mod file that said 'by your command'...


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
© JAQ Software 2024