Basic Stamp Application?
bkirk
Posts: 37
This might sound crazy, but does anyone know if there is an application that you can run on a PC which will process PBASIC code like a Basic Stamp would? Essentially, I want to run a basic program on my PC, and have my PC act like a Basic Stamp in lieu of an actual Basic Stamp.
Comments
The reason I ask is that I'm trying to make my Basic Stamp Mobo wireless. I have to use a transceiver in the MHz range and with the ability to utilize a really good error checking protocol to ensure clean transmission of the information. Because of this, the Xbee's won't work (mostly because of the GHz range, and also because the X-CTU does not appear to error check), so I've chosen to use the Parallax 433 MHz transceivers. The Parallax transceivers come with a really good example error checking protocol I can use as a base, but I have to have 2 basic stamp microcontrollers to use it (or the VSM program). Hyperterminal is practically worthless, at least with my very limited understanding of how this stuff works. Since I just want the data from my Mobo to go into my PC, it appears I may have to just purchase another Mobo, which will be my PC-Mobo, and debug the communications from my PC-Mobo into my computer via the mini-USB.
Does that make sense? Or do you have any insight you can offer? Thanks!
Ben
The error checking on the XBee module is going to be much better and much much much less work than trying to build it from scratch on a Stamp.
Regarding the Xbees Mike, I was using the 2.4GHz Xbees previously, I still have 2 of them now actually, but I received considerable interference when I attempted to use them with the X-CTU. Maybe I didn't have my code on the Mobo side written the best to prevent errors, though. I didn't work with them much after I realized they wouldn't penetrate water.
Thanks for your help!
Have a look at this article on underwater communications.
Do you think 433 MHz is low enough for say, 20ft depth in freshwater? I seem to gather it does from the article. I've also been in touch with an amateur RC submarine builder and he seemed to think 433 MHz was low enough for those conditions.
Special effects guru Rick Galinson showed off videos of his remote controlled submarine at the Parallax UPEW. I don't recall what frequency he was using, but then again, I don't think he was shooting for depths.
In reading the article noted by Mike, I am unable to use the attenuation formula Mr. Bulter describes because he does not provide details on computing the conductivity in mhos/meter. He notes that you use TDS, and his sample water has a TDS of 300 mg/liter, however he jumps to a conductivity of 0.0546 mhos/meter without describing how he made the computation. I was able to locate TDS information for the body of water I'm working in, but without knowing how to compute conductivity (or at least how he computed it) I cannot determine attenuation.
The closest resource I could find was this website: http://www.lenntech.com/calculators/conductivity/tds_engels.htm which has a conductivity calculator. Using this calculator, however, I get a conductivity value much lower than what Mr. Bulter's 300 mg/liter to 0.0546 mhos/meter would suggest is accurate. I thought the discrepancy was from the fact that the conductivity calculator was inputting TDS values at ppm rather than mg/liter, however, from further research into conversion charts (see, http://www.unitconversion.org/unit_converter/concentration-solution.html) I found the difference should only be a small fraction. For example, 300 mg/liter is equal to 300.3426909 in ppm. If this is true, then I can properly use the attenuation formula in Mr. Butler's article, however, his calculations are incorrect. The conductivity of his water sample is not 0.0546 mhos/meter, but is instead 0.00000469 mhos/meter. This would greatly reduce the attenuation value he described, and support the inference that a 1.8 MHz signal would have far less attenuation in his sample of fresh water than 5.4 dB.
If anyone knows more about TDS mg/liter vs. TDS ppm and computing conductivity in mhos/meter, it would be very helpful to either confirm or correct my conclusions.
Thank you!
Ben