Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensor doesn't read tag #267

Open
abdullahvenom21 opened this issue Jul 12, 2024 · 5 comments
Open

Sensor doesn't read tag #267

abdullahvenom21 opened this issue Jul 12, 2024 · 5 comments

Comments

@abdullahvenom21
Copy link

I build the tag and in home assistant it reacts to clean tag,cancel tag,write random tag but does not react to any card when tapped against the tag module i tried with the tags that came with and also with a credit card but it does not respond to any card and at same time my phone picks up the cardsimage

@tim-vk
Copy link

tim-vk commented Jul 30, 2024

Sorry for highjacking the post but I have exactly the same issue (but maybe a different cause). But lets run through the checklist together (it hasn't helped me (yet) but maybe you're an excellent rubber duck ;) ).

wires:

  • SCL to pin D1 - check
  • SDA to pin D2 - check
  • buzzer to D7 - check
  • Led to D8 -> missing for you but shouldn't matter

switches:
switch 1: ON - check
switch 2: OFF - check

Firmware on device: Go to homeassistant & check if the tagreader is there.

Power on behavior:

  • buzzer should beep
  • power LED on the reader
  • LED will shortly blink

Tags:

  • Does it work with something else? (e.g. phone?) - check

Check serial logs:

Connect to the device & check the logs on boot. In my case it says:

[14:23:17][C][pn532:431]: PN532:
[14:23:17][C][pn532:443]:   Update Interval: 1.0s
[14:23:17][C][pn532_i2c:125]:   Address: 0x24
[14:23:17][E][component:082]:   Component pn532 is marked FAILED

Which is a bummer since that (for me) is the reason it won't read/write. The solutions I can find is make sure the switches are correct (which i think they are) but maybe there are other possible causes for this.

Lemme know if this helps you or if you have some additions.

EDIT:

JOOOOO So i just re-checked all the soldering joints & apparently my D1 wasn't rock solid. re-soldered it and it's working fine. So my reccomendation would be: check your solder joints!

@abdullahvenom21
Copy link
Author

Thank you for the help and i have the led but as the system is not working yet so i figured i will add them when the system works.
Right now i am making virtal home assitant on my pc and ill try to get the versions recomended for the tag reader i hope it works
And this is my first ever esp home project ill try my best to be rubber duck.

@tim-vk
Copy link

tim-vk commented Jul 30, 2024

Ah, well then lets start at the beginning: Did you get esphome installed on the tag reader?

@abdullahvenom21
Copy link
Author

Yes! I guess so,
I copied the file in the tag reader article on github and pasted it while editing the tag reader file.
Then i flashed my D1-mini with the same file with no changes.
Then the D1-mini created its own hotspot and connected the device to my home internet from there.
Then i connected the device to my home assistant server via cable
It started showing on the esp home dashboard.
Then i got the api key from the esp home dashboard and found D1-mini's ip address from my roter.
Then i connected the D1-mini to my home assistant server via the esp hone integration.
Then it only dives me option to:

  • cancel Tag
  • write tag
  • another option
    I don't really remember it also gave me a restart button on home assistant dashboard the buzzer works when ever i change the tag to canel tag or write tag but never works when i bring a tag near but it should work😓

@tim-vk
Copy link

tim-vk commented Jul 30, 2024

Awesome!

So If you enter the IP of your device you should be able to see the logging somewhere. Check the log & restart the device. If you can copy all the logging it writes when booting here that should be a good help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants