You might want to consider using a power Mosfet to switch on your light bulb like the one in the link below. They even reference switching on a car headlight with a 5v micro controller.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
You might want to consider using a power Mosfet to switch on your light bulb like the one in the link below. They even reference switching on a car headlight with a 5v micro controller.
https://www.sparkfun.com/products/10213
Sparkfun sells a couple of breakout boards to switch loads using Mosfets.
https://www.sparkfun.com/products/11214
https://www.sparkfun.com/products/10256
p.s. I am not connected to this Sparkfun in any way other than being a customer.
If you want to control AC loads solid state relays seem to be simpler to interface with a microcontroller