Hmm, i thought it was straightforward after figuring out that grounding would do the trick, but thinking about it, how can i use an arduino to ground the lamp. I guess i would have to use a relay or something similar to connect it to ground?
Along with a relay, as mentioned above, you have to have tons of resistance. Relays screw with voltage a lot. The lack of resistance can damage an Arduino easily. I sound stupid saying this, but trust me. A lot of people damage their Arduinos when using relay because they just don't have enough resistance. Take the time to find out how powerful of a resistor you need.My school friend just fried an Arduino Mega today in school because he had a relay but didn't have enough resistance. Stay safe.