Skip to the content
2 layers103.1 × 77 mmPCB layout, the printed circuit board in 3D

This project was developed to provide an efficient and engaging way to randomly select winners in competitions or events where the order of winners needs to be determined fairly and without bias.

Size
103.1 × 77 mm
Copper layers
2
Thickness
1.6 mm
Parts
59
Nets
73
Pads
190
Tracks, vias
424, 0
Pours
1
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
10 Aug 2024
Updated
13 Aug 2024

Overview

PCB layout is an open-source printed circuit board by Abdulsalam-Alsheikh, from the Abdulsalam-Alsheikh/CircleOfLuck repository on GitHub. It is a 2-layer board of 103.1 × 77 mm with 59 parts on 73 nets, routed with 424 tracks and 0 vias.

It is built around the 74HC595 and IRLZ44N. Its parts include 25 resistors, 13 connectors, 12 transistors, 2 ICs and 1 switch. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

README.md

Random Number Selector with 12 Segments

This project is an electronic circuit that randomly selects a winner from 12 participants by lighting up the corresponding segment on a circular board. The circuit is built using an Arduino Nano, shift registers, MOSFET transistors, and other components. The design includes a PCB layout, simulation in Proteus, and Arduino code for the logic control.

Components

  • Arduino Nano: Controls the entire circuit.
  • 2 x 74HC595 Shift Registers: Expands the number of outputs to control the 12 segments.
  • 12 x IRLZ44N MOSFET Transistors: Used to switch the LEDs for each segment.
  • Resistors: Various values to limit current and ensure proper operation of the circuit.
  • Power Supply Jack: To feed the circuit with the required voltage.
  • Junction Connectors: For connecting each segment to its corresponding transistor.

Project Files

  • Proteus Simulation File: A simulation of the circuit to test the functionality before actual implementation note( The Arduino code will not work directly here on the simulation due to the adopted method of generating the random number you must change the method of generating the random number before the simulation ) .
  • Arduino Code: The code used to control the selection process and light up the segments.
  • PCB Design: A layout of the PCB ready for manufacturing, including all the components and connections.

Circuit Design

The circuit is designed to randomly select a number from 1 to 12 using an LED on a circular board. The selection is controlled by an Arduino Nano, which sends signals to the shift registers. The shift registers then control the MOSFET transistors, which switch the LEDs on and off based on the random selection.

How It Works

  1. The Arduino generates a random number between 1 and 12.
  2. The shift registers receive the number and activate the corresponding MOSFET.
  3. The MOSFET then allows current to pass through and lights up the LED corresponding to the selected number.
  4. The number remains lit until the process is repeated.

Usage

  1. Load the provided Arduino code into the Arduino Nano.
  2. Connect the circuit components as per the schematic in the Proteus file or PCB design.
  3. Power the circuit through the power supply jack.
  4. The circuit will randomly select a number and light up the corresponding segment.

Watch the final circuit project here Circuit of CircleOfLuck . Watch how the circuit logic works here Logic of CircleOfLuck . ٢٠٢٢١١٢١_٠١٠٨٥٥ ٢٠٢٢١١١٧_٢٠١٩٢٢

Parts

59
QtyValueFootprintReferences
13100kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1_1, R2_2, R3_3, R4_4, R5_5, R6_6, R7_7, R8_8, R9_9, R10_10, R11_11, R12_12, re2
12220RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12
12IRLZ44NPackage_TO_SOT_THT:TO-220-3_VerticalQ1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11, Q12
12Screw_Terminal_01x02z_lib_abd:connector borneJ2, J3, J4, J5, J6, J7, J8, J9, J10, J11, J12, J13
4MountingHolez_lib_abd:abd_footH1, H2, H3, H5
274HC595Package_DIP:DIP-16_W7.62mmU1, U2
1Arduino_Nano_v3.xz_lib_abd:arduino_nano_abdA1
1Barrel_Jack_Switch_Pin3Ringz_lib_abd:barreljack_10AJ1
1MountingHole_PadMountingHole:MountingHole_2.5mm_Pad_ViaH13
1SW_DIP_x01Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_HorizontalSW1

Similar boards

  • 2 layers99.1 × 99.1 mmFlipDotDriver, the printed circuit board in 3D

    FlipDotDriver

    bitluni/FlippyFlip

    49 parts14
  • 4 layers71.3 × 95.9 mmChessBotController, the printed circuit board in 3D

    ChessBotController

    cryptoAlgorithm/chess-printer

    A chess bot, but on steroids. Custom 3D printer control board with a few oddly specific features.

    55 parts3
  • 2 layersOrgan Serial to Parallel, the printed circuit board in 3D

    Organ Serial to Parallel

    locokepler/Pipe_Organ

    The repository of the pipe organ, over the different iterations of mechanical, electrical, and code design

    105 parts2
  • 2 layers163.5 × 55 mmIROC U Charging NMOS, the printed circuit board in 3D

    IROC U Charging NMOS

    24bec124-sketch/IROC-U-Charging-NMOS

    Developed for Team Arrow as part of IRoC-U (ISRO Robotics Challenge - URSC), a national student competition hosted by the Indian Space Research Organization (ISRO).

    41 parts1MIT
  • 2 layers163.8 × 52.4 mmSolenoid driver v2, the printed circuit board in 3D

    Solenoid driver v2

    jboymel/piano-robot

    Modular solenoid-based robotic piano actuator system — Northwestern SURG 2026

    75 parts
  • 2 layers91.8 × 42.7 mmRacktemperatur, the printed circuit board in 3D

    Racktemperatur

    klein0r/pcb-rack-temperature-control

    Control fans in your rack depending on current temperature

    28 partsMIT
  • 2 layers228.6 × 270.5 mmOPEN THIS PROJECT mj036 COMBINATION, the printed circuit board in 3D

    OPEN THIS PROJECT mj036 COMBINATION

    ProGenEDA/Public

    This is ProGenEDA’s public engineering record. It makes the work behind the product inspectable—from circuit requests and qualification reports through to native files that open in Proteus, KiCad, EasyEDA Pro, and…

    67 parts

Questions

How big is the PCB layout PCB?

It measures 103.1 × 77 mm and has 2 copper layers, 1.6 mm thick.

What parts does the PCB layout use?

59 parts, built around the 74HC595 and IRLZ44N. 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 PCB layout KiCad files?

From the Abdulsalam-Alsheikh/CircleOfLuck repository on GitHub, at the commit this page was made from: the board is PCB_layout.kicad_pcb and its schematic schematic_diagram.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the PCB layout design in my own project?

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