USB>Xbee
T Chap
Posts: 4,223
Hey how would you guys get from USB to Xbee? Is the FTDI chip the route to look into? Ideally, I want to get from OSX and PC to the Xbee. Both directions preferred, but at least Tx from the computers to the Xbee is required.
Second, what is the simplest easiest way to write apps for the PC and OSX to send out simple strings? I have heard that Visual Basic is good. For OSX I am clueless. I want a simple app with graphics, a few buttons that can be programmed like using any micro, for example:
Press an up button on the app, the button has a counter that it updates, sends out the new count to the Xbee. PRess down button, the counter decrements, sends out the new value. This happens for around 8 buttons. Ideally, the Xbee on the Rx side sends back a confirmation. If the app doesn't get the confirmation in X time, Resend until confirmed.
The concept is a box that sits within USB cable distance from the computer, the computer s controlling motors in other places via Xbee. The motor gets byte %00001111 for example, moves stepper 1 to x position.
Post Edited (originator99) : 10/18/2006 7:25:33 PM GMT
Second, what is the simplest easiest way to write apps for the PC and OSX to send out simple strings? I have heard that Visual Basic is good. For OSX I am clueless. I want a simple app with graphics, a few buttons that can be programmed like using any micro, for example:
Press an up button on the app, the button has a counter that it updates, sends out the new count to the Xbee. PRess down button, the counter decrements, sends out the new value. This happens for around 8 buttons. Ideally, the Xbee on the Rx side sends back a confirmation. If the app doesn't get the confirmation in X time, Resend until confirmed.
The concept is a box that sits within USB cable distance from the computer, the computer s controlling motors in other places via Xbee. The motor gets byte %00001111 for example, moves stepper 1 to x position.
Post Edited (originator99) : 10/18/2006 7:25:33 PM GMT
Comments
Since the USB2SER presents as a serial port, any method for communicating to a serial port can be used on the PC (VB, Delphi, C#, QBASIC, HyperTerm, etc...)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
I am refining what needs to happen with the app, maybe I am looking for what the other B poster is wanting as well:
A graphic representation of a slick interface. This will be a jpg generated by a Photohop guy. I want to generate mousedown versions of the 10 or so buttons, much like in Flash, push the button and it becomes a "pushed in" version graphically. This stuff is simple. What I need to decide is the simple way to assign the buttons to a program residing in OS X and maybe even PC, but first o all OS X. All buttons affect variables, and the values of the variables are constantly sent to the USB/ser/XbeePro, redeived somewhere else by the Xbee/Propeller, and the bytes rec'd tell the Propeller to send one or al of 4 or 5 steppers where to go.
Second, as an optional choice for moving the motors, I want to be able to drag an icon in X and Y, wherever it lands sends out a bytes of the position, say the string is this, X := %00011111 Y := %11110000 or whatever. There are other motors to dial in, but these are the onces for drag and placed, the other are fne tune with buttons.
Thee need to be presets to store various positions, that can be named, and scrolled through for recall. I want to save the main file which can contain hundreds of presets.
The X is the object to drag around.
So that is the idea, what software to do it with with the least curve, but nice look for public consumption is what I need to find out. I am studying the Excel Visual Basic that I just learned in is my OS X Excel, although the com maybe not be as simple as MSCOMM, which I just put on, but OS X will not recognize as a file.
*Just looking through Excel, noticed the Real Basic editor. Although it isn't loaded, looking at the RealBasic.com it sure seems a lot more intuitiove or my purposes, also, the app is claimed to be cross platform, create your app for PC, MAC, Linux.
Post Edited (originator99) : 10/19/2006 8:10:27 PM GMT
I havbe been chatting with a real Basic guru, he sent me a realBasic serial test app, so it is simple to get from RB to usb>ser after all.
I have the Parallax usb2ser adapter. I have a Propstick, SX28's, SXbltz, BS2p40 with demo board. I am at a loss for how to get the adapter into anything for test purposes. I want to test sending some bytes from the RB tutorials to the adapter.
I already have some SX serialin test programs, some Spin stuff is easy too. The Stamp p40 would be nicer since I can debug on the PC what is rec'd. I don't see a serial in example for the Stamp though. Thanks
Post Edited (originator99) : 10/20/2006 5:23:00 AM GMT
Post Edited (originator99) : 10/20/2006 11:12:22 AM GMT
Post Edited (originator99) : 10/22/2006 6:26:21 AM GMT