Skip to the content
2 layers188 × 145.4 mmSleep rig pcb, the printed circuit board in 3D
Size
188 × 145.4 mm
Copper layers
2
Thickness
1.6 mm
Parts
34
Nets
54
Pads
167
Tracks, vias
283, 0
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
20 Feb 2024
Updated
11 Oct 2024

Overview

Sleep rig pcb is an open-source printed circuit board by EPL-Engineering, from the EPL-Engineering/sleep_rig repository on GitHub. It is a 2-layer board of 188 × 145.4 mm with 34 parts on 54 nets, routed with 283 tracks and 0 vias.

It is built around the ARDUINO UNO R3, NID100-12 and NID100-5, with the L101011MS02Q, RPC2512JT220R and CMS1-4-R among its other parts. Its parts include 6 capacitors, 4 resistors, 4 switches, 2 connectors and 2 inductors. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

8

README

README.md

Environment Monitor

TODO

  • Save state across serial reconnects (desolder RST ENABLE)
  • Finish chart display for log data
  • Cleanup upon application exit

Hardware Setup

  • Plug in the red/yellow/black climate sensor cables to the 3-pin molex connectors on the PCB (DHT1 and DHT2 labels on PCB)
  • Using a precision flathead, screw the wires from the LED strips into the terminal blocks of the PCB (LED1 and LED2 labels on PCB)
    • Red wire goes to '+' terminal
    • Black wire goes to '-' terminal
    • Colored wire (blue/green) goes to 'D' terminal
    • Connecting the wires in the wrong configuration will fry the entire LED strip
  • Optional: connect the positive and negative leads of the box fan to either the 24V or 12V onboard switches, depending on fan specs
  • Double check all of your connections and make sure the positive and negative terminals are always hooked up to a red and black wire, respectively
  • Plug in 24V power source to the barrel jack on the PCB (DO NOT PLUG 24V INTO THE ARDUINO BARREL JACK — ONLY USE ONBOARD JACK)
  • Plug USB-B into the Arduino and connect other end to PC where GUI is running

Connecting to Serial

  • Run EnvironmentMonitor.exe located in the main folder of this repo
  • Select the COM port that is tied to the Arduino and click connect
  • Arduino will reset all settings when the serial connection is reconnected
  • Arduino is ready when "SER_CON" event is pinged back

Auto LED Timer

  • Specify a day start and day stop time in 24HR clock format (make sure day start comes before day end chronologically, or bugs may occur)
  • Simply click start to initiate the day/night cycling (white light starts at day start time and red light at day end)
  • Click stop at any time to cancel the day/night cycling and turn of the LEDs (do this before disconnecting the serial port)

Manual Color Control

  • Select color and click send to manually control LED color; LEDs will behave according to most recent data sent (e.g. manual control will change the color even when day/night cycle is running)
  • Enter integer number between 0-255 to adjust the brightness of both LED strips; brightness setting is the same for both boxes despite two separate controls

Serial Monitor

  • Every 15 minutes or upon any command entry, the Arduino will send a packet with sensor data from both boxes
  • Data is formatted as a string and written to both a log.txt file inside the repo and the serial monitor display
  • A new log file is opened upon serial connect; disconnecting serial or closing the window will save the file
  • Log files will append an increasing integer to filename to avoid overwriting

Special Notes

  • To avoid bugs, always disconnect the serial port before closing the application
  • The Arduino will restart if it reconnects to serial, but it will continue running at disconnect (e.g. you can enable auto day/night cycles and it will continue to run if you disconnect serial port; it will reset and turn off when you reconnect to serial)
  • Boxes can be run independently, but log entries will still track both
  • Default brightness is set to 1; you will need to increase this

Parts

34
QtyValueFootprintReferences
4EEE-FN1J121UP120uF_cap:CAP_FN_G_PANC1, C2, C4, C5
4L101011MS02Qswitch:SW_1MS02Q_CNKSW1, SW2, SW3, SW4
4RPC2512JT220Rsmd_220_res:STA_RPC2512_STPR1, R2, R3, R4
212Vterminal_block_bi:TE_282834-212V1, 12V2
25Vterminal_block_bi:TE_282834-25V1, 5V2
2Arduino_UNO_R3Module:Arduino_UNO_R3A1, A2
2CMS1-4-Rchoke:CMS1L1, L2
2EEEFK1V220R22uF_cap:CAP_EEEFK1V220RC3, C6
1DHT1molex_tri:MOLEX_0022272031DHT1
1DHT2molex_tri:MOLEX_0022272031DHT2
1FAN1terminal_block_bi:TE_282834-224V1
1FAN2terminal_block_bi:TE_282834-224V2
1LCD - P1Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalLCD - P1
1LCD - P2Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalLCD - P2
1LED1terminal_block_tri:CONN_282834-3_TYCJ4
1LED2terminal_block_tri:CONN_282834-3_TYCJ5
1NID100-12dc_regulator:CONV_NID100-5PS2 - 12V1
1NID100-5dc_regulator:CONV_NID100-5PS1 - 5V1
1PJ-002BHbarrel_jack:CUI_PJ-002BH24V Input1
1RTCConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalRTC1

Similar boards

  • 4 layers249.5 × 95 mmEEZ BB3 CM4 R1B0, the printed circuit board in 3D

    EEZ BB3 CM4 R1B0

    intergalaktik/bb3-cm4

    CM4 compatible MCU board

    251 parts35
  • 2 layers87.5 × 100 mmPCB Ventil, the printed circuit board in 3D

    PCB Ventil

    reivax-boucoi/PCB_Kicad

    Repo for all my home projects involving PCBs developped with Kicad

    58 parts1
  • 2 layers64.8 × 50.5 mmBattery and DCDC, the printed circuit board in 3D

    Battery and DCDC

    Killerbee12/TFG-UPM

    Proyecto final de grado

    49 parts1
  • 6 layers92.6 × 69.4 mmUsb hub 2, the printed circuit board in 3D

    Usb hub 2

    yedidia-sisay/usb3-multiport-hub

    An open-source USB 3.2 Gen 2 (10 Gbps) multiport hub & docking station.

    230 parts
  • 2 layersExample3, the printed circuit board in 3D

    Example3

    irampton/Schrune_Examples

    22 partsMIT
  • 2 layers63.9 × 89.2 mmAb rec, the printed circuit board in 3D

    Ab rec

    LJWsao/sinitsa

    KiCAD files for the all band receiver. This can pick up strong local sources of RF such as AM and FM radio stations.

    47 parts1

Questions

How big is the Sleep rig pcb PCB?

It measures 188 × 145.4 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Sleep rig pcb use?

34 parts, built around the ARDUINO UNO R3, NID100-12, NID100-5 and L101011MS02Q. 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.

Where can I download the Sleep rig pcb KiCad files?

From the EPL-Engineering/sleep_rig repository on GitHub, at the commit this page was made from: the board is hcam_environment_monitor_pcb/hcam_environment_monitor_pcb/sleep_rig_pcb.kicad_pcb and its schematic hcam_environment_monitor_pcb/hcam_environment_monitor_pcb/sleep_rig_pcb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Sleep rig pcb design in my own project?

Its repository states no licence, so its author keeps all rights: ask EPL-Engineering before reusing the design.