Store large arrays (23LC1024)


hello,

i working on 6 axis stepper motor controller camera motion control.

i using arduino due, accelstepper library , custom-made pcb-board stepper drivers.

until now, working fine.

but want add 3-point , 5-point-movement. have 3 or 5 keyframes, , controller calculated positions in between. using splines library capable of interpolation points.

unfortunately, calculations takes lot of time, since there several functions calculated. faster movements not possible. want fix this.

my current approach calculate positions in advance , store them array. smooth stepper motion, 10.000 positions required. in loop function every 1ms next position being read , updated to accelstepper-library.

this works fine 2 axis. adding axis leads full ram on due , error messages during compling. since want 6 axis, bigger problem...

when save 10.000 values txt-file on pc, around 75-80kb. due has 96 kb (64kb , 32kb) of sram.

so next approach write values onto sd-card , read them. somehow slow , not comparable if use directly array.

so next approach 23lc1024 offer 128kb of ram. ordered of them , arrive soon.

in worst case szenario need 6 of them, 1 each axis.

since did not worked them yet, wonder how performance compared arduino-build-in-ram , sd-card solution. have experience this?

i open other solutions problem, if have ;)

its unlikely using external serial memory faster reading directly sd card.

the sd card reads should quite fast - perhaps limited speed of specific sd card using?

another solution store pre-calculated values program memory space opposed using ram.


Arduino Forum > Using Arduino > Storage > Store large arrays (23LC1024)


arduino

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'