I have a PiicoDev RFID board on the same i2c bus as a couple of PiicoDev servo controllers. The controllers are currently [0,0] and [1,0]. How should I identify the RFID board which does not have id address pins?
Thanks
Toni
I have a PiicoDev RFID board on the same i2c bus as a couple of PiicoDev servo controllers. The controllers are currently [0,0] and [1,0]. How should I identify the RFID board which does not have id address pins?
Thanks
Toni
Hi Toni
I think you could run an I2C scan. That will give you the hex addresses of everything connected
Cheers Bob
Hey there, @Toni135859,
Those ID pins aren’t tied to the values [0,0] and [1,0], but rather selecting from a list of I2C addresses.
For instance, those PiicoDev Servo Controllers, have an address range of 0x44 (default) → 0x47. Because those keys operate on binary, your [0,0] is set to 0 and so has the address 0x44, while the other, [1,0], is actually set at 2, which means it will have the address 0x46.
The PiicoDev RFID Controllers have a range of 0x2C to 0x2F. If you don’t select anything, it will default to 0x2C so it will be completely outside the range Servo Controllers anyway.
Sorry Jane wrong choice of words ‘pins’ should have read asw settings.
The i2c address for the RFID controller is showing up as 0x2c ie 44 decimal so you are advising that this shouldn’t clash with the two servo controllers?? Time to look for something else.
I’ll start by checking the long i2c cable which I bought from Core recently. (Incidentally one of the four purchased didn’t work so I successfully replaced it with one of the others that came with the same order).
Thanks
Toni
Hey, Toni, that’s ok, I was a little confused by the context and just trying to provide helpful advice as best I could.
As long as you’re using the PiicoDev devices I linked to than there should not be any clash.
May I ask what the specific problem you’re having is?
Incidentally, if one of the devices isn’t working, it’s definitely worthwhile messaging the support team at support@coreelectronics.com.au with photos of the front, back, and the wiring to see if it can be fixed / replaced.
Hi Jane.
All good now thank you.
Just for background I’m using (or attempting to) the rfid to identify locos on a model rail layout so that I know which specific one is, at any time on which piece of track. The code I’ve written sits in a pico connected with MQTT to a RPi. It integrates with a program called JMRI . ![]()
Cheers
Toni