A question on the SX
I am coming here from the BASIC STAMP and want to use the SX chips instead (cost effectivenes).
I was looking at the SX starter kit on Parallax's store and saw that theres two SX chips included. Does this mean they are non-rewritable? How much EEPROM does the SX chip have?
Aside from chips, what is teh cheapest method of finding the distance between two robots? They are communicating via iR.
I was looking at the SX starter kit on Parallax's store and saw that theres two SX chips included. Does this mean they are non-rewritable? How much EEPROM does the SX chip have?
Aside from chips, what is teh cheapest method of finding the distance between two robots? They are communicating via iR.
Comments
The EEPROM, like all EEPROMs is rewritable.
The cheapest method of finding the distance between two robots is probably to use a tape measure.
You can use IR to measure distances, but it works better measuring the distance to large objects like walls or furniture, particularly for longer distances, on the order of several feet or more.
You can use ultrasound, like the PING))). This is not much different from IR in that it works better for larger objects, particularly when measuring longer distances.
The reasons for choosing one over the other is mostly a matter of the reflectivity of the objects. Some things reflect IR well. Some things reflect ultrasound well. Some things don't reflect either well and it's hard to measure distances to this sort of thing.
They're not cheap, but you could use a laser rangefinder and some kind of reflector on one robot to measure the distance provided that the robots are in direct line-of-sight of each other. The robot with the rangefinder could send a message to the other robot telling it how far away it was. It could even include the bearing using a digital compass for a reference.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There is a fine line between arrogance and confidence. Make sure you don't cross it...
·
Bean that's a great example, and I found the book you got it from. Read through it and got a good sense for the language. Wondering if you could give a snippet/example on sending a value similar to a TV remote through an infrared LED, and how this would be written RCTIME irPin, 1, time
Thanks
First two I get are
INVALID NUMBER OF PARAMETERS
irFrameTmr VAR Word @irTemp(0) ' IR frame timing
irKey VAR Word @irTemp(2) ' IR key code (7/12 bits)
Also does it keep sending codes on a loop or just once and its over?
When you take a moment to actually study the code you'll see that the TX_SIRCS and TX_SIRCS20 routines just send the SIRCS code once. The reason for this is that different devices have different requirements. For example, my Sony still camera remote sends five (20-bit) shutter commands in row to snap a picture. In an intervalometer program I wrote (see this month's issue of Nuts & Volts magazine) I duplicate that by calling TX_SIRCS20 from a loop.
There are lots of examples in the help file and my column in N&V for the last two years has been all SX/B -- you can find digital reprints online at Parallax.