I am considering to use word (16-bit) lookup table to run four stepper motor, and to save program size.
I am thinking to use 16-bit for 16 pins. Is that possible ?
What do you think about it ?
Sure
Or
get a Atmega1284 with lots of memory. (Bobuino2)
I have Arduino MEGA2560. How to I make lookup without eating a lot of 256kb ?
I forget to add that the four motors will run at various speed that can run faster and slower mixed. Sometimes one motor run slow, other fast, one does not run, one run very fast; other time depends on situation. How much is 16 MHz able to run ?
I don't think you've defined the problem in a solvable form. Try restating it, using examples of what is expected.
May show us some code that you are currently using for this.
Like a Drum Sequencer?
Can you explain (or give an example of) how the data in one of your 16 bit words would be used.
Why do you need 16 pins? With proper stepper driver boards 4 motors only need 8 pins.
...R
Run this:
So I thinking to use 16-bit for each four stepper motor. Or what do you thinking?
OK, but how many do you need?
Did you get all your switches working?
Now I count necessity of pins in LibreOffice Calc. 304 pins without altitude, speed, temperature, and vertical speed indicator in the navigation panel.
But still I have to build fuel dump panel, main panel, engine startup panel, electric panel, throttle, autopilot, and other things.
Qwseyvnd:
Run this:
I'm not prepared to run something on my PC without knowing what it is.
Now I count necessity of pins in LibreOffice Calc. 304 pins without altitude, speed, temperature, and vertical speed indicator in the navigation panel.
Where do you propose to find 304 pins? Let's stay with the original question, which at least seems to be possible.
You need to explain what you are trying to make and what the 16-bit look-up table is for. I repeat my earlier question
Can you explain (or give an example of) how the data in one of your 16 bit words would be used.
Why have you decided on 16 pins, and what is each of them for?
...R
Why have you decided on 16 pins, and what is each of them for?
4 stepper motors, 4 pins each.
Robin2:
Qwseyvnd:
Run this:I'm not prepared to run something on my PC without knowing what it is.
Now I count necessity of pins in LibreOffice Calc. 304 pins without altitude, speed, temperature, and vertical speed indicator in the navigation panel.
Where do you propose to find 304 pins? Let's stay with the original question, which at least seems to be possible.
You need to explain what you are trying to make and what the 16-bit look-up table is for. I repeat my earlier question
Can you explain (or give an example of) how the data in one of your 16 bit words would be used.
Why have you decided on 16 pins, and what is each of them for?
...R
It is a navigation system for Il-62 that I will simulate with X-Plane 10 simulator.
Use many microcontrollers connect together. For example, two pins for eight pins for two stepper motor.
Now I realize that 16-bit with 65536 values lookup table is too much for the arduino card, so I use 8-bit instead which takes much, much less storage in the arduino card.
I will use some microcontrollers to run this navigation system. But actually I need to design a dedicated computer for that to connect with a common home computer.
In one sentence, one program as a traffic lights that run many microcontrollers.
Sorry. I can't help when there are no answers to my questions.
...R
The thing he asked you to run is a photo.
Haha, funny thoughts.
16-bit is to run four stepper motor with various speed at various time.
To Robin2, now I realize it is possible to run this with 304 pins just if I have many small microcontrollers connected pins the main Arduino DUE with 4-bit lookup table. Is that possible ? All the DUE card need to get are; aircraft position such as angle, compass degree, magnetic degree, , NAV, ADF, RSBN stations, XY coordinate, and all necessity information. Let me check.