
CapacitiveLedFadeTiny
JosephBrooksbank/CapacitiveLedFadeTiny
Controller for capacitive led modules for a table. Each module is powered by an ATTiny3224, with global control of color over i2c from an Arduino

Compact SWR and power meter for field use
QRP Digital RF Power and SWR Meter Rev 2 is an open-source printed circuit board by jackwangxyw, from the jackwangxyw/QRP-RF-Power-and-SWR-Meter repository on GitHub. It is a 4-layer board of 75 × 45 mm with 38 parts on 35 nets, routed with 95 tracks and 227 vias.
It is built around the ATTINY3224-XF and SI2301. Its parts include 13 resistors, 6 connectors, 5 capacitors, 3 diodes and 2 ICs. It belongs with the radio and wireless boards and the AVR (ATmega, ATtiny) boards of this library.
This is a compact standalone power and SWR meter designed for field use. The rectifier diodes used in this design have relatively flat performance up to 50MHz, so it is able to cover all of the HF bands. It is built around the ATtiny 3224 microcontroller, so writing your own or modifying the existing code is easy.

Rev 2 - Switched to the ATtiny 3224 microcontroller from the old and obsolete ATmega 328p, switched to a 4 layer board, added onboard lipo charging, connectorized the OLED, among various other small improvements.
To use the meter, simply flip the switch to the on position, plug in your RF input and output, and you're off to the races. If you want to switch the unit for power measurements between Watts and dBm, simply short press the tactile button. When no RF is passed through the meter, the screen will dim, then turn off, then go into standby mode in intervals set in the Code/SRC/config.h file. Passing RF through the meter will turn the screen back on and put it into active mode. (Note that the button does nothing when the screen is off.) You can also slide the switch off and back on again to put the device back into active mode as well. This feature is just an auto standby, not a true auto off, that is handled with the physical slide switch.
When the device is turned on via the switch, a splash screen shows indicating the software version and battery voltage. Then it jumps to the main screen.

