7.8 KiB
7.8 KiB
- MCU
Looks like the ESP32-WROOM-32 will work swimmingly. Pinout is as follows:
| Peripheral | Pin Assignment | GPIO Number | Notes/Functions |
|---|---|---|---|
| Analog Input 1 | SENSOR_VP | 36 | ADC1_CH0, input-only |
| Analog Input 2 | SENSOR_CAPP | 37 | ADC1_CH1, input-only |
| Analog Input 3 | SENSOR_CAPN | 38 | ADC1_CH2, input-only |
| Analog Input 4 | SENSOR_VN | 39 | ADC1_CH3, input-only |
| Digital Output 1 | IO25 | 25 | General I/O, output-capable |
| Digital Output 2 | IO26 | 26 | General I/O, output-capable |
| Digital Output 3 | IO27 | 27 | General I/O, output-capable |
| Digital Output 4 | MTCK/IO13 | 13 | General I/O, output-capable |
| Digital Output 5 | MTMS/IO14 | 14 | General I/O, output-capable |
| Digital Output 6 | MTDO/IO15 | 15 | General I/O, output-capable |
| Digital Input 1 | VDET_1 | 34 | General input, input-only |
| Digital Input 2 | VDET_2 | 35 | General input, input-only |
| I2C SDA | IO21 | 21 | I2C data, configurable |
| I2C SCL | IO22 | 22 | I2C clock, configurable |
| CAN TX | IO4 | 4 | TWAI TX, connects to transceiver TXD |
| CAN RX | IO5 | 5 | TWAI RX, connects to transceiver RXD |
| RTC Crystal XP | 32K_XP | 32 | 32.768 kHz crystal for RTC |
| RTC Crystal XN | 32K_XN | 33 | 32.768 kHz crystal for RTC |
GPIO0, 2, 12, 16, 17, 18, 19, 23 are available for future expansion.
-
CAN Bus
- Just need a 3.3V CAN Transceiver - SN65HVD231DR
- Connector - M12 bulkhead? BoardLock bulkhead?
- https://www.digikey.com/en/products/filter/circular-connectors/circular-connector-assemblies/436?s=N4IgjCBcoGwJxVAYygMwIYBsDOBTANCAPZQDaIAzABwUDscMIh1dcEAuoQA4AuUIAZR4AnAJYA7AOYgAvoXi1EIFJAw4CxMpQCscOFUXNdegCxMdeveYowADLe1Vrd2zAjMXMAEzP7MRh62YGBOgWBe7pR24WZhdL5g2toJdr5etoZRtukI8tq0XibJnCC8-EJiUrKEALQ%2B0MpQIgCuGiSQ5MUyciCMDaIAJvw1YEHmZZAg5jwAnly4-OjYKN1AA
- T4140012081-000 $13.09
- RTS712ND4S03 $15.97
- https://www.digikey.com/en/products/filter/circular-connector-assemblies/436?s=N4IgjCBcoGwJxVAYygMwIYBsDOBTANCAPZQDaIAzABwUDscMIhALGGFXLSALqEAOAFyggAygIBOASwB2AcxABfQgFpmiECkgYcBEADdpaLHkIlI5GOwo9%2BQyCEUqATOs0SArrrPkArDwVKIIzQIJIAJsLKYAAMELbCTCACAJ58uMLo2CgBQA
- 54-00216 $4.80 (4p male)
- 54-00235 $5.05 (4p female)
- I think we're gonna end up at M12 connectors for sensors and flying pigtails for motors
-
Voltage Regulator
- Most of the time will be spent sleeping. A low quiescent current, then, is actually more important than live current, perhaps?
- TLV1117-33IDCYR would work but emits 4.35W at 500mA - thermals need looked into for this.
- TPS629210DRLR is also good. Just need 2 resistors and an inductor as well. Good cost. Probably better.
- 4.7 uF input cap
- 22 uF output cap
- 2.2 uH inductor - BDCD002520122R2MS1 (1008 case)
-
RTC (use builtin to MCU)
- Need ext. osc: CM315D32768DZFT (2-SMD package)
-
Jack Motor - 1 AI, 2 DO
- Motor: RP-785615
- Motor connector: AT06-2S
- Motor to cable connector: AT04-2P
- Cable: 16/2 PVC jacket cable
- Cable to Control Box: PG9 Cord Grip + Faston Tabs
- Relays (2): A161CS12VDC.64 (25A current, 53.3 mA coil)
- Relay driver: 2N7002AK-Q (240 mA max) (TO-236AB, TO-236-3, SC-59, SOT-23-3 package)
- Fuse: 20A ATO fuse
- Current sensor: ACS37042KLHBLT-030B3 (30A max, -030B5 exists which is a 5v variant)
-
Fluffer (Accessory) Motor - 1 AI, 2 DO
- Motor: TBD
- Motor connector: AT06-2S
- Motor to cable connector: AT04-2P
- Cable: 16/2 PVC jacket cable
- Cable to Control Box: PG9 Cord Grip + Faston Tabs (1217861-1)
- Relays (2): A161CS12VDC.64 (25A current, 53.3 mA coil)
- Relay driver: 2N7002AK-Q (240 mA max)
- Fuse: 20A ATO fuse (3522-2 holder)
- Current sensor: ACS37042KLHBLT-030B3 (30A max, -030B5 exists which is a 5v variant) (SOT-23W)
-
Drive Motor - 1 AI, 2 DO
- Motor: 80ZYT-12/JW-7 -OR- 80ZYT-12/JW-3B (50A)
- Motor connector: 6mm Ring Terminals with Boots
- Cable: 12/2 PVC jacket cable
- Cable to Control Box: PG9 Cord Grip + Faston Tabs
- Relays (2): A31CSP12VDC2 (70A current, 150 mA coil)
- Relay driver: 2N7002AK-Q (240 mA max)
- Fuse: No fuse, just the fuse/breaker for the main battery
- Current sensor: ACS37220LEZATR-100B3 (100A max, -100B5 exists which is a 5v variant) (7-PowerLQFN / 7-QFN)
-
Jack Limit Switch - 1 DI
- Sensor: PBM6-AN-1H (-1A exists also which is a 2m pigtail. -1H is a M12 connector)
-
Odometry Geartooth Sensor - 1 DI
- Sensor: PBM6-AN-1H (-1A exists also which is a 2m pigtail. -1H is a M12 connector)
-
Solar Charging Circuit
- BQ24650 charge controller
- N-channel MOSFETs (Q1 high-side, Q2 low-side): 40V-rated, low RDS(on) (e.g., 20mΩ), such as AO3400 or equivalent, for synchronous rectification.
- Inductor (L): 10µH, rated for at least 5A saturation current (e.g., Wurth 7447788220) to support switching at 400kHz.
- Current sense resistor (R_SR): 10mΩ, 1% tolerance, 5W rating (e.g., WSMS5515L1000FEK) for ~4A maximum charge current (differential voltage of 40mV).
- Input capacitors: 10µF ceramic (X7R, 35V) × 3, placed near MOSFETs.
- Output capacitors: 4.7µF ceramic (X7R, 25V) × 2, near the battery connection.
- Schottky diodes: For reverse protection (e.g., 1N5819) and status indication.
- Resistors for voltage setting: Precision 1% types (e.g., R1 = 100kΩ, R2 = 576kΩ for 14.4V regulation).
- Optional: LEDs and resistors for charge status (e.g., bulk/absorption indication).
-
Battery - 1 AI
- Battery: TL1212
- Battery to cable conn: Female Fastons
- Cable: 12/2 PVC jacket cable with fuseholder
- Cable to control box: PG9 Cord Grip + Faston Tabs
- Voltage divider to sense battery voltage (goes to ESP32) - 1M + 150k resistors
-
Display
- Focus LCDs C162A-FTW-DS23 (-30 to +80C operating range)
- This will be driven by an I/O Expander. It could be shared with the buttons.
- 8 bit: PCF8574
- 16 bit: MCP23017 - pin 7 of each 8-bit bank can only be used as an output which is odd. or PCF8575 which is a little more $. Or best yet TCA9555PWR
-
Settings Adjust Buttons (4 buttons)
- Option (SMD): TL3305BF260QG
- Option (THT): TS02-66-43-BK-260-SCR-D
-
Manual Override Buttons (4 buttons)
- Option A: Hardwired, with an enclosed PCB
- Option B: Hardwired, with simple waterproof switches
- Option C: Remote
| Pros of Remote | Pros of Hardwire |
|---|---|
| Can operate from all around the coop | Can't lose it |
| Easiest cable management | Easy to repair |
| No pairing required | |
| Easy interrupt (wake from sleep) | |
| If you need to make it custom, it's easier | |
| No batteries to die |