Close Menu
  • Home
  • World News
  • Latest News
  • Politics
  • Sports
  • Opinions
  • Tech News
  • World Economy
  • More
    • Entertainment News
    • Gadgets & Tech
    • Hollywood
    • Technology
    • Travel
    • Trending News
Trending
  • Circumventing SWIFT & Neocon Coup Of American International Coverage
  • DOJ Sues Extra States Over In-State Tuition for Unlawful Aliens
  • Tyrese Gibson Hails Dwayne Johnson’s Venice Standing Ovation
  • Iran says US missile calls for block path to nuclear talks
  • The Bilbao Impact | Documentary
  • The ‘2024 NFL Week 1 beginning quarterbacks’ quiz
  • San Bernardino arrest ‘reveals a disturbing abuse of authority’
  • Clear Your Canine’s Ears and Clip Your Cat’s Nails—Consultants Weigh In (2025)
PokoNews
  • Home
  • World News
  • Latest News
  • Politics
  • Sports
  • Opinions
  • Tech News
  • World Economy
  • More
    • Entertainment News
    • Gadgets & Tech
    • Hollywood
    • Technology
    • Travel
    • Trending News
PokoNews
Home»Tech News»Palms On Further: OCXO Clock
Tech News

Palms On Further: OCXO Clock

DaneBy DaneFebruary 9, 2024No Comments10 Mins Read
Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
Palms On Further: OCXO Clock
Share
Facebook Twitter LinkedIn Pinterest Email


Observe: This publish was initially printed on the creator’s Github repository for this undertaking.

As described within the accompanying Palms On article, this undertaking is a digital clock that makes use of a excessive stability 10 Megahertz oscillator as its timing reference. The oscillator is an oven controller crystal oscillator, or OCXO, a know-how that has seen vital enhancements in recent times, drawing a lot much less energy at a a lot lower cost.

The fundamental platform right here is an OCXO mixed with an Arduino Nano. The Nano gives much more processing energy than is important for performing a easy hours-minutes-seconds kind clock however is affordable and easy to make use of. Nonetheless, the uncooked 10 MHz clock sign from the OCXO can’t be used to drive the Nano straight. The Nano makes use of a 16 MHz ceramic resonator for its system clock and it’s not simple to alter the frequency of this, to say 10 MHz, with out vital modification to the Nano’s firmware as a result of the 16 MHZ clock sign is used to derive the timing sign for the USB connection wanted to load packages onto the microcontroller. A bodily change to change between 16 MHz and 10 MHz after this system was loaded was an possibility, however not very sensible.

As an alternative, the strategy was to make use of interrupts. As with all microprocessors, the Nano helps interrupts, which, when triggered, can pause the at the moment operating program code operating, transfer the CPU’s registers to a reminiscence location, perform an interrupt service routine after which return the controller to regular operation by restoring the registers. Interrupts can usually be triggered by a clock-driven timer or an enter on a devoted exterior pin. The Nano contains three interrupt timers, and Timer0 and Timer1 may also be pushed by an exterior clock supply by means of the T0 and T1 pins. The timers work by being loaded with a binary quantity, which is then decremented each time a pulse is detected at their corresponding pin. When the timer reaches zero, an interrupt is triggered. Altering the quantity loaded into the timer alters the interval between interrupts. Timer0 is 8-bits the place as Timer1 is 16 bit.

Nonetheless, it was nonetheless not potential to drive the timers straight with the ten MHz sign from the OCXO. When used with an exterior clock on T0 or T1, the sign on the pin is sampled relative to the 16 MHz system clock. Utilizing a most Nyquist sampling issue of two.5, a sensible most exterior enter frequency of 6.4 MHz outcomes—any increased and incoming pulses on the pin will likely be missed. Including a 4-bit binary counter after the OCXO’s output ends in one pulse being emitted by the counter for each 16 pulses it receives, because the counter counts from 0000 to 1111. With the OCXO working at 10 MHZ, the counter’s output sign frequency is then 625 kHz. Consquently, having the timer rely down from 62500 will end in an interrupt each tenth of a second. Seconds, minutes, and hours are then up to date appropriately.

Elements

I selected an Arduino Nano because the clock’s microcontroller as a result of it supply the identical capabilities as bigger Arduino controllers however is in a extra compact kind issue and could be very low cost. Specifically, it contains the standard SPI and I2C interfaces which make it simple to interface to fashionable shows with their built-in drivers. The OCXO is a Raltron Electronics OX4120A-D3-5-10.000-3.3. Any appropriate OCXO may very well be used, even one with a distinction frequency by altering the divider ratio. It additionally is available in an ordinary 14-pin dual-in-package (DIP) package deal configuration, though solely 4 pins are literally used. The OCXO is a 3.3-volt half, so a LD1117V33C linear low-drop-out (LDO) voltage regulator derives this voltage from the 5-volt system voltage that’s offered by the USB-C connection used to energy the clock. A second, equivalent, regulator offers 3.3V to the show. The regulator kind shouldn’t be vital, various LDO or switching sorts may very well be used. The 4-bit counter is 74HC191. Though the counter is powered by the 5V system voltage, its enter is appropriate with the OCXO’s 3.3V logic stage so a voltage shifter shouldn’t be obligatory.

The show is made up of six Adafruit CharliePlex FeatherWings. Every CharliePlex consists of 7×15 pixel array of LEDs which will be pushed individually in a graphical mode or utilizing fonts constructed into the Adafruit_IS31FL3731 library. They’re communicated with through an I2C connection. The deal with of every CharliePlex will be set to certainly one of two values: by default 0x74 however you will be modified to 0x77 by bridging a hyperlink with solder. To drive a number of shows I used a breakout board with the TCA9548A I2C expander chip, which lets me join a number of CharliePlex’s and deal with every on a separate I2C bus, avoiding deal with collisions.

A single rotary encoder with a momentary press change is used because the person interface. This provides the clock a contemporary minimalist really feel. Separate press switches may in fact be used with solely minimal adjustments to the {hardware} and/or software program.

The entire parts used on this undertaking have through-hole packaging for simple building. A invoice of supplies with Digikey product reference numbers can be found in my Github repository.

Printed Circuit Board

The printed circuit board was designed in KiCad. The PCB design is made accessible within the repository each as KiCad recordsdata and in Gerber format for others to have fabricated or modify below the inventive commons licence.

The ultimate board shouldn’t be complicated and designed as a double sided board which is straightforward to solder. It’s will be simply damaged into two sections alongside two cutouts, both with a noticed or scoring and snapping. If damaged into part, pads are offered in order that headers will be soldered in to plug one board behind the opposite, making a extra compact kind suited to a desk clock. On this kind, the “high” board holds the show and rotary encoder, with all else on the again board. The rotary encoder is becoming within the centre of the board, however this might course be moved to elsewhere and hooked up through flying leads. The prototype PCB was ordered by means of JCL in China, however any PCB fabrication home would do. The underside portion of the board comprises the Arduino, the I2C expander, the OCXO, divider chain and voltage regulators. The voltage regulators are mounted with the tabs going through outwards so heatsinks will be fitted if required. This wasn’t discovered obligatory within the prototype, but when, for instance the shows are pushed at a excessive general brightness it might be obligatory. If the boards are mounted one behind the opposite, they need to be positioned again to again, so all of the parts will likely be accessible from the again of the clock. This may make the clock simpler to hack later if required. M3 holes are fitted within the board for simple mounting and these line up for the higher and decrease components of the board if they’re mounted again to again. Metallic spacers will be fitted to offer the right clearance and mechanical stability. Two mounting holes are additionally fitted above and beneath the OCXO. That is to offer mechanical stability. The OCXO is a comparatively heavy part and held into the board just by 4 pins in a DIP socket. That is additionally mounted vertically, so not significantly steady. A chunk of wire will be threaded by means of the 2 holes with its ends twisted collectively to carry the OCXO in place. Cable ties is also used, or a clamp if accessible. There are two units of schematics, PCBs and gerbers recordsdata. It is because the TCA9548A modules is available in two flavours. The Adafruit one has a spacing of 0.6 inches between the rows (the “N” model) whereas some modules accessible on eBay have a 0.7 inch spacing. Double test which one you’re utilizing earlier than fabricating the PCBs.

Software program

The software program can be accessible in my Github repository. The supply code depends on solely two further libraries, the aforementioned Adafruit_IS31FL3731 and the widespread Wire library which allows serial communication, important for I2C connection to the show. Driving the shows requires individually programming every of the 105 LEDs on every CharliePlex. That is accomplished utilizing a set of look-up tables (LUTs) which are outlined proper after the library contains within the supply code. There may be one LUT per numeral. It’s apparent by taking a look at them which numeral is saved through which LUT, and it’s easy to interchange the LUTs with a brand new set, representing a distinct font. Subsequent, setup code checks that all the CharliePlexes are functioning appropriately and can ship a debug message to any related pc over the USB serial interface if not. Subsequent Timer1 is configured to just accept pulses from an exterior clock and to rely down from 62499. That is 62499 and never 62500 to account for the time wanted to reset the counter every time it reaches zero and triggers an interrupt of this system’s major loop. The first operate of the principle loop is to name the subroutine that reads the rotary encoder. The encoder subroutine tries to get rid of change bounce and can be simply modifiable. The primary loop additionally updates the show, however solely when a flag bit has been set by the interrupt timer. There may be additionally a brightness variable right here which is person settable as is the variable for briefly growing the brightness of a digit when it’s being set. The code for the Timer1 interrupt service routine follows the principle loop. That is known as ten instances a second, and takes care of incrementing the seconds, minutes, and hours as wanted. A pair of LEDs between the seconds and minutes, and one other pair of LEDs between the minutes and hours are additionally flashed right here, toggling on and off each half second. Their operate may very well be simply modified if desired. The ultimate subroutine handles transmitting replace to the show through the TCA9548A I2C expander chip.

Accuracy

The OX4120A-D3-5-10.000-3.3 used on this undertaking is a set OCXO—its frequency cannot be adjusted. Different OCXOs permit changes to be made by making use of a management voltage to one of many pins, however I went with the easier oscillator its stability was believed to be excessive sufficient for this undertaking to not require adjustment. To test the accuracy of the clock requires a fair increased accuracy reference clock. The most effective the creator had in his lab was a HP 53150A frequency counter with its personal OCXO reference. It was final calibrated in 2013. When measuring the OCXO reference the frequency on the counter fluctuated between 10,000,000 and 9,999,999. This means an settlement, and therefore accuracy, of higher than 1 half in 10,000,000. Being newer, it’s seemingly that the OCXO on this clock is healthier than HP counter!

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Previous ArticleBrett Favre Reveals Unhappy Particulars About Toby Keith’s Closing Days – ‘He Was Simply Drained’
Next Article John Maclean Pic Starring Tim Roth, Jack Lowden Sells
Dane
  • Website

Related Posts

Tech News

Meta to cease its AI chatbots from speaking to teenagers about suicide

September 3, 2025
Tech News

Jaguar Land Rover manufacturing severely hit by cyber assault

September 2, 2025
Tech News

IEEE Presidents Notice: Preserving Tech Historical past’s Affect

September 2, 2025
Add A Comment
Leave A Reply Cancel Reply

Editors Picks
Categories
  • Entertainment News
  • Gadgets & Tech
  • Hollywood
  • Latest News
  • Opinions
  • Politics
  • Sports
  • Tech News
  • Technology
  • Travel
  • Trending News
  • World Economy
  • World News
Our Picks

This Self-Heating Mug Retains Issues Heat—and Easy

November 15, 2024

Ukraine-Russia warfare drags on into 2024 | Russia-Ukraine warfare

December 26, 2023

Opinion | The Proficient Democrats Who Aren’t Working for President

July 9, 2024
Most Popular

Circumventing SWIFT & Neocon Coup Of American International Coverage

September 3, 2025

At Meta, Millions of Underage Users Were an ‘Open Secret,’ States Say

November 26, 2023

Elon Musk Says All Money Raised On X From Israel-Gaza News Will Go to Hospitals in Israel and Gaza

November 26, 2023
Categories
  • Entertainment News
  • Gadgets & Tech
  • Hollywood
  • Latest News
  • Opinions
  • Politics
  • Sports
  • Tech News
  • Technology
  • Travel
  • Trending News
  • World Economy
  • World News
  • Privacy Policy
  • Disclaimer
  • Terms of Service
  • About us
  • Contact us
  • Sponsored Post
Copyright © 2023 Pokonews.com All Rights Reserved.

Type above and press Enter to search. Press Esc to cancel.

Ad Blocker Enabled!
Ad Blocker Enabled!
Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.