Ejemplo de MAX485 sin Microcontrolador

Updated properties for 2 objects

0:05

Set R11's Resistance to "680Ω"

Set R12's Resistance to "680Ω"

93 days

0:00

Autopilot
Work done
  • Updated project description to include USB–RS-485 (RTS controlled) block
  • Added U5 as the MAX485 transceiver
Tasks not yet done
  • Add termination resistor: 120 Ω Resistor
  • Add two bias resistors: 680 Ω Resistor ×2
  • Add TVS protection: Bidirectional TVS Diode
  • Wire IC1 TXD→MAX485 DI, RO→IC1 RXD, tie RTS→DE/RE
  • Expose bus via new portals: RS485_A, RS485_B
  • Connect MAX485 VCC and GND to +5 V and GND
  • Label block “USB–RS-485 (RTS controlled)”
  • Run ERC/DRC checks
Cannot do
  • Adding a MAX3485 transceiver (step 2.1 requires MCU support)
Success criteria
  • Partially met: MAX485 block added. Remaining success criteria (resistors, termination, diode, wiring, portals, power, checks) still to implement.
Next step Add the supporting components (#3): place and configure the 120 Ω termination resistor, two 680 Ω bias resistors, and the TVS diode across A/B.
93 days

Ready.


please explain what IC3 does.

@copilot please explain what IC3 does.
1y
The component IC3\text{IC3} is a MAX3485 transceiver from Maxim Integrated. It is used for RS-485 and RS-422 communication, which are standards for electrical characteristics of digital signaling circuits used in serial communications systems.
Key Features:
  • Half-Duplex Communication: The MAX3485 is capable of half-duplex communication, which means it can either send or receive data at a given time, but not both simultaneously.
  • Differential Signaling: RS-485 uses differential signaling, which makes it very resilient to noise in electrically noisy environments, allowing reliable data communication over long distances.
  • Low Power: It typically has a low current consumption, suitable for battery-powered and other power-sensitive applications.
Pin Functions in Connection:
  • RO (Pin 1): Receiver Output. This pin is used to output the data received from the RS-485 bus.
  • ~RE (Pin 2): Receiver Enable. This active-low pin enables the receiver. When it is low, the receiver is enabled.
  • DE (Pin 3): Driver Enable. When this pin is high, the driver is enabled, allowing transmitted data to be sent to the RS-485 bus.
  • DI (Pin 4): Driver Input. This pin is used to send data to the RS-485 bus when the driver is enabled.
  • GND (Pin 5): Ground connection.
  • A and B (Pins 6 and 7): These pins are the differential data transmission pins for the RS-485 bus.
  • VCC (Pin 8): Supply voltage, typically 3.3V or 5V.
Application in Your Project:
In your ESP32 RS485 Modbus Controller project, the MAX3485 allows the ESP32 to communicate with other Modbus devices over an RS-485 bus, handling the electrical signaling and protocol level requirements for effective communication over such a bus.
1y
Someone is typing...
create a detailed step by step plan table for IC3 to verify its functionality.

@copilot create a detailed step by step plan table for IC3 to verify its functionality.
1y
To verify the functionality of the MAX3485CSA+, an RS-485 transceiver, we'll create a step-by-step plan to test its key features. This involves checking power supply, communication lines, and driver/receiver functionality. Below is a detailed plan table for performing these tests:

Table


StepActionExpected OutcomeNotes
1Power Supply CheckMeasure voltage at VCC pinVoltage should be within operational range 4.5V to 5.5V
2Ground ConnectionCheck GND pin connectionShould be properly grounded
3Idle StateObserve voltage levels at A and B lines with no inputLines should be in high impedance state
4Driver Enable TestSet DE high and ~RE high (connected to a pull-down resistor or ensure it stays high)Voltages should appear on A and B lines
5Driver Data TestInput a signal on DI pin and monitor A and B linesA should follow DI, B should be inverted
6Receiver Enable TestSet ~RE low (connect DE low or ensure it stays low)RO should reflect A-B differential
7Receiver Data TestApply differential signals to A and B lines and monitor RORO should output logic level equivalent to A-B
8Loopback TestConnect DI to RO and verify loopback operationRO should replicate DI signal
9Fault Condition TestShort A and B to GND; observe RO and output on A/BRO should remain consistent, A and B should handle short
10Termination Resistor CheckApply termination resistors and measure line reflectionsSignal reflections should be minimized
11Data Rate TestingSend data at various baud ratesData should be consistently received without errors
Additional Notes:
  • Make sure all testing instruments are properly calibrated.
  • Use a known good sample or reference circuit for comparison.
  • Ensure that static-sensitive devices are properly handled with ESD precautions.
  • Document and analyze all observations for further debugging and validation.
This plan provides a comprehensive approach to verifying the functionality of your MAX3485CSA+ in a systematic manner. If you have access to an oscilloscope and function generator, these tests can be made more precise. Let me know if you need more detailed guidance on any particular step!
1y
Someone is typing...
4
please explain what USB1 does.

@copilot please explain what USB1 does.
1y
The component USB1 in your project is a USB Type-C connector, with the specific part number TYPE-C-31-M-12. This connector is used for providing power and data interfaces to your ESP32 RS485 (Modbus) Controller module. Here's a general breakdown of its functionality based on the pins described:
  • VBUS (Pins 15, 16): Supplies power to the circuit. In this design, it's connected to a voltage regulator to provide stable power.
  • GND (Pins 7, 8): Ground connections ensure a common return path for electrical current.
  • DP1, DN1, DP2, DN2 (Pins 2, 3, 12, 13): These pins are for data communication. They are typically used for differential signaling (D+ and D-).
  • CC1, CC2 (Pins 1, 11): Configuration channel pins are used for USB Type-C cable orientation detection and power delivery negotiations.
  • SBU1, SBU2 (Pins 4, 14): Sideband use pins, typically utilized in alternate modes.
  • SHIELD (Pins 5, 6, 9, 10): Provide additional grounding and shielding for the connector.
Overall, USB1 serves as the interface for both power and data connectivity, allowing the device to be powered and communicate with external devices through the USB protocol. If you have any specific questions on how to connect it or use it in your design, feel free to ask!
1y
Someone is typing...
6
please explain what USB1 does.

@copilot please explain what USB1 does.
1y
The component USB1 is a USB Type-C connector, model TYPE-C-31-M-12 by Korean Hroparts Elec. In this design, it serves as the interface for power and data connections:
  • Power Connection: The USB1 connector provides the +5V power supply, which can be used to power the board and its components. The VBUS pins (Pins 15 and 16) handle the voltage input.
  • Data Connection: It features two differential data lines, DP1 (Pin 2) and DN1 (Pin 3) for one side of the connector, and DP2 (Pin 12) and DN2 (Pin 13) for the other, intended for USB data communication. These are connected to the CH340C USB to serial converter chip for serial communication.
  • Ground and Shield: The GND pins (Pins 7 and 8) and SHIELD pins (Pins 5, 6, 9, and 10) are used for grounding and shielding purposes.
This setup allows for both charging the device and facilitating data exchange with connected devices, like a host computer.
1y
Someone is typing...
7
create a detailed step by step plan table for IC3 to verify its functionality.

@copilot create a detailed step by step plan table for IC3 to verify its functionality.
1y
To verify the functionality of the MAX3485CSA+, which is an RS-485 transceiver, you can follow the steps in the table below. Each step outlines a particular test to ensure the transceiver is working as expected.

Table


StepDescriptionProcedureExpected Outcome
1Power Supply VerificationPower up the IC with appropriate supply voltage (VCC typically 3.3V or 5V). Measure the voltage at the VCC pin to ensure it is within the specified range.VCC pin should measure near 3.3V or 5V, depending on your supply.
2Idle Condition CheckWith both ~RE and DE pins low, measure the voltages at A and B pins.Both A and B should be in the high impedance state.
3Receiver Functionality TestApply a differential signal across A and B. Monitor RO pin for the corresponding logic level.RO should reflect the logic level of the A and B differential (high when the differential is positive; low when it is negative)(\text{high when the differential is positive; low when it is negative}).
4Driver Functionality TestDrive the DI pin with a logic high. Set DE high to enable the driver. Measure the differential output between A and B. Repeat with DI as logic low.A should be significantly higher than B when DI is high and vice versa.
5~RE & DE Control TestTest the ~RE and DE pins by varying their states and observing the behavior of RO and the A/B lines.DE high sets the driver active, ~RE low sets the receiver active.
6Short-Circuit and Overcurrent ProtectionConnect A and B to GND and apply a logic signal to DI with DE set high.There should be no significant increase in supply current, indicating the overcurrent protection is functional.
7Propagation Delay TestMeasure the time from a change in DI to a corresponding change in the A/B lines for drivers and vice versa for receivers.Propagation delay should match the datasheet specifications, generally within tens of nanoseconds.
Additional Notes:
  • Ensure all test setups are static-safe to prevent ESD damage to the IC.
  • Use a clean and stable power supply for all tests to avoid introducing noise.
  • Consider examining signal integrity with an oscilloscope to verify proper signal levels and lack of undue ringing or distortion.
If needed, perform these tests in a lab environment equipped with proper tools such as an oscilloscope, logic analyzer, and a reliable power supply to ensure accuracy and safety during the testing process. If any step yields unexpected results, trace connections, review the component datasheet, and check the conditions for further troubleshooting.
1y
Someone is typing...
3
please explain what U1 does.

@copilot please explain what U1 does.
1y
The component U1U1 is the AMS1117-3.3, which is a voltage regulator that provides a stable output voltage of 3.3V. It is commonly used to power microcontrollers and other digital logic circuits that require a 3.3V supply.
Here is a brief explanation of its function and connections in your circuit:
  • VIN (Pin 3): This is the input voltage pin, which should be connected to a voltage higher than 3.3V (such as 5V from a USB source).
  • VOUT (Pin 2 and TAB(VOUT) Pin 4): These are the output voltage pins, providing a constant 3.3V.
  • GND (Pin 1): This is the ground pin, which should be connected to the ground plane of the circuit.
In your project:
  • The input voltage (U1U1:VIN) is connected to the 5V supply.
  • The output voltage (U1U1:VOUT and TAB(VOUT)) is connected to the 3.3V power net to supply power to components like the ESP32WROOM32EESP32-WROOM-32E and other peripherals requiring 3.3V.
  • The ground pin (U1U1:GND) is connected to the common ground.
This voltage regulator ensures that your digital components receive a stable 3.3V, providing reliable operation across varying input voltages.
1y
Someone is typing...
5
RS485_TX
RS485_EN
GPIO34
RS485_B
GPIO25
RS485_A
GPIO35
GPIO33
RS485_RX
GPIO26
GPIO32
ESP_IO0
GPIO27
+3V3
+5V
R6
Resistance
10 Ω
R5
Resistance
10 Ω
+3V3
TERM
R7
Resistance
10 Ω
C10
Capacitance
0.1u F
IC3
C12
Capacitance
0.1u F
R8
Resistance
10k Ω
+3V3
BOOT
R9
Resistance
10k Ω
R10
Resistance
500 Ω
D3


  • Ground
    A common return path for electric current. Commonly known as ground.
  • Net Portal
    Wirelessly connects nets on schematic. Used to organize schematics and separate functional blocks. To wirelessly connect net portals, give them same designator. #portal
  • Power Net Portal
    Wirelessly connects power nets on schematic. Identical to the net portal, but with a power symbol. Used to organize schematics and separate functional blocks. To wirelessly connect power net portals, give them the same designator. #portal #power
  • Generic Resistor
    A generic fixed resistor for rapid developing circuit topology. Save precious design time by seamlessly add more information to this part (value, footprint, etc.) as it becomes available. Standard resistor values: 1.0Ω 10Ω 100Ω 1.0kΩ 10kΩ 100kΩ 1.0MΩ 1.1Ω 11Ω 110Ω 1.1kΩ 11kΩ 110kΩ 1.1MΩ 1.2Ω 12Ω 120Ω 1.2kΩ 12kΩ 120kΩ 1.2MΩ 1.3Ω 13Ω 130Ω 1.3kΩ 13kΩ 130kΩ 1.3MΩ 1.5Ω 15Ω 150Ω 1.5kΩ 15kΩ 150kΩ 1.5MΩ 1.6Ω 16Ω 160Ω 1.6kΩ 16kΩ 160kΩ 1.6MΩ 1.8Ω 18Ω 180Ω 1.8KΩ 18kΩ 180kΩ 1.8MΩ 2.0Ω 20Ω 200Ω 2.0kΩ 20kΩ 200kΩ 2.0MΩ 2.2Ω 22Ω 220Ω 2.2kΩ 22kΩ 220kΩ 2.2MΩ 2.4Ω 24Ω 240Ω 2.4kΩ 24kΩ 240kΩ 2.4MΩ 2.7Ω 27Ω 270Ω 2.7kΩ 27kΩ 270kΩ 2.7MΩ 3.0Ω 30Ω 300Ω 3.0KΩ 30KΩ 300KΩ 3.0MΩ 3.3Ω 33Ω 330Ω 3.3kΩ 33kΩ 330kΩ 3.3MΩ 3.6Ω 36Ω 360Ω 3.6kΩ 36kΩ 360kΩ 3.6MΩ 3.9Ω 39Ω 390Ω 3.9kΩ 39kΩ 390kΩ 3.9MΩ 4.3Ω 43Ω 430Ω 4.3kΩ 43KΩ 430KΩ 4.3MΩ 4.7Ω 47Ω 470Ω 4.7kΩ 47kΩ 470kΩ 4.7MΩ 5.1Ω 51Ω 510Ω 5.1kΩ 51kΩ 510kΩ 5.1MΩ 5.6Ω 56Ω 560Ω 5.6kΩ 56kΩ 560kΩ 5.6MΩ 6.2Ω 62Ω 620Ω 6.2kΩ 62KΩ 620KΩ 6.2MΩ 6.8Ω 68Ω 680Ω 6.8kΩ 68kΩ 680kΩ 6.8MΩ 7.5Ω 75Ω 750Ω 7.5kΩ 75kΩ 750kΩ 7.5MΩ 8.2Ω 82Ω 820Ω 8.2kΩ 82kΩ 820kΩ 8.2MΩ 9.1Ω 91Ω 910Ω 9.1kΩ 91kΩ 910kΩ 9.1MΩ #generics #CommonPartsLibrary
  • Generic Capacitor
    A generic fixed capacitor ideal for rapid circuit topology development. You can choose between polarized and non-polarized types, its symbol and the footprint will automatically adapt based on your selection. Supported options include standard SMD sizes for ceramic capacitors (e.g., 0402, 0603, 0805), SMD sizes for aluminum electrolytic capacitors, and through-hole footprints for polarized capacitors. Save precious design time by seamlessly add more information to this part (value, footprint, etc.) as it becomes available. Standard capacitor values: 1.0pF 10pF 100pF 1000pF 0.01uF 0.1uF 1.0uF 10uF 100uF 1000uF 10,000uF 1.1pF 11pF 110pF 1100pF 1.2pF 12pF 120pF 1200pF 1.3pF 13pF 130pF 1300pF 1.5pF 15pF 150pF 1500pF 0.015uF 0.15uF 1.5uF 15uF 150uF 1500uF 1.6pF 16pF 160pF 1600pF 1.8pF 18pF 180pF 1800pF 2.0pF 20pF 200pF 2000pF 2.2pF 22pF 20pF 2200pF 0.022uF 0.22uF 2.2uF 22uF 220uF 2200uF 2.4pF 24pF 240pF 2400pF 2.7pF 27pF 270pF 2700pF 3.0pF 30pF 300pF 3000pF 3.3pF 33pF 330pF 3300pF 0.033uF 0.33uF 3.3uF 33uF 330uF 3300uF 3.6pF 36pF 360pF 3600pF 3.9pF 39pF 390pF 3900pF 4.3pF 43pF 430pF 4300pF 4.7pF 47pF 470pF 4700pF 0.047uF 0.47uF 4.7uF 47uF 470uF 4700uF 5.1pF 51pF 510pF 5100pF 5.6pF 56pF 560pF 5600pF 6.2pF 62pF 620pF 6200pF 6.8pF 68pF 680pF 6800pF 0.068uF 0.68uF 6.8uF 68uF 680uF 6800uF 7.5pF 75pF 750pF 7500pF 8.2pF 82pF 820pF 8200pF 9.1pF 91pF 910pF 9100pF #generics #CommonPartsLibrary
  • Generic Inductor
    A generic fixed inductor for rapid developing circuit topology. *You can now change the footprint and 3D model at the top level anytime you want. This is the power of #generics
  • Terminal
    Terminal
    An electrical connector acting as reusable interface to a conductor and creating a point where external circuits can be connected.
  • RMCF0805JT47K0
    47 kOhms ±5% 0.125W, 1/8W Chip Resistor 0805 (2012 Metric) Automotive AEC-Q200 Thick Film #forLedBlink
  • 875105359001
    10uF Capacitor Aluminum Polymer 20% 16V SMD 5x5.3mm #forLedBlink #commonpartslibrary #capacitor #aluminumpolymer #radialcan
  • CTL1206FYW1T
    Yellow 595nm LED Indication - Discrete 1.7V 1206 (3216 Metric) #forLedBlink

Inspect

ESP32 RS485 (Modbus) Controller Reference Design

ESP32 RS485 (Modbus) Controller Reference Design
Description

Created
Last updated by vasy_skral
1 Contributor(s)
vasy_skral

Controls

Availability & Pricing

DistributorQty 1
Arrow$9.00–$13.06
Digi-Key$19.21–$31.47
LCSC$14.87–$15.73
Mouser$20.20
TME$1.47
Verical$9.19–$13.45

Assets