i'm a new bee and trying a DIY project with DC solenoids.
I'm having some basic (i hope so) with powering this solenoid - please let can you me know what is wrong with my attempt.
- Solenoid is : 12v 540mA DC (normally closed)
- Power Source : 12v 23A Alkaline
- Diode : IN4007
I have tried the approaches described below and in both approaches, Solenoid was not moved !
i have tried this solenoid on a commercial product and it works just fine. And battery is tested with a multimeter and it is working independently BUT not in my circuit. so, i don't understand what i'm doing wrong here - any help is much appreciated.
Directly power solenoid with diode (see image 1). I have also tried as explained here Can i use 12 v solenoid valve directly connect with the 12 v battery?. But mine did not work :(

Use arduino uno board to drive solenoid (see image2) - i have connected DC converter (12v 1A) as power source plugged into Arduino board
int solenoidPin = 4; //This is the output pin on the Arduino
void setup()
{
pinMode(solenoidPin, OUTPUT); //Sets that pin as an output
}
void loop()
{
digitalWrite(solenoidPin, HIGH); //Switch Solenoid ON
delay(1000); //Wait 1 Second
digitalWrite(solenoidPin, LOW); //Switch Solenoid OFF
delay(1000); //Wait 1 Second
}
Here is image of Solenoid and Battery:


