Basic Stamp Programmer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 314159
    Registered User
    • Nov 2001
    • 555

    #31
    sorry bill, i didn't agree with a couple of the points that you made.

    Originally posted by billmi
    In comparison to a PIC, you have to remember that a Basic Stamp is a complete computer, not just a single chip (the processor chip on a Stamp is a PIC).
    the picmicro line are all complete computers (microcontrollers). they have a processor, ram, rom, i/o (sometimes eeprom, analog to digital convertes, paralell, usb 2.0 compatable, serial, i2c....)

    Originally posted by billmi
    To utilize a PIC you will need to design and build a circuit board with the support circuitry needed to operate the PIC as well as the interface to your paintgun. Conversely with the Stamp, all of the support hardware is on the stamp already, and you can add interface components (a MOSFET to drive a solenoid, a tie down resistor for a trigger input, for example) right on the board.
    you can get pics with "all the supported hardware on them". just look for pics with an internal oscilator and internal reseting if you choose to go that route. (this will give you 2 i/o pins less than the number of pins on the package). from that point it is the same as dealing with a pbasic stamp.

    Originally posted by billmi
    (the PIC still needs to have a board and support hardware to be useable)
    nope, the internal oscilator and the internal reset circuitry is a beautiful thing.

    Originally posted by billmi
    Size comparison between the stamp and a PIC isn't realistic, because you'd need to compare the PIC's size to the processor on the stamp.
    it can be realistic very easy, compare the size of the pic to the size of the basic stamp

    Originally posted by billmi
    DIP mounted PICs (like the one to use with the programmer linked in this thread) are larger than the SMT PIC processor on the Basic Stamp.
    not the programmer i posted ^_^. that just requires connection to a 5 or 6 pin header (depending on the pic) to program the pic. this can be done while the pic is in the circuit.

    you could get a pic that is:
    a)a dip, bigger than the pic on the stamp, but , smaller than the stamp
    b)a surface mount, , even smaller than the stamp

    Originally posted by billmi
    Most PIC based paintgun driver boards using DIP packaged PICs, like the one in the Matrix, are in fact larger than a Basic Stamp set up for dual solenoid control of a paintgun.
    they could have gone to surface mount instead of lurking in the dark side of through hole construction

    Originally posted by billmi
    if you're doing something that's one-off, or concentrating on getting the hardware side of something working, the speed of set-up, ease of programming (PBASIC is quite a robust language, with a lot of built in functions for signal generation, communicating with an LCD, etc.) of the Stamp give it a lot of advantages.
    just buy the pbasic compilier, (it works with the pics ). http://www.picbasic.co.uk/ . you take a hit of a couple bucks at the start, but after that, you can have a $3-4 part with all the capability of the basic 2 stamp, and have it be smaller, and faster.

    Originally posted by billmi
    Since the Basic Stamp has programming I/O circuitry on the stamp, it doesn't need a programmer, you just need to connect it to the parallel port on a PC (You just need a DB25 connector to plug into the PC, some wire, and the connector style of your choice to plug to the stamp, I've even used aligator clips, to clip the programmer to the stamp so as to not have a plug on the board).
    (simplification)you don't need a programer, you just need this device to hook it up to your computer to program it. (/simplification)

    i need some time to think on this one, don't worry, i am shure that i will come up with a whitty responce

    Originally posted by billmi
    The PBasic compiler software that you need for programming is a free download from Parallax (www.parallax.com). The Basic Stamp manuals are free downloads as well in PDF format. I opted to buy a starter kit with a prototyping board (the boards sell for $15 seperately), the manual, a stamp, and a cable for $90. The ease of a printed manual, and knowing I had a proper cable, and an easy proto-board to work with definitely saved me time in learning
    all the software you need to program a pic is free, the manuals are free too, and if you call them up, they will send you a manual for free
    As society and the problems that face it become more and more complex and machines become more and more intelligent, people will let machines make more of their decisions for them, simply because machine-made decisions will bring better results than man-made ones. Eventually a stage may be reached at which the decisions necessary to keep the system running will be so complex that human beings will be incapable of making them intelligently. At that stage the machines will be in effective control. People won't be able to just turn the machines off, because they will be so dependent on them that turning them off would amount to suicide

    sometimes I just freaking hate people. which means the next day I will love them for the sake of balance, but right now I will just concentrate on the hating. Hate hate hate. Blaaaarg! ;)

    turborev - with ai like this, if it controlled any more than a paddle, it would kill you and everyone you care about. ;)

    Comment

    • 314159
      Registered User
      • Nov 2001
      • 555

      #32
      bill, i took a look at the article on warpig about the basic stamp one.

      there are a couple things i don't like:
      -you can only make adjustments to the millisecond
      -the way that you have your timing set up, you can't time things concurrently, you start something, skip x many operations, stop someting, move on.....

      for a bigger solenoid, you will need a bigger mosfet (not the smaller ones that can operate a mac like valve ), for a bigger mosfet, you will probally need a greater voltage than +5 volts to get it out of the reigon where it acts like a current source, and into the reigon where it acts like a resistor to operate the solenoid, this will require some other fun tricks.

      i am reminded of this quote, the key to being a good engineer is about how many tricks you can pull, it almost makes me feel like a hooker
      As society and the problems that face it become more and more complex and machines become more and more intelligent, people will let machines make more of their decisions for them, simply because machine-made decisions will bring better results than man-made ones. Eventually a stage may be reached at which the decisions necessary to keep the system running will be so complex that human beings will be incapable of making them intelligently. At that stage the machines will be in effective control. People won't be able to just turn the machines off, because they will be so dependent on them that turning them off would amount to suicide

      sometimes I just freaking hate people. which means the next day I will love them for the sake of balance, but right now I will just concentrate on the hating. Hate hate hate. Blaaaarg! ;)

      turborev - with ai like this, if it controlled any more than a paddle, it would kill you and everyone you care about. ;)

      Comment

      • billmi
        Tech Editor - WARPIG.com
        • May 2001
        • 810

        #33
        Yep, EDM isn't cheap. If you have patience, a small amount of steel stock the right thickness, and a file, you can do it the old fashioned way - hand filing it to shape like a good old fashioned revolutionary war gunsmith would have done, and then harden it (I assume that can be done with a torch, if not, getting it hardened would cost a lot less than having one made).

        Mind if I ask why you are putting a hole in it in the first place? I'm assuming it's to attach a pull style solenoid. Another option would to be using a push solenoid to press on the other side of the sear (push solenoids have a rod connected to the core that pokes out the back, so it pushes out when the core is drawn into the solenoid center).

        See you on the field,
        -Bill Mills

        Computer / Paintball geek
        Technical Editor, World And Regional Paintball Information Guide - http://www.WARPIG.com
        Producer, Paintball Television - http://www.PigTV.net
        Paintball, Motocross trail riding, SCUBA, climbing, surfing, R/C aircraft, fun stuff...

        Comment

        • 314159
          Registered User
          • Nov 2001
          • 555

          #34
          lazy answer - if the holes in the emag sear would match what you are dooing, why not see if you can order an emag sear, and not a sear assembly from tom. ^_^
          As society and the problems that face it become more and more complex and machines become more and more intelligent, people will let machines make more of their decisions for them, simply because machine-made decisions will bring better results than man-made ones. Eventually a stage may be reached at which the decisions necessary to keep the system running will be so complex that human beings will be incapable of making them intelligently. At that stage the machines will be in effective control. People won't be able to just turn the machines off, because they will be so dependent on them that turning them off would amount to suicide

          sometimes I just freaking hate people. which means the next day I will love them for the sake of balance, but right now I will just concentrate on the hating. Hate hate hate. Blaaaarg! ;)

          turborev - with ai like this, if it controlled any more than a paddle, it would kill you and everyone you care about. ;)

          Comment

          • hitech
            Not a shedder of vortices
            • Nov 2001
            • 4775

            #35
            Originally posted by 314159
            lazy answer - if the holes in the emag sear would match what you are dooing...
            I am planning on trying this with a classic. The emag sear doesn't line up.


            Hey Hitech your starting to sound like me! - AGD
            Hitech is the man.... :eek: - Blennidae
            The only Hitech Lubricant

            Comment

            • 314159
              Registered User
              • Nov 2001
              • 555

              #36
              i wonder if a replacement booyah, centerflag,..... sear would work?
              As society and the problems that face it become more and more complex and machines become more and more intelligent, people will let machines make more of their decisions for them, simply because machine-made decisions will bring better results than man-made ones. Eventually a stage may be reached at which the decisions necessary to keep the system running will be so complex that human beings will be incapable of making them intelligently. At that stage the machines will be in effective control. People won't be able to just turn the machines off, because they will be so dependent on them that turning them off would amount to suicide

              sometimes I just freaking hate people. which means the next day I will love them for the sake of balance, but right now I will just concentrate on the hating. Hate hate hate. Blaaaarg! ;)

              turborev - with ai like this, if it controlled any more than a paddle, it would kill you and everyone you care about. ;)

              Comment

              • ShooterJM
                Shooter Wang - Ice Ninja
                • Feb 2002
                • 3651

                #37
                Originally posted by 314159
                lazy answer - if the holes in the emag sear would match what you are dooing, why not see if you can order an emag sear, and not a sear assembly from tom. ^_^
                Well that's my last ditch resort. I'm not doing it now because A) I'm not 100% sure it'd work and B) Bluntly, I don't want to spend $55 bucks on it. But I will if need be.
                It's HERE! Play at Shooter's Casino!!!!!! It'll be fun........

                Comment

                • ShooterJM
                  Shooter Wang - Ice Ninja
                  • Feb 2002
                  • 3651

                  #38
                  Originally posted by hitech


                  I am planning on trying this with a classic. The emag sear doesn't line up.
                  Doesn't line up how? This will be dropped into a custom frame at the end of all this. (Right now it's just in a milled out stock frame).
                  It's HERE! Play at Shooter's Casino!!!!!! It'll be fun........

                  Comment

                  • hitech
                    Not a shedder of vortices
                    • Nov 2001
                    • 4775

                    #39
                    Originally posted by ShooterJM
                    Doesn't line up how?...
                    It is my understanding that the emag sear doesn't line up with the classic/mini mag frame rail. I have been trying to decide what to use for a sear. What are you attempting to use?


                    Hey Hitech your starting to sound like me! - AGD
                    Hitech is the man.... :eek: - Blennidae
                    The only Hitech Lubricant

                    Comment

                    • billmi
                      Tech Editor - WARPIG.com
                      • May 2001
                      • 810

                      #40
                      Originally posted by 314159
                      i wonder if a replacement booyah, centerflag,..... sear would work?
                      The Centerflag fram (and I assume Booyah as well) uses the stock sear.

                      See you on the field,
                      -Bill Mills

                      Computer / Paintball geek
                      Technical Editor, World And Regional Paintball Information Guide - http://www.WARPIG.com
                      Producer, Paintball Television - http://www.PigTV.net
                      Paintball, Motocross trail riding, SCUBA, climbing, surfing, R/C aircraft, fun stuff...

                      Comment

                      • ShooterJM
                        Shooter Wang - Ice Ninja
                        • Feb 2002
                        • 3651

                        #41
                        Originally posted by hitech


                        It is my understanding that the emag sear doesn't line up with the classic/mini mag frame rail. I have been trying to decide what to use for a sear. What are you attempting to use?
                        I'm sticking with my original plan at this point. Took the trigger pin off of an old style classic sear and I'm using that. I milled out enough in the grip frame to give me easier and clearer access to the bottom part of the sear and to give the solenoid plunger enough clearence to move. In retrospect I should have chosen the same type of solenoid, but in a push configuration. Brought the sear into work so I'll let you know if I got it to work or will have to do some replanning.
                        It's HERE! Play at Shooter's Casino!!!!!! It'll be fun........

                        Comment

                        • hitech
                          Not a shedder of vortices
                          • Nov 2001
                          • 4775

                          #42
                          Originally posted by ShooterJM
                          Took the trigger pin off of an old style classic sear and I'm using that.
                          Thanks for sharing your ideas. What I don't understand is how you are going to attach the solenoid to the sear. I assume you have the solenoid mounted vertically, or can you make it fit horizontally? If vertical, what are you using for a linkage?


                          Hey Hitech your starting to sound like me! - AGD
                          Hitech is the man.... :eek: - Blennidae
                          The only Hitech Lubricant

                          Comment

                          • ShooterJM
                            Shooter Wang - Ice Ninja
                            • Feb 2002
                            • 3651

                            #43
                            Originally posted by hitech
                            Thanks for sharing your ideas. What I don't understand is how you are going to attach the solenoid to the sear. I assume you have the solenoid mounted vertically, or can you make it fit horizontally? If vertical, what are you using for a linkage?
                            Ah. Gotcha. The solenoid is mounted mostly vertical, there is about a 5 degree rotation to the direction of the barrel of the gun. I'm attaching the solenoid plunger directly to the sear. The plunger intself has a slot that is a near perfect fit to the sear width. By drilling hole through the plunger and sear I'll be able to place a pin through them, loc-tite it, and should be good to go.

                            Any linkege that may become neccesary will be done in brazed aluminum.

                            If I misunderstood your question somehow let me know.


                            EDIT: Just discovered my programming cable is a poor fit to my stamp. will have to repostion the pins slightly.
                            Last edited by ShooterJM; 08-30-2002, 10:21 AM.
                            It's HERE! Play at Shooter's Casino!!!!!! It'll be fun........

                            Comment

                            • billmi
                              Tech Editor - WARPIG.com
                              • May 2001
                              • 810

                              #44
                              Originally posted by 314159
                              bill, i took a look at the article on warpig about the basic stamp one.

                              there are a couple things i don't like:
                              -you can only make adjustments to the millisecond
                              That is one of the drawbacks to the Stamp. There are DEFINITELY PICs that will give you more processing horsepower, more memory, and more individual options in what you can do in your software, especially compared to a Basic Stamp (there are also PICs that can give you less, too it depends on which model you choose). By no means is the Stamp the be all end all - it's just a very fast and easy solution for many applications.

                              Re: the board issue and size issue - the PIC by itself is still is not on a board, and it still needs to be on a board with additional components to drive a paintgun. Yes, there are SMT PICs smaller than the Basic Stamp, but you can't just drop the PIC into the grip of a paintgun and solder wires to it's pins, it has to go on a board (if not, why are all those paintgun manufacturers like AGD, WDP, Generation E, ICD, etc. wasting time and money with putting their chips on boards and adding interface circuitry if a $4 chip can do the job entirely by itself?)

                              If you're going to talk size you need to compare a PIC on a board to a Basic Stamp (not to mention for rapid proof of concept prototyping appications and one-offs, the time and involvement of fabricating a board).

                              Yes, it is probably possible to design a control board with an SMT PIC that is smaller than a Basic Stamp to do the same things as a Stamp with a MOSFET and necessary paintgun interface parts mounted on it. However, for an airsmith doing their own work in a one-off type application(i.e. not paying the bucks to have a run of high quality boards done - remember we're talking about a $30 Stamp being "expensive") and etching their own boards, they probably won't be able to make things that small.

                              Precision board etching is not something typically doable in an airsmith's shop (coarse etching is, but then you can't get as small). Tacking 3-4 parts onto a Basic Stamp with a soldering iron is something that can be done in a typical airsmith's shop. Additionally, board design and etching are more advanced skills posessed by fewer airsmiths than those that can weild a soldering iron. Again - less skilled work and knowledge needed to go the Basic Stamp route, even though it has its limitations compared to building a custom board based around a PIC.

                              To say - "Look the Stamp is $30, when a $4 PIC will do exactly the same thing and more," is comparing apples to oranges. You need to add board fabrication into the PIC cost (both from a dollars spent and time spent, and availability of skills standpoint). In both cases you need to factor in control circuits (MOSFET or other semiconductor for output controll, tiedown resistors, etc.) that would need to be included in the design of a board for the PIC, or be added onto the Stamp's board. For people lacking the skills to program in an assembler or low level language that is free for the PIC, but able to handle the relatively simpler coding of PBASIC, you need to add the cost of the PICBASIC compiler - 59 pounds which is around $90 US. That needs to be added into the cost as well.


                              -the way that you have your timing set up, you can't time things concurrently, you start something, skip x many operations, stop someting, move on.....
                              That is incorrect. There are concurrent timers and I/O running for the trigger input. They aren't running for anything else because the application doesn't require them.

                              If you wanted to run a concurrent timer for anything else, you'd need to write a different program than the one included in the software in the article. Similarly the code included doesn't do pulse width modulation based motor control, tone generation through a speaker, serial communication with other Basic Stamps, or a lot of other things, because it wasn't needed for the given application.

                              That software does use the BUTTON function which has concurrent timing and I/O built in. This can make things a LOT easier than having to program the concurrent I/O and timing for the trigger yourself.

                              This was a problem Brass Eagle had with the Rainmaker S/F board in semi auto mode, and the second generation semi board. Note: The following is my speculation of how their software worked based on how it responded, and when I wrote software based on this model, it had the same problems as the Rainmaker S/F. I have not actually seen their source code.

                              They didn't check for a trigger release concurrent to the firing and loading cycle. They started at trigger 0, and looped there waiting for the trigger to go to 1. When the trigger went to 1, they went to the firing and loading cycle (close the bolt, hold it closed long enought to fire, open the bolt and wait long enough for the next ball to drop), and then when the firing and loading cycle was finished, they looked at the trigger state again. If it was 1, they waited until it was 0 before accepting a 1 as a new trigger pull (otherwise it would be full auto). Problem was that if you released the trigger and made your next trigger pull during the firing and loading cycle, by the time the program looked at the trigger register, it was at 1, so it never saw the release and wouldn't count the new trigger pull as valid, it thought you hadn't let go of the trigger.

                              The result was that you could pull the trigger, then start shooting faster and faster, and suddenly, even though you were pulling the trigger just a little bit faster, the Rainmaker would be shooting about 1/2 as often.

                              Because the PBASIC BUTTON function checks both the timing values (needed to descriminate a bounce from a valid state change) and I/O state concurrently with whatever other code is executing, I avoided that problem entirely with the code in the article. Not having to write the concurrent timing and I/O, simply being able to rely on a PBASIC function for them makes writing the software for a paintgun application much easier.

                              Of couse the features in my example software (concurrent timing, etc.) are moot to what someone's going to put in their gun. It would be illegal for them to run their gun on my software (see the copyright notices), they'd need to write their own software, and would need to include whatever concurrent or sequential timing their application requires. My code is there to give an introduction to PBASIC, not to power someone else's paintgun (read as liability mitigation).


                              for a bigger solenoid, you will need a bigger mosfet (not the smaller ones that can operate a mac like valve ), for a bigger mosfet, you will probally need a greater voltage than +5 volts to get it out of the reigon where it acts like a current source, and into the reigon where it acts like a resistor to operate the solenoid, this will require some other fun tricks.
                              Yes, you do need a bigger MOSFET to drive larger solenoids. You'd also need a speaker and driver circuitry to do signal tones out. You'd also need a keypad to do 10 key data entry. You'd need different circuitry depending on your application.

                              For driving a solenoid, you have to match the wattage of the MOSFET to what the solenoid draws (or you could run a pair in parallel - I've been there and done that on a prototype board for the company that first filed patent on using a solenoid to actuate a sear - it's not something that would go in a production board, but was fine for a proof of concept prototype). You just need to make sure the MOSFET will trigger on +5v, or use another transistor to control the MOSFET with higher voltage if the chosen MOSFET has a higher trigger voltage.

                              I don't know how you'd get a MOSFET that acts as a current drain to start functioning as a current source though. I haven't learned that trick yet, I'm not an engineer or a hooker :-)

                              See you on the field,
                              -Bill Mills

                              Computer / Paintball geek
                              Technical Editor, World And Regional Paintball Information Guide - http://www.WARPIG.com
                              Producer, Paintball Television - http://www.PigTV.net
                              Paintball, Motocross trail riding, SCUBA, climbing, surfing, R/C aircraft, fun stuff...

                              Comment

                              • billmi
                                Tech Editor - WARPIG.com
                                • May 2001
                                • 810

                                #45
                                Originally posted by 314159

                                (simplification)you don't need a programer, you just need this device to hook it up to your computer to program it. (/simplification)
                                Hey, I'm most clear when I'm mis-stating the obvious :-) I think I got lost in my own words there.

                                To clarify the point I was trying to make before I sounded like a goober... :-)

                                Some of the earlier posts implied that a PIC was a cheaper route to go than a Basic Stamp because the linked PIC programmer kit to interface a PC to the PIC was available for around $6 (as opposed to previous discussion of a Basic Stamp "Developer Station"). The PIC programming interface that was linked in this thread was more complex in terms of electronic components than the interface to do the same thing for a Basic Stamp (since it is solely a connectors and wire, not a connector, wire, circuit board, and additional electronic components.) Thus, using similar materials sourcing, the Stamp's interface would cost less, not the interface for the PIC as was implied.



                                i need some time to think on this one, don't worry, i am shure that i will come up with a whitty responce
                                I was sure about to make a witty response that made puns out of those typos, but thought the better of it, because after a couple of attempts, I realized they just weren't funny.

                                Plus, me making cracks about typos is the pot calling the kettle black :-)

                                See you on the field,
                                -Bill Mills

                                Computer / Paintball geek
                                Technical Editor, World And Regional Paintball Information Guide - http://www.WARPIG.com
                                Producer, Paintball Television - http://www.PigTV.net
                                Paintball, Motocross trail riding, SCUBA, climbing, surfing, R/C aircraft, fun stuff...

                                Comment

                                Working...