Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in 
CSDb User Forums


Forums > CSDb Entries > Release id #160665 : Stepper Test 1.0
2017-11-30 14:02
ChristopherJam

Registered: Aug 2004
Posts: 795
Release id #160665 : Stepper Test 1.0

Copying the production notes below, but I'd really like to see some results from other people's drives for this one.
 
... 25 posts hidden. Click here to view all posts....
 
2017-12-01 18:12
Dr.Science

Registered: Oct 2011
Posts: 26
1541-II (cold)
2017-12-03 08:54
ChristopherJam

Registered: Aug 2004
Posts: 795
Thanks everyone, those are all really useful.

Spending too long on the half track is looking pretty costly on a lot of drives, especially if you catch that spike somewhere around 20-24 bycles. Entertaining given that 25 bycles is the default stepping time before acceleration kicks in..

I suspect what's happening there is the head is oscillating a bit, and that far in it's swung almost back to its starting point. I've tried running a simple physics sim with acceleration proportional to sin((phase-desiredphase)), and friction proportional to velocity. My friction model clearly needs work, as it keeps ringing for far too long, but even with the model as it stands I can already see shapes that loosely approximate some of the readings.



Some sets of parameters indeed result in a spike if the head has almost returned to the starting track at the end of T1, supporting my hypothesis above:


        def iter(x0,x1):
            a=np.sin((target-x1)*np.pi)
            v0=(x1-x0)/dt
            dv=v0*dt/Td
            v0=v0+a*dt*Ta**-2
            v0=v0-dv
            return x1+v0*dt

(iter calculates the new head position as a function of the previous two, assuming a constant timestep of dt. Head position in tracks.)
2017-12-07 16:23
ChristopherJam

Registered: Aug 2004
Posts: 795
…and some more measurements, these from j0x (thanks again!)

Two from an old 1541 push-down mech drive:




and two from an (almost as) old 1541-II:


2017-12-29 19:15
soci

Registered: Sep 2003
Posts: 386
A bit late, but anyway.

1541-II with refurbished mechanic:


1571:


Another 1571:


Old 1541:


1571CR:


Unfortunately I couldn't do my oceanic this time as it's not here. That'll be interesting as it has an unusual stepper motor and mechanic.
2018-01-01 23:55
ChristopherJam

Registered: Aug 2004
Posts: 795
Thanks Soci.

Those 1571s are particularly slow; well worth knowing about.
2018-01-02 12:16
Frantic

Registered: Mar 2003
Posts: 1340
The drive in my SX64



I haven't really read this thread very carefully, so a brief comment on what this graph tells about my SX64 drive would be much appreciated.
2018-01-02 21:03
ChristopherJam

Registered: Aug 2004
Posts: 795
Frantic, the large black area at upper left means the optimal stepping time for your drive is a little higher than some of the others (you're looking at around 40 bycles/10ms), but it's well within the margins that current loaders rely on (12ms per track). More importantly the lack of a large black spike in the middle says your drive is much less likely than many other to stall for a bit when the normal stepping routine is being used.

So your drive's a little more consistently behaved than many, and is probably saving you a full disk rotation about one seek in twenty.

These results are mostly useful in the aggregate; they'll help tune the timing for improved stepper motor control in the next generation of loaders.
2018-01-02 21:33
Frantic

Registered: Mar 2003
Posts: 1340
Excellent commentary there, sir! :D
2018-01-21 21:38
Krill

Registered: Apr 2002
Posts: 952
Quoting ChristopherJam
These results are mostly useful in the aggregate; they'll help tune the timing for improved stepper motor control in the next generation of loaders.
"Next generation of loaders" \:D/

I've just added Shrydar Stepping®™ to the massively overhauled next version of my loader, which is now seriously scratching on the 7 KB/s mark for uncompressed files.

I'm now looking at all these graphs, trying to find the optimal T1 value with a given T2 ≥ 72 bycles (the block transfer takes 72 cycles per byte plus random IRQ/DMA delays).

What would be a good value that's also guaranteed to work across all drives? Want to avoid that Chasm of Death many of them exhibit. :)
2018-01-21 21:55
ChristopherJam

Registered: Aug 2004
Posts: 795
Quoting Krill
I've just added Shrydar Stepping®™ to the massively overhauled next version of my loader, which is now seriously scratching on the 7 KB/s mark for uncompressed files.

\O/

Quote:
What would be a good (T1) value that's also guaranteed to work across all drives? Want to avoid that Chasm of Death many of them exhibit. :)

Given the significant spike at 20-24 bycles exhibited by hedning's Oceanic, and the even heaver one further to the right on THCM's SX-64, I'd probably lean towards going as low as 12-16. For almost all of the drives, that's going to intersect the upper left diagonal edge (minimal total step time) too; most of them will be good to go another dozen bycles later, ages before the block transmission time is over :)
Previous - 1 | 2 | 3 | 4 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Core/(VPN)
Dymo/G★P
Flavioweb/🇮🇹ASR/HF🇮🇹..
xAD/nIGHTFALL
MaD ][/Starship
Isildur/Samar
hedning/G★P
Jammer/TooMany
/Panor..
Mr. SID
Guests online: 45
Top Demos
1 Uncensored  (9.7)
2 Comaland 100%  (9.7)
3 Edge of Disgrace  (9.7)
4 Coma Light 13  (9.6)
5 The Shores of Reflec..  (9.6)
6 Wonderland XII  (9.6)
7 We Come in Peace  (9.6)
8 Lunatico  (9.6)
9 Incoherent Nightmare  (9.5)
10 Wonderland XIII  (9.5)
Top onefile Demos
1 Daah, Those Acid Pil..  (9.6)
2 FMX Music Demo  (9.5)
3 Pandemoniac Part 2 o..  (9.5)
4 Arok 20 Invitation  (9.5)
5 Dawnfall V1.1  (9.5)
6 Treu Love [reu]  (9.5)
7 Merry Xmas 2017  (9.4)
8 In Memoriam BHF  (9.4)
9 Dawnfall  (9.4)
10 Synthesis  (9.4)
Top Groups
1 Oxyron  (9.4)
2 Booze Design  (9.4)
3 Censor Design  (9.4)
4 Finnish Gold  (9.4)
5 Crest  (9.3)
Top Diskmag Editors
1 Jazzcat  (9.6)
2 Newscopy  (9.4)
3 Peter  (9.3)
4 A Life in Hell  (9.2)
5 Elwix  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2018
Page generated in: 0.056 sec.