0

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)

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

1 Answer 1

0

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.