Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 5622|Reply: 6

Monitor Cpu Load and Temperature with the two built in LEDS

[Copy link]

2

Threads

6

Posts

36

Credits

Novice

Rank: 1

Credits
36
Post time 2015-11-12 17:20:32 | Show all posts |Read mode
Hi All,

I have written a little daemon to make the Orange Pi Pc onboard led's more useful.

Most likely it will run on the other H3 boards as well.

See my description from github.
leddaemon
Use the Orange Pi PC onboard LED's to monitor system load and cpu temperature.
The red one lights up when the load exceeds 1.
The green one will blink when the temperature exceeds 60 degrees.
Of course these defaults can be changed in the script.
Multi threaded and deamonizing python script.

Get it here

https://github.com/bkram/orangepipc/

or direct download

https://raw.githubusercontent.com/bkram/orangepipc/master/leddaemon/leddaemon.py

User feedback is appreciated.


11

Threads

286

Posts

1890

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1890
Post time 2015-11-13 01:59:41 From the mobile phone | Show all posts
Cool thing,thank you

2

Threads

6

Posts

36

Credits

Novice

Rank: 1

Credits
36
 Author| Post time 2015-11-18 16:26:30 | Show all posts
Hi All,

Small update available will now check if  it is run as root, which is required in order to manipulate the sysfs files.

User feedback or feature requests are welcomed.
Post time 2015-11-18 17:25:53 | Show all posts
retroman replied at 2015-11-18 16:26
User feedback or feature requests are welcomed.

Average load might not be related to 'Cpu Load' at all. You would've to periodically query /proc/stat instead to get an idea what's happening on the CPU cores, compare with post 16 here for example: http://forum.armbian.com/index.p ... rpi-monitor/?p=1127

On a SBC with both slow SD-card and inefficient storage settings (low commit interval, continually trying to write stuff to /var/log or /tmp) you will end up with an average load that's most of the time above 1 or even more while the CPUs doing nothing.
Post time 2015-11-18 20:50:07 | Show all posts
And can you please provide the output of
  1. ls /sys/class/gpio_sw/normal_led/
Copy the Code
Post time 2015-11-28 03:47:01 | Show all posts
bronco replied at 2015-11-18 20:50
And can you please provide the output of

Thx a bunch. Now that I've my own OPi PC I was able to have a look myself. Unfortunately the LED driver for H3 is rather limited or let's better say non-existent (which is understandable since Allwinner's driver normally uses the PMU's capabilities to provide informations through LEDs which is obviously not possible with H3 since this beast has no PMU).

I discovered that some of the tricks we found for A20 devices last year also work with the H3. In case you install the sysstat package then all you need to get USB disk activity on a LED is adding
  1. /usr/bin/iostat -z -d 1 sda | sed -u -e '1d' -e 's/Device.*/0/' -e 's/sd.*/1/' -e '/^$/d' >/sys/class/gpio_sw/normal_led/data &
Copy the Code
to /etc/rc.local, and/or for the green LED showing SD-card activity:
  1. /usr/bin/iostat -z -d 1 mmcblk0 | sed -u -e '1d' -e 's/Device.*/0/' -e 's/mmc.*/1/' -e '/^$/d' >/sys/class/gpio_sw/standby_led/data &
Copy the Code


155

Threads

1337

Posts

2951

Credits

Gold member

Rank: 6Rank: 6

Credits
2951
Post time 2021-11-30 08:06:27 | Show all posts

Best Robot Logistics Site

What are the main benefits of Autonomous Mobile Robot?

1. Greater Flexibility
Autonomous Mobile Robots demonstrate flexible and agile automation, as they are dependent on their onboard cameras and sensors to operate. Autonomous Mobile Robots are able to design their own efficient pathways within a facility. Autonomous Mobile Robots avoid following established routes, and are therefore flexible in creating them. Autonomous Mobile Robots are able to be moved to other tasks, as opposed to other automation technologies that require more time and effort. Check out this Order picking robot info for more.

2. Safety is the top priority
Autonomous Mobile Robots are equipped with a variety of sensors and cameras. These enable the Autonomous Mobile Robot's ability to comprehend and perceive the environment around it. It is able to move through an area efficiently, without having to come upon people, goods infrastructure, or even people. Forklifts and other equipment controlled by humans, such as forklifts, have less safety features, but they still rely on human input. Although a human operator is at risk of becoming distracted or fatigued, and consequently cause accidents These are not a concern when using Autonomous Mobile Robots. Employing Autonomous Mobile Robots for easily-repeatable tasks, therefore, allows operations to reduce the chance of human error, and dramatically improve the overall safety of a facility.

3. Rapid Implementation
Autonomous Mobile Robots are able to be operational in a single operation, which can take anywhere from four to six weeks, depending on the specifics of the operation. Important here is the picking software and warehouse execution software that the units need to be integrated with. Even at the top end, this is still a short timeframe, particularly when you consider other options. As a an example, a goods to person (G2P) system can take as long as a year to fully integrate.

4. Scalability
Autonomous Mobile Robots are simple to install within a facility. It is possible to follow modular deployment to expand Autonomous Mobile Robots as your company expands or alters. This means that you don't need to invest an enormous amount of money in the beginning. Instead of purchasing large quantities of Autonomous Mobile Robots, you can buy a few and then increase your fleet. It is possible to save money by using modular deployment, meaning you can take on different projects while you assess the effects of Autonomous Mobile Robots and then decide on the your next steps.

5. Facilities are simple to move between
Some businesses may hesitate to consider automation alternatives, even though they realize the possibility of moving to a different facility in the near future is possible. This is logical. Why should you build a new system if it could be taken down in two years after the construction of the new facility? In such a scenario, Autonomous Mobile Robots can be used to bridge the gap in the period of transition. Because Autonomous Mobile Robots are relatively easy to deploy, they can also be moved from one facility to another easily, which allows automated processes even in the short term. These Autonomous Mobile Robots are an asset for companies looking to set up an interim holiday business.
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2022-1-18 15:13 GMT+8 , Processed in 0.034575 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list