22 Replies Latest reply on Aug 8, 2019 3:05 AM by andrewj

    400K Milestone

    dougw

      400K+ !

      Congratulations shabaz on reaching into uncharted territory above 400,000 points.

      There doesn't seem to be much fanfare for this milestone, but it is a monumental achievement nonetheless.

      This sets a great example for other members to learn from and emulate.

      Keep it up...

        • Re: 400K Milestone
          genebren

          Congratulations shabaz !  Wow, that is a whole mess of points.  You contributions in terms of projects, answers/comments to questions/discussions and good spirited help and assistance is an example to all of us. And the same goes for you too Doug.

           

          Gene

          • Re: 400K Milestone
            balearicdynamics

            shabaz congratulations! You are one of the milestones of this community Frankly, and I am sure the other valuable friends agree, I don't remember a useless comment by you.

             

            Enrico

            • Re: 400K Milestone
              Fred27

              That's not a millstone, that's the moon! Well deserved.

                • Re: 400K Milestone
                  clem57

                  I think the moon is closer in miles or kilometers than the number of points he has.

                  At perigee — its closest approach — the moon comes as close as 225,623 miles (363,104 kilometers). At apogee — the farthest away it gets — the moon is 252,088 miles (405,696 km) from Earth. On average, the distance from Earth to the moon is about 238,855 miles (384,400 km).

                  Just the facts ma'am

                  Clem

                • Re: 400K Milestone
                  shabaz

                  Aaah thanks guys! I wouldn't comment much if you guys were not around too, so I'm happy to be in great company : )

                  You all particularly contribute loads, and have your individual special powers : ) It's a lot of fun always seeing what you're up and what cool things you are working on!

                  7 of 7 people found this helpful
                  • Re: 400K Milestone
                    dixonselvan

                    Congratulations shabaz on reaching the 400K milestone. You are one of my inspirations in this community. Your quality of posts (even the photos in it) has always been top notch.

                     

                    Next stop 500K :-)

                    1 of 1 people found this helpful
                    • Re: 400K Milestone
                      jw0752

                      Hi Shabaz,

                       

                      You are a fountain of good advice and great projects. I bet you hardly even look at the points while you are busy producing and helping. I hope you can keep it up long enough for the powers to be to invent a new category. Of course if they hold to using a non linear scale you may only have 300,000 points to go to get there.

                       

                      John

                      • Re: 400K Milestone
                        e14phil

                        Congrats shabaz!! your contributions are always great and we really look forward to them in e14 offices across the world.

                        • Re: 400K Milestone
                          Christopher Stanton

                          Thanks for all the fish shabaz

                          • Re: 400K Milestone
                            the-dubster

                            shabaz I bow to your unbounded enthusiasm, great technical advice and assistance, and your constant chipper-ness! I salute you.

                             

                            Or, to put it another way, congratulations

                            • Re: 400K Milestone
                              DAB

                              Well done Shabaz.

                               

                              DAB

                              • Re: 400K Milestone
                                geralds

                                shabaz CONGRATULATIONS!!!    smilies-congratessmilies-congratesa smilies-congrates1smilies-congrates1a on reaching the 400k+ points.

                                At which rank are you?

                                I'm just crawling around on the 64th place....

                                 

                                Best Regards

                                Gerald

                                ---

                                3 of 3 people found this helpful
                                  • Re: 400K Milestone
                                    shabaz

                                    Thanks guys!

                                     

                                    Hi Gerald! You're on level 7, so 64 is not crawling at all : ) I'm on level 10, rank 1, but it's also a lot due to length of time, eventually someone is likely to read older posts or comments, and that increases points too (I guess).

                                    Me and Doug are relatively not far in points (it can change in the space of weeks/months I bet!).

                                  • Re: 400K Milestone
                                    andrewj

                                    Awesome.  Invaluable helper and some great, useful projects - I loved building the Cyclops and getting it working to measure the Bombe motor speed. 

                                    1 of 1 people found this helpful
                                      • Re: 400K Milestone
                                        shabaz

                                        Hi Andrew,

                                         

                                        It's exciting seeing your project take shape too currently, so it's awesome you joined the site : ) That's a really cool use for Cyclops that you mention - I could not have predicted it would be used for that! : )

                                        It's been a couple of years since I went to Bletchley, so will definitely have to visit sometime soon - it must be nice in summer. If I improve the code for it (been meaning to add a feature), I'll bring along a replacement chip for you.

                                          • Re: 400K Milestone
                                            andrewj

                                            Let me know and I’ll gladly give you a tour around - it’s TNMOC you should visit, on Bletchley Park, rather than Bletchley Park itself, they are separate institutions. 

                                             

                                            I’ve been meaning to get into the code and see if I could increase the resolution in some way.  The Bombe motor runs at 600RPM and Cyclops was measuring this at 540 or 600RPM, mostly 540.  Independent check measured it at 580RPM.  As I guess you find, there’s always something else to be done first

                                            3 of 3 people found this helpful
                                              • Re: 400K Milestone
                                                shabaz

                                                Hi Andrew,

                                                 

                                                I had a look at the code tonight, and made changes to the algorithm.

                                                Previously, it would count the number of transitions in one second, and that would be converted to frequency. It wasn't granular, since I only thought about the power tool use-case, where a few tens of RPM don't make a difference. It also made the code easy : )

                                                However, in your scenario, you need more accuracy and granularity! Unfortunately the chip that is used is limiting, because it was chosen to be a DIP chip, and it can only accept a 32.768kHz clock. This can get multiplied up in the chip, but it has an error, in my case I found it to be just over 1%, which is quite significant (but fortunately it can be mostly calibrated out, as explained below. I think there's also a way to calibrate the clock in the chip possibly, but I'm not super-familiar with that).

                                                For the new algorithm, it uses a multiplied-up 8MHz clock in the chip, and counts to establish the transition period. Since it is a 16-bit counter, it will soon run out, so the overflows are counted, and all converted to a 'unsigned long' with not pretty coding, but that can be an "opportunity for later improvement" : ). It gets further uglier to deal with the 1% error: it was all integer arithmetic so far, but now it has some floats to multiply by a calibration value which will have to be user-determined. It could be easily determined with an LED connected to a transformer (i.e. since that will guarantee a 50Hz source), pointed at the sensor.

                                                Also, there's no print library to save on space, so the integer printing routine is also bodged modified to incorporate a decimal place (i.e. scale the value to be printed by 100, and then deliberately always put a dot before the two rightmost digits).

                                                After all that, the result seems accurate : ) and granular.

                                                So, for instance, with your 580 RPM scenario, if I deliberately apply a 9.6667Hz signal (from a sig-gen, connected to an LED), then it now displays 9.66Hz on the screen, and also displays a RPM value hovering approx. between 579.95 and 580.04, so it's now to within +-0.1RPM typically, at that speed.

                                                 

                                                 

                                                I still need to tidy the code a bit, but it should be ready in a few days and then I'll put the link on the Cyclops page for downloading.

                                                4 of 4 people found this helpful
                                                  • Re: 400K Milestone
                                                    andrewj

                                                    That’s brilliant, thanks.  I’d looked quickly at the time to see if there was a quick fix, but then put it to one side as I got on with my project.  I think it will be really useful with the improved accuracy, as the Bombe is full of rotating parts, none of which move particularly fast.  Not just that - the mechanical one we’ve used so far does require someone to stick their hand into the machine to hold it against a rotating rod!  I’ll download the update and let you know how it goes.

                                                    1 of 1 people found this helpful
                                              • Re: 400K Milestone
                                                clem57

                                                I have to check this out.

                                              • Re: 400K Milestone
                                                colporteur

                                                400000, how did you earn all those zeros?

                                                 

                                                Sean

                                                • Re: 400K Milestone
                                                  ralphjy

                                                  shabaz outstanding accomplishment!  Keep up the good work

                                                   

                                                  Ralph