IoT coding but efficiently

February 1, 2025

Arduino-ide is a software used by most people for IoT coding. However, the cpu/power consumption is surprisingly high. It's understandable to a degree given the fact that it's a IDE after all, tasks such as function lookup, code completion definitely requires high processing power, however compared to VS code, the cpu usage is quite high for Arduino-ide. Also, it keeps trying to connect to the internet every 2 seconds and complains while working offline, which is just absurd. These are the things I do on a regular basis while coding;

These are pretty basic tasks which in my opinion should not require that much high cpu/power consumption. I was basically searching for something more simpler and ended up finding the CLI version of the Arduino IDE. Besides code completion/definition lookups, arduino-cli was basically the perfect program for me.

# arduino-cli

arduino-cli is basically a cli version of the ide minus the gui environment, code completion and other fancy stuffs. I can code in my favorite editor(VIM), which barely spikes cpu usage, and then compile codes, again barely spikes cpu usage and then upload codes straight from the terminal. I don't even need to log into a gui environment to even run this program, can do everything right from the tty which is just convenient & efficient. You can read more about arduino-cli here. I've even managed to underclock my cpu and tune it into powersave mode and run the cli software without any hassle whatsoever. I'm working on some IoT automation projects and will be uploading/writing about them in the near future. Have fun using arduino-cli


Made with <3 by samiuljoy

rss | about | go to top