
TempCtrl
charlesbaynham/DigitalTemperatureController
Schematic, PCB and source code for a high-precision digital temperature controller

an attempt to build a clone of a certain RFM69-based USB-connected receiver
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.
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:
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:
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.
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:
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.
Finally, this is how it looks like when fully assembled, without the enclosure on the left, and with the enclosure on the right:
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:
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).
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.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | 100nF | Capacitor_SMD:C_0402_1005Metric | C2, C3, C4, C6, C8, C9 |
| 2 | 10pF | Capacitor_SMD:C_0402_1005Metric | C10, C11 |
| 2 | 10uF | Capacitor_SMD:C_0603_1608Metric | C1, C5 |
| 2 | 22uF | Capacitor_SMD:C_0603_1608Metric | C7, C12 |
| 2 | 470Ω | foxisfrickellibrary:R_0402_modsilkscreen | R1, R5 |
| 1 | 10kΩ | foxisfrickellibrary:R_0402_modsilkscreen | R4 |
| 1 | 16 MHz | foxisfrickellibrary:OSC-SMD_4P-L3.2-W2.5-BL | X1 |
| 1 | 1kΩ | foxisfrickellibrary:R_0402_modsilkscreen | R2 |
| 1 | 47kΩ | foxisfrickellibrary:R_0402_modsilkscreen | R3 |
| 1 | ATmega328P-A | Package_QFP:TQFP-32_7x7mm_P0.8mm | U1 |
| 1 | AVR-ISP-6 | Connector:Tag-Connect_TC2030-IDC-NL_2x03_P1.27mm_Vertical | J2 |
| 1 | FT232RL | Package_SO:SSOP-28_5.3x10.2mm_P0.65mm | U2 |
| 1 | LED green | LED_SMD:LED_0805_2012Metric | D1 |
| 1 | LED red | LED_SMD:LED_0603_1608Metric | D2 |
| 1 | LED yellow | LED_SMD:LED_0603_1608Metric | D3 |
| 1 | RFM69CW | foxisfrickellibrary:HOPERF_RFM69CW | U3 |
| 1 | SMA connector | Connector_Coaxial:SMA_Samtec_SMA-J-P-X-ST-EM1_EdgeMount | J3 |
| 1 | USB_A | Connector_USB:USB_A_Molex_48037-2200_Horizontal | J1 |
| 1 | WireAntenna | Connector_Wire:SolderWire-0.25sqmm_1x01_D0.65mm_OD2mm | J4 |

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

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

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

justraven/FlightController
Flight Controller PCB Design, Utilized ATMega328P. Compatible with MultiWii

UCHIC/CIWS-MWM-Logger
Hardware and software for a magnetically-driven smart water meter datalogger

FRC-1721/AccidentCounter
A digital sign hung in the build space advertising days without incident

MCLEANS/AVR-BRIDGE-ATMEGA328P-PCB
PCB design for the AVR-BRIDGE ATMEGA328P test board

It measures 19.5 × 50.2 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask poempelfox before reusing the design.