This version of the bee counter is all through hole components. It's easy to solder and assemble. This is the 2nd version of the board (V1) completed March 2020. If you got the Version 0 board (Jan/Feb 2020) you just have to fix some of my previous mistakes including adding a jumper wire shown here
- install shift registers qty(6), SIP 22R LED resistors and 100k pulldown resistors.
- Shift registers, qty(6) 74HC165
- 22ohm resistors, bussed, qty(4) SIP Packaged, bussed
- 100k ohm resistors bussed, qty(6) SIP-9, 8 resistors, 9 pins
- install power mosfets qty(2),
- N-Channel Mosfet FQP30N06
- install small capacitors
- place/solder 3.3V power regulator
- 3.3V Regulator, (input, ground, output - IGO, pinout), qty(1)
- install large Capacitor
- install green screw terminals, qty(3)
- screw terminals Two pin, 0.1", qty(3)
- install headers for microprocessor
- install qty(4) 10K Resistors (picture is wrong.. only shows 2 resistors)
- i2c pullup resistors
- pulldown resistors for power mosfets
Before you go any farther, test all your LEDs/sensors! It's much easier to test these now before going further. Run the sample code blink_IR_Leds.
The IR LEDs are invisible to the human eye but many phones and cameras allow you to see the IR LEDs. See picture. (unfortunately most iphones have IR filters so try another phone until you see IR leds). This step is very important so make sure you can see all the LEDs.
LEDs look good? If no LEDs are blinking? Check to make sure you have 3.3V on the 3.3V pin header. If one or two LEDs are out, reflow your pins and/or replace the LEDs until you get 100% LEDs blinking together.
LEDs good, great, next test the shift registers with the sample code test_shift_registers. Use a white piece of paper to trigger the sensors. If some sensors are not working, check your pins, heat up and reflow solder on pins as needed.
- Finish assembly once all sensors are tested. Install the headers that connect the top PCB to the bottom PCB.
- Ok, once everything is tested out, you can solder these jumpers.... Soldering the 24 jumpers increases the throw range of the IR sensors by increasing the forward voltage and current in the LED. This is fine to do if we keep the LEDs ON time to less than 100us.
Two scripts provided, both test_shift_registers and bee_counting satisfy this requirement by only turning the LEDs ON for 75us. This is shown on line 68 (shift register) and line 158 (bee_counting).