Hey guys, It's Sebastian
I have been using Arduino already for quite a few things, but they were almost always easy processes, and I have reached a wall now, and I would love to have your assistance.
I have an idea of making a machine.
A machine, which would use:
2 stepper motors, with the driver DRV8825
1 DC motor, with the driver L298N
1 Encoder (optical, quadrature encoder)
1 Nextion TFT Screen
1 Hall sensor
So basically, this would make a machine.
It would perform multiple tasks at the same time:
Read encoder values to control the DC Motor to maintain position, pretty fast
(IFAIK, this would make the optical encoder send values to Arduino and it would make it to send a command to the DC motor according to the value.)
Make one of the stepper motor turn always in one direction at pretty fast RPM (maybe 750 RPM)
(No big deal)
Make the other stepper motor turn in one direction until it hits a microswitch, then go back at same speed until it hits the other, cycle repeats (all this in 1/8th microsteps, max at 200 RPM)
(A bit harder, but not hard neither)
Make the hall sensor count the stepper motor turns made by the stepper motor turning at ~750 RPM
(using a magnet fixed to the shaft)
Report about progress status on the nextion screen using the TX/RX ports, also displaying the Hall sensor count.
So knowing my intentions, my question is to all of you more experienced about Arduino is:
Can an Arduino Mega control all these things "simultaneusly"? Is 16 MHz enough for all these?
Thanks for helping me out!