I have a solenoid valve that works with 5v and 800ma I want to control it with atmega328p 3.3v and "IRLML2502" if not propose a name of another "mosfet"
Yes, that MOSFET will work with as little as 2.5V gate drive if you look in the datasheet. You must use a
freewheel diode when switching an inductive load like a solenoid, note, otherwise you'll immediately blow
up the MOSFET and ATmega328P...
You have a suitable 5V supply? Then it connects to solenoid, diode across the solenoid (cathode to 5V),
low side of solenoid to MOSFET drain, MOSFET source to ground.
thanks for help have a nice day