If, immediately after adhering to all Individuals suggestions, you continue to have problems with RAM and CPU, then possibly it’s since your software is absolutely way too large, as well as a Raspberry Pi isn't the appropriate Device for the task. In cases like this, you might want to take https://www.mirobot.ai/