Hi! Like many boys my son is obsessed with trains and has asked if we could build a train gate together (aka train crossing) in his room. I'm handy, so the bulk of the project won't be a problem, but I'm not sure how to wire the lights. I was thinking of purchasing the two of the lights from Ali express below, and I'm assuming I could use some 12V DC converter from some old piece of electronics as a power source. However, I'm not sure how to make the two lights alternate back and forth. Most of the wiring diagrams I've seen seem to be for very small projects or individual LEDs, so I"m not sure if they'd work. I appreciate your thoughts and suggestions.
https://www.aliexpress.com/item/2251832623667312.html?spm=a2g0o.cart.0.0.230d38daD9qcIy&mp=1
https://www.aliexpress.com/item/2251832623667312.html?spm=a2g0o.cart.0.0.230d38daD9qcIy&mp=1