Projects / Pick to light bin tray

Pick to light bin tray

Intermediate1.8 hGuided buildReviewed

Build it step by step

0 of 7 done
  1. NANO

    Place the chip across the breadboard centre

    Pin 1 end on the left, notch up.

  2. NANO

    Wire power and enable

    Pin 16 and pin 10 to 5V, pin 8 and pin 13 to GND.

  3. NANO

    Wire the control lines

    Pin 14 to D11, pin 12 to D8, pin 11 to D12.

  4. NANO14.9 mA

    Wire the LEDs

    Each output through 220 ohms to an LED anode, cathodes to GND.

  5. NANO

    Add the buttons

    D2 to GND and D3 to GND through a button each.

  6. NANO14.9 mA

    Upload the sketch

    The LED for the first bin lights.

  7. NANO

    Press confirm through the list

    Each press moves to the next bin, then all flash.

In short

How do you build a pick to light bin tray?

A 74HC595 shift register lights the LED over the right bin of a small parts tray, in the order of a pick list, and a button confirms each pick. It is how small workshops speed up kit packing without paper lists. You need Arduino Nano, 74HC595 Shift Register, LED 5 mm red × 8, Resistor 220 Ω × 8, Tactile push button 6 mm × 2, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm). It takes 7 steps and about 110 minutes.

Level
Intermediate
Time
About 110 min
Parts
7

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
74HC595 pin 16 (VCC) and pin 10 (SRCLR)Nano 5VPower and keep the register enabled
74HC595 pin 8 (GND) and pin 13 (OE)Nano GNDGround and outputs always on
74HC595 pin 14 (SER)Nano D11Data in
74HC595 pin 12 (RCLK)Nano D8Latch
74HC595 pin 11 (SRCLK)Nano D12Shift clock
74HC595 pins 15, 1 to 7 (Q0 to Q7)Eight LED anodes through 220 ohm resistorsOne LED per bin
Eight LED cathodesNano GNDCommon ground
Confirm buttonNano D2 and GNDPress after the pick
Restart buttonNano D3 and GNDStarts the list again

Code

The 74HC595 turns three Arduino pins into eight outputs. The sketch sends one byte with a single bit set, which lights the one LED over the bin to pick from, and latches it. A pick list near the top gives the bin numbers in the order they are needed. Pressing the confirm button moves to the next bin, and when the list is finished all the LEDs flash and then go dark. The restart button begins the list again. Change PICKS to match a different kit. Only one LED is on at a time, so the register and the Nano are well within their limits. This is a picking aid for light work. It does not check that the right part was taken, and it is not a safety system.

Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).

const uint8_t DATA_PIN = 11;     // SER
const uint8_t LATCH_PIN = 8;     // RCLK
const uint8_t CLOCK_PIN = 12;    // SRCLK
const uint8_t BTN_NEXT = 2;
const uint8_t BTN_RESTART = 3;

// The pick list: bin numbers 1 to 8, in the order to pick them
const uint8_t PICKS[] = { 3, 1, 6, 8, 2 };
const uint8_t NUM_PICKS = sizeof(PICKS);

uint8_t step = 0;
bool finished = false;

void show(uint8_t pattern) {
  digitalWrite(LATCH_PIN, LOW);
  shiftOut(DATA_PIN, CLOCK_PIN, MSBFIRST, pattern);
  digitalWrite(LATCH_PIN, HIGH);
}

void showStep() {
  show(1 << (PICKS[step] - 1));      // bin 1 lights Q0, bin 8 lights Q7
}

void flashDone() {
  for (int i = 0; i < 4; i++) {
    show(0xFF); delay(200);
    show(0x00); delay(200);
  }
}

void setup() {
  pinMode(DATA_PIN, OUTPUT);
  pinMode(LATCH_PIN, OUTPUT);
  pinMode(CLOCK_PIN, OUTPUT);
  pinMode(BTN_NEXT, INPUT_PULLUP);
  pinMode(BTN_RESTART, INPUT_PULLUP);
  showStep();
}

void loop() {
  if (digitalRead(BTN_NEXT) == LOW && !finished) {
    delay(30);                                   // debounce
    if (digitalRead(BTN_NEXT) == LOW) {
      step++;
      if (step >= NUM_PICKS) {
        finished = true;
        flashDone();
        show(0x00);
      } else {
        showStep();
      }
      while (digitalRead(BTN_NEXT) == LOW) {}    // wait for release
    }
  }
  if (digitalRead(BTN_RESTART) == LOW) {
    delay(30);
    if (digitalRead(BTN_RESTART) == LOW) {
      step = 0;
      finished = false;
      showStep();
      while (digitalRead(BTN_RESTART) == LOW) {}
    }
  }
}

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Power upBin 3 lights first
Press confirmBin 1 lights, then 6, 8 and 2
After the last pickAll LEDs flash four times and go off
Press restartBin 3 lights again
Edit PICKSThe order follows your list

If it does not work

No LEDs light

Check pin 13 is on GND and pin 10 on 5V.

Wrong LED lights

Check which output feeds which LED and adjust the bin numbers.

Two LEDs light

A wiring error on the data or clock line, so check D11 and D12.

Button skips a step

The debounce wait handles it, check the button wires.

Dim LEDs

Use 220 ohm resistors, not larger.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the pick to light bin tray?

Arduino Nano, 74HC595 Shift Register, LED 5 mm red × 8, Resistor 220 Ω × 8, Tactile push button 6 mm × 2, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

How long does the pick to light bin tray take to build?

About 110 minutes for a intermediate maker, in 7 steps.

How do I know the pick to light bin tray works?

Power up: Bin 3 lights first. Press confirm: Bin 1 lights, then 6, 8 and 2. After the last pick: All LEDs flash four times and go off.

No LEDs light: what should I check?

Check pin 13 is on GND and pin 10 on 5V.

Wrong LED lights: what should I check?

Check which output feeds which LED and adjust the bin numbers.

Two LEDs light: what should I check?

A wiring error on the data or clock line, so check D11 and D12.

Button skips a step: what should I check?

The debounce wait handles it, check the button wires.