There are no TIP120 transistors available however in our local electronic shops, only TIP122. Is it possible to make a voltage regulator counterpart of TIP120 using TIP122? If so what other components do I have to change?
The ancient TIP12x series should be avoided for use at 12 volts due to the high voltage drop of a Darlington. Might get away with it at 24 volts but they’re not so good at lower voltages. Your best choice is a mosfet but not per that blog, lots of bad information there, like the choice of IRFZ44. The Internet is full of crap and you’ve found a good example of it.
What are the specs of your solenoid (current required) and which Arduino?
fadlawan:
There are no TIP120 transistors available however in our local electronic shops, only TIP122. Is it possible to make a voltage regulator counterpart of TIP120 using TIP122? If so what other components do I have to change?
According to the datasheet, which you should read, the only difference is the CE breakdown voltage; so the substitution is okay.
Just make sure that the solenoid pick-up voltage is low enough that the saturation voltage won't be an issue.