Showing posts with label educational. Show all posts
Showing posts with label educational. Show all posts

Sunday, 26 July 2026

WS2812 LED Project Idea

Introduction 
This short blog offers a simple solution for creating an LED light using WS2812 modules. The idea is meant as an example for students wanting to design their own LED light as a low-powered lamp replacement, entertainment device, outdoor garden light or any similar LED light devices.

Inspiration
It can be interesting for students to frequently mix up the electronic devices they are asked to conceptualise, design and build. From a post by the author Wech Holger on Hackster.io, a WS2812 LED software solution was sourced and updated for a different PSoC device. The post provided an idea for the LED light and a subsequent separate microcontroller project for students with varying technical capabilities.

WS2812 Connection Diagram
WS2812 Connection Diagram

Hardware
Focusing on the LED portion of the design, off-the-shelf WS2812 modules were selected. For this example design, four Adafruit #1426 modules with 8 x WS2812 LEDs were connected in series.

Generic WS2812 LED Strips with Headers
Generic WS2812 LED Strips with Headers

Two interconnecting boards were used at the electrical ends of the LED modules to make the series circuit.

For the hardware layout, the LED modules are arranged on a circular circuit board as shown below.

Example WS2812 Interconnecting Circuit Boards
Example WS2812 Interconnecting Circuit Board

The role of the interconnecting boards was to provide power and to gang the series IN-OUT communication connections. Several modules could be connected in this fashion.

Extract of WS2812 Light Schematic

Extract of WS2812 Light Schematic

To connect the LED modules, pin headers and sockets were fitted. The design could be simplified in several ways. One solution could be to remove the sockets and then solder pin headers directly to the interconnecting circuit boards.

Testing
To test the LED design, the example project Outlook-LED.cywrk from Hackster.io was rebuilt for an Infineon CY8CKIT-059 development board. The communications wire bus was moved to a new pin - P1.7.

PSoC Creator Updated Pin Mapping for Outlook-LED.cywrk
PSoC Creator Updated Pin Mapping for Outlook-LED.cywrk

The image below shows the LED board fitted into a garden LED bollard.

LED Bollard used for WS2812 Testing
LED Bollard used for WS2812 Testing

In the clip below, three LED colours were tested. The colour selection was activated using the terminal interface provided in the example PSoC project.

Sunday, 19 January 2025

Crosstalk Test PCB (Educational)

Introduction 
The Printed Circuit Board (PCB) design in this post was inspired by the well-known signal integrity educator, and professor, Eric Bogatin. The board design was based on content shown in a YouTube video created to demonstrate crosstalk.

Crosstalk PCB 3D
Crosstalk PCB 3D

Why This Design?
Following on from the PCB trace-to-trace crosstalk content created by YouTuber Robert Feranec with guest Eric Bogatin, I wanted to design a simple educational board that would allow crosstalk measurements to be made on a PCB and tested when passive elements were introduced into PCB traces. Crosstalk measurements with series and parallel resistor signal path terminations are common in many PCB designs and this PCB design was designed specifically for series terminations.

Circuit Board Design
A regular 1.6 mm board (FR4) double-sided PCB was chosen for the design. For the copper layers, a reference plane was placed on one side of the PCB and impedance-controlled traces were placed on the opposite side. Using PCB design software tools, the configuration of the trace impedance (width) was tuned for around 50 R impedance giving a 2.8 mm trace width. The 50 R impedance is given a tolerance of + 10 % as this is the standard tolerance for PCB fabrication houses in the local region.

Altium Impedance Profile 50 R for Crosstalk PCB
Altium Impedance Profile 50 R for Crosstalk PCB 

As a crosstalk PCB design features two signal traces, the spacing between the traces was set at less than a track width to ensure ample signal coupling between traces.

Crosstalk PCB 2D
Crosstalk PCB 2D

As the series element, a resistor footprint was included in one of the PCB test traces.

Crosstalk PCB Resistor Linked
Crosstalk PCB Resistor Linked

This footprint on the PCB provided an option to test with different resistor values and then measure the effects with suitable test equipment. A pulse generator with a fast edge and an oscilloscope are required.

The first setup on the test PCB has the series resistor on the same layer as the signal trace and the second test setup has the resistor on the opposite side to the trace, connected through vias.

Board Build and Initial Testing
For the board assembly, the Molex SMA connectors were fitted. The Molex part number is 
0732512120. For the validation test, the resistors on the PCB were replaced with solder shorts.

During testing, the trace with the series resistor is referred to as the aggressor and the nearby sensing trace, is the victim. Further details relating to this setup and a further explanation can be found in the aforementioned video content with Robert Feranec.

First Test Setup with Crosstalk PCB and Pulse Generator
First Test Setup with Crosstalk PCB and Pulse Generator

For validation, measurements were taken using an oscilloscope with a bandwidth of less than 500 MHz and a simple pulse generator (Microchip version) designed in a previous blog.

Pulse Generator Frequency
Pulse Generator Frequency

Pulse Generator Rise Time
Pulse Generator Rise Time

With the pulse generator providing the 1.4 ns rising edge signal into the aggressor trace (CH2 blue trace), the connector at the near end of the victim trace (CH1 yellow trace) was connected to the oscilloscope.

Near End Crosstalk PCB Measurements
Near End Crosstalk PCB Measurements

For a second measurement, the two ends of the victim trace were connected to oscilloscope. When the pulse was applied to the aggressor,  the signal entering and then reflecting (near and far end) was measurable.

Near and Far End Crosstalk PCB Measurements
Near and Far End Crosstalk PCB Measurements


Summary
This short post introduced a printed circuit board for testing the behaviour of signals relating to crosstalk measurements. The option to use a series resistive element was included but not tested in this post. 

The PCB Gerber files are downloadable using the link below for those who prefer to build the board and perform testing at home, school or in the lab. The Gerber files use the format as defined on this page.

Crosstalk PCB Gerber Files