So I tried to migrate from the Notecarrier AF to the Notecarrier F. I moved the notecard and Swan over to the Notecarrier F and now it seems that the Swan is not able to communicate with the Notecard at all. I will start digging around but any thoughts welcome.
Do you have a document describing the differences between the Notecarrier AF and the Notecarrier F ? For example on the AF when you powered the boards via the USB of the Swan (during development) and would reset the Swan it would reset the Notecard. This no longer seems to be the case with the F. I was under the impression the F would be a drop in replacement to the AF but it does not seem to be the case.
Additionally the I2C communication does not work. I will swap out the Notecarrrier F for another to see if maybe its defective.
I don’t understand how you’re powering the device. It has no battery or wires connected to your terminal blocks.
Can you hook it up, so that it looks like it does when it’s failing?
Also, it looks like you are leveraging the ATTN pin to power on/off the Swan, is that intentional? I know it’s a silly question, but it’s hard to say without seeing the firmware.
Thanks,
Zak
P.S. Just a random aside, but where did you get those 0.1" terminal blocks - can you share the link? They look awesome! I have never seen them, and all my terminal blocks are too big.
So with the Notecarrier AF and during development I power the system via the USB of the Swan which simplifies the Dev process. In production its powered via a Lipo cell from the Battery JST connector.
With the Notecarrier F I have tried both of the above and the combination of the above and it makes no difference.
Using the ATTN pin for turning the Swan on/off is from the notecard is intentional; only with the AF I had to solder a wire between the pins which is not required anymore with the F.
Here is a picture of the AF setup I had and now the F. As you can see I had to do some frankenstien mods to get the AF to do what hopefully the F will do without the mods.
After a cursory glance, that all looks to be correct.
Just to confirm, you are stating the Swan and the Notecard are not communicating correctly, before plugging in the external sensor on the Qwiic ports, correct?
So it seems it was an issue with the Swan board itself. This was a new Swan I pulled out of its pakaging so was not expecting that one. I grabbed another one and it works now. I will do some power measurements now to see what the sleep current looks like.
Seems like every once in a while after several resets it may work but its extremely flakey.
Here you see it fail the first time and then after I hit the reset button on the Swan it works.
setup
notecard not responding
notecard not responding
notecard not responding
notecard not responding
calling hub.set
notecard not responding
notecard not responding
notecard not responding
notecard not responding
response null for env.get
notecard not responding
response null for env.get
wind sample count : 60
sleep time in seconds : 840
notecard not responding
setup done
I was able to reproduce this issue with the Swan v1.5 (still researching), but not the Swan v1.7.
I believe the failures you are seeing with the Swan v1.7 stem from where you are powering your device.
If you power the device from the USB connector labelled NOTECARD USB, then everything should work. If you are attempting to power the device via the Swan’s USB connector, then you will experience the I2C failures you are seeing.
The Notecarrier-F was reworked to support the ultra low-power mode of the Notecard, and it will disconnect the I2C lines when the ATTN pin is LOW. Disconnecting the I2C lines prevents the pull-ups on the Swan’s I2C from slowly draining battery.
Can you confirm you are powering the Notecarrier-F via the NOTECARD USB port?
I have the same problem with the Notecarrier F and the Adafruit Feather RP2040. That is, I can not get the feather to recognize the notecarrier. When I configure i2c = busio.I2C(board.SCL, board.SDA) and do i2c.try_lock() and i2c.scan, the result is empty, an empty list.
This is no matter if I power it by the notecarrier or the feather, whether or not ATTN is on or not.
Any thoughts?