Skip to the content
2 layers19.5 × 50.2 mmFoxis jeelink clone, the printed circuit board in 3D

Foxis jeelink clone

poempelfox/jeelink-clone

an attempt to build a clone of a certain RFM69-based USB-connected receiver

Size
19.5 × 50.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
28
Nets
57
Pads
141
Tracks, vias
312, 57
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
2 Aug 2024
Updated
12 Aug 2024

Overview

Foxis jeelink clone is an open-source printed circuit board by poempelfox, from the poempelfox/jeelink-clone repository on GitHub. It is a 2-layer board of 19.5 × 50.2 mm with 28 parts on 57 nets, routed with 312 tracks and 57 vias.

It is built around the ATMEGA328P-AU and FT232RL. Its parts include 12 capacitors, 5 resistors, 4 connectors, 3 ICs and 3 diodes. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

README.md

Foxis JeeLink-clone

a picture showing a fully assembled Foxis Jeelink-clone

Intro

JeeLinks are transceivers with a microcontroller, that can be attached to the USB port of a PC. They were designed many years ago by JeeLabs a.k.a. Jean-Claude Wippler, and like all of the (many!) cool designs on his now sadly defunct weblog under jeelabs.org, they were completely Open-Source-Hardware - while there was a webshop where you could buy ready-made JeeLinks if you were lazy, you could also just build them yourself, or modify the designs.

I use many JeeLinks as receivers for my various "FoxTemp" sensors like foxtemp2016 or foxtemp2024. For that, the JeeLink is flashed with the "LaCrosse" sketch developed by the FHEM project (with one minor source code modification needed to adapt the settings) and attached to a PC, where a little deamon makes the received data available for query via network.

Unfortunately, by now jeelabs.org is completely defunct and you can only access the treasure trove of information that used to be hosted there through archive.org. The webshop is still there, but it is in the UK - and thanks to Brexit, ordering from there to mainland Europe promises to be so painful that I want to avoid it at all cost.

So where do I get my JeeLinks now? Well the plan is to do what I've been doing a lot recently: Design a PCB with mostly SMD components on one side, and send it off to china for fabrication. And you may ask, "Wait, doesn't that have the same problems as ordering from the UK?", and of course in both cases it means crossing the border from outside the EU into the EU taxation and customs union. The difference is that the chinese fab is registered as a so called IOSS, Import One Stop Shop. That means (as of July 2024) that for any orders below 150 Euro the shop will directly collect the applicable VAT and transfer it to EU customs. As orders below 150 Euro are exempt from taxes other than VAT, that means everything has already been paid when your parcel enters the EU. And that makes a huge difference, because most parcel services massively rip you off with the tax handling. For example, DHL Express will charge a "Kapitalbereitstellungs- Provision" of (at least) a whopping 14.88 Euros, even if there was just a single cent of VAT to be paid for the import, for borrowing you the money for two days. It's also not possible to opt out of their shitty disservice and just collect the parcel yourself at the next customs office. But if there is no VAT or other taxes to be paid, your parcel just arrives without the ripoff.

Note that this is NOT a full JeeLink clone. My goal was to have something that works with the FHEM-LaCrosse- Sketch so I don't have to touch that firmware. But apart from that, I saw no reason to stay too true to the original, so a few modifications have been made:

  • proper JeeLinks also have an extra 16 Mbit flash memory chip. That is not used by the LaCrosse sketch, so I left it out.
  • JeeLinks have an ultrabright blue LED that massively annoyed me (I don't like getting blind from accidently looking at the stick. I also don't need it to illuminate the whole room.), so it was replaced with a very ordinary and certainly not ultrabright yellow LED.
  • this did not import the old design files (which were in a very old Eagle file format that I couldn't get imported) and instead started from scratch in Kicad, so the positioning of things like LEDs is entirely different.
  • When these things come from the factory, they have no bootloader that would permit programming them via USB yet. So we need to use ISP, but a normal-sized ISP connector is way too large to fit, and I didn't want to construct my own adapter. So instead, I put a "Tag-Connect" 6 pin connector there that is easily temporarily attachable with one of their cables. Unfortunately, these cables are very expensive, but they seem to work quite well.
  • I wanted the ability to attach either a wire antenna (like on normal JeeLinks) or something better, so it's optionally possible to solder on an SMA connector. However, my first tests indicate that this is not worth it - it does not improve reception that much, at least not in my usecases. And you will have to drill a big hole into the case if you want to use that.

Current status: A revision 0 was ordered from JLCPCB. Unfortunately, it contained a very dumb mayor error, that made it completely non-functional. So a revision 1 was ordered, that fixed the mayor flaw and also made some improvements to the outer dimensions to better fit the case. This revision seems to work very well. This project is now considered finished.

For your entertainment, here is a picture of the botched repair of a revision 0 board to make it work:

a picture showing a revision 0 board that has been repaired with wire to make it work. It looks quite bad.

Hardware

This consists of a board with an ATMEGA328P AVR, an FT232RL USB-to-serial converter chip, and some other minor parts like LEDs, caps and resistors that I will not list here - take a look at the Kicad files, or the "BOM"-file in the production data. This board was assembled by a cheap SMT PCB fab, namely JLCPCB. Note that the board is so small that it actually violates their recommended error margins in quite a few places, like distance of soldering pads from the edge of the board, so if things go badly, you might have problems with e.g. cut pads and you really can't complain about that. I was really counting on the fact that they are usually far better than they claim to be, and it worked out for me.

image showing the board as it arrived from JLCPCB, both the top and the bottom. Some parts are already soldered on, but it's also clearly visible that some parts are still missing.

Besides the ready made boards, there are three additional parts that would be very expensive to assemble at JLCPCB because they are not standard SMT parts, so these were soldered on manually later. These parts are:

  • a HopeRF RFM69CW wireless radio module
  • a Molex 48037-2200 USB (USB-A) connector
  • either a 82mm wire antenna, or a SMA connector (I used Adafruit 1865) for connecting up an external antenna

Optional but highly recommended is also a case. The whole thing was designed so it fits into a Bud Industries USB-7201-C enclosure. (The original Jeelink also used either that or something that looked VERY similiar.) This enclosure does have a small hole at the end that is obviously intended to attach a lanyard, however we can abuse this to get the small wire antenna out of the case, and the soldering point for the wire antenna has been strategically placed for this. Unfortunately this hole actually has a plastic tube going through all the way from one side to the other, so you'll have to break a little bit of the plastic to get the wire in - the picture below shows how I did this with a cutter. You really don't need to break out the whole thing, just enough for the wire to get through.

image showing the USB enclosure, and a side cutter that is pointed at the location where a hole is needed to get the wire antenna out

Finally, this is how it looks like when fully assembled, without the enclosure on the left, and with the enclosure on the right:

image showing the fully assembled device, without and with a case

Programming

As this will arrive without any bootloader, there really is no way to get any firmware onto this thing without doing ISP programming of the AVR chip on the board at least once.

You then have the choice to either directly program the main firmware you want to put on it via ISP, or instead program the "Optiboot" bootloader, that will then allow you to reprogram the main firmware as often as you like over USB, but cost you 512 bytes of Flash space.

Note that the 'VCC' pin on the ISP connector of the board is not connected. You will therefore need to power the board through USB even for the ISP programming. You also need to make really sure your programmer is set to 3.3V, else you will fry the radio module.

I used my trusty old STK500 (with v2 firmware) to program Optiboot. You will need to adapt the below for other programmers. The sequence I used was:

text

After that, this thing basically behaves like a normal Jeelink would, and flashing the main firmware on was simply done via its own USB port (for avrdude this is an "arduino" programmer at 57600 baud).

Files

You can find the Kicad files in the kicad directory of this repository.

The production files (GERBER, BOM, CPL) that were sent to JLCPCB are in the jlcpcb/production_files subdirectory.

Finally, so you don't have to open Kicad just to take a quick look, there is a PDF of the schematic and of the PCB in the pdf directory. There are also two images from the 3D viewer in Kicad: 3D viewer front 3D viewer back.

Parts

28
QtyValueFootprintReferences
6100nFCapacitor_SMD:C_0402_1005MetricC2, C3, C4, C6, C8, C9
210pFCapacitor_SMD:C_0402_1005MetricC10, C11
210uFCapacitor_SMD:C_0603_1608MetricC1, C5
222uFCapacitor_SMD:C_0603_1608MetricC7, C12
2470Ωfoxisfrickellibrary:R_0402_modsilkscreenR1, R5
110kΩfoxisfrickellibrary:R_0402_modsilkscreenR4
116 MHzfoxisfrickellibrary:OSC-SMD_4P-L3.2-W2.5-BLX1
11kΩfoxisfrickellibrary:R_0402_modsilkscreenR2
147kΩfoxisfrickellibrary:R_0402_modsilkscreenR3
1ATmega328P-APackage_QFP:TQFP-32_7x7mm_P0.8mmU1
1AVR-ISP-6Connector:Tag-Connect_TC2030-IDC-NL_2x03_P1.27mm_VerticalJ2
1FT232RLPackage_SO:SSOP-28_5.3x10.2mm_P0.65mmU2
1LED greenLED_SMD:LED_0805_2012MetricD1
1LED redLED_SMD:LED_0603_1608MetricD2
1LED yellowLED_SMD:LED_0603_1608MetricD3
1RFM69CWfoxisfrickellibrary:HOPERF_RFM69CWU3
1SMA connectorConnector_Coaxial:SMA_Samtec_SMA-J-P-X-ST-EM1_EdgeMountJ3
1USB_AConnector_USB:USB_A_Molex_48037-2200_HorizontalJ1
1WireAntennaConnector_Wire:SolderWire-0.25sqmm_1x01_D0.65mm_OD2mmJ4

Similar boards

  • 4 layers80 × 100 mmTempCtrl, the printed circuit board in 3D

    TempCtrl

    charlesbaynham/DigitalTemperatureController

    Schematic, PCB and source code for a high-precision digital temperature controller

    186 parts14
  • 4 layers100 × 100 mmGP22 board, the printed circuit board in 3D

    GP22 board

    charlesbaynham/GP22_RF_Photon_Correllation

    Schematic, PCB and source code for a low-cost TDC interface designed for performing RF--Photon correllation for atomic physics experiments

    147 parts11
  • 2 layers71.5 × 56 mmUSB PiDU, the printed circuit board in 3D

    USB PiDU

    PhirePhly/USB-PiDU

    Multiple switchable USB DCP power ports on a Raspberry Pi-sized board

    49 parts4MIT
  • 2 layers82.9 × 83.1 mmFLIGHT CONTROLLER, the printed circuit board in 3D

    FLIGHT CONTROLLER

    justraven/FlightController

    Flight Controller PCB Design, Utilized ATMega328P. Compatible with MultiWii

    65 parts2MIT
  • 2 layers110 × 60 mmResidential PCB Design SMD, the printed circuit board in 3D

    Residential PCB Design SMD

    UCHIC/CIWS-MWM-Logger

    Hardware and software for a magnetically-driven smart water meter datalogger

    44 parts2BSD-3-Clause
  • 2 layers58.4 × 141 mmSegment Display Board, the printed circuit board in 3D

    Segment Display Board

    FRC-1721/AccidentCounter

    A digital sign hung in the build space advertising days without incident

    94 parts1
  • 2 layers109.3 × 45.4 mmAVR BRIDGE ATMEGA328P, the printed circuit board in 3D

    AVR BRIDGE ATMEGA328P

    MCLEANS/AVR-BRIDGE-ATMEGA328P-PCB

    PCB design for the AVR-BRIDGE ATMEGA328P test board

    55 parts1
  • 4 layers105.4 × 58.9 mmDAQ Board, the printed circuit board in 3D

    DAQ Board

    sparkerBCI/FYP

    Brain Computer Interface 3-D Printed Prosthetic Hand

    145 parts1

Questions

How big is the Foxis jeelink clone PCB?

It measures 19.5 × 50.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Foxis jeelink clone use?

28 parts, built around the ATMEGA328P-AU and FT232RL. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Foxis jeelink clone KiCad files?

From the poempelfox/jeelink-clone repository on GitHub, at the commit this page was made from: the board is kicad/foxis-jeelink-clone/foxis-jeelink-clone.kicad_pcb and its schematic kicad/foxis-jeelink-clone/foxis-jeelink-clone.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Foxis jeelink clone design in my own project?

Its repository states no licence, so its author keeps all rights: ask poempelfox before reusing the design.