Skip to the content
PCBKitNew board
2 layersBirdAttractor RevB, the printed circuit board in 3D

BirdAttractor RevB

gatechipdl/BirdAttractor1
Copper layers
2
Thickness
1.6 mm
Parts
43
Nets
33
Pads
174
Tracks, vias
112, 0
Routed
Yes
KiCad
KiCad 4
Created
13 Sep 2016
Updated
5 Dec 2016

Overview

BirdAttractor RevB is an open-source printed circuit board by gatechipdl, from the gatechipdl/BirdAttractor repository on GitHub. It is a 2-layer board with 43 parts on 33 nets, routed with 112 tracks and 0 vias.

It is built around the AMS1117-3.3, DS3231S# and ESP8266-12E, with the PCF2129AT/2, SN74LVC1G14DBV and BSS138 among its other parts. Its parts include 22 resistors, 6 ICs, 4 connectors, 3 capacitors and 3 diodes. It belongs with the ESP8266 boards of this library.

Main components

6

README

README.md

BirdAttractor

Requirements

  • 5V Power input from in USB-B female form

  • Two 5V Power output in USB-A female form

  • Relay to control flow of at least 2A. Possibly more current support for better generalization. Most usb battery chargers are 2A, but some do 3A or 4A.

  • Transistors to ensure relay coils trigger from MCU pins. ESP8266 can only drive 12mA on GPIO pins. Relays need >20mA.

  • Ability to put microcontroller into deep sleep, waking up every 15 seconds to check for updates.

  • Infinite alarms for super customization. Not interrupt based, only 15 second accuracy, due to deep sleep wakeup cycle.

  • Ability to set the wakeup cycle from 1 second to 5 minutes. ESP8266 GPIO16 pulls CH-DP low during deep sleep. Anything that pulls

  • Microcontroller Interrupts for wakeup from deep sleep. ESP8266 can do this from the RTC on GPIO16 connected to reset.

  • Two daily alarms for on and off settings. Interrupt based. The alarm interrupt on DS3231 only pulls down to 3mA, so it might need a transistor to boost the current capability to overcome the GPIO16 high signal when in deep_sleep.

  • FTDI header pins with TX,RX,GND,5V for programming (could be removed if we can program using pogo pins and the firmware is completely debugged).

  • Button to control Reset for programming. Button should ideally be hardware debounced, but could probably work without it. ESP8266 needs to pull Reset low, and then GPIO0 low to enter programming mode.

  • Button to activate Wi-Fi for configuration.

  • LED to notify users that the Wi-Fi is on. Should draw less than 12mA.

  • LED to show that power is coming in. Should draw less than 12mA.

  • LED to show that output power is switched on. Should draw less than 12mA.

  • Voltage regulator to bring down 5V input to 3.3V for electronics. Should have decoupling capacitors to smooth the supply.

  • Photoresistor to detect the amount of light for use as a trigger. -- Ability to configure light based alarm. Five minute response time is sufficient.

  • Temperature sensor. Can use the temperature sensor inside the TCXO RTC, which can be good enough.

  • Real Time Clock with a temperature compensated crystal oscillator (TCXO). -- Real Time Clock with sub 0C and very high temperature range with high accuracy. -- Ability to set the timezone on the RTC. -- Ability to push time from Wi-Fi connected device onto the MCU to update the RTC.

  • Record the last X number of light and temperature readings along with when the power was turned on and off, and the timestamp. -- Option to set the frequency of saving of readings. -- Option to save X number of samples or to record until there is still memory available. -- Option to cycle through the available memory or just stop recording when full. -- Option to reset the samples by clearing the cache. -- Option to visualize the data in a chart on the web interface. -- Option to download the data to a Wi-Fi connected web client.


LED

  • Blue LED
  • 150080BS75000
  • Package:0805
  • Forward Voltage: 3.2V
  • Max Current: 20mA
  • Current Limiting Resistor at 12mA: 16.6 ohms (E12=18 ohms or 22 ohms)
  • $0.29@1, digi-key
  • $0.23@100, digi-key

RTC

DS1305

  • Arduino Library: https://github.com/cjbearman/ds1305-arduino
  • Alarms:2
  • has two alarms, each alarm must be reset by a read or write to the Alarm interrupt register. Must use an MCU to do this.
  • The INT0 and INT1 interrupt output pins are pulled low, so when the alarm asserts, we have to have a pull-up resistor to bring the value up.
  • It is likely the INT0 and INT1 pins may not be able to sink enough current to have a small pull up resistor. So with a larger value pull up resistor, the provided current on alarm assertion will be small as well. To magnify this current, a MOSFET may be needed.

DS1307

  • Arduino Library: DS1307RTC, Rtc by Makuna, RTCx
  • TXCO:No, not accurate enough

DS3231

-Arduino Library: Rtc by Makuna, Sodaq_DS3231

DS3231SN
  • has temperature compensated crystal oscillator (may need this for cold temps)
  • TCXO:Yes
  • Alamrs:2
  • $9.97@1, digi-key
  • $6.59@100, digi-key
  • $2.50@10, aliexpress
DS3231M
  • TCXO: unclear
  • $6.46@1, digi-key
  • $4.801@50, digi-key

PCF2129

  • TCXO:yes
  • Arduino Library: FaBo 215 RTC PCF2129
PCF2129T
  • Package:16-SOIC
  • Temp:-30C to +80C
  • $3.36@1, digi-key
  • $2.47@100, digi-key
PCF2129AT
  • Package:20-SOIC, similar as 16-SOIC but with 4 NC pins
  • Temp:-15C to +60C
  • $2.92@1, digi-key
  • $2.15@100, digi-key

PCF2127

  • TXCO:Yes
  • Arduino Library: I2C-Sensor-Lib iLib
  • includes 512 bytes of general-purpose static RAM
PCF2127T
  • Package:16-SOIC
  • Temp:-30C to +80C
  • $4.01@1, digi-key
  • $2.95@100, digi-key
PCF2127AT
  • Package:20-SOIC
  • Temp:-15C to +60C
  • $3.60@1, digi-key
  • $2.65@100, digi-key

PCA2129

  • Arduino Library: None Found
  • TXCO:Yes
PCA2129T
  • Package:16-SOIC
  • Temp:-30C to +80C
  • $4.70@1, digi-key
  • $3.46@100, digi-key

MCP79400

  • TXCO:No
  • Arduino Library: RTCx (includes MCP7941x)
  • accuracy potentially better than ds1307 and pcf8563, but not ds3231
  • $0.82@1, digi-key
  • $0.72@100, digi-key

Relay

  • latching, dual coil, bistable
  • contact current: 2,3-10 Amps (2A seems an industry threshold)
  • coil voltage: 3.3V,5V
  • coil current: <100mA
  • switching voltage: >5VDC

V23079

  • Current:2A
V23079-E1201-B301
  • Signal Volage:3.75V-5V
  • Signal Current:28mA
  • Latching:Yes
  • Bistable:Yes
  • $3.69@1, digi-key
  • $2.77@100, digi-key
V23079-A1001-B301
  • $5.17@10, aliexpress
  • Monstable:Yes
  • Bistable:No
  • standard coil, coil 001
  • standard version, 2 form C contacts

TX2SA

TX2SA-LT-5V-TH-Z
  • Signal Volage:5V
  • Signal Current:28.1mA
  • Current:2A
  • $5.83@1, digi-key
  • $4.38@100, digi-key

G6BK (5A, twice as expensive as 2A)

G6BK-1114P-US-DC5
  • Signal Voltage:5V
  • Signal Current:56mA
  • Current:5A
  • $7.61@1, digi-key
  • $5.71@100, digi-key

AQV25

  • Type:solid state

AQV251G

  • Package:6-DIP
  • Current:3.5A
  • Voltage:0-30V
  • $7.75@1, digi-key
  • $5.85@100, digi-key

AQV252G

  • Package:6-SOIC
  • Current:2.5A
  • Voltage:0-60V
AQV252GAX
  • Tape and Reel packaging on 123 pin side
  • $5.39@1, digi-key
  • $4.04@100, digi-key
AQV252GAZ
  • Tape and Reel packaging on 456 pin side
AQV252GA
  • Tube packing style

Coin Cell Retainer/Holder

  • Battery:CR2032
  • Battery Diameter:20mm

BU2032

BU2032-1-HD-G
  • Type:through hole holder
  • $0.83@1, digi-key
  • $0.69@100, digi-key
BU2032SM-HD-G
  • Type:surface mount holder
  • $0.87@1, digi-key
  • $0.76@100, digi-key

BK

BK-913
  • Type:through hole retainer
  • Notes:easy replacement
  • $0.35@1, digi-key
  • $0.30@100, digi-key
BK-888
  • Type:through hole retainer
  • blocks inner side
  • easy replacement
  • $0.39@1, digi-key
  • $0.33@100, digi-key

LDO

  • needed for running the esp8266 microprocessor

AMS1117-3.3

  • Package:SOT-223
  • $1.58@50, aliexpress

MCU

ESP8266

  • Wi-Fi:Yes
  • Allows us to have a Wi-Fi interface for setting the time and other settings.
  • VCC:3.3V
  • Runs on 3.3V, so should have an LDO or similar to bring down the 5V supply.
  • Should only be turned in two instances. First is to creating the Wi-Fi interface. Second is at an alarm, to turn off the alarm, and then shut itself down. If we use deep sleep, then we could check every 5 minutes (or less) to see if the alarm pin is pulled high.
  • It might be possible to use the reset pin on the ESP8266 to wake it up with the alarm. This would be more power efficient and have better reaction time (within milliseconds) to the alarm assertion, but the solution is more complex and takes longer to develop. https://github.com/esp8266/Arduino/issues/1488
  • pin mapping: http://www.esp8266.com/wiki/doku.php?id=esp8266_gpio_pin_allocations

Parts

43
QtyValueFootprintReferences
610KResistors_SMD:R_1206R1, R3, R12, R13, R15, R16
410KCapacitors_SMD:C_1206R10, R11, R21, R22
3LEDLEDs:LED-0805D1, D2, D3
21KCapacitors_SMD:C_1206R7, R19
247KCapacitors_SMD:C_1206R17, R18
268Capacitors_SMD:C_1206R2, R4
2BSS138TO_SOT_Packages_SMD:SOT-23Q1, Q2
2SW_PUSHButtons_Switches_SMD:SW_SPST_PTS645SW1, SW2
2USB_AConnect:USB_AP3, P4
10Resistors_SMD:R_1206R20
10.1uFCapacitors_SMD:C_0805C3
1100KCapacitors_SMD:C_1206R9
110K/0Resistors_SMD:R_1206R14
110uFCapacitors_SMD:C_0805C2
118Capacitors_SMD:C_1206R6
11uFCapacitors_SMD:C_0805C1
12.7KCapacitors_SMD:C_1206R8
13V BatteryMyKiCadParts:BK-913BT1
1AMS1117-3.3TO_SOT_Packages_SMD:SOT-223U2
1DS3231SMD_Packages:SO-16-WU6
1ESP8266-12EMyKiCadParts:ESP8266-12E-80U4
1FTDIPin_Headers:Pin_Header_Angled_1x06P1
1PCF2129ATMyKiCadParts:SOIC-20_7.5x12.8mm_Pitch1.27mm-80U5
1PR_Relay_V23079MyKiCadParts:DIP-12-SMDU1
1PhotoresLEDs:LED-5MMR5
1SN74LVC1G14MyKiCadParts:SOT-23-5-80U3
1USB_BConnect:USB_BP2

Questions

What parts does the BirdAttractor RevB use?

43 parts, built around the AMS1117-3.3, DS3231S#, ESP8266-12E and PCF2129AT/2. 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 BirdAttractor RevB KiCad files?

From the gatechipdl/BirdAttractor repository on GitHub, at the commit this page was made from: the board is Hardware/BirdAttractor_RevB/BirdAttractor_RevB.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the BirdAttractor RevB design in my own project?

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

Similar boards

  • 2 layers76.2 × 76.2 mmJotter RevC, the printed circuit board in 3D

    Jotter RevC

    SpatialExperienceGroup/jotter

    47 partsMIT
  • 2 layers274.3 × 30.5 mmNumitron2, the printed circuit board in 3D

    Numitron2

    74hc595/Numitron-Clock

    An alarm clock using 9-segment numitron displays

    56 parts6BSD-3-Clause
  • 2 layers344.8 × 217.8 mmClockblock pcb, the printed circuit board in 3D

    Clockblock pcb

    wileycousins/clockblock

    minimalistic LED clock in a block

    604 parts2
  • 4 layers46.5 × 67.8 mmLoggerhw v5.0, the printed circuit board in 3D

    Loggerhw v5.0

    BerkeleyLab/DxP-data-logger

    Hardware design for the DxP (Distributed sensor Profiling) data logger that connects to a DxP sensor probe.

    62 parts
  • 2 layers76 × 92.5 mmPcb gateway, the printed circuit board in 3D

    Pcb gateway

    mirra-org/mirra

    Firmware, web app/server and documentation for the MIRRA project.

    86 partsApache-2.0
  • 2 layers116.8 × 92.2 mmControllerStage, the printed circuit board in 3D

    ControllerStage

    pommen/Programmable_Load

    132 parts