Arduino code for the dynamic obstacles in the Grand Prix 2024.
The obstacles consisted of a lowered/raised stop-sign gate, as well as a T intersection with two gates and an arrow pointing to which gate was currently open. The obstacles were wired like so:

