Closed owntheweb closed 5 months ago
Update: If I unplug 3.3v from the pn532, repower and start the script, I'm able to get a reading!:
Add:
print("Found chip PN5 {:#x} Firmware ver. {:d}.{:d}".format((versiondata >> 24) & 0xFF, (versiondata >> 16) & 0xFF,
(versiondata >> 8) & 0xFF))
Output 🤩:
Found chip PN5 0x32 Firmware ver. 1.6
With that, I wonder if something is happening as I'm powering up the Pi and starting Raspberry Pi OS (I removed the desktop option in raspi-config). Maybe there's a way to restart this thing on script start? I'll keep digging and will get to the logic asap (pinging friends, I bet someone has one of these already).
Update: Hmm. This is starting to feel intermittent (re-running without messing with wires over and over giving mixed results). I think I'm starting to understand need to learn the logic analyzer. I'll keep digging.
The HSU option is working great for me with the same dedicated 3.3v supply. With that, I'll close this ticket so not to burn too much time. Regardless, if you would like assist once I get logic analyzers figured out (high on my list), please let me know!
Thank you for making my little one's RFID boombox possible. ❤️ I'll send a note once it is finished.
Ok, if you do decide to debug i2c with the logic analyzer go ahead and post the traces and I'll take a look. Your comments about the pn532 and the rpi sharing a power supply echo similar issues seen by others. Originally I suspected current draw limitations but now I am wondering if there is some signal noise or power spikes causing issues.
What happened?
Hello! Thanks for putting this together! Please be patient while I learn how to use a logic analyzer. I'll get started on this today. Feel free to close this ticket if I take too long. I want to get you all the info I can.
===
I'm seeing a familiar issue to other closed issues:
I think the major difference is that I'm using a dedicated 3.3v power source: a 5V battery and/or (trying both) USB power plug stepped down with this buck module.
Let me see what I can do to fill in the logic analyzer data you seek. Thanks again in advance!
Reproducibility
Always (100% of runs)
Steps to Reproduce
sudo i2cd2tector -y 1
. See pn532 listed at 0x48.pip install pn532pi
.python helpMeRhondaHelpHelpMeRhonda.py
.Code to reproduce
Host Controller
Raspberry Pi 2 W
Python Version
Python 3.9.2
Interface Mode
I2C
Power Supply
USB 5V USB battery -> AMS1117-3.3 DC 4.75-12 to 3.3V buck
Logic Traces and other details
COMING SOON!