E/X-Mag Microcontroller Programming (Atmel AT90S2313)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BigEvil
    www.BigEvilOnline.com

    • Feb 2005
    • 9333

    #196
    Originally posted by hitech
    Sorry... The correct link is:

    Solenoid and Electromagnet Catalog, Solenoid and Electromagnet Manufacturer of linear, rotary, tubular, open frame, latching, push, pull, A.C., D.C., low cost, electromagnets and drivers




    hmmmmm... (rubs hands in gleafully evil manner)

    Comment

    • Miscue
      Super Moderator

      • Oct 2000
      • 7105

      #197
      What happens is at high speeds the solenoid gets activated again before the plunger has made a full stroke. You can see the solenoid stutter. At what point this happens depends on the tank's recharge rate and output pressure, because that's what's pushing the on/off pin... forcing the plunger back into place. Higher input pressure = kicks the plunger back faster, but this isn't an ideal solution.

      This is an unofficial, non-AGD opinion on the solenoid dwell time... my personal opinion.

      1. How long the plunger stays in place is not the same thing as how long the solenoid was sent a signal (solenoid dwell). Why is this? Because the magnetic field that holds the plunger in place does not collapse instantaneously... or anywhere near it. If you've noticed, if you fire your gun (no air) and try to pull on the plunger... it's kind of stuck because of the residual magnetism.

      How strong is it and for how long? My answer is: An unscientific... pretty dang strong for much too long - which is the source of the FA problems... the solenoid's magnetic field interacting with a magnetically sensitive HES sensor. How I determined this? I spent many, many hours trying to figure out how long the field persists and roughly how strong it is (to gain clues on how to remove the FA problems).

      I did this by using the HES sensor. My control was... the max distance I could keep the HES sensor while the solenoid was fully powered... allowing the HES to detect the solenoid's field. I could estimate field strength in this way. If I remember correctly... the field is "very strong" for double digit milliseconds after the solenoid dwell time ends... and thus should continue to hold the plunger.

      2. The 30ms time concerns the level 7 bolt. The level 10 bolt is lighter and returns faster, needing a shorter dwell time. By how much, I don't think anyone knows.

      3. The Hyperframe solenoid and EMag solenoid do not operate in conjunction with the sear in the same way... and you cannot make a one-for-one comparison.

      4. Shortening the dwell time is the only software approach I can think of (besides a redesign of the EMag) so that you can have it all. The window of time that the solenoid is "noisy" does not overlap with when the HES is ready to accept trigger pulls... resulting in FA problems. Well... you could also limit the max ROF to somewhere under 20 as well, but you paintball nerds would frown upon this. The 20bps cap on my unreleased 4.20 is more a reflection of... that's what it took to get all the mathematics and timing to work out so the EMag doesn't go bonkers... not because of the plunger stuttering or anything physical like that.

      5. 3.2 has a dwell time that meets AGD specs. This timing allows 3.2 to accept trigger information while the solenoid is "noisy." Hence.. the known "3.2 FA bug." The flipping the wires fix reverses the polarity, and thus the logic... but does nothing to remove the noise issue. The HES is exposed to a N field instead of a S field (or vice-versa)... and has a different effect... This is pretty much a non-problem for 3.2... because of how it works... and is why the wire flipping works well. But unlike 3.2, this will be a problem for software that's "twitchy" or fires in some kind of burst mode while accepting buffered shots... sustained FA while the trigger is released can occur.
      Last edited by Miscue; 01-18-2006, 07:16 PM.

      Comment

      • latches109

        #198
        Miscue ->great info. what dwell would you use for a LX bolt?(roughly)

        Comment

        • Miscue
          Super Moderator

          • Oct 2000
          • 7105

          #199
          Originally posted by latches109
          Miscue ->great info. what dwell would you use for a LX bolt?(roughly)
          I won't suggest a number.

          The only reason why I mentioned this stuff... is so that when someone works on their own software (such as Lorne and others)... that they take these sorts of things into consideration - and hopefully are very focused on making their software safe to use. That's very important to me.

          Hopefully... they will take a step back... instead of only thinking about all the "neat" features that they have in mind... and look at what's important.
          Last edited by Miscue; 01-18-2006, 06:53 PM.

          Comment

          • mpsd
            Crazy Brazilian P8Baller

            • Nov 2005
            • 2778

            #200
            I did it!

            Hey, Lornecash!!!

            I did it! My e-Mag is running 1.5 Beta now!!! After two days looking for a connector without any success and another two days idetifying each wire on the AVRSIP cable, I decided to adapt the factory jumper to make the cable needed to reflash my Mag. It took me two and a half hours to do that. I also had to undo that, taking MISO, MOSI and SCK out of it to update my AVRISP, before being able to do the reflash. Then I re-built it all over again, made the backup of my old AGD 1.31 software and finally reflashed my e-Mag with X-Mod 1.5 Beta. It's amazing how easy it is, once you have the connector done. I finished doing that yesterday, at 2:30 AM...

            Till now, the software is behaving exactly as expected and your manual is perfect!

            My first input on it is about the Practice mode... I tested it with both solenoid on and off. I realized that with the solenoid off, it updates the info (SPS) waaaay faster then with it on. Even so, it seems it's not "real time", as I stop pulling the trigger but the nunber on the disply doesn't come to zero. Maybe you have to ajust it a little better...

            Besides that, I'll play with it tonight and tomorrow I'll give you more input. I adjusted the Mag with PSP mode, 15 bps, 15 Dwell and 46 Fix. Is there any advice you would like to give me, regarding this?

            Thanks again for all your support and best regards,

            Mendel.

            My Feedback

            Comment

            • LorneCash
              Got XMOD? www.NiedTech.com
              • Aug 2005
              • 365

              #201
              Originally posted by mpsd
              Hey, Lornecash!!!
              It's amazing how easy it is, once you have the connector done.
              Like I've always said, It's much easier to just buy the Programmer from me but congrats for doing it on your own.

              Originally posted by mpsd
              My first input on it is about the Practice mode... I tested it with both solenoid on and off. I realized that with the solenoid off, it updates the info (SPS) waaaay faster then with it on. Even so, it seems it's not "real time", as I stop pulling the trigger but the nunber on the disply doesn't come to zero.
              It is intentional for the display to hold the value after you stop pulling the trigger. That way you can show your friend how fast you shoot. You'll also notice that if you pull the trigger really slow the min value is 4. That's just a functin of how I wrote the code. As for the speed If you have the FIX set to 0 it will seem much faster, this is due to the fact that Increasing the FIX decreases the window for a shot to be buffered. If the FIX is set to its max then shot buffering is completely eliminated and the gun will seem slower.

              Originally posted by mpsd
              Besides that, I'll play with it tonight and tomorrow I'll give you more input. I adjusted the Mag with PSP mode, 15 bps, 15 Dwell and 46 Fix. Is there any advice you would like to give me, regarding this?

              Thanks again for all your support and best regards,

              Mendel.
              Again, congrats on getting it to work and keep me posted as far as what you thoughts are. If you haven't already, read every word of the manual (rev0.3) I tried to explain everything in there.
              Last edited by LorneCash; 01-19-2006, 06:59 AM.

              Comment

              • 11 Bravo
                Predatored Karta Mag
                • May 2005
                • 1247

                #202
                Glad to see another one up and running! Make sure and give us updates. I cant wait to get it in mine.

                Comment

                • BigEvil
                  www.BigEvilOnline.com

                  • Feb 2005
                  • 9333

                  #203
                  The good news about this keeps getting better. I cant wait to get my hands on that programer and try this out. It will be great to have the ablility to flash the gun myself and not be at anyone elses mercy.

                  Lorne, have there been any changes to the software or manual recently?

                  Comment

                  • 11 Bravo
                    Predatored Karta Mag
                    • May 2005
                    • 1247

                    #204
                    ^^^^^^^^^ I think Majinebz(?) did it with his. I would say check with him, but I think he got called in for a month or two of active duty. I know he can flash it back to 4.01 for you.
                    Last edited by 11 Bravo; 01-19-2006, 04:56 PM.

                    Comment

                    • LorneCash
                      Got XMOD? www.NiedTech.com
                      • Aug 2005
                      • 365

                      #205
                      To answer someone from a few posts ago, My current software is BETA 1.5 and the manual is rev 0.3, if anyone wants a copy just send me an email ([email protected]) and request it. I've been busy the past couple weeks with work and stuff and haven't had any time to work on this project. Plus answering all the questions from AO people every day takes time too. I'm thinking of paying my brother to reply to all the people who ask me questions about the software and programmers, j/k. Keep the questions comming, I knew what I was getting into when I started this. Hopefully I'll have some more time either this weekend or next weekend to make a few minor improvements, but really it's pretty much done.
                      Last edited by LorneCash; 11-11-2007, 02:46 AM.

                      Comment

                      • UTDragun
                        Tennessee Paintvols
                        • Feb 2005
                        • 1052

                        #206
                        Great job and I'm very proud to see someone step up and do something like this. I have some family near Milwaukee and If I get a chance to go up there Ill congratulate you myself
                        embargo backwards = o grab me

                        "Guns dont kill people, husbands that come home early do." -Larry The Cable Guy

                        Dragun Drallion, nexus kit, tickler, e2, pysco 5" drop w/ on off, macroline, A+ bolt and back block, Oydessy 3 barrel kit, armson stealth, 15* ASA, Kapp pump arm, Black Magic, warp feed w/ 12v upgrade, halo b w/ vic&rip, 91/4500 bulldog

                        Tippmann 98C ebolt, lp kit, m-16 kit, palmer stabilizer

                        Comment

                        • teps
                          Registered User
                          • Dec 2004
                          • 1

                          #207
                          Hello,

                          as a programmer, is it possible to use this cable :
                          https://home.comcast.net/~blackxknight/ecs/cable.html ? MOSI, MISO, SCK are connected so it should work, no? It's much cheaper than an "official" programmer and it works for impulse, so for an emag... ??? If so, how is wired the emag board?

                          Best regards,
                          Gilles

                          Comment

                          • athomas
                            Of course it works-its AGD
                            • Jan 2002
                            • 8039

                            #208
                            If the cable is for an AVR programmer for AVR programming, which it looks like, then it should work fine.
                            Except for the Automag in front, its usually the man behind the equipment that counts.

                            Comment

                            • LorneCash
                              Got XMOD? www.NiedTech.com
                              • Aug 2005
                              • 365

                              #209
                              Originally posted by teps
                              Hello,

                              as a programmer, is it possible to use this cable :
                              https://home.comcast.net/~blackxknight/ecs/cable.html ? MOSI, MISO, SCK are connected so it should work, no? It's much cheaper than an "official" programmer and it works for impulse, so for an emag... ??? If so, how is wired the emag board?

                              Best regards,
                              Gilles
                              If you're asking if all the correct connections are there then yes, they are. I'm not sure If non Atmel programmers will work though because the one AGD has is some other brand and it won't flash my software because it says the file is too big for the specified device. Also the trick isn't getting the correct wires its the crimps on the end that actually connect to the Mag. Even if the wires are correct and will work, unless you have a way to put them on the correct pins on the E/X-Mag board It still won't work. That's really the hard part. I bought the crimping tool for $250 and managed to find where to buy the correct connectors for the Mag board, so if you want to do that you're more then welcome, but seriously I'll save you the trouble for a small fee in comparison to the money and time it would take you.

                              Comment

                              • mpsd
                                Crazy Brazilian P8Baller

                                • Nov 2005
                                • 2778

                                #210
                                Originally posted by LorneCash
                                If you're asking if all the correct connections are there then yes, they are. I'm not sure If non Atmel programmers will work though because the one AGD has is some other brand and it won't flash my software because it says the file is too big for the specified device. Also the trick isn't getting the correct wires its the crimps on the end that actually connect to the Mag. Even if the wires are correct and will work, unless you have a way to put them on the correct pins on the E/X-Mag board It still won't work. That's really the hard part. I bought the crimping tool for $250 and managed to find where to buy the correct connectors for the Mag board, so if you want to do that you're more then welcome, but seriously I'll save you the trouble for a small fee in comparison to the money and time it would take you.
                                Believe me, if you are in the States or another country where it's easy to import from the US, then you should buy it from Lornecash. As I'm in Brazil, I had to do it myself and it was a real pain in the A$$ to do the cable myself... But once I managed to do it, men... It's really easy to reflash the mag board.

                                Just to update you, I had a real heavy rain last Tuesday, when I was going to play with it for the first time (we had a 170Km traffice jam , did you ever see it on your city?) so I'll probably test it today.

                                Regards,

                                Mendel.

                                My Feedback

                                Comment

                                Working...