Basic stamp networking

If I network 2 or more basic stamps together, for example to use my old bs2 as a slave with my bs2p as the master. Will this in effect, provide me with more overall processing power if I simply use the slave to process and send the results for a couple sensors to my master bs2p?Has anyone network basic stamps together for this purpose. Some of us just upgraded to a bs2p and although the Propeller is great!, I do not wish to invest in a new processer and board at this time but would like to get the best out of what I have now.Jim

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • I am not completely knowledgeable about the available peripherals are available for Stamps and how much CPU power they each consume. Here are some general communication preferences I have for most of my embedded processor projects.
    If you wish to have one master and all the other processors as slaves then usually SPI is a good choice. The signal count is somewhat low, with Din Dout and Clk to all the devices plus a chip select for each of the slaves. I tend to like SPI because it is very fast, usually close to the processor's clock speed. It is also very easy to debug on an oscilloscope compared to some of the 2 wire communication protocols. When things go really bad you can usually get aways with manually bit-banging the protocol to try and debug. There is no need to deal with a communication addressing scheme since you handle that in hardware with the CS signals.
    One under-rated multi-drop communication protocol is RS-485. This can be implemented by using a RS-485 driver IC on a standard UART instead of the RS-232 driver you usually use for serial. I believe up to 32 devices can be networked on this 2(half-duplex) or 4(full) wire bus. The signals are also rated for wire lengths greater then 1 Kilometer and can be as fast as 10Mb/s at shorter lengths. The problem here is that you will need to come up with your own addressing scheme between the master and slave devices.
    Another good one is I2C and this only requires that all the processors be connected on the same 2 wire bus. This is slower then SPI, usually between 100KHz-400KHz, and also can be tricky to configure if there is no available driver. The configuration will need to differ between your slaves and master device. Most processors will now also support multi-mode I2C. This is really neat because it allows all the devices to act as master devices and then they will switch back to slave mode when they are idle on the bus. The addressing scheme is also built into the I2C peripheral so there is no additional coding required.
    The CAN protocol has a lot of features that might be necessary if you are want to assign priorities to different sensors but it is overkill and probably not available on Stamps. Cars use these networks so crash sensors can take priority and quickly deploy airbags. CAN is available for most low end processor families now.

    This is my first visit to this site and I am absolutely amazed that these UAV projects are all possible on the Stamp processor. The BASIC Stamp is a great teaching tool for embedded systems and also can be used for easily designing a simple control project but UAVs?!? I do not at all intend to insult anyone here and I am truly impressed with your projects. It just seems like most of you have mastered all the Stamp has to offer for processing power and could definitely benefit from switching to a higher performance part. What is they big attraction that pulls all hobbiests to the BASIC Stamp? I am not trying to criticize or mock their product or your design choice. I see this same situation on hobbiest's projects all over the web and I just do not really understand why? I have not dug into the Propeller chip but it looks like a pretty neat part and dwarfs the Stamp for processing power. There are huge advances in embedded computing technologies that are being overlooked by such a large portion of the "part-time" embedded designer community.

    Why not choose a product you can develop in C instead of the proprietary languages offered by Parallax. I am an Embedded Engineer so my opinions might be skewed but I think embedded C is not a huge jump in programming skill compared to BASIC used by Stamps. Writing C applications for a PC is a whole different story but embedded apps can be very simple. Once you get used to embedded C you then have the ability to switch to different platforms without having to learn a new language. It seems like you probably would have made that platform jump already if some other company made a powerful processor with the same instruction set that the Stamp uses.

    For high performance embedded controllers, my favorite platform is NetBurner. They has a great 150MHz 32-bit module with a $99 dollar dev kit that includes everything you need. One of the company's founders, Paul Breed, is using this product as the main controller for his X-Prize Lunar Lander project. Paul is first getting the controller to function as an autopilot on his RC helicopter. Check out the progress on this heli-UAV and lunar lander here: http://unreasonablerocket.blogspot.com/
    Paul has posted some servo controller code on the NetBurner yahoo group and I wouldn't be surprised if he releases all of the source and schematics for this project when he completes it .

    The NetBurner development environment is easy to get started and comes with an RTOS, file system for flash cards, easy to use peripheral drivers (UART, I2Cmulti, CAN, SPI, Ethernet), network stack with most of the major Internet protocols, tons of examples and ALL the source code. Another great feature is that code updates and debugging is all done over Ethernet which is extremely fast. You can really get right into coding your project after about 20 minutes of looking through the examples and application notes. There is even a non-network, 66MHz, 40-pin dip product which will blow away any 8-bit device in the same form factor. A Stamp BS2p can process 12,000 instructions per second and the MOD5270 that is included in the low cost kit can process over 140,000,000 instructions per second, 60,000,000 for the MOD5213 in the DIP package. Parallax's low-cost educational kit, which comes with a standard BS2, is the same price as either the MOD5270 dev-kit or MOD5213 dev-kit. The Parallax PINK Ethernet kit is also powered off a NetBurner or is it the other way around?
    Unreasonable Rocket
    Reasonable people adapt themselves to the world. Unreasonable people attempt to adapt the world to themselves. All progress, therefore, depends on un…
  • 100KM
    only in a parrellel proccesing sceem . i would not try to pass sensor data from one stamp to another for processing but you could easily have one stamp controll the state of another ie one stamp could be used for stabilization / rc pass through and it could turn on and off another stamp that does navigation.
  • I did a BASIC Stamp network a few years ago. Not really worth it. I have an extra BS I am trying to figure out what to do with too. I think I am going to just break down and try the Propeller, since it has a lot more horse power in a smaller footprint than 2 Stamps.

    Here are a couple links to possibly help, though;
    Link
    Link
  • 3D Robotics
    It depends on what you're using each for. If, for instance, one Stamp is running an IMU and handling stabilization, while another runs GPS and navigation, the communications overhead between them wouldn't be too large. But anything more complicated than that risks getting into some very complicated communications and queuing programming. In general, what you describe can certainly work, but at a certain point you may ask yourself whether it was worth the bother considering the complexity.

    Here's something that comes close to what you describe: http://www.thebacons.info/colin/robocube_v2/index_controller.htm
This reply was deleted.

Activity