Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Logarithmic waveform with sampled output Float Value

For general discussion related FlowStone

Logarithmic waveform with sampled output Float Value

Postby tiffy » Tue Apr 25, 2017 8:33 am

I am building a small project that needs to be driven from a sampled float value following a logarithmic waveform pattern. The waveform should follow a spiral similar to the shape of the shell of a snail - I assume that would be logarithmic?? Can this be achieved in flowstone by using primitives or Ruby? Or does such a schematic already exist somewhere which I can use? Much appreciated if someone can help out with this one.
User avatar
tiffy
 
Posts: 400
Joined: Wed May 08, 2013 12:14 pm

Re: Logarithmic waveform with sampled output Float Value

Postby Spogg » Tue Apr 25, 2017 12:17 pm

I don't really understand, sorry. :?

Spiral implies 2 dimensions so if your float value is varying logarithmically and you are sampling it periodically how could you make a 2 dimensional spiral? Is this something to do with a spiral spring Vs force?

Maybe you could sketch out your input and desired output...?

Cheers

Spogg
User avatar
Spogg
 
Posts: 3358
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: Logarithmic waveform with sampled output Float Value

Postby tiffy » Tue Apr 25, 2017 10:26 pm

Hi Spogg, isn't a Sine waveform also two dimensional or do I miss something?

All I need is something that can generate an Float output similar to that of the Mono to Float Primitive, but for a logarithmic waveform not for a Sinewave. I do not need the actual waveform though only the Float output if that is possible?

For example, on another occasion I used the Float output from the M2F primitive to drive a pendulum since that one followed the pattern of a Sinewave. So, the project I am building now is similar in nature it is just that it should be a sampled logarithmic Float output, in other words the float output would increase in a logarithmic manner from 0 degrees to 360 degrees.

I do not have much experience in this field.

regards
User avatar
tiffy
 
Posts: 400
Joined: Wed May 08, 2013 12:14 pm

Re: Logarithmic waveform with sampled output Float Value

Postby RJHollins » Tue Apr 25, 2017 11:39 pm

In my toolbox, I have 2 PRIMS:

LOGtoLIN and LINtoLOG all FLOAT.

Not sure where they came from, but there are several Toolbox modules from the SM forum that have been saved and re-located to download.

Still ... not sure if this applies. There are also some 're-scaling' modules out there that can translate imputs to a scaled output.
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: Logarithmic waveform with sampled output Float Value

Postby martinvicanek » Tue Apr 25, 2017 11:54 pm

Not sure if this is what you mean but these are spirals from expo envelopes. The shapes on the x-y-scope look like snails to me. :lol:
Attachments
Snailhouse Rock.fsm
(47.59 KiB) Downloaded 952 times
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: Logarithmic waveform with sampled output Float Value

Postby Spogg » Wed Apr 26, 2017 8:10 am

martinvicanek wrote:Not sure if this is what you mean but these are spirals from expo envelopes. The shapes on the x-y-scope look like snails to me. :lol:


FFS Martin that's beautiful :o
You can get so many shapes by changing the waveforms, ADSR settings and tuning.

No idea whether that's what Tiffy wanted but it's great!

Cheers

Spogg
User avatar
Spogg
 
Posts: 3358
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: Logarithmic waveform with sampled output Float Value

Postby tulamide » Wed Apr 26, 2017 11:58 am

tiffy wrote:Hi Spogg, isn't a Sine waveform also two dimensional or do I miss something?

All I need is something that can generate an Float output similar to that of the Mono to Float Primitive, but for a logarithmic waveform not for a Sinewave. I do not need the actual waveform though only the Float output if that is possible?

What Spogg meant was not the physical dimensions, rather that a waveform evloves in only one direction - forward in time. For a spiral, or a circle, or a square, etc, you would need to go backwards, which can't be done with a waveform. Getting the floats of a spiral should be doable, but it is not a waveform.

EDIT: Imagine you have a pencil and a paper. You put the pencil on the paper far left and start drawing. You are allowed to draw as long as you keep to these two points
1) You only move forward to the right
2) You never drop the pencil (no discontinuity)

That's how a waveform works.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Logarithmic waveform with sampled output Float Value

Postby Spogg » Wed Apr 26, 2017 2:01 pm

Yes what tulamide said is exactly what I meant :)

I think what you might mean tiffy is a periodic waveform as a source but not a sine. You could maybe use a triangle as a source and use a transfer function to convert that to the shape you want. Questions need to be asked though. Does the output need to be bipolar, unipolar and at what speed should it run?

Is this closer to your vision?

Cheers

Spogg
User avatar
Spogg
 
Posts: 3358
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: Logarithmic waveform with sampled output Float Value

Postby tiffy » Wed Apr 26, 2017 6:45 pm

martinvicanek wrote:Not sure if this is what you mean but these are spirals from expo envelopes. The shapes on the x-y-scope look like snails to me. :lol:


Geez Martin, thank you so much I am going to have a look at it right now.

Thanks to Tulamide & Spogg on enlightening me on the subject and to Mr Hollins.

I will also have a look at what Mr hollins has to offer in his collection.

I had a look on internet on several websites about the Archimedes Spiral and it seems to be much more complicated than I thought it would be.

Thank you all, guys.
User avatar
tiffy
 
Posts: 400
Joined: Wed May 08, 2013 12:14 pm

Re: Logarithmic waveform with sampled output Float Value

Postby tiffy » Wed Apr 26, 2017 9:14 pm

Ok, I made a schematic of two equal dimensioned Spiral (Snail) Gears as an example only to demonstrate what the problem is.

These two Gears should mesh with one another fairly accurately if I can get the "Red Spiral Gear" to turn clockwise at the "correct speed" whilst the Black Spiral Gear turns Anti-clockwise @ Constant speed.

There is a description inside the schematic, of the operation of events.

I am not sure how to go about with this one.

:?: :?: :?: :shock:
Attachments
Spiral Wheel & Pinion.fsm
(193.48 KiB) Downloaded 933 times
User avatar
tiffy
 
Posts: 400
Joined: Wed May 08, 2013 12:14 pm


Return to General

Who is online

Users browsing this forum: No registered users and 73 guests