Start a new tmux session and start taking measurements.The Pi has been idle for some time now and the initial power consumption is: 5.04V and 0.08A = 0.4032W.I will be running sysbench for 30 minutes using 4 threads in order to measure the temperature and power consumption. I am using the Raspberry Pi Zero W v1.1 here.Įlapsed Time (s),Temperature (☌),Clock Speed (MHz),Voltage Core (V)Įlapsed Time (s),Temperature (☌),Clock Speed (MHz),Voltage Core (V)0,34.7,1000,1.4 Verify the program can take measurements.You can either run the program using python3 measure.py or make the script executable with chmod +x measure.py.Print("Elapsed Time (s),Temperature (☌),Clock Speed (MHz),Voltage Core (V)")į.write("Elapsed Time (s),Temperature (☌),Clock Speed (MHz),Voltage Core (V)\n")Ĭlock = int(vc.measure_clock('arm')/1000000) Create a Python script named measure.py that will be used to sample vcgencmd every second and write the results to a file at /home/pi/measurements.txtį = open("/home/pi/measurements.txt","a+").Install vcgencmd that will be used to report temperature, clock speed etc.I will be using tmux to manage multiple terminal sessions.Install sysbench that will be used to benchmark the CPU.Ensure you have Python 3 & pip3 installed.Please see my guide on how to setup a Pi to run in headless mode. without a display, keyboard and mouse) and will be using ssh to control the Pi. I have installed Raspberry Pi OS Lite onto a microSD card and configured the Pi to run in headless mode (i.e. NOTE: Don’t try this at home unless you know what you are doing and take safety precautions. I did not know before hand how much current the units will consume so I rigged up a USB charger using a double socket face plate that has a 3.2A USB charger built in. The Pi is held in place (in the air since I don’t know how hot it will get) using the Third Hand tool and I measure the power consumption using a Uni-T UT658B. The latest Raspberry Pi OS Lite (-raspios-buster-armhf-lite) is installed on a SanDisk Ultra A1 (Class 10) 32GB microSD card. The Raspberries will be running headless and only be connected to the USB power supply and my local WiFi network. I will be using a brand new unopened Raspberry Pi Zero W (v1.1) and Raspberry Pi Zero 2 W with no active (fan) or passive (heatsink) cooling and no case or GPIO headers. Here is a comparison of the Raspberry Pi Zero W v1.1 (Top) and Raspberry Pi Zero 2 W (Bottom). Passive cooling ensure the Pi stays cooler for longer and saves about 14 degrees Celsius.Switched off current is 1mA more than Zero W.Consumes about 270mA (1.4 Watts) more than Zero W.Raspberry Pi Zero 2 W is almost 6x faster than Zero W.Please see my git repo for the scripts and data collected. Today I will be measuring the power consumption of the Raspberry Pi Zero W (v1.1) against that of the new Raspberry Pi Zero 2 W as well as do some simple benchmarking. The new Raspberry Pi Zero 2 W was released just yesterday (and I had to have one)!
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |