Xbee3 TA12-200

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
shaarkrat
Posts: 1
Joined: Thu Mar 26, 2020 8:52 am

Xbee3 TA12-200

Post by shaarkrat » Thu Mar 26, 2020 8:59 am

Hello!

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?

Thanks
Shaarkrat

Online
User avatar
jimmo
Posts: 1435
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Xbee3 TA12-200

Post by jimmo » Thu Mar 26, 2020 9:25 am

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).

Post Reply