
RPi HAT RGBW LED Controller
mikelawrence/RPi-HAT-RGBW-LED-Controller
This is a Raspberry Pi B+ HAT that supports four high power LEDs. Main application is an RGB Floodlight.

DIY Projector Clock
Beamer1 is an open-source printed circuit board by shufps, from the shufps/diy-projector-clock repository on GitHub. It is a 2-layer board of 77 × 100 mm with 283 parts on 46 nets, routed with 823 tracks and 81 vias.
It is built around the LM3414MR, LD1117S33CTR-HXY and BAS416, with the BC807-40, BC817 and TSOP75238TR among its other parts. Its parts include 21 resistors, 20 capacitors, 6 connectors, 5 ICs and 3 diodes. It belongs with the lEDs and displays boards and the STM32 boards of this library.
A Clock Projector can project the time to a ceiling in the night.
There are lots of commercial alarm clocks with integrated clock projector on the market but I thought, it would be fun to build one myself.
Moreover it was a good project for becoming accustomed to the process of 3d-designing cases which can be 3d printed and to learn about designing tolerances.
The principle is easy – basically it works like a video beamer (or any other projecting clock^^).
I choosed a small negative (background black) 64×32 LCD which has the dimensions of just 15mm x 12mm (active area 11.18mm x 5.58mm).
The goal was to build a complete projector with not more than 50mm x 50mm x 50mm (which I didn’t managed … But close to^^).
A small LCD has the advantage that everything becomes smaller and cheaper – this influences heavily costs for optics because a smaller LCD needs smaller optics to project an low distorted image.
Moreover a smaller LCD needs smaller focal length for a decent sized imaged on the ceiling. A good distance would be 2m from LCD to ceiling.
The formula for image width depending from the focal length is defined as:
with: – S2 distance from lens to LCD and – S1 distance from lens to ceiling – W2 is the width of the LCD – W1 is the width of the projected image
The formulas show that the smaller the focal length the larger the projected image will be.
I decided to go for 25mm because there are cheap lenses which can be obtained for about $12 in china.
For our values that would magnify the image by about x80 – 11.1mm LCD width would become 88.1cm image width on the ceiling in a distance of 2m.
It was not really clear how strong a LED has to be in order to get a reasonable well readable picture in the night on the ceiling.
To be sure – actually I wasn’t really – I decided to use a high power LED with 1W and use a cheap chinese condensor lense to parallelize the light before it passes the LCD (this has do be done anyway but a condensor lens makes it possible to use more light because condensors are shaped in a way that allowes to get the lens as near to the LED as possible – so catching more light).
The two pictures show the condensor-lense which is directly mounted to the PCB the resulting light spot on the ceiling. It is a really gread lens which is made for my LED – so it fits perfectly and parallelizes the light nicely.
Two PCBs were designed – one holding the LCD and the actual projecting board.
The latter is equipped with 1W LED driver, STM32F103 Cortex ARM, a rotary encoder (for changing settings like brightness, standby-timer, time, …), USB, IR (both not used yet).
Originally, I aimed for 50mm x 50mm x 50mm but I only managed to get to 60mm x 60mm x 60mm 😥 😉
Here an overview about all I designed:
From left to right: Case with DIY projection lens (I skip this part – it worked but not really well), Sony E-Mount, C-Mount. In the middle the rest.
A custom LCD-holder was designed to perfectly mount the LCD on the right place on the PCB.
There are incredibly cheap chinase C-Mount lenses with a focal length of 25mm. They are sooo cheap that image quality is really really bad when using for fotography.
But surprisingly it works (almost) perfect for the Mini DIY Projector 😀
The pillow-effect (optical distortion where the edges are not straight but bent outwards) is almost neglectable – resulting a much better image than I expected (after reading reviews to this lense)
Just for fun – and because I have a 3d printer which works reliably without much attention – I did a variant for Sony E-Mount.
Here the projector with Walimex Pro 10mm 2.8 lens.
I have to admit – it isn’t that bright in reality but it’s still very readable although it is so large.
The image has more than 2m in width! And distortions almost non-existent 🙂
Downloads GitHub-Repository contains: – Schematic – Layout – Bill of material – STM32 Cortex ARM Source – 3D-STL-Files – Images
Thingiverse: https://www.thingiverse.com/thing:2887852
Archive of original site: https://web.archive.org/web/20241128173803/https://microengineer.eu/2018/05/01/diy-night-clock-projector/
| Qty | Value | Footprint | References |
|---|---|---|---|
| 8 | 100n | Capacitors_SMD:C_0805 | C7, C10, C13, C14, C15, C16, C17, C20 |
| 3 | 100 | Resistors_SMD:R_0805 | R9, R16, R17 |
| 3 | 10k | Resistors_SMD:R_1206 | R3, R5, R8 |
| 3 | 1µ | Resistors_SMD:R_1206 | C2, C3, C4 |
| 3 | 4k7 | Resistors_SMD:R_1206 | R19, R20, R21 |
| 2 | 10 | Resistors_SMD:R_0805 | R11, R12 |
| 2 | 10k | Resistors_SMD:R_0805 | R13, R14 |
| 2 | 10u | Capacitors_SMD:C_1206 | C9, C12 |
| 2 | 2k2 | Resistors_SMD:R_1206 | R1, R2 |
| 2 | 2p | Capacitors_SMD:C_0805 | C18, C19 |
| 2 | CONN_02X05 | Pin_Headers:Pin_Header_Straight_2x05_Pitch2.54mm_SMD | P1, P5 |
| 2 | MYUSB_B | myfootprints:MICROUSBB | P2, P4 |
| 1 | 0,1F/5.5V | Capacitors_SMD:CP_Elec_10x7.7 | C11 |
| 1 | 100n | Resistors_SMD:R_1206 | C1 |
| 1 | 10µH/1A | Inductors:Inductor_Taiyo-Yuden_NR-50xx | L1 |
| 1 | 1k5 | Resistors_SMD:R_0805 | R10 |
| 1 | 1µ | Capacitors_SMD:C_1206 | C5 |
| 1 | 2,2µ | Capacitors_SMD:C_1206 | C6 |
| 1 | 20k | Resistors_SMD:R_1206 | R7 |
| 1 | 22 | Resistors_SMD:R_0805 | R18 |
| 1 | 32768 | Crystals:Crystal_SMD_3215-2pin_3.2x1.5mm | X1 |
| 1 | 36k | Resistors_SMD:R_0805 | R15 |
| 1 | 4,7R | Resistors_SMD:R_1210 | R4 |
| 1 | 8MHz | myfootprints:SMDOSZIL | U5 |
| 1 | 8k93 | Resistors_SMD:R_1206 | R6 |
| 1 | BAS416 | Diodes_SMD:D_0805 | D3 |
| 1 | BC807-40 | TO_SOT_Packages_SMD:SOT-23 | Q1 |
| 1 | BC817 | TO_SOT_Packages_SMD:SOT-23 | Q2 |
| 1 | CONN_01X05 | Pin_Headers:Pin_Header_Straight_1x05_Pitch1.27mm | P6 |
| 1 | CREE_XPE | myfootprints:CREE_XLAMP_XP-E | D2 |
| 1 | Jumper_NO_Small | myfootprints:SOLDERJMP | JP1 |
| 1 | LCD64x32 | myfootprints:LCD64x32 | U1 |
| 1 | LD1117S33CTR | TO_SOT_Packages_SMD:SOT-223-3Lead_TabPin2 | U3 |
| 1 | LM3414 | SMD_Packages:SOIC-8-N | U2 |
| 1 | NET-TIE | myfootprints:NET-TIE-0.3mm | W1 |
| 1 | PXA150/10 | Capacitors_SMD:CP_Elec_8x6.7 | C8 |
| 1 | Rotary_Encoder_Switch_My | myfootprints:EC11B_ROTARY | SW2 |
| 1 | STM32F103C8Tx | Housings_QFP:LQFP-48_7x7mm_Pitch0.5mm | U4 |
| 1 | SW_PUSH | myfootprints:KURZHUB_SMD | SW1 |
| 1 | Schottky | Diodes_SMD:D_MiniMELF | D1 |
| 1 | TSOP75238TR | myfootprints:TSOP752 | P3 |
The 63 most common of 283 parts.
It measures 77 × 100 mm and has 2 copper layers, 0.6 mm thick.
283 parts, built around the LM3414MR, LD1117S33CTR-HXY, BAS416 and BC807-40. 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 shufps/diy-projector-clock repository on GitHub, at the commit this page was made from: the board is kicad/beamer1.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 shufps before reusing the design.

mikelawrence/RPi-HAT-RGBW-LED-Controller
This is a Raspberry Pi B+ HAT that supports four high power LEDs. Main application is an RGB Floodlight.

AmbroAnalog/CompactProjectorPCB
a compact 64x32 LCD monocrom projector build

manvalan/MuonScope
Piano di rivelazione MuonScope con 16 fotodiodi VBPW34S in matrice 4×4 a passo 10 mm, per il bus MIKILAB REV5.1.

pingpongshow/MDX-1
Open multi-frequency + pulse-induction metal detector: KiCad hardware, search coil, portable-C firmware, iOS/Android apps. Experimental, unbuilt.



greenMikeEU/shrdzm
SHRDZM (just a name, not an acronym) is an ESP8285/ESP8266 based sensor and actor integration platform.

gmeirelles-ops/esp32-DPTri
Firmware ESP-IDF para a DPSin Board WiFi Triac (rev v1.0.1): relé AC ON/OFF e dimmer TRIAC por porcentagem, controlados pelo app, com pareamento por hold ≥10 s no botão PAIR.