I want to make an RFID module with LCD display, a relay and a reset button.
But when the relay should close, it remains open and the LCD turns off!
Wiring: * RFID MOSI: Pin 11 / ICSP-4 * RFID MISO: Pin 12 / ICSP-1 * RFID SCK: Pin 13 / ISCP-3 * RFID SS: Pin 10 * RFID RST: Pin 9 * LCD RS pin to digital pin 7 * LCD Enable pin to digital pin 6 * LCD D4 pin to digital pin 5 * LCD D5 pin to digital pin 4 * LCD D6 pin to digital pin 3 * LCD D7 pin to digital pin 2 * LCD R/W pin to ground * LCD VSS pin to ground * LCD VCC pin to 5V * 10K potentiometer: * ends to +5V and ground * wiper to LCD V0 pin (pin 3) * Relay Switch pin to digital pin 1 * Button between ground and digital pin 0
Please post your full sketch. If possible, you should always post code directly in the forum thread as text using code tags (</> button on the toolbar). This will make it easy for anyone to look at it, which will increase the likelihood of you getting help. If the sketch is longer than the forum will allow then it's OK to add it as an attachment. After clicking the "Reply" button, you will see an "Attachments and other settings" link.
Please always do an Auto Format (Tools > Auto Format in the Arduino IDE or Ctrl + B in the Arduino Web Editor) on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read.
When your code requires a library that's not included with the Arduino IDE please post a link (using the chain links icon on the toolbar to make it clickable) to where you downloaded that library from or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries in the Arduino IDE or Libraries > Library Manager in the Arduino Web Editor) then say so and state the full name of the library.
You need to provide deets of the relay, and say if it's a loose relay or part of a module (sounds like it's the latter, since you mention "relay switch pin"), and a schematic of the connections is always nice. The devil is, as always, in the details...