Here's something GPT and I have been working on to create a BL0937 simulator for OpenBeken testing across different platforms. It's an Arduino sketch that runs on an ESP-WROOM-32 and is currently connected to an RTL8720DN/BW16E NiceMCU_RTL8720_V1 running OpenRTL. The sketch uses PWM to simulate CF, CF1, and SEL, allowing OpenBeken to interpret the signals as if a real BL0937 power monitoring chip were present.
The readings aren't exactly realistic yet, but this is the closest I've gotten so far.
Pin assignments and setup details can be found in the comments of the sketch.
Feel free to use, improve, or modify it as needed—any feedback is welcome!
The readings aren't exactly realistic yet, but this is the closest I've gotten so far.

Pin assignments and setup details can be found in the comments of the sketch.
Feel free to use, improve, or modify it as needed—any feedback is welcome!
Code: Arduino