# Arduino + XBEE + ConnectPort ???

**URL:** <https://forums.digi.com/t/arduino-xbee-connectport/12099>\
**Category:** Python\
**Tags:** idigi, arduino, python, \-, xbee\
**Created:** [October 28, 2013, 2:38am UTC](https://forums.digi.com/t/arduino-xbee-connectport/12099 "2013-10-28T02:38:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajadsjames](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@ajadsjames](https://forums.digi.com/u/ajadsjames)\
**Post date:** [October 28, 2013, 2:38am UTC](https://forums.digi.com/t/arduino-xbee-connectport/12099/1 "2013-10-28T02:38:45Z")

</div>

I’m trying to operate a stepper motor using an Arduino. The Arduino is connected with a XBEE, and works fine locally (using another XBEE and XCTU on my computer).

However, I’m not sure how to communicate with the same XBEE and Arduino using the ConnectPort.  
Based on what I found online, I need a python script but besides that I’m lost with questions such as:  
How to upload, and trigger the python code from ConnectPort to Xbee? Perhaps a webpage with a button to operate the motor? I’m not sure how to do that!!

Since my only goal is to operate that stepper motor in clockwise and anticlockwise direction, I only need ConnectPort to send a number ‘1’ (clockwise) and ‘2’ (anticlockwise) to operate the motor.  
Please advise on how can I achieve this via a web interface (ConnectPort).  
Any type of help would be greatly appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![kjensen8](https://avatars.discourse-cdn.com/v4/letter/k/8e8cbc/32.png) [@kjensen8](https://forums.digi.com/u/kjensen8)\
**Post date:** [October 30, 2013, 5:29pm UTC](https://forums.digi.com/t/arduino-xbee-connectport/12099/2 "2013-10-30T17:29:08Z")

</div>

ajadsjames,

Since your replacing your PC Xbee with a gateway, part of your solution will likely involve a python app running on the gateway to handle the commands between your PC and the arduino:  
[http://www.digi.com/wiki/developer/index.php/Xbee\_transport](http://www.digi.com/wiki/developer/index.php/Xbee_transport)

---

<div class="post-metadata">

**Author:** ![chandras002](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@chandras002](https://forums.digi.com/u/chandras002)\
**Post date:** [November 1, 2013, 9:04am UTC](https://forums.digi.com/t/arduino-xbee-connectport/12099/3 "2013-11-01T09:04:48Z")

</div>

Hi James,

[size=1]I am also trying to find answer similar problem. I have connect port X2e. If you do not use Python. (are you using Digi Python ESP? ).

Here is the link, which may useful to you… It based on XIG and PHP application.

[http://examples.digi.com/internet/controlling-a-lamp-from-the-internet-with-device-cloud/](http://examples.digi.com/internet/controlling-a-lamp-from-the-internet-with-device-cloud/)

With regards,  
Chandra

---

<div class="post-metadata">

**Author:** ![romanoprodi](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@romanoprodi](https://forums.digi.com/u/romanoprodi)\
**Post date:** [November 4, 2013, 8:04am UTC](https://forums.digi.com/t/arduino-xbee-connectport/12099/4 "2013-11-04T08:04:42Z")

</div>

Thanks for sharing useful information.
