Control LED's by CPU-Temperature

Hi Guys,

I wrote a little Script for you, that show’s the CPU-Temperature by using the On-Board-LED’s from the BPI-M3.


R = red_LED G = green_LED B = blue_LED

0-39 °C R = ON G = OFF B = OFF

40-49 °C R = ON G = HEARTBEAT B = OFF

over 50 °C R = ON G = ON B = HEARTBEAT


  1. Download the attached File and upload it to your BPI-M3 Temperature-Tool_v1.0.tar.bz2 (1.5 KB)
  2. Extract it with:

tar -xjf Temperature-Tool_v1.0.tar.bz2

  1. Go into the extracted Folder with:

cd Temperature-Tool_v1.0

  1. Switch to root user:

su root

  1. Set Permissions:

chmod +x

  1. Start the Installation-Script with:



./ start //starts the Tool.

./ stop //stops the Tool.

./ reset //reset the LED’s to normal mode.

./ autostart //writes the Tool into startup.

./ removeauto //delete Tool from startup

I hope that everything works fine. If you get problems or have some questions please contact me. Also if you finde some errors in the Scripts or you have some suggestions.

Thank you and best regards


Temperature-Tool_v1.0.tar.bz2 (1.5 KB)

1 Like

so cool ,thank you share it .