Everything seem to be OKay, but not work normally. pls help!

I solved it all. thank you!

A lot of the wiring for the MFRC RFID chip seen on line is rubbish. Please post a schematic of your wiring for the whole project.

ah yes, do you have any idea for me to try? because the RFID reader can read UID correctly. please, help me to find any uncorrected or bug in code. many thank!

I thought that is what my last post indicated?

In order to understand any embedded code you need to see a schematic. Still if you don't actually want help,then there is nothing I can do.

If I not actually need to help, I will not try to find the way is here.
about the schematic that you tell me need to show. I don't have it, and I think it is easy to imagine.
anyway, thank you for your time.

It might be easy to imagine a working one, but not the one you have. Which I have to remind you doesn't work.

Good luck on other forums, believe it or not this is a very friendly one.

Mr. @Grumpy_Mike is correct.

In order to help you, we first need to understand the project.

And to understand the project well, we need to understand the code, the schematic,
pictures of the wiring, which Arduino is used and everything else that can be used in the project.

Since the problem with your project may be in a small detail,
and you posted the code, it is important that we understand the schematic used.

Assuming that we can imagine the schematic used, with our experience, we will certainly imagine a correct schematic.

But it seems that this is not the case with your project.

If you read the topic

"How to get the best out of this forum", when you register on the forum, you will find a paragraph that says:

" [Schematics or circuit diagrams](How to get the best out of this forum diagrams) The language of electronics is a schematic or circuit diagram. Long descriptions of what is connected to what are generally useless. like to try either Eagle or KiCad .
More about creating a schematic of your project including how to upload an image. "

I know you are right. ok, I will try to make schematic about my project to show. thank you, and I will be back ASAP.


this is my wired.
sympathize with me, if it is not good or wrong of you think. but exactly what I do.

We really need to see a link for your relay board and RFID module.

I'd suggest you write a simple code to exercise the relays as they may cause issues when switching.
Also another simple code to read the rfid module and display the result.

If by web go this way, it's comments.
If you remove the comments (//), it won't compile.

Your pseudo schematic does not show the RTC connection.

I built your project here but without the relay module, and it seems to work correctly.

I don't know if the logic of the message sequence is the same as your project, but I'll post a copy here.

BTW, since the comments and messages in your code were in your native language, I had a lot of work translating them.

Next time you post, remember to put the comments and messages in the language of the category you're posting in.

Copy of the serial printout... So what doesn't work?

Server started
New client connected
New client connected
New client connected

Here via web

Headlights on
Unlocked
New client connected
car key off


Heree using may RFID tag

NUID tag is:  46 F8 1F 7E
Headlights on
Unlocked
NUID tag is:  46 F8 1F 7E
Locked

because I turn off the RUN button on web server. but if I scan the right RFID card, it will not play handle RUN.

void handleRUN() {
    digitalWrite(signal,LOW);
    delay(500);
    digitalWrite(signal,HIGH);
    delay(500);    
    digitalWrite(signal,LOW);
    delay(500);
    digitalWrite(signal,HIGH);
    delay(500);

I mean this code is not work.

ok