Trouble reading analog Input from Arduino Shield using XBee3 Module

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Dyrestium
Posts: 4
Joined: Fri Jun 07, 2019 4:30 pm

Trouble reading analog Input from Arduino Shield using XBee3 Module

Post by Dyrestium » Sun Jun 09, 2019 1:06 pm

Hello Forum,

i'm using Micropython installed on my XBee3 ZigBee module (https://www.sparkfun.com/products/15129).
The Module is plugged into an Arduino Uno Shield and i want to put the output Pins of an analog Heart-Beat-sensor into that shield and read the incoming data from the XBee3 with micropython.

Check out the link to see the Setup: https://imgur.com/a/r3bqDjW

So far, i only found documentation about how to access the Pins directly attached to the module (https://www.digi.com/resources/document ... /90001539/).

But how can i access the Pins on the Arduino Shield?

Any hint of how i could achieve that is highly appreciated!
Last edited by Dyrestium on Sun Jun 09, 2019 5:19 pm, edited 2 times in total.

Dyrestium
Posts: 4
Joined: Fri Jun 07, 2019 4:30 pm

Re: Trouble reading analog Input from Arduino Shield using XBee3 Module

Post by Dyrestium » Mon Jun 10, 2019 2:11 pm

Please help guys..


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

Re: Trouble reading analog Input from Arduino Shield using XBee3 Module

Post by jimmo » Thu Jun 13, 2019 1:28 pm

This page lists all the pins that are available -- https://www.digi.com/resources/document ... e%7C_____9

The xbee itself doesn't know anything about what you connect the xbee pins to, so it won't know anything about your arduino shield. But it should be possible to figure out how the funduino board is connected -- i.e. see which arduino pin each xbee pin physically connects to (either by looking at the traces on the board, or using a multimeter in beep-connectivity mode).

That said, this may not actually be possible with the fundunio board you have (unfortunately I don't seem to be able to find anything about it). Historically (before micropython), the way you communicated with an xbee was over the UART and their AT commands (or the more complicated but more flexible API mode, also on the UART). So it's possible that the funduino board only connects the TX/RX pins to the Arduino pins and everything else on the shield is just pass-through from the arduino below to any shield that you connect above it. I think this is very likely.

But -- there appears to be an unpoulated row of pins directly either side of where the xbee sits -- i bet these are connected to the xbee pins. So wire up to them instead of the arduino pins. Or if you actually plan to connect this to an Arduino, then just use a jumper wire to connect them to the arduino pins.

And then of course you can just use machine.Pin.board.Px (look up the datasheet to see which pin is which) on the xbee module.

This has nothing to do with your question but gee I wish the XBee 3 modules had existed when I was last doing Zigbee stuff... (I used the S2B and S2C modules) :)

What are you using the modules for BTW -- if it's home automation stuff (i.e. Philips Hue / other zigbee lighting etc) then I can send you a bunch of useful stuff.

Post Reply