element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Community Hub
Community Hub
Member's Forum 400K Milestone
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Community Hub to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 22 replies
  • Subscribers 597 subscribers
  • Views 1495 views
  • Users 0 members are here
  • points
  • milestones
Related

400K Milestone

dougw
dougw over 6 years ago

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...

  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz over 6 years ago +16
    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…
  • Fred27
    Fred27 over 6 years ago +9
    That's not a millstone, that's the moon! Well deserved.
  • balearicdynamics
    balearicdynamics over 6 years ago +8
    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
Parents
  • Andrew J
    Andrew J over 6 years ago

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

    • Cancel
    • Vote Up +7 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 6 years ago in reply to Andrew J

    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.

    • Cancel
    • Vote Up +6 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • shabaz
    shabaz over 6 years ago in reply to Andrew J

    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.

    • Cancel
    • Vote Up +6 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Andrew J
    Andrew J over 6 years ago in reply to shabaz

    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 image

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 6 years ago in reply to Andrew J

    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.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
  • Andrew J
    Andrew J over 6 years ago in reply to shabaz

    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.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube