
T41-Main+RF board V012
DRWJSCHMIDT/T41
This is the repository for the officially released V10, V11, and V12 versions of the T41 Software Defined Transceiver hardware and kits.

A handy little AVR-based LED Tester with a user-controlled current source
LEDtester is an open-source printed circuit board by AlanFord, from the AlanFord/LEDtester repository on GitHub. It is a 2-layer board of 60.7 × 35.3 mm with 25 parts on 24 nets.
It is built around the ATTINY84A-SSU and LM317L. Its parts include 11 resistors, 5 capacitors, 4 connectors, 3 ICs and 1 diode. It belongs with the AVR (ATmega, ATtiny) boards of this library.
This project is a device allowing the user to set the brightness of an LED by setting the applied voltage and reading the resulting resistor value needed for the desired brightness.
This project is derived from David Cook's excellent project documented at http://robotroom.com/LED-Tester-Pro-1.html. While the board design for the David's project doesn't seem to be available, I've tried to recreate David's concept (albeit with some of my own changes.)
David stated that he wasn't completely happy with the form factor of his LED Test Tool, so I went for a few changes:
All together these changes were problematic because more board edge space is now required for the extra header and potentiometers. Hence the board expanded somewhat. It's still powered by a 9V dry cell. I thought of just using a 1.5V dry cell with a boost voltage converter, but that seemed to be overkill for this project.
The board design is done in KiCad, because that's what I was taught over at Contextual Electronics.
The original design appears to have used a pcb 2.1 in x 1.2 in (53.34 mm x 30.48 mm). This included room for the two LED testing pads, each approximately 0.4 in by 0.5 in. (I'm presuming all of the dimensions are in 0.1 in increments). Room is also included for the LCD display, which in my case is 40 mm wide by 30 mm deep (assuming the two eyelets on the bottom are bent down or removed). The board is intended to be mounted on the side of a 9V battery, which would have maximum dimensions of 48.50 mm tall by 26.5 mm wide. The battery connection might be a two-terminal screw connection (Digikey A98333-ND) with dimensions of 5.54 mm wide x 6.5 mm deep and pads with 1.1 mm diameter holes. Of course, it might also just be a soldered wire connection, but this pad size should accomodate both approaches.
The final board dimensions will have to accomodate the LED testing pads and the LCD display on the front and the battery on the back. Additional free space will likely be needed to accomodate the ISP header as well as the potentiometer used for contrast control.
The ATTiny84 doesn't have a lot of pins to spare - after driving the LCD display with seven pins, one pin for the TX line, and two pins for inputs from the LED, there is only one data line left over. Not enough to use a programming interface. However, the advice found here https://www.avrfreaks.net/forum/can-i-reuse-isp-pins-other-taskstarget-atmega164p indicates that the MISO, MOSI, and SCK programming lines can share pins with the LCD display provided that 4.7K isolation resistors are used between the MCU and the LCD display.
A number of references discuss the necessary support hardware to get an ATTiny84 going. This includes
Three items need ADC connections - the LED low-side voltage monitor, the LED high-side voltage monitor, and the potentiometer used to set the desired LED voltage. The ATTiny84 has ADC capability on all of the Port A pins, so that will tie up three of them.
The LCD data lines need (based on the library in use) four sequential pin numbers on a single bus. Since I don't want to mess with the ~RESET line, that limits these pins to the Port A pins.
That leaves us with us with four connections to go, the serial TX and three lines for the HD44780 LCD controller. These connections are the Register Select (RS), the Read/Write (RW), and the Clock Enable (E).
We have one on Port A and three on Port B (while avoiding the ~RESET line, PB3). The last thing to factor
in is the fact that we will also be using the PA4, PA5, and PA6 pins for programming, so I don't want to
be driving these pins with any voltage. So here is the final layout -
The pinout for the HD44780 can be found at https://en.wikipedia.org/wiki/Hitachi_HD44780_LCD_controller but I'll repeat it here.
The ATTiny84 doesn't have real USART capability, but does have a Universal Serial Interface. This feature is more efficient that bit-banging a software serial line, but the output is restricted to a specific pin, making it hard to fit everything else in. Thus, this design does not use the USI and does serial the hard way. This limits us to a slow speed of 9600 baud. But since this feature is primarily for debugging, it's no great loss.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | 0.1uF | Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder | C201, C202, C302 |
| 3 | 10K | Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder | R204, R205, R402 |
| 3 | 4.5K | Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder | R403, R404, R405 |
| 2 | 47R | Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder | R202, R203 |
| 1 | 0.1 uF | Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder | C401 |
| 1 | 10k | led-tester:Panasonic_pot | R401 |
| 1 | 10k | led-tester:bourns_3386_potentiometer | R406 |
| 1 | 2.2 uF | Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder | C301 |
| 1 | 500R | led-tester:bourns_3386_potentiometer | R201 |
| 1 | ATtiny84A-SSU | Package_SO:SOIC-14_3.9x8.7mm_P1.27mm | U401 |
| 1 | Conn_02x04_Counter_Clockwise | led-tester:SOIC_clipProgSmall | J103 |
| 1 | Conn_02x07_Odd_Even | led-tester:Pololu_diplay_2x07 | J401 |
| 1 | LM317L | Package_SO:SO-8_3.9x4.9mm_P1.27mm | U201 |
| 1 | MCP1702 | Package_TO_SOT_SMD:SOT-23 | U301 |
| 1 | NOPOP | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J102 |
| 1 | NOPOP | led-tester:LED-LargePads | J101 |
| 1 | SWITCH_SPDT | led-tester:SPDT-switch | SW301 |
| 1 | Schottky | Diode_SMD:D_SOD-123 | D301 |
It measures 60.7 × 35.3 mm and has 2 copper layers, 1.6 mm thick.
25 parts, built around the ATTINY84A-SSU and LM317L. 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 AlanFord/LEDtester repository on GitHub, at the commit this page was made from: the board is KiCAD/led-tester.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask AlanFord before reusing the design.

DRWJSCHMIDT/T41
This is the repository for the officially released V10, V11, and V12 versions of the T41 Software Defined Transceiver hardware and kits.



K0RGI/T41-K9HZ
This is the repository for the officially released V10, V11, and V12 versions of the T41 Software Defined Transceiver hardware and kits.



ShawnHymel/wenk-sao
Wenk SAO ======== Wenk Shitty Add-On to be used as a training tool for the "Microcontrollers the Hard Way" workshop. See Documentation/Worksheet and Documentation/Slides for more information.
