Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2020 Project Status? #13

Closed
ToddG opened this issue Apr 5, 2020 · 87 comments
Closed

2020 Project Status? #13

ToddG opened this issue Apr 5, 2020 · 87 comments

Comments

@ToddG
Copy link

ToddG commented Apr 5, 2020

Peter, this looks like an incredibly cool project. I have a boat, and I'd love to build one of these as the commercial options are expensive, bloated, and gobble up energy.

What's the status of this project?
Have you built and used one, and if so, what has been your experience using it?
Do you want/need contributors to this project? For one thing, a blog, and/or some current documentation might be nice.

So this ticket is really all about asking for a quick refresh of the docs, project status, project needs, etc.

@rszemeti
Copy link
Contributor

I am just completing the build of mine, I have some spare boards (unpopulated) available. I may have some spare components (eg the Skyworks switch) .. I'd like to at least get mine up and running first though.

@ToddG
Copy link
Author

ToddG commented Apr 27, 2020 via email

@boelle
Copy link

boelle commented Jul 26, 2020

i did not want to open an issue just to ask this one: but what does it cost to build one myself compared to getting a commercial unit?

@rszemeti
Copy link
Contributor

rszemeti commented Jul 26, 2020 via email

@boelle
Copy link

boelle commented Jul 27, 2020

that is not so bad (price)

and i do have experience with SMD and have the tools (dispenser and oven)

@mfrostus
Copy link

Are the hardware components list and schemas on OSH?

@rszemeti
Copy link
Contributor

rszemeti commented Aug 29, 2020 via email

@peterantypas
Copy link
Owner

Hello all. I have suddenly found my self with spare time on my hands, and I'm thinking about reviving this project, or rather the evolved version of it.

I built the next version of the circuit on my boat (including antenna) and it has been operating for 3 years now. I'd like to start a discussion about the best way to make it available. Here are some basic facts about it (sorry, all the internal photos of it were lost overboard with my iPhone!)

  • 1" wide 4-layer PCBA directly attached via SMA connector to custom "flowerpot" antenna, tuned to 162MHz with SWR of < 1.25:1
  • Telit SE873 GNSS with ceramic antenna on the PCBA
  • Full 2W output, using Toshiba AFTxxxx series RF MOSFET as PA, confirmed range of 10 NM
  • Redesigned RX section, easily "sees" targets > 15 NM away depending on mounting height
  • STM32L432 MCU with HAL code
  • Running entirely from 12V with onboard buck converter and appropriate input filter
  • TX burst current supplied by 10mF supercap on the PCBA

The design allows the transponder and antenna to be mounted as one piece somewhere up high, directly onto 1" railing, secured using UV-resistant heat shrink tubing (3 years and counting, still looks great). The 4-wire (phone) cable to the cabin travels inside the railing or mast, until it hits a control circuit where it's converted to USB for feeding into a RPi or some other similar device. I've had great success with 3.3V level UART travelling > 35 feet in twisted pair cable with no issues.

I have often thought about commercializing this, but the amount of regulatory pain here in the US is higher than my threshold (I deal with the FCC as part of my day job).

What if I made this available as a do-it-yourself kit? I think this would allow me to dodge the regulatory reef, but it comes with its own challenges. What would a system like this be worth?

Let's discuss here.

@rszemeti
Copy link
Contributor

rszemeti commented Aug 29, 2020 via email

@peterantypas
Copy link
Owner

Thanks for the feedback. For sure, SMD will be a challenge. I'm thinking of bundling a 95% finished PCBA, the antenna, cabling and control box parts, plus instructions for programming firmware (which will be open source, here on github).These will require significant enough assembly to be considered a "kit" but will still be within the reach of a reasonably tech-savvy person.

@marcelrv
Copy link

That would be really interesting.

As far as I understand a kit can be fairly complete... E.g. I understood the raspberry pi also got started that way (maybe still?). That is also a complete PCB.. just the fact that it was without housing was already enough.

What sort of cost are you expecting.. the cheap Chinese versions start @ 200€ already, can imagine this comes close.
Note have you considered having only the 12v and the nmea connection wireless, e.g. using additional esp32 or similar. E.g. having power already available in the mast, no need to run new wires

@mfrostus
Copy link

I may the least capable here just so you know. I have successfully completed some Adafruit projects but I am limited to following detailed instruction and cut and paste scripts. I can even do some basic tings in Linux if i have code to cut and paste. Hardware wise I can connect boards to each other but soldering on a board is a challenge for me. my dexterity and eyesight just isn't what it used to be. And it was probably never as good as I want to think so. But I do feel a sencse of accomplishment even just being able to do the above.
I have a feeling there might be more than a few folks like me in this regard. I am very interested in this particular project because my partner and i have been hunting for the right boat for quite some time and we think we have foind it finally. But it is tight in our budget and has almost no usable electronic instruments on it save the transducers. To hit our budget we need to scrounge and scrimp and open source wherever we can. So a project like this isn't just fun and rewarding for people like me, it could be the difference between getting on the water or not. What you are doing here is that important and just so close. I would snap up anything like what you are describing that might possibly make it possible for me.

@peterantypas
Copy link
Owner

Interesting take, @marcelrv. What are you thinking in terms of wireless NMEA? Joining an existing WiFi network on the boat, or being the WiFi gateway for NMEA data?

@rszemeti
Copy link
Contributor

rszemeti commented Aug 30, 2020 via email

@marcelrv
Copy link

marcelrv commented Aug 30, 2020

@peterantypas what I personally use on my boat is from this project https://github.com/jeelabs/esp-link
It normally connects to the accespoint (openplotter project). However if it can't find it it becomes a hotspot itself.
It has basic webpage to allow the configuration, e.g Search for accespoints and setting password etc.

Obviously it can be made much more fancy, but it was a very low effort way of avoiding wiring through very hard to get to places on the boat. E.g mast wiring and related through deck connections I find a huge pain in the **

I designed small PCB that contains the needed buck converter and max3232 to go from TTL to serial.

Note.. I used jlcpcb for my project... I soldered the smd components by hand. However I think they also offer a fairly low cost and assembly service. ( I'm not affiliated with the guys, nor tried their assembly service, but it would be what I would consider if any of my PCB projects would be in higher demand than <10 units)

@peterantypas
Copy link
Owner

Here is a photo of the final PCB I installed on my boat. It is very small. I can redo the layout as a Raspberry Pi hat and leave it up to the end user to integrate it as they like. What are your thoughts?

IMG_0754

@rszemeti
Copy link
Contributor

rszemeti commented Aug 31, 2020 via email

@peterantypas
Copy link
Owner

Here is how the current unit is assembled. Notice the location of the GNSS module and chip antenna. It works great, no need for anything external.

IMG_0755

@peterantypas
Copy link
Owner

And here is the final installation on my boat. It's not an ideal photo, but that's the only one I could find on short notice. The transponder is mounted on a 1" fiberglass mast secured to the rear railing. It has performed very well. From an RX perspective, I can see targets > 12 NM away, so I haven't had a compelling reason to mount it higher.

Your mileage may vary, of course, but I want to keep it simple for now and avoid adding another wireless module to it (which is another point of failure potentially).

My main goal is to create the best possible low cost solution for the boat that has nothing, because I want every boater out there to have one. That's my "vision" if you like.

TransponderOnBoat

@rszemeti
Copy link
Contributor

rszemeti commented Aug 31, 2020 via email

@peterantypas
Copy link
Owner

Yeah, this seems to be the prevailing paradigm, and I'm all about shuttering paradigms. There is no compelling reason for the transponder unit to be located inside the cabin. Building it into an IP67 enclosure at the base of the antenna removes the dependency on third party antennas, and offers the best possible performance and user experience. This is straight out of Apple's playbook ;)

@mfrostus
Copy link

I had not considered an exterior, all-in-one device. My instinct is to keep electrical bits as far from the wet bits as possible, but I love the elegance of a single sealed unit with its own antenna. great idea! I'm all for it.

@rszemeti
Copy link
Contributor

rszemeti commented Aug 31, 2020 via email

@rszemeti
Copy link
Contributor

rszemeti commented Aug 31, 2020 via email

@marcelrv
Copy link

Fully agree... with this size having it as build inside a tube is perfect...
No worry about the wireless module... it can very easily be added, slide inside the tube as well, no need to have it on the PCB itself.

Would not go for RPI hat, if anyone want it to connect it to RPI, can just connect the 3 wires. Maybe to support this flavour you may want to have a pin for low volt (3v3) power in, so it would not need the 12V if there is 3v3 / or 5V available from the RPI

@peterantypas
Copy link
Owner

The PA needs a 28ms 600mA burst at 7.5V for transmission. Currently, this is supplied by an LDO fed from a 10mF supercapacitor which gets slowly charged to 12V and then discharged to about 9V during a packet transmission. To power the unit from 5V, I will need to add a boost circuit with the associated EMI risks, but it's doable. Definitely an option to consider.

In terms of cable, I originally used 4-wire twisted pair phone cable. I'm thinking of going to Cat-5 next so there will be enough signals for 2 different voltage options, TX enable/disable function, RX status for LEDs, GNSS status, etc.

In my current control box I used an MCU to analyze the NMEA messages for controlling status LEDs. That was probably overkill ;P

@boelle
Copy link

boelle commented Aug 31, 2020

a kit would be nice, and all you have to do to make it a kit is for the end user to do something to make it work

Soldering on a smd fuse or power connector would do the trick

A side Q i got in my head is if this could be connected to a chart plotter etc?

As for the hat and all in one idea i would not like that, spec if it means i had to get up the mast to do repairs
and pi's tend to get a corrupt sd card now and then.

@rszemeti
Copy link
Contributor

rszemeti commented Aug 31, 2020 via email

@peterantypas
Copy link
Owner

peterantypas commented Sep 3, 2020

Update:

With the help of a former colleague-turned-consultant (an Apple/GoPro alum), I am finalizing the mechanical aspects of the transponder design to achieve IP68 while still being easy to assemble as a kit.

I have updated the EE design to lower the BOM cost and I'll be validating it next week. If all goes well, I should have the new design + updated firmware posted here within a month.

The kit will most likely go for sale on tindie.com, but I'm not sure exactly how long it will take. The mechanical design will require a custom moulded part, and that process always takes a couple of months or more.

I went sailing today and took a screenshot of the AIS overlay in iNavX for iPad. This should give you an idea of the performance.

IMG_0004

@marcelrv
Copy link

marcelrv commented Sep 3, 2020

That's great news.
BTW, for the mechanical part, that sounds somewhat complex & expensive. Could you consider this as optional part of the kit.
I can imagine a 3D printed part would also work very fine. I'm using various 3D printed (replacement) parts on my boat with good succes

@peterantypas
Copy link
Owner

Update: Latest board works as expected with a couple of caveats:

  1. The total output power at the fundamental is +32 dB, so not quite 2 Watts. I could raise it a bit, but:
  2. There is a significant 2nd harmonic component that is best suppressed with a notch at the very output, suggesting that the RF switch itself is responsible. Even with the notch and duty cycle adjustments, the level of this harmonic would still violate FCC rules given that it falls within a restricted band (aviation).

That said, I'm not particularly worried about this at the moment. I will validate one more spin of the PCBA and should be ready to update github in the next couple of weeks. I will do this using "git move", so the entire legacy project will move under a "Legacy" subdirectory.

The new firmware will have a proper BSP architecture to support new board iterations with little effort. Also, the bootloader will go away and it will rely on ST's ROM bootloader for DFU over UART. I will include a Python script for this.

@rszemeti
Copy link
Contributor

rszemeti commented Sep 23, 2020 via email

@peterantypas
Copy link
Owner

peterantypas commented Sep 25, 2020

There was another issue with the current board: Spurious emissions due to improper ramp up and ramp down:

Spurs

The solution required both a hardware and a firmware change, but things look much better now:

NoSpurs

The updates will be in the next revision. Note that there is a 10dB pad at the input of the SA, so add 10dB to all measurements.

@marcelrv
Copy link

indeed significant improvement in the 2nd one. Now only very minimal spike left indeed

@peterantypas
Copy link
Owner

peterantypas commented Sep 25, 2020

The last issue that makes the design non-compliant (for FCC anyway) is the harmonic signature:

Harmonics

All evidence suggests that the main culprit is the (rather inexpensive) Skyworks RF switch I used (13330-397LF).

I was able to get the second harmonic where it is by constructing a single pole notch filter at the output. I am designing a 3-pole notch for the next PCB, so hopefully it will get close to the level of the 3d. That said, I'm not going to worry too much about it.

In case you're wondering, there is an extra 10dB of attenuation at the input of the SA, so add 10dB to all measurements ;)

@peterantypas
Copy link
Owner

Here is why I'm not going to worry about the harmonics:

Antenna-Broadband-S11

It turns out that the antenna is such a horrible radiator for the 2nd harmonic that it acts as a secondary notch filter, with an additional mismatch loss of 6dB (or thereabouts). I can see why this would be a concern for a device that connects to a user-supplied antenna, but this is not the case here.

So at 3 meters, assuming a normal free space path loss of 32dB, the radiated power of the 2nd harmonic should be -2.1 - 6 - 32 = -37.1dB, and that assumes 100% antenna efficiency. This is still 12dB above the FCC limit, but there is no way that this 27ms "click" in the aviation band will interfere with an aircraft flying hundreds or thousands of feet above your boat :D

@rszemeti
Copy link
Contributor

rszemeti commented Sep 25, 2020 via email

@peterantypas
Copy link
Owner

peterantypas commented Sep 25, 2020

I need at least 30dB of total attenuation in the 2nd harmonic to be compliant, and it can only be effective past the RF switch. I have not been able to devise a low pass filter that will achieve this without at least 1.4dB loss at the fundamental as well, but definitely want to explore this option too.

I sent a bunch of boards to JLCPCB for fab yesterday. There are 5 different RF switches and 2 filter configurations in there that I want to try out, so hopefully one of them will work well enough. We may just end up with a design that only transmits at +31dBm, which is still OK, it will have a few miles of range.

@rszemeti
Copy link
Contributor

rszemeti commented Sep 25, 2020 via email

@peterantypas
Copy link
Owner

Yeah, I really wanted to avoid anything between the switch and the antenna. But I got the result I wanted with a pretty sharp, high ripple Chebyshev LPF added to the PA output matching network. So I don't even think I'll need to evaluate other switches.

Remember to add 10dB to all these values since there's always an external pad on my SA:

IMG_0850

IMG_0851

IMG_0852

@rszemeti
Copy link
Contributor

rszemeti commented Sep 28, 2020 via email

@peterantypas
Copy link
Owner

Update:

I got the ROM bootloader to work fine and adapted a Python script from another one of my projects. Unfortunately, the current board cannot enter DFU mode over USART1 because the GNSS is tied to USART2 and is continuously sending data. So even though firmware can enter the ROM bootloader via a serial command, the bootloader immediately shuts down every interface except USART2 because it thinks that's where the firmware update will come from. Oops!

I did another board spin to validate the solution, but I totally forgot about the Chinese Harvest festival, so that will take a couple of weeks to get here.

@peterantypas
Copy link
Owner

The branch "new_design" is already started. I will continue updating it over the weekend and finally push to master.

@rszemeti
Copy link
Contributor

rszemeti commented Oct 3, 2020 via email

@rszemeti
Copy link
Contributor

rszemeti commented Oct 3, 2020 via email

@peterantypas
Copy link
Owner

That's definitely fixable, do you want to take a stab at it? I can give you commit privileges.

@rszemeti
Copy link
Contributor

rszemeti commented Oct 4, 2020 via email

@rszemeti
Copy link
Contributor

rszemeti commented Oct 4, 2020 via email

@peterantypas
Copy link
Owner

peterantypas commented Oct 4, 2020 via email

@peterantypas
Copy link
Owner

RE: Layer stackup, that's intentional. I don't remember the exact reason but I had much better luck with this a few years ago than the alternative, so it kind of stuck. I think it had to do with traces being too thin to achieve 50 Ohms between L1 and L2 in a coplanar waveguide configuration. I could be wrong though ...

@peterantypas
Copy link
Owner

I remember what it was: I wanted my RF traces to be wide enough to encase 0603 pads without creating stubs. Could not possibly achieve that with 0.1mm height between L1 and L2 with any material. I would have needed 0201s instead. Only way to get the "hot" trace to be wide enough at 50 Ohms was using L1 and L3.

@rszemeti
Copy link
Contributor

rszemeti commented Oct 4, 2020 via email

@rszemeti
Copy link
Contributor

rszemeti commented Oct 4, 2020 via email

@rszemeti
Copy link
Contributor

rszemeti commented Oct 4, 2020 via email

@peterantypas
Copy link
Owner

That's already the case. There is no power plane anywhere near the RF traces:

Screenshot from 2020-10-03 20-56-25

BTW, I don't see any of the attachments in your messages.

@rszemeti
Copy link
Contributor

rszemeti commented Oct 4, 2020 via email

@rszemeti
Copy link
Contributor

rszemeti commented Oct 4, 2020 via email

@peterantypas
Copy link
Owner

peterantypas commented Oct 4, 2020 via email

@peterantypas
Copy link
Owner

All latest designs and firmware have been pushed to the master branch. Closing this ticket now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants