When I have serial plotter open in the Arduino IDE with serial communication going on, the fans of my PC go full speed. On checking I found that Java(TM) Platform SE binary(32 bit) is using about 29% of the CPU.

This gives a big blow to the PC's battery back-up. Is there some way to reduce the CPU usage ?

The IDE version I use is Arduino 1.8.4

OS : Microsoft Windows 10 Home (64 bit)

PC : HP Au620 TX (laptop)

processor : Intel i5 7th gen (7200)

  • 3
    What sort of computer? What OS? You've left out a ton of detail here.
    – Delta_G
    Jun 23 '18 at 21:23
  • That's Java for you...
    – Majenko
    Jun 23 '18 at 23:49
  • what battery backup?
    – user2497
    Jun 23 '18 at 23:57
  • @Majenko I doubt Java is to blame. One could write a busy loop in any language. Jun 25 '18 at 7:27
  • @DmitryGrigoryev Indeed, but Java makes it easier for dumbass programmers to write terrible code.
    – Majenko
    Jun 25 '18 at 7:28

Run Arduino IDE in a virtual machine which allows CPU allocation. Set a strict limit on CPU resources in that VM, like 200..500 MHz.

Not the answer you're looking for? Browse other questions tagged or ask your own question.