Hi and apologies for my stupidity. I am trying to turn on and off a 12 volt bulb and need to do this with the arduino port, i have no problem with the code side but cant figure out how to do the electronics, any help will be appreciated. Many thanks
The Arduino itself (the processor) don't work with 12V. So, you must help it with a little of electronics. You can use a relay, or you can use a transistor:
relay
transistor
You need to connect one or the other circuit to 12V. You need too to know what is the current that the bulb sinks from the source (especially to the transistor circuit).