temps_utile / 6 x clock generator [build thread etc]

From circuitbending to homebrew stompboxes & synths, keep the DIY spirit alive!

Moderators: Kent, luketeaford, lisa, Joe.

Post Reply
User avatar
mxmxmx
Super Deluxe Wiggler
Posts: 2243
Joined: Thu May 31, 2012 1:54 am
Location: berlin

Post by mxmxmx » Wed Nov 18, 2015 6:08 pm

oh, wait. i think i've inserted a little bug when updating the code the other week:

can you try this? https://github.com/mxmxmx/temps_utile-/ ... emps_utile

sammy123
Super Deluxe Wiggler
Posts: 1216
Joined: Sun Mar 24, 2013 12:36 pm

Post by sammy123 » Wed Nov 18, 2015 6:10 pm

It's right there in the documentation. Sorry about that.
mxmxmx wrote:
sammy123 wrote:Max I'd like to grab a board.

Have you thought about a random clock mode?
sure.

... and there's two random modes already. one is plain 'random' (with threshold); the other some sort of linear feedback shift register, which can be fairly irregular, depending on length and tap positions. (the one obvious thing still missing is clock multiplication ... )

flts
Super Deluxe Wiggler
Posts: 2984
Joined: Tue Mar 04, 2008 7:01 am

Post by flts » Wed Nov 18, 2015 6:15 pm

mxmxmx wrote:oh, wait. i think i've inserted a little bug when updating the code the other week:

