The simulation of the space conditions is a key component to guarantee the success of space missions before launch. The hardware development, simulation, and test enable the implementation of accessible and reliable systems, software improvement, and the calibration of scientific payloads. Test-beds and Space hardware have diverse requirements, while the former is driven by the simulation fidelity, the latter is constrained by costs, power, and size. Furthermore, in a simulation environment, both components shall interact using different interfaces, allowing the verification and validation of the tested system. This work focuses on improving and automating an old Helmholtz cage to emulate Earth’s magnetic field in space orbit. Using RL circuits, PWM signals use H-bridges as current drivers, and a PD controller, we can computationally control the current provided to the six coils forming a customized magnetic field in the center of the cage. The generated field can be changed over time, emulating the magnetic field of an orbit for any object placed in the center of the cage. Ground emulation of the environmental space condition is essential to calibrate sensors and verify existing and in-development hardware, or attitude determination and control algorithms. A computationally automated Helmholtz cage can emulate the magnetic field experienced in orbit. This improvement can be used to dynamically calibrate low-cost magnetometers, test magnetorquer devices, and test attitude control algorithms. The Helmholtz cage magnet field simulation can be used in ground testing for the future use of the devices in space applications, as CubeSat payloads and sensors. This ground testing establishes a realistic baseline performance for the onboard computers to perform their tasks in space. Moreover, it allows for identifying potential failures or limitations not covered by virtual simulations or manufacturing conditions. This presentation shows the changes to the original cage, the hardware characterization challenges, and the improvements added. In this case, we started from an existing piece of hardware. Thus, extra work was required to understand the undocumented behavior of the cage. Then, we show the calibration method: we measured the magnetic field generated by each coil and corrected the generated current per coil, then we recorrected with the cage fully working to avoid mutual inductance. To cross-validate our results, we built a digital model that provides the theoretically generated magnetic field using the same input as the real one. Finally, we discuss current and possible device uses, as sensor calibration and characterization under generated scenarios and magnetorquer validation under a realistic magnetic field. In particular, we focus on the computing requirements and possible changes for future applications and tests. To emulate the magnetic field on orbit, we need to compute the state vector of the spacecraft for each point in the orbit, the match the position with a magnetic field model, finally we can add some syntactic signal to emulate a perturbation in the magnetic field to define the magnetic field vector to be generated in the Helmholtz. The final goal is to use this device to complete a hardware-in-the-loop simulation for attitude control algorithms.