PoweOff being displayed on OLED Pironman

Hello I have a Raspberry Pi 4 8GB w/ a Pironman Mini PC and the OLED just displays Power Off. I think there is a coding issue. What do you need from me to help solve this?

Before you use Pironman, modify the /boot/config.txt configuration file.

Follow the tutorial link to do so: 5. Set up the Pironman — SunFounder Pironman documentation

Yup, I had followed the tutorial and nothing. Still displaying “Poweroff” on the OLED. Attached picture of the config.txt file. Do you have any other suggestions?

1、First of all, please confirm what system you are using.
2、Is the jumper cap of IO16 connected properly?
If you unplug this jumper cap, the power button will not work. In addition, the power button is also used to wake up the OLED screen in sleep mode.
3、Is the Pironman software service installed correctly according to the tutorial? Is there any error reported during installation?
4、Run sudo Pironman stop && sudo python3 /opt/pironman/main.py to see if there is any error message reported, please provide the log to us.
F2BBEA9B-5564-4c6c-B701-EFCB3A07DD5D

  1. Here is what my system is.
    cat /etc/os-release
    PRETTY_NAME=“Debian GNU/Linux 11 (bullseye)”
    NAME=“Debian GNU/Linux”
    VERSION_ID=“11”
    VERSION=“11 (bullseye)”
    VERSION_CODENAME=bullseye
    ID=debian
    HOME_URL=“https://www.debian.org/
    SUPPORT_URL="
    BUG_REPORT_URL=

uname -a
Linux pi-server 5.15.84-v8+ #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023 aarch64 GNU/Linux

cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

Hardware : BCM2835
Revision : d03115
Serial : 100000001a10e79a
Model : Raspberry Pi 4 Model B Rev 1.5

2.Affirmative. I’ve verified that IO16 is connected.

  1. I followed the tutorial and had no problems during install.

  2. Here is output of the command when i ran it.

sudo pironman stop && sudo python3 /opt/pironman/main.py
stopping pironman

------------------------23/03/17 20:18:32------------------------
pironman version: 1.2.6
username: pi
config_file: /home/pi/.config/pironman/config.txt

23/03/17 20:18:32,047 [DEBUG] power_key_pin : 16
23/03/17 20:18:32,047 [DEBUG] fan_pin : 6
23/03/17 20:18:32,047 [DEBUG] rgb_pin : 12
23/03/17 20:18:32,047 [DEBUG] update_frequency : 0.5
23/03/17 20:18:32,048 [DEBUG] temp_unit : C
23/03/17 20:18:32,048 [DEBUG] fan_temp : 50.0
23/03/17 20:18:32,048 [DEBUG] screen_always_on : False
23/03/17 20:18:32,048 [DEBUG] screen_off_time : 60
23/03/17 20:18:32,048 [DEBUG] rgb_switch: True
23/03/17 20:18:32,048 [DEBUG] rgb_blink_speed : 50
23/03/17 20:18:32,048 [DEBUG] rgb_color : 0a1aff
23/03/17 20:18:32,048 [DEBUG]

23/03/17 20:18:32,070 [DEBUG] rgb_show
23/03/17 20:18:32,073 [DEBUG] rgb_show: breath

^CTraceback (most recent call last):
File “/opt/pironman/main.py”, line 350, in
main()
File “/opt/pironman/main.py”, line 321, in main
time.sleep(0.01)
KeyboardInterrupt

  1. You update the pironman code version to 1.3.0 to see.
    cd ~/pironman
    git pull
    sudo python3 setup.py install

  2. If you still have the same problem, please provide the print log to us: sudo
    sudo Pironman stop && sudo python3 /opt/pironman/main.py

  3. Please provide us with a video of the working state of the OLED screen.

I am on 1.4.0. See snipit.

As far as the video. I uploaded it to youtube.

Thank you for your time and attention on this matter.

First, you will IO26 short piece to GND, and then another short piece to the switch button JP2. (as shown in the figure)
Then connect the external power supply power supply to the expansion board, after connecting the power to the main board indicator lights up, and the switch button JP2 short tab is unplugged. (Please check the video)
See if the motherboard indicator light is always on.
Please also provide us with the video after confirmation.


Ok. I apologize in advance but I think I may have found the problem. I was supplying power to the Raspberry Pi 4 and not the pironman PCB. Once I did that the OLED started displaying the “stats”. But now I see another problem. After the initial boot and the OLED displays the stats after the 30 seconds, it doesn’t display anything anymore unless i run “pironman -al on” command, which that command forces the display to be on all the time.

1, our OLED will turn off after 60 seconds by default, a short press on the power button will light up.
If you want the OLED screen to turn off earlier or later, you can execute pironman -s 60 (set the duration in seconds, you can modify the time)
2. If you want the OLED screen to be always on, execute pironman -al on to set it to always on mode.
Please refer to the tutorial link:

https://docs.sunfounder.com/projects/pironman/en/latest/oled_screen.html