Page 1 of 1

Xbee3 TA12-200

Posted: Thu Mar 26, 2020 8:59 am
by shaarkrat

I bought a current sensor for my xbee3. The only documentation i found is for arduino or Raspberry PI.

How can i make it work with my xbee3?


Re: Xbee3 TA12-200

Posted: Thu Mar 26, 2020 9:25 am
by jimmo
It's a current transformer. Are you using the Grove module that seems to be fairly popular?

You should be able to adapt the Arduino or Raspberry Pi code to XBee MicroPython - just substitute analogRead for using machine.ADC instead.

You'll need to look at the Digi MicroPython guide (document number 90002219.pdf) which has the full reference for how to use machine.ADC.

(Digi have their own MicroPython fork that hasn't been upstreamed (I'm not even sure if the code is released at all?)... I don't know very much about it, but looking at that document it seems like it should do everything you need).