diff --git a/Hardware-description.md b/Hardware-description.md index bd7c21f..56636cb 100644 --- a/Hardware-description.md +++ b/Hardware-description.md @@ -42,7 +42,7 @@ Input Stage D1 Rectifies the DCC square-wave into +V, the amplitude is not critical as long as its within the 25V limit. The rectified voltage +V is then provided to the 3.3V voltage regulator (U1) and to the motor driver (U2). -The MOSFET on the right effectively translates the rather high DCC voltage to a suitable level for the microcontroller to process. When Q1 is turned off GPIO24 is pulled high by the RP2040, as soon as Q1 gets turned on (VGS > VGS,th), GPIO24 gets pulled to GND potential. R1 and R2 ensure that VGS doesnt exceed ±20V. +The MOSFET on the right effectively translates the rather high DCC voltage to a suitable level for the microcontroller to process. When Q1 is turned off GPIO21 is pulled high by the RP2040 internal pull-up resistor, as soon as Q1 gets turned on (VGS > VGS,th), GPIO21 gets pulled to GND potential. R1 and R2 ensure that VGS doesnt exceed ±20V. Motor Driver -------------------------- @@ -56,21 +56,23 @@ Auxillary Output -------------------------- ![Auxillary Output](https://github.com/1nct/RP2040-Decoder/blob/main/docs/svg/Aux_Outputs.svg) -Switching of loads up to a maximum of about ~400mA can be done using four N-Channel MOSFETS. They are switching on the low-side which means the load effectively gets connected to GND potential as the Transistor starts to conduct. +Switching of loads up to a maximum of about ~400mA can be done using four N-Channel MOSFETS. They are switching on the low-side which means the load effectively gets connected to GND potential as the transistor starts to conduct. GPIO24 - GPIO27 are used. GPIO -------------------------- -To Switch lighter loads, six GPIOs can be used. Alternatively they can of course be used as inputs as well (e.g. Reed switch). +To switch lighter loads six soldering pads on the back side of the PCB are connected to GPIO0 - GPIO5 pins . Although not implemented yet they could theoretically be used as inputs as well (e.g. Reed switch). Microcontroller -------------------------- ![Microcontroller](https://github.com/1nct/RP2040-Decoder/blob/main/docs/svg/Microcontroller.svg) -The Microcontroller needs a crystal oscillator to function properly. Flash memory is also needed as it holds the configuration variables and the program itself. R3 & C14 are used to filter ADC_AVDD (This might possibly be omitted in a future Revision). +The Microcontroller needs a crystal oscillator to function properly. External flash memory is also needed as it holds the configuration variables and the program itself. R3 & C14 are used to filter ADC_AVDD (ADC Reference Voltage). + + Complete Schematic -------------------------- -![Auxillary Output](https://github.com/1nct/RP2040-Decoder/blob/main/docs/svg/RP2040-Decoder-Rev_0_2.svg) +![Complete schematic](https://github.com/1nct/RP2040-Decoder/blob/main/docs/svg/RP2040-Decoder.svg) BOM & Alternative Parts -------------------------- @@ -91,6 +93,8 @@ BOM & Alternative Parts | U4 | 1 | / | Raspberry Pi RP2040 Microcontroller | RP2040 | QFN-56-1EP_7x7mm_P0.4mm | | Y1 | 1 | f = 12MHz | Crystal Oscillator | X322512MSB4SI | Crystal_SMD_3225-4Pin_3.2x2.5mm | +NOTE: Keep capacitor Vmax in mind! + Alternatives for BDR6133: [PT5126A-S-TP](https://lcsc.com/product-detail/Motor-Driver-ICs_PTC-Princeton-Tech-PT5126A-S-TP_C162093.html)