Dark sensor - need 500mA output
Here's a "corrected" version of your original circuit, using a 30A-rated MOSFET with Vgs(th)=2.0V and a max Rds(on) of 31m(ohm) @ 4.5Vgs when passing 18A of current (according to the charts, average Rds(on) for ~4Vgs should be under 30m(ohm) when passing only 450mA)

Notice that R4 is a varistor...obviously this wouldn't be necessary in a finished design, but when experimenting with LED drivers, I find it best to use a variable series-resistor until I get everything working right. Then, it's a simple matter to measure the resistance of the "working" setting on the varistor &amp; replace with a near-value fixed resistor in "production models."







simulate this circuit &ndash; Schematic created using CircuitLab

-- -- -- EDIT -- -- --

Here's an idea for a circuit I personally would use preferentially to the one above; though its a somewhat different topography than you're using:







simulate this circuit

In this circuit, when the resistance of LDR1 falls below the resistance of R2 (choose an R2 value for whatever "trigger point" resistance of LDR1 you want to switch at), the LM393 comparator's output will quickly transition from high-to-low; then when the resistance of LDR1 increases above that of R2, the comparator output will quickly transition from low-to-high.

The key advantages here are:


The comparator transitions quickly, eliminating the "gray area" where the LEDs would be partially energized, but ineffective &amp; simply wasting energy (as well as the MOSFET being in a linear region &amp; heating up with higher dissipated energy itself)
The comparator adds some hysteresis into the circuit, reducing the transitioning (flashing, or gray-area) that can often occur when light levels are very near the trigger point of a similar circuit that doesn't have enough hysteresis.