Static heterojunction-based electronic devices have been widely applied because carrier dynamic processes between semiconductors can be designed through band gap engineering. Herein, we demonstrate a tunable direct-current generator based on the dynamic heterojunction, whose mechanism is based on breaking the symmetry of drift and diffusion currents and rebounding hot carrier transport in dynamic heterojunctions. Furthermore, the output voltage can be delicately adjusted and enhanced with the interface energy level engineering of inserting dielectric layers. Under the ultrahigh interface electric field, hot electrons will still transfer across the interface through the tunneling and hopping effect. In particular, the intrinsic anisotropy of black phosphorus arising from the lattice structure produces extraordinary electronic, transport, and mechanical properties exploited in our dynamic heterojunction generator. Herein, the voltage of 6.1âV, current density of 124.0âA/m2, power density of 201.0âW/m2, and energy-conversion efficiency of 31.4% have been achieved based on the dynamic black phosphorus/AlN/Si heterojunction, which can be used to directly and synchronously light up light-emitting diodes. This direct-current generator has the potential to convert ubiquitous mechanical energy into electric energy and is a promising candidate for novel portable and miniaturized power sources in the in situ energy acquisition field.