can you try this? https://github.com/mxmxmx/temps_utile-/ ... emps_utile
Pulled latest changes, updated the firmware, and now the buttons work as well! Thank you! Will have to check further and calibrate tomorrow (shouldn't stay up much later than this...).
Warm thank you to everyone for the past 10 years. I'm not active here anymore for personal reasons, so for those I've had the pleasure of dealing with please send an e-mail instead of PM if you wish to get in touch.

User avatar
mxmxmx
Super Deluxe Wiggler
Posts: 2243
Joined: Thu May 31, 2012 1:54 am
Location: berlin

Post by mxmxmx » Wed Nov 18, 2015 6:25 pm

flts wrote:
mxmxmx wrote:oh, wait. i think i've inserted a little bug when updating the code the other week:

can you try this? https://github.com/mxmxmx/temps_utile-/ ... emps_utile
Pulled latest changes, updated the firmware, and now the buttons work as well! Thank you! Will have to check further and calibrate tomorrow (shouldn't stay up much later than this...).
ok, cool ... (me too)

flts
Super Deluxe Wiggler
Posts: 2984
Joined: Tue Mar 04, 2008 7:01 am

Post by flts » Fri Nov 20, 2015 6:40 am

A 4-module patch from yesterday evening, Braids + Clouds + Turing Machine Hybrid + Temps-Utile (all self-built):

https://www.dropbox.com/s/uwa384d9nn5kp ... 0.mp3?dl=0
Warm thank you to everyone for the past 10 years. I'm not active here anymore for personal reasons, so for those I've had the pleasure of dealing with please send an e-mail instead of PM if you wish to get in touch.

flts
Super Deluxe Wiggler
Posts: 2984
Joined: Tue Mar 04, 2008 7:01 am

Post by flts » Fri Nov 20, 2015 6:43 am

Image

The DIY panel is a bit rough and unfinished...
Warm thank you to everyone for the past 10 years. I'm not active here anymore for personal reasons, so for those I've had the pleasure of dealing with please send an e-mail instead of PM if you wish to get in touch.

User avatar
Altitude909
Super Deluxe Wiggler
Posts: 3490
Joined: Wed Aug 24, 2011 5:13 pm
Location: Meesheegan

Post by Altitude909 » Fri Nov 20, 2015 8:19 am

quick legend check please:

Image

User avatar
pld
Ultra Wiggler
Posts: 989
Joined: Thu Mar 05, 2015 5:15 am
Location: Germany
Contact:

Post by pld » Fri Nov 20, 2015 8:26 am

There are two outs labelled "3"...

User avatar
mxmxmx
Super Deluxe Wiggler
Posts: 2243
Joined: Thu May 31, 2012 1:54 am
Location: berlin

Post by mxmxmx » Fri Nov 20, 2015 9:02 am

... also clock #4 is the DAC, if you wanted to specifically label that.


here's a diagram from github:
Image


made me scratch my head the other day though. i was musing about the clock multiplication thing, but i'm not quite sure how to map it onto the existing UI. one way would be to simply merge it with the clock division mode, which probably isn't so very useful; alternatively, both division and multiplication could be made to work across all modes, in which case it would mean to either add a parameter item to each channel page (which i'd like to avoid) or re-purpose the left encoder (which isn't ideal either, because it'll involve even more long-presses (for mode selection)) -- thoughts?

@flts -- nice tune ... i really should figure out some solution for panels.

flts
Super Deluxe Wiggler
Posts: 2984
Joined: Tue Mar 04, 2008 7:01 am

Post by flts » Fri Nov 20, 2015 9:20 am

mxmxmx wrote:i was musing about the clock multiplication thing, but i'm not quite sure how to map it onto the existing UI. one way would be to simply merge it with the clock division mode, which probably isn't so very useful
I guess this might be the simple solution UI-wise - make fractional values under 1 available for the "division" parameter on screen for multiplication. Certainly convenient with minimal changes for UI, in case you get the division working first.
alternatively, both division and multiplication could be made to work across all modes, in which case it would mean to either add a parameter item to each channel page (which i'd like to avoid) or re-purpose the left encoder (which isn't ideal either, because it'll involve even more long-presses (for mode selection)) -- thoughts?
This would actually be pretty cool and I was thinking of extending the firmware like that myself if I have the time at some point. When I was playing around with the module yesterday, I sort of wished I could trivially run one euclidean sequence on 1x clock and one for 2x or 4x or so. I don't know if it would be fiddly UI-wise though.
@flts -- nice tune ... i really should figure out some solution for panels.
Thanks, it was more of an absend-minded jam but I ended up making about three or fours hours worth of variations on it while doing something else because I liked how it ended up sounding.

I do enjoy sawing and driling panels myself, just that right now I don't really have a quick access to a proper bench press etcetc. so I just use hand tools on my kitchen table which means accuracy isn't that great. I could've filed the screen window to look less wonky, but as it isn't really a functional issue I don't mind - maybe I'll eventually draw something equally wonky on the panel with thin paint markers so it'll sort of fit in.
Warm thank you to everyone for the past 10 years. I'm not active here anymore for personal reasons, so for those I've had the pleasure of dealing with please send an e-mail instead of PM if you wish to get in touch.

User avatar
Altitude909
Super Deluxe Wiggler
Posts: 3490
Joined: Wed Aug 24, 2011 5:13 pm
Location: Meesheegan

Post by Altitude909 » Fri Nov 20, 2015 9:56 am

wow. Dont edit panels early in the AM :P will fix

So what is the DAC out compared to the other clock outputs?

flts
Super Deluxe Wiggler
Posts: 2984
Joined: Tue Mar 04, 2008 7:01 am

Post by flts » Sun Nov 22, 2015 7:14 am

Altitude909 wrote:wow. Dont edit panels early in the AM :P will fix

So what is the DAC out compared to the other clock outputs?
The clock outputs are digital (0/1), the DAC is Teensy's internal 12 bit one which can also output random voltages etc. instead of just pulses like the other channels.
Warm thank you to everyone for the past 10 years. I'm not active here anymore for personal reasons, so for those I've had the pleasure of dealing with please send an e-mail instead of PM if you wish to get in touch.

User avatar
mxmxmx
Super Deluxe Wiggler
Posts: 2243
Joined: Thu May 31, 2012 1:54 am
Location: berlin

Post by mxmxmx » Sun Nov 22, 2015 10:52 am

flts wrote:
Altitude909 wrote:wow. Dont edit panels early in the AM :P will fix

So what is the DAC out compared to the other clock outputs?
The clock outputs are digital (0/1), the DAC is Teensy's internal 12 bit one which can also output random voltages etc. instead of just pulses like the other channels.
yep, that's that. presently, there's just two modes: "binary" and "random", where random is random, and binary is a sequencer type thing, which tracks the clock state (clock 1 = MSB ... clock 6 = LSB).

meanwhile, here's a first stab at clock mulitplication. it's a bit of a hack but it seems to work, more or less. will need quite a bit of fine-tuning though, i broke various things in the process (the internal clock and, chances are, the store-settings stuff).

basically, the way it works is: there's two menu pages now for the left encoder (long press to toggle the page); the one page allows multiplying the incoming clock by 2, 4, 8 and 16 (that's a per channel setting), resolution of the underlying timer is 25 usec. the other page is for mode selection, which works as before.

flts
Super Deluxe Wiggler
Posts: 2984
Joined: Tue Mar 04, 2008 7:01 am

Post by flts » Thu Feb 11, 2016 9:27 am

I've been using the module as the timing / trigger core for pretty much everything I've done with the euro modular for the past two months and have started getting ideas to my head about things that could be added or improved for my own purposes...

... thus I just wanted to quickly query what the dev status is. In case I start working on some additional modes / features, should I try building them on top of temps_utile or temps_utile_mult code (my module is still running the standard non-multiplier code) and are there any bugs I should look out for / try to fix during the process?
Warm thank you to everyone for the past 10 years. I'm not active here anymore for personal reasons, so for those I've had the pleasure of dealing with please send an e-mail instead of PM if you wish to get in touch.

User avatar
mxmxmx
Super Deluxe Wiggler
Posts: 2243
Joined: Thu May 31, 2012 1:54 am
Location: berlin

Post by mxmxmx » Thu Feb 11, 2016 12:58 pm

flts wrote: ... thus I just wanted to quickly query what the dev status is. In case I start working on some additional modes / features, should I try building them on top of temps_utile or temps_utile_mult code (my module is still running the standard non-multiplier code) and are there any bugs I should look out for / try to fix during the process?
as you prefer. i must admit i haven't extensively used/tested the multiplying version myself (due to adverse work/life balance), but it shouldn't be entirely misdirected; the timer stuff is somewhat gleaned from the SCM. i wasn't too happy though with the way it worked out in terms of the UI. in other words: dev status is not very active right now; and it's always been the somewhat ugly stepsister of the O+C module, i suppose.

that said, over the last few weeks pld massively overhauled the core of O+C code, display drivers and all; lots of those enhancements* should carry over to this module, but it'll involve some effort. you can take a peek here.

* edit: the most interesting parts should be the display driver. it's using DMA now and rendering is split up into smaller bits; and there might be some menu features in there which could be of use in a clock sequencer scenario, too. generally speaking though, the display driver is far less mission critical in this case; it's just some GPIO and the onboard DAC that need to be updated in the ISR, there's no sharing of the SPI bus (as with O+C). in the multiplying version i had moved the update outside the ISR, i forgot why; it probably should be put back in. the core ISR (in the multiplying version) runs at 40kHz, it should be able to cope.

User avatar
djamsia
Learning to Wiggle
Posts: 30
Joined: Sun Feb 22, 2015 5:27 pm

Post by djamsia » Mon Feb 22, 2016 1:43 pm

Hello!!!
I have a problem with my temps-utile !!!
when I turn the image does not appear the 6 blocks in the OLED, however, get a bunch of stars of death, starwars kind !!!!

upload a couple of photos, if anyone can see a problem (PCB, OLED) or a possible clue.
Afotunadamente my ornament + crime, it runs smoothly ...
Thank you

Image

Image

User avatar
mxmxmx
Super Deluxe Wiggler
Posts: 2243
Joined: Thu May 31, 2012 1:54 am
Location: berlin

Post by mxmxmx » Mon Feb 22, 2016 3:09 pm

djamsia wrote:Hello!!!
I have a problem with my temps-utile !!!
when I turn the image does not appear the 6 blocks in the OLED, however, get a bunch of stars of death, starwars kind !!!!

upload a couple of photos, if anyone can see a problem (PCB, OLED) or a possible clue.
Afotunadamente my ornament + crime, it runs smoothly ...
mmh, stars of death are not good. have you uncommented this line in u8g_teensy_14.cpp?

User avatar
djamsia
Learning to Wiggle
Posts: 30
Joined: Sun Feb 22, 2015 5:27 pm

Post by djamsia » Mon Feb 22, 2016 5:48 pm

yes i have uncommented..

//#define _TEMPS_UTILE_REV

will review hardware...

User avatar
mxmxmx
Super Deluxe Wiggler
Posts: 2243
Joined: Thu May 31, 2012 1:54 am
Location: berlin

Post by mxmxmx » Mon Feb 22, 2016 6:04 pm

djamsia wrote:yes i have uncommented..

//#define _TEMPS_UTILE_REV

will review hardware...
ok, just to make sure: you have to uncomment two lines; the one in the display driver; and one in the main sketch.

as for the hardware, there's very little that actually could go wrong. there's just the SPI signals going straight from the MCU to the display header (digital pins 10, 11, 14), plus two auxiliary ones, D/C (9) and RST (4). and 3v3, which comes from the 78L33. you may want to try reflow the headers, and double-check the voltage, but it looks fine.

since you have a working o+c, have you tried swapping the OLED, just to rule that out?

fwiw, just to get the firmware out of the way, here's the hex:
You do not have the required permissions to view the files attached to this post.

User avatar
djamsia
Learning to Wiggle
Posts: 30
Joined: Sun Feb 22, 2015 5:27 pm

Post by djamsia » Mon Feb 22, 2016 6:39 pm

OK ... Thank you, my temps utile has left the dark side and has come to life.
I needed to define in the sketch too...

I hope to contribute something to this group in the future.

Image

Image

User avatar
mxmxmx
Super Deluxe Wiggler
Posts: 2243
Joined: Thu May 31, 2012 1:54 am
Location: berlin

Post by mxmxmx » Tue Feb 23, 2016 5:06 am

djamsia wrote:OK ... Thank you, my temps utile has left the dark side and has come to life.
cool, glad it's working.

apropos coming to life ... you should also check out the new and vastly improved o+c pre-beta firmware, it's not quite there yet but mostly usable.

as for your (pm) question, i don't have any spare pcbs at the moment except o+c. IIRC, bezier ordered a few eurotrash mk2, so maybe you can get one from him. (see the eurotrash thread, at the very bottom)

User avatar
mr.sibs
Common Wiggler
Posts: 73
Joined: Sat Nov 24, 2012 5:21 pm
Location: London

Post by mr.sibs » Fri Feb 26, 2016 9:06 am

Another working clocks here, thanks mxmxmx for the support and the great modules

flts
Super Deluxe Wiggler
Posts: 2984
Joined: Tue Mar 04, 2008 7:01 am

Post by flts » Sat Feb 27, 2016 12:07 pm

handed over mine to a friend as an abstract data octocontroller appeared in trade and that will have to do for now... i still have a pcb, a display and a spare teensy though, so will probably build myself another soon.
Warm thank you to everyone for the past 10 years. I'm not active here anymore for personal reasons, so for those I've had the pleasure of dealing with please send an e-mail instead of PM if you wish to get in touch.

User avatar
edwinm
Common Wiggler
Posts: 243
Joined: Mon Aug 05, 2013 4:31 pm
Location: London

Post by edwinm » Mon Feb 29, 2016 4:02 pm

If anyone has a spare board please let me know!

puzo
Common Wiggler
Posts: 161
Joined: Fri Mar 07, 2014 8:18 pm

Post by puzo » Tue Mar 01, 2016 6:08 am

Hi. Does this suffer from the 1.3 oled shortage and do we anticipate the 1.4" adapted board from the OC to work?

Post Reply

Return to “Music Tech DIY”