If, after subsequent all These strategies, you continue to have problems with RAM and CPU, then probably it’s since your software is absolutely too heavy, and a Raspberry Pi is not the ideal Instrument for the job. In such a case, you might want to look at different embedded board, https://mirobot28394.idblogz.com/27418155/indicators-on-education-robot-you-should-know