Can I do that with Nucleo-L432 or Nucleo F411re boards?
Hello. I have a simple project, but I have a hard time doing my project in STM. The difficulty of the project is that all processes have to work at certain sampling times. As you can see in the picture, I have a robot that is controlled by 2 channel biological signal (EOG). Robot movements are measured with two potentiometers. So what do I want?
1- I want to transfer 2 channels of EOG data controlling the robot and 2 pot data that allows us to measure the movement of the robot to the SD card or PC via serial port (1KHZ sampling, the transfer does not have to be real time).
2- According to the EOG data read, there is a linear function that provides the movement of the robot's joint (m*x+n). The PWM value (min. 10 KHz PWM) produced with this function will be transferred to the robot actuator via the driver.
In the first attempt, while recording the data to the SD card with DMA at 1KHz sampling time, I could not generate PWM signals from that data. Therefore, I performed the recording process with another MCU and the PWM generation with another MCU.
I know how to read ADC with DMA.
I know how to write data to SD card or send data from serial port.
I know how to create PWM.
However, I could not implement an application where I could combine them all. I wonder if I should try RTOS? Because during PWM production, data misses occur during data transfer from the buffer.
Waiting for your suggestions. Thanks in advance.
