Showing posts with label TruePosition. Show all posts
Showing posts with label TruePosition. Show all posts

Sunday, February 7, 2021

YATPGPSDO - Yet Another TruePosition GPSDO - Part 2: the hardware

The hardware for the GPSDO is very simple. There are two main parts: the power supply and the microcontroller.
All the design was done with KiCAD, design files will be shared in the last part of this series. 

The Power Supply

The power supply is nothing special. The TruePosition board needs 12V, with a peak current of 0.5A, which will decrease somewhat once the oven is warm and the heater switches off. The microcontroller and the display needs 5V with less than 100mA.

This does not need anything extraordinary. I already had nearly everything for the power supply, a 230V/12V transformer, bridge rectifier, capacitors and a 7812 and 7805 regulator. The only component i had to get was the connector/fuse holder/switch to the back.


The microcontroller

The controller part is similarly simple. There is a socket for the STM32 and there isn't much else. Two pushbuttons, four LEDs, three of them connected to the controller. There is also a transistor to switch the LCD backlight and one pot for the LCD contrast voltage. And a couple of headers for connecting all this.

The PCB

The PCB was designed to fit the available space in the instrument case. The transformer and the line voltage parts are on the left, carefully spaced for safety. The power supply is in the middle. Initially I wanted the regulators to go on the backside of the instrument for cooling, so they are both on the edge of the board, but later decided to use a heatsink, so they are connected via wires from their original place. Finally the right side hosts the controller the other small parts and the headers for the display, LEDs, etc. 


Manufacturing was done by JLCPCB, This is the finished board.

Assembly

For such a simple circuit, there wasn't much to get it working. I first populated the power supply part, and made sure that it works as intended. Getting into the case was easy, since the PCB was designed to fit perfectly. There was some fiddly work to get al the wires to the LCD, LEDs and switches, but eventually everything was there. I was considering putting pin headers everywhere, but then decided to simply solder the wires in place. I don't think I ever want to disassemble it and everything is accessible from above as well as from below.
I plugged in the STM32 and tested that it runs and drives the LCD properly. Then finally I connected the power and serial lead to the GPSDO.

It worked without any issues, although the software was far from completed at that time. The BluePill can be programmed in circuit, so I could now concentrate ot the firmware, it was actually easier to do testing in the assembled instrument instead of some breadboard state of completion. I used ST-link V2 to program, but the serial pins are also there on the PCB if someone uses serial programming. 
The next part will describe the software.




Friday, February 5, 2021

YATPGPSDO - Yet Another TruePosition GPSDO - Part 1.

Introduction

As promised in the teaser I am giving a detailed description on my version of the TruePosition GPSDO and releasing the design files.

This is the first part of a series, with the general description of the project, concentrating on the mechanical design. The next part will contain the electronics hardware and the third part the software component.

Why another GPSDO?

First let me give some justification for the project. There are already a ton of GPSDO projects on the net, and one can buy ready made units from all price segments. There are versions specifically for hobbyists, such as Leo Bodnar's unit or the BG7TBL frequency reference.  So why create a new one?

Well, first because it is a fun project, and second, because it is a fun project. I had a TruePosition boards hanging around. I got it years ago from eBay and they are still available for cheap. I did use it for adjusting counters, but by itself it is a pain to use, as it needs power and it needs some kind of a computer to control. Initially I looked around for designs, which there are plenty, but then I decided to spin my own. I wanted to use as many components from my drawer as I could, but I also had the goal to create a standalone unit, which only needs power to run. So after looking around of what I have and what I can use for this project, I came up with the following list of requirement.

  • Built in power supply. There are already more power bricks around than what I want, so let's not have even more. The case will be larger, and one needs to be careful with the line voltage, but that is OK. I already had a suitable transformer, voltage regulators and most important a case that seemed to be large enough to fit everything.
  • Have a simple, but informative user interface. I had a 128x64 pixel graphical LCD, which is probably an overkill for this, but hey, it doesn't really make anything more complex, except for the software. But that can even be updated later and it looks cool. However, I also wanted some status LEDs to check the status at a glance.
  • Be a standalone unit, it should just works without any external intervention or connection. 
  • Use an STM32 BluePill for controller. I have a bunch of these cheap units so why not use one. This looked to be a good learning project, as I have not really used the STM32 before.
  • No computer interface. I just don't need it right now, but I did keep in mind to have the possibility of maybe later adding it in the form of a serial or USB port.
  • No distribution amplifier. It would make sense, but I decided to build a separate amplifier once I need one. This is going to be a 10Mhz / 1PPS reference only.

