Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8589501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:04:22+00:00 2026-06-11T23:04:22+00:00

I’m working on some animatronics for an art installation which will use several stepper

  • 0

I’m working on some animatronics for an art installation which will use several stepper motors and some high-power LEDs. In the past, when I have done this sort of thing I have used a tethered computer to handle the logic and timing. For this project, I would like to try making it self-contained (for example, just the Arduino board). For Arduino hardware, I have an Arduino Mega and could expand it with an SD card shield for more storage, if need be.

I’d really welcome any ideas or suggestions on how to approach this (and am not asking for code).

For the data, essentially I would be storing cues for each stepper and each LED. And of course I would need some kind of clock or timestamp to keep track of things.

A stepper cue would be something like:

  • cue start time
  • stepper ID
  • stepper direction
  • stepper speed
  • number of steps

An LED cue would be something like:

  • cue start time
  • LED ID
  • Start brightness
  • End brightness
  • duration

So what I am wondering about:

  • ideas about a data format compact enough to store lots of cues
  • any suggestions for a clock or timestamp. (A simple counter is the obvious choice.)

As for just how many cues/how much data, since I am just beginning this, I will work within whatever limits I bump up against.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:04:23+00:00Added an answer on June 11, 2026 at 11:04 pm

    So for now I have decided to roll my own simple data format in order to keep the project moving. I was also concerned about storing cue data in a way that doesn’t eat up RAM.

    Since I am using an Ardunio Mega with 128 KB of Flash memory I want to use that before resorting to an SD card. With the excellent Flash Library accessing PROGMEM is very easy and I was able to rough out a test sketch in minutes.

    For motor control I am using dedicated motor controller boards using serial comm. Each board controls two motors. For testing the maximum data size I needed to send was four values: rate, slope, x target, y target in order to make a move so that determines my data format for motors. This will change when I add a timestamp and board ID values.

    With the Flash lib, you can define a FLASH_TABLE, store it in PROGMEM and then access it using simple array bracket access. Testing with a couple of thousand entries shows no issues.

    So it becomes a simple task of pulling data out and sending it to the standalone boards or using it internally.

    // simple example:

    #include <Flash.h>
    
    FLASH_TABLE(int, command_table, 4 /* width of table */, 
        {111, 222, 333, 444},
        {1001, 900, 3210, -4567},
        {1002, 1000, 3210, -4567},
        {1003, 1100, 3210, -4567},
        {666, 777, 888, 999}
        );
    
    void setup() {
        Serial.begin(9600);
        Serial.print("Mem: "); Serial.println(availableMemory());
    
        // Determine the size of the array
        Serial.print("Rows: "); Serial.println(command_table.rows());
        Serial.print("Cols: "); Serial.println(command_table.cols());
        Serial.print("RAM: "); Serial.println(sizeof(command_table));
    
         Serial.print(command_table[8][0]);
         Serial.print("s");
         Serial.print(command_table[8][1]);
         Serial.print("r");
         Serial.print(command_table[8][2]);
         Serial.print("x");
         Serial.print(command_table[8][3]);
         Serial.print("y");
         Serial.println("gi");  
    }
    
    void loop() {
    
    
    }
    
    int availableMemory() 
    {
      int size = 1024;
      byte *buf;
      while ((buf = (byte *) malloc(--size)) == NULL);
      free(buf);
      return size;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have an autohotkey script which looks up a word in a bilingual dictionary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.