This board has a built in calibration mode that you can enter by long pressing the tactile button on the PCB. This mode will display the raw adc counts for the VFWD and VREV that the microcontroller reads. To be clear, you DO NOT need to do this in normal use, the default values in the code have already been tested and are accurate. Only do this if you have the precision equipment to do so and want to gain that last 1-5% of accuracy. (That accuracy will probably be gone anyway as the diodes' responses vary with temperature and other factors anyway). You can also check the resting VFWD count of WAKE_COUNTS in Code/SRC/config.h. The default value should work, but if you notice your value is higher than the default, the device will never go into standby, so you can change that.
If you notice that your values are off by a consistent amount at every power level, you can change the CAL_OFFSET_DB in Code/SRC/config.h. (Again, this is NOT NEEDED for most people, only for the edge cases where that batch of diodes may be off) (Only do this if you notice something consistently wrong when comparing with precision equipment)
To calibrate the power measurements, take a RF source of known power output and frequency and plug this into the RF input, plug a dummy load into the RF output, transmit at many different power levels, record the VFWD ADC count and the power you inputted (in dBm) for every datapoint.(adc counts is x, dBm power is y) Take the values you get and input them into Desmos in a table, then run a quartic regression: y1 ~ a(log(x1))^4 + b(log(x1))^3 + c(log(x1))^2 + d·log(x1) + k. Take the a, b, c, d, and k values you obtain and input them in CAL_A through CAL_K in Code/SRC/config.h. This "calibration factor" will work for both power and SWR readings.
There are two hard limits with this hardware. The bottom limit is set by the 1N5711 rectifier diodes. They need ~0.33 V to conduct, so below ~0.25 W, readings will be inaccurate, power levels under ~0.1 W will read as 0. The top end limit is set at an ABSOLUTE max of 28.7 W, this is due to the 2.5v adc reference and maximum of 4095 ADC counts.
If you want to test SWR, you can put loads of known resistance on the RF output to check the reported value. (Eg: 50Ω = 1:1 100Ω = 2:1, 150Ω = 3:1, etc)

Assembly is quite simple. All of the SMD parts are 0805 size or smaller so it is easy to hand solder without a hot plate. There are plenty of tutorials on how to do this online. Some tips that I can give are to use LOTS of flux. (Seriously, this makes life so much easier) Simply solder all of the parts onto the PCB. When you solder the connector to the OLED display, make sure to double check the pinout of your specific display and match it to the PCB silkscreen. Some of the displays may have different pinouts.
There is also an interactive BOM which helps greatly with locating where parts go. Simply download the file to your computer, then simply opening the file will open up the interactive BOM in your web browser.
If you do decide to use the 3D printed case, simply put in the 8 heat set inserts on each side, and screw everything together, its pretty self explanatory. You may want to attach the battery to the top panel with some glue or double sided tape to prevent it from sliding/rattling around inside of the case.
Programming is easy, all you need is a UPDI programmer and a computer. Simply plug the programmer into your computer, connect the programmer's 3 pins into the PCB, and use PlatformIO to flash the board. The MCU runs at 10MHz because the ATtiny is only rated for 20MHz with a VDD above 4.5 V.
For the user interface, there are two fonts available to pick from in the Code/SRC/config.h file. You can change BIG_FONT between two font styles, choose whichever one suits your liking.
For REV 2 PCBs, the screen is software I2C because I totally missed the fact that the ATtiny supports hardware I2C and put them on the wrong pins. This works fine, but will likely be fixed in a future PCB revision.
cd Code
pio run # build
pio run -t upload # flash over UPDIThis design needs 1 or 2 pcbs depending on whether or not you build the 3D printed enclosure. You will need the Main PCB and the optional Connector Panel PCB. The gerber files found for these are in the Gerbers Folder. I like to order from JLCPCB as they have good quality and are relatively cheap, I got 5 of each of these PCBs for under $20 shipped. The Main PCB is a 4 layer PCB and needs the JLC04161H-7628 stackup or similar. The connector panel is just a normal 2 layer PCB. Everything else can be the JLCPCB defaults. (You can change the solder mask color to whatever suits your preference)
A CSV file is included with all of the parts, specs and links. One of these meters can be built for anywhere between $30-$50 each depending on where you live and what parts you have already and how many you decide to build.
PCB parts:
| Reference | Qty | Value | Footprint | Recommended Part |
|---|---|---|---|---|
| C1, C2 | 2 | 10nF | 805 | DigiKey Link |
| C3, C4 | 2 | 4.7uF | 805 | DigiKey Link |
| C5 | 1 | 0.1uF | 805 | DigiKey Link |
| D1, D2 | 2 | 1N5711 | SOD-123 | DigiKey Link |
| D3 | 1 | LED Red | 1206 | DigiKey Link |
| IC1 | 1 | ATTINY3224 | SOIC-14 | DigiKey Link |
| IC2 | 1 | MCP73831 | SOT-23-5 | DigiKey Link |
| J1, J2 | 2 | BNC Connector | Molex 0731385003 | DigiKey Link |
| J3 | 1 | USBC Receptacle | GCT_USB4800-03-A | DigiKey Link |
| J4 | 1 | OLED Connector | JST B4B-XH-A | DigiKey Link |
| J5 | 1 | UPDI Connector | 3 Pin 2.54mm Header | DigiKey Link |
| J6 | 1 | Battery Connector | Molex 0530480210 | DigiKey Link |
| Q1 | 1 | SI2301 | SOT-23-3 | DigiKey Link |
| R1, R2, R5, R6 | 4 | Thin Film 100R 1% | 1206 | DigiKey Link |
| R3, R4, R7, R8 | 4 | 10k 1% | 805 | DigiKey Link |
| R9, R10 | 2 | 5.1k 1% | 805 | DigiKey Link |
| R11 | 1 | 1.5k | 805 | DigiKey Link |
| R12 | 1 | 2k 1% | 805 | DigiKey Link |
| R15 | 1 | 100k | 805 | DigiKey Link |
| SW1 | 1 | Button | TS11-674-43-BK-160-RA-D | DigiKey Link |
| SW2 | 1 | SW_SPDT | SLW-129956-4A-RA-N-D | DigiKey Link |
| T1 | 1 | BN-43-202 | BN-43-202 | Kits and Parts Link |
Digikey cart link: https://www.digikey.com/short/31wwbcbf
(Certain SMD parts have more than you need, usually because buying 10 is cheaper than buying the required amount)
Other Parts:
| Part | Quantity | Link |
|---|---|---|
| 0.96in OLED | 1 | Amazon Link |
| Battery | 1 | Amazon Link |
| M2.5x5mm Button Head | 5 | Amazon Link |
| M2x3mm | 4 | Amazon Link |
| M2x5mm Socket Head | 8 | Amazon Link |
| M2 Threaded Inserts | 8 | Amazon Link |
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 100R 1% | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R1, R2, R5, R6 |
| 4 | 10k 1% | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R3, R4, R7, R8 |
| 3 | MountingHole | MountingHole:MountingHole_2.7mm_M2.5_DIN965_Pad | H1, H2, H3 |
| 2 | 10nF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C1, C2 |
| 2 | 1N5711 | Diode_SMD:D_SOD-123 | D1, D2 |
| 2 | 4.7uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C3, C4 |
| 2 | 5.1k 1% | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R9, R10 |
| 1 | 0.1uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C5 |
| 1 | 1.5k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R11 |
| 1 | 100k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R15 |
| 1 | 10:1 | a_jack_wang_footprints:BN-43-202_5Pin | T1 |
| 1 | 2k 1% | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R12 |
| 1 | ATTINY3224 | Package_SO:SOIC-14_3.9x8.7mm_P1.27mm | IC1 |
| 1 | Battery | Connector_Molex:Molex_PicoBlade_53048-0210_1x02_P1.25mm_Horizontal | J6 |
| 1 | Button | a_jack_wang_footprints:SW_TS11-674-43-BK-160-RA-D | SW1 |
| 1 | LED | LED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolder | D3 |
| 1 | MCP73831T | Package_TO_SOT_SMD:SOT-23-5_HandSoldering | IC2 |
| 1 | OLED | Connector_JST:JST_XH_B4B-XH-AM_1x04_P2.50mm_Vertical | J4 |
| 1 | RF In | a_jack_wang_footprints:Molex 0731385003 | J2 |
| 1 | RF Out | a_jack_wang_footprints:Molex 0731385003 | J1 |
| 1 | SI2301 | Package_TO_SOT_SMD:SOT-23-3 | Q1 |
| 1 | SW_SPDT | a_jack_wang_footprints:SW_SLW-129956-4A-RA-N-D | SW2 |
| 1 | UPDI | Connector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_Vertical | J5 |
| 1 | USB_C_Receptacle | a_jack_wang_footprints:GCT_USB4800-03-A | J3 |
| 1 | VFwd | TestPoint:TestPoint_Pad_D2.0mm | VFWD |
| 1 | VRev | TestPoint:TestPoint_Pad_D2.0mm | VREV |

JosephBrooksbank/CapacitiveLedFadeTiny
Controller for capacitive led modules for a table. Each module is powered by an ATTiny3224, with global control of color over i2c from an Arduino



giant-axon/lu.i-neuron-pcb
Lu.i is an electronic neuron circuit mimicking and illustrating the basic dynamics of real, biological neurons. The printed circuit board (PCB) features a configurable, fully analog implementation of the leaky…


CarbonComputers/Piberry-12
PiBerry v12 marks the final and most refined revision of the PiBerry handheld Linux terminal. Designed with both form and function in mind, this version brings together the best elements of previous iterations while…

potpurri/LiPo_Charger_TP4056_BuckBoost_TPS63020
This PCB is designed to safely charge a lithium-ion cell and provide a selectable 3.3V or 5V output. It's equipped with components that ensure safe charging and protection for the battery and supports flexible output…

It measures 75 × 45 mm and has 4 copper layers, 1.61 mm thick.
38 parts, built around the ATTINY3224-XF and SI2301. 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 jackwangxyw/QRP-RF-Power-and-SWR-Meter repository on GitHub, at the commit this page was made from: the board is Kicad PCB Files/QRP Digital RF Power and SWR Meter Rev 2/QRP Digital RF Power and SWR Meter Rev 2.kicad_pcb and its schematic Kicad PCB Files/QRP Digital RF Power and SWR Meter Connector Panel Rev 2/QRP Digital RF Power and SWR Meter Connector Panel Rev 2.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 jackwangxyw before reusing the design.