General description

Let's go from outside to inside. Probably the hardest part of hobby projects is to have a nice casing for whatever one builds. At least for me it is definitely the case (no pun intended). I guess if I had a machine shop, this would make it easier, but I don't, so...

Not all is lost though, fortunately ready made cases can be bought in every shape and form or old instruments can be repurposed. I was lucky, I had an unused case, which was originally destined to host a small power supply, but it never happened. It is approximately a 20x20x8 cm size quite good quality aluminium case, so all components should fit comfortably.

It was important to find a case first, as it determines the PCB design so it is easiest to mount it inside.

The front contains the 10Mhz and 1 PPS outputs, two buttons for control and 4 LEDs for power (green), lock (green), holdover (yellow) and failure (red) and of course the LCD. Which required a lot of careful filing to fit. Sometime I will need to create labels for all of theses to have a really professional front panel.

The back has an IEC connector, switch and fuse and the MCA connector for the GPS antenna,

The inside contains the main components. The TruePosition board is front left. It's size is given, so everything else is based on it. The boards are supported by spacers on aluminium L profiles fastened to the side rails of the case.

The display, the LEDs, the buttons, and the connectors are all on the front pane.  I used ready made cables with the proper SMB connectors.

And finally, the main topic of this blog post: the power and controller board, which is placed aft in the case. It is one board with the power supply on the left. There is the large black transformer, and the STM32 on the right with some additional components. I designed the board to fit into the remaining place, so there wasn't really any problem with component placement. The display, buttons and LEDs are connected with pieces of ribbon cable.

The two voltage regulators were originally go onto the back, but I found a heatsink in my junk drawer that fit perfectly between the profiles holding the TruePosition board, so the regulators went to the front right. The heatsink is a bit overkill, but one can never go wrong with larger than required cooling.

So that is about the mechanical aspects of the unit. Of course everyone will need to adapt to whatever case and components they have.

In the next part I'll describe the design of the power / controller boards. See you soon in Part 2.



Thursday, January 28, 2021

YATPGPSDO - Yet another TruePosition GPSDO - a teaser

The TruePosition GPSDO board used in telecom equipment is a cheap solution to have a GPS controlled frequency reference. It is usually available on eBay for cheap. EEVblog has a buch of forum topics around it, so it is quite well understood.

It is a standalone GPSDO in the sense that it implements all GPSDO functions, it needs a GPS antenna and has outputs for 10MHz and 1PPS.

However, it is not standalone in the sense that it needs a little bit (or a lot, if you are so inclined) control. At the very minimum it needs a startup command sent via its serial interface to boot. Once booted, it will work all right, but there are a lot of other function that can be controlled, like position survey, satellite data, time, etc.

So since everyone seems to be doing it, I also decided to build my own GPSDO based on the TruePosition boards. I used a cheap STM32 BluePill board for controlling, a 128x64 bitmap LCD and buttons for user interface and yes, it even has a case and built-in power supply!

This was actually a learning project for me with STM32 in the Arduino environment. So the quality of the code reflects this at some places :-)

The hardware was design with KiCAD.

Once I tidy up the design documentation a bit I will release the blueprints and the software. Until then watch this place and look at the teaser pictures below.