Author |
Message |
trav

Joined: Sep 11, 2012 Posts: 108 Location: Auckland
Audio files: 16
|
|
Back to top
|
|
 |
Cynosure
Site Admin

Joined: Dec 11, 2010 Posts: 998 Location: Toronto, Ontario - Canada
Audio files: 82
|
Posted: Fri Jun 14, 2013 1:05 pm Post subject:
|
 |
|
Cool. I like the 4029 ping-pong idea too.
Got some sound sample of this in action? _________________ JacobWatters.com |
|
Back to top
|
|
 |
RingMad

Joined: Jan 15, 2011 Posts: 428 Location: Montreal, Canada
Audio files: 4
|
Posted: Fri Jun 14, 2013 3:24 pm Post subject:
|
 |
|
Whoa! By "got the 4029 to ping pong" do you mean you got it to count up then back down again, over and over? If so, could you please please tell me how? (or a schematic). I tried to get that to work for a couple of weeks and finally gave up in frustration.
Thanks,
James. |
|
Back to top
|
|
 |
trav

Joined: Sep 11, 2012 Posts: 108 Location: Auckland
Audio files: 16
|
|
Back to top
|
|
 |
trav

Joined: Sep 11, 2012 Posts: 108 Location: Auckland
Audio files: 16
|
|
Back to top
|
|
 |
trav

Joined: Sep 11, 2012 Posts: 108 Location: Auckland
Audio files: 16
|
|
Back to top
|
|
 |
RingMad

Joined: Jan 15, 2011 Posts: 428 Location: Montreal, Canada
Audio files: 4
|
Posted: Sat Jun 15, 2013 3:37 am Post subject:
|
 |
|
Thanks for the ping pong schematic! I did try something very similar, with a flip flop, but it seemed that the carry out pulse didn't always trigger it. In the datasheet, one can see it's a half-pulse, so I thought it was because of that.
I also tried with a 4040 running with the same clock, using the /32 output (I think) which would trigger the up/down pin. Something like that, but there was a problem wherein it would count up to 15 then dip to 0 then count down from 15, and for my purposes it was a deal-breaker.
Anyway, I shall try your circuit. Finally, I used a PICAXE microcontroller to do what I wanted (and counting 0-255... but I suppose one could maybe cascade two 4029s to get that range).
James. |
|
Back to top
|
|
 |
trav

Joined: Sep 11, 2012 Posts: 108 Location: Auckland
Audio files: 16
|
Posted: Sat Jun 15, 2013 4:26 am Post subject:
|
 |
|
RingMad wrote: | I did try something very similar, with a flip flop, but it seemed that the carry out pulse didn't always trigger it. |
If it makes any difference my NOT gate is on a 40106, and so schmitt triggered. It would also be interesting to try a negative-edge flip flop (I used a 4013, which is positive-edged, and so needed the carry out to be inverted)
RingMad wrote: | I also tried with a 4040 running with the same clock, using the /32 output (I think) which would trigger the up/down pin. Something like that, but there was a problem wherein it would count up to 15 then dip to 0 then count down from 15. |
This was my first thought and I had similarly disappointing results. Perhaps a synchronous counter would work? (Oh, and thanks for reminding me that it counts (from 0) up to 15, not 16: reworded what I said above.) Last edited by trav on Sat Jun 15, 2013 9:06 am; edited 1 time in total |
|
Back to top
|
|
 |
Uncle Krunkus
Moderator

Joined: Jul 11, 2005 Posts: 4761 Location: Sydney, Australia
Audio files: 52
G2 patch files: 1
|
Posted: Sat Jun 15, 2013 7:28 am Post subject:
|
 |
|
You can do a similar thing by putting all the outputs of a binary counter into their own XOR gate, except the MSB. The other input of all the exclusive XORs goes to the MSB. Send the outputs of the XORs to an R/2R and the wave rises as long as the MSB is 0. Then as the MSB goes high, the same count on the other bits is converted to a down count, and the wave falls. I did it with a 4 bit counter, and you get 8 steps going up, and 8 coming back down. That's only 2 chips. No flip-flop.
Sorry, that might have been 3*NAND gates, I'll have to dig it out and check. _________________ What makes a space ours, is what we put there, and what we do there. |
|
Back to top
|
|
 |
trav

Joined: Sep 11, 2012 Posts: 108 Location: Auckland
Audio files: 16
|
Posted: Sat Jun 15, 2013 8:57 am Post subject:
|
 |
|
Uncle Krunkus: yes! That is a neat trick. XOR sounds right:
Code: | CLK| D | C | B | A || D XOR C | D XOR B | D XOR A | COUNT
-------------------||------------------------------------
0 | 0 | 0 | 0 | 0 || 0 | 0 | 0 | 0
1 | 0 | 0 | 0 | 1 || 0 | 0 | 1 | 1
2 | 0 | 0 | 1 | 0 || 0 | 1 | 0 | 2
3 | 0 | 0 | 1 | 1 || 0 | 1 | 1 | 3
4 | 0 | 1 | 0 | 0 || 1 | 0 | 0 | 4
5 | 0 | 1 | 0 | 1 || 1 | 0 | 1 | 5
6 | 0 | 1 | 1 | 0 || 1 | 1 | 0 | 6
7 | 0 | 1 | 1 | 1 || 1 | 1 | 1 | 7
8 | 1 | 0 | 0 | 0 || 1 | 1 | 1 | 7
9 | 1 | 0 | 0 | 1 || 1 | 1 | 0 | 6
10 | 1 | 0 | 1 | 0 || 1 | 0 | 1 | 5
11 | 1 | 0 | 1 | 1 || 1 | 0 | 0 | 4
12 | 1 | 1 | 0 | 0 || 0 | 1 | 1 | 3
13 | 1 | 1 | 0 | 1 || 0 | 1 | 0 | 2
14 | 1 | 1 | 1 | 0 || 0 | 0 | 1 | 1
15 | 1 | 1 | 1 | 1 || 0 | 0 | 0 | 0
|
there are four gates to an XOR chip, so you could use 5 bits and get 16 steps just as easily. Nice! |
|
Back to top
|
|
 |
richardc64

Joined: Jun 01, 2006 Posts: 679 Location: NYC
Audio files: 26
|
Posted: Sat Jun 15, 2013 11:22 am Post subject:
|
 |
|
Uncle Krunkus wrote: | You can do a similar thing by putting all the outputs of a binary counter into their own XOR gate, except the MSB. The other input of all the exclusive XORs goes to the MSB. |
I once used this method for a back and forth led display. (Think NightRider or Cylons.) Generating a waveform, though, the result isn't quite symetrical, because the count spends twice as long at 0 and 7 than at the intervening counts. Close enough for Lunetta work, though.
If it weren't for the doubling of the terminal count durations, the method could be used for an up/down sequencer. _________________ Revenge is a dish best served with a fork... to the eye |
|
Back to top
|
|
 |
Uncle Krunkus
Moderator

Joined: Jul 11, 2005 Posts: 4761 Location: Sydney, Australia
Audio files: 52
G2 patch files: 1
|
Posted: Sat Jun 15, 2013 5:06 pm Post subject:
|
 |
|
Yeah, I actually liked the flat top and bottom, if you put it through an LPF, the flats take it closer to a sine wave anyway. Smoothing out the Lunetta sound is always a nice option to have if you can do it so cheaply.  _________________ What makes a space ours, is what we put there, and what we do there. |
|
Back to top
|
|
 |
trav

Joined: Sep 11, 2012 Posts: 108 Location: Auckland
Audio files: 16
|
|
Back to top
|
|
 |
RingMad

Joined: Jan 15, 2011 Posts: 428 Location: Montreal, Canada
Audio files: 4
|
Posted: Sun Jun 16, 2013 5:19 am Post subject:
|
 |
|
Thanks folks for the XOR + Counter thing... looks good... for my previous application, the flat top & bottom would have been desirable. Anyway, I don't want to derail this thread too much with the up-then-down counter stuff.
trav... maybe a VU meter is a simpler visual indicator of the voltage?
On the last box I built, I had a more abstract representation of an 8-bit number by running the bits to a 7-segment display (plus the dot).
James. |
|
Back to top
|
|
 |
trav

Joined: Sep 11, 2012 Posts: 108 Location: Auckland
Audio files: 16
|
|
Back to top
|
|
 |
trav

Joined: Sep 11, 2012 Posts: 108 Location: Auckland
Audio files: 16
|
|
Back to top
|
|
 |
Richarius
Joined: Feb 22, 2014 Posts: 81 Location: Kitchener, Ontario, Canada
Audio files: 1
|
Posted: Tue Aug 29, 2017 4:32 am Post subject:
|
 |
|
trav wrote: | I haven't tried it yet, but I think the circuit Uncle Krunkus described could be made a little bit more versatile with the addition of a simple ON-OFF-ON toggle switch |
I've been going through the entire history of the Lunetta stuff from everyone here from EM's "day one", to see what cool things that I may have missed.
This one, with the latest schematic from Trav just above this message - looks like it could have some cool possibilities.
Going with the 4024, for it's 7 BIT outputs - take it out to 2 x 4070's.
Instead of having the switch for 1 side of each of the XORs, try switching them individually at first, to hear whether it could be useful aurally?
Try it at first with only 4 x 4070 and the 4 BITs from it.
(And of course - the 4 or more BITs are sent to an R-2R, or, just diode summed.)
Different clock speeds to the 4024 of course. (Or 4040, 4060, etc.)
Anyhoo ... I'm going to carry on with this idea on my forum. _________________ https://tsol.space/crafting/composing-music/albums/ - my punk, ambient and experimental tunes |
|
Back to top
|
|
 |
|