Circuit Design for Sensor Node

make me a circuit diagram about this.

0:05

Thought for a moment

I’ll create a concise circuit diagram for the existing water-level motor controller by reading the schematic, identifying the main functional blocks and nets, then saving a clean diagram in a project file.

1:34

Thought for 2 sec

Read schematic.

Thought for 2 sec

1/3 Read detailed schematic connectivity for the controller blocks

Thought for 4 sec

Read schematic.

Thought for 3 sec

2/3 Create or update a project file with a circuit diagram

Thought for 23 sec

Thought for 3 sec

3/3 Summarize the created diagram to the user

Thought for 2 sec

3/3 tasks completed.

Thought for a moment

I created a circuit diagram and short functional explanation for the water-level motor controller in Circuit Diagram - Water Level Motor Controller.
It shows the 5 V supply, LM31 sensor input, LM324 buffer/comparator/current-control stages, BD139 motor drive, full-tank LED, flyback diode, and key nets.
Add to schematic
Run ERC check
Find suitable parts
Add connectors
Explain sensor connection
do not do a block circuit, rather a schematic one, where the wires are connected, etc (should be redable for an laic) Do the circuit i described

0:00

Refine this doc
Ask about this doc
Schematic Circuit - Water Level Motor Controller
This is a beginner-readable schematic-style wiring diagram for the water level motor controller. It is not a PCB layout drawing. It shows which pins and parts are electrically connected together.
Main schematic wiring diagram

Text


                                  +5 V ANALOG SUPPLY
                                  from J1 pin 1
                                      |
                                      |  VCC5
              +-----------------------+-----------------------+-------------------+
              |                       |                       |                   |
             C3                      C2                    J3 pin 1              R5
           10 uF                   100 nF                  LM31 +5 V            10 k
              |                       |                       |                   |
             GND                     GND                     sensor              +---- VFULL_REF ---- U1D pin 12 4IN+
                                                                                 |
                                                                                R6
                                                                               10 k
                                                                                 |
                                                                                GND

J1 external 5 V input:
    J1 pin 1 = VCC5
    J1 pin 2 = GND

J3 LM31 water level sensor connector:
    J3 pin 1 = VCC5
    J3 pin 2 = GND
    J3 pin 3 = LM31_OUT

Sensor signal filter and buffer:

    J3 pin 3 ---- LM31_OUT ---- R1 1 k ---- SENSOR_FILT ---- U1A pin 3 1IN+
                                             |
                                            C1 100 nF
                                             |
                                            GND

    U1A is used as a voltage follower:
        U1A pin 1 1OUT ---- VS_BUF ---- U1A pin 2 1IN-


Current command generator:

    VS_BUF ---- R8 100 k ---- VCTRL_RAW ---- R10 68 k ---- GND
                              |
                              +---- U1B pin 5 2IN+

    U1B is used as a voltage follower:
        U1B pin 7 2OUT ---- VCTRL ---- U1B pin 6 2IN-
                              |
                              +---- R9 24 k ---- VCTRL_RAW
                              |
                              +---- U1C pin 10 3IN+


Full tank shutoff and green LED:

    VCC5 ---- R7 560 ohm ---- LED1 anode
                              LED1 cathode ---- FULL_SHUTOFF ---- U1D pin 14 4OUT
                                                    |
                                                    +---- D2 cathode

    U1D full-level comparator:
        U1D pin 12 4IN+ = VFULL_REF, about 2.5 V
        U1D pin 13 4IN- = VS_BUF
        U1D pin 14 4OUT = FULL_SHUTOFF

    Shutoff clamp:
        D2 cathode = FULL_SHUTOFF
        D2 anode   = Q1_BASE


Motor supply and motor connector:

    J2 external motor supply input:
        J2 pin 1 = VMOTOR
        J2 pin 2 = GND

    VMOTOR ----+---------------- J4 pin 1, motor positive
               |
              C4 100 uF
               |
              GND

    VMOTOR ---- C5 100 nF ---- MOTOR_LOW

    Flyback diode across motor path:
        D1 cathode = VMOTOR
        D1 anode   = MOTOR_LOW

    J4 motor connector:
        J4 pin 1 = VMOTOR
        J4 pin 2 = MOTOR_LOW


BD139 motor driver and current sense:

    J4 pin 2 ---- MOTOR_LOW ---- Q1 collector

    Q1 emitter ---- MOTOR_SENSE ---- R2 5 ohm 1 W ---- GND
                         |
                         +---- U1C pin 9 3IN-

    U1C current-control amplifier:
        U1C pin 10 3IN+ = VCTRL
        U1C pin 9  3IN- = MOTOR_SENSE
        U1C pin 8  3OUT = DRIVE_OUT

    U1C pin 8 3OUT ---- DRIVE_OUT ---- R3 220 ohm ---- Q1_BASE ---- Q1 base
                                                         |
                                                        R4 10 k
                                                         |
                                                        GND

    D2 also connects to Q1_BASE:
        D2 anode = Q1_BASE
        D2 cathode = FULL_SHUTOFF


LM324 power pins:

    U1 pin 4  VCC = VCC5
    U1 pin 11 GND = GND
Same circuit as a net-by-net connection list
Use this section like a wiring checklist. Every item on the same line is connected together.

Table


Net nameConnected pins and parts
VCC5J1 pin 1, J3 pin 1, U1 pin 4 VCC, C2 pin 1, C3 pin 1, R5 pin 1, R7 pin 1
GNDJ1 pin 2, J2 pin 2, J3 pin 2, U1 pin 11 GND, C1 pin 2, C2 pin 2, C3 pin 2, C4 pin 2, R2 pin 2, R4 pin 2, R6 pin 2, R10 pin 2
LM31_OUTJ3 pin 3, R1 pin 1
SENSOR_FILTR1 pin 2, C1 pin 1, U1 pin 3 1IN+
VS_BUFU1 pin 1 1OUT, U1 pin 2 1IN-, U1 pin 13 4IN-, R8 pin 1
VFULL_REFR5 pin 2, R6 pin 1, U1 pin 12 4IN+
VCTRL_RAWR8 pin 2, R9 pin 1, R10 pin 1, U1 pin 5 2IN+
VCTRLU1 pin 7 2OUT, U1 pin 6 2IN-, R9 pin 2, U1 pin 10 3IN+
DRIVE_OUTU1 pin 8 3OUT, R3 pin 1
Q1_BASER3 pin 2, R4 pin 1, D2 anode, Q1 base
FULL_SHUTOFFU1 pin 14 4OUT, LED1 cathode, D2 cathode
VMOTORJ2 pin 1, J4 pin 1, C4 pin 1, C5 pin 1, D1 cathode
MOTOR_LOWJ4 pin 2, C5 pin 2, D1 anode, Q1 collector
MOTOR_SENSEQ1 emitter, R2 pin 1, U1 pin 9 3IN-
LED resistor nodeR7 pin 2, LED1 anode
How to read it in simple words
  1. J1 provides the 5 V control supply for the LM324 and the LM31 sensor.
  2. J3 receives the LM31 water level sensor output.
  3. R1 and C1 clean the sensor signal before it enters the LM324.
  4. U1A buffers the sensor signal so the rest of the circuit does not disturb it.
  5. R8, R9, R10, and U1B make a motor-current command from the water-level signal.
  6. U1C compares that command with the voltage across R2, which represents motor current.
  7. U1C drives Q1 through R3. Q1 controls the motor current on the low side.
  8. U1D compares the water level to the full-tank reference from R5 and R6.
  9. When the tank is full, U1D lights LED1 and D2 pulls down Q1 base drive, stopping the motor.
  10. D1 protects Q1 from motor inductive kick, while C4 and C5 reduce motor supply noise.

Parts used


ReferenceValue or partPurpose
U1LM324ADRQuad op-amp for buffer, command buffer, current servo, and full comparator
Q1BD13916STULow-side motor current pass transistor
D11N4007RLGMotor flyback diode
D2JAN1N4148UR-1Full-tank shutoff clamp diode
LED1SML-LX0805GC-TRGreen full-tank LED
R11 kSensor signal series filter resistor
R25 ohm, 1 WMotor current sense resistor
R3220 ohmQ1 base current limiting resistor
R410 kQ1 base pulldown resistor
R510 kUpper resistor of 2.5 V full reference divider
R610 kLower resistor of 2.5 V full reference divider
R7560 ohmLED current limiting resistor
R8100 kCurrent command scaling resistor
R924 kCurrent command feedback/scaling resistor
R1068 kCurrent command bias resistor
C1100 nFSensor signal filter capacitor
C2100 nFLM324 supply decoupling capacitor
C310 uF5 V rail bulk capacitor
C4100 uFMotor supply bulk capacitor
C5100 nFMotor noise suppression capacitor
J12-pin terminal5 V control supply input
J22-pin terminalMotor supply input
J33-pin terminalLM31 sensor connector
J42-pin terminalMotor connector

    Main schematic wiring diagram

    Same circuit as a net-by-net connection list

    How to read it in simple words

    Parts used

Documents

    Project Specification: Water Level Motor Controller

    Design Notes: Water Level Motor Controller

    Schematic Circuit - Water Level Motor Controller

Assets

Assets are files uploaded to this project which can be used in various ways.

Water Level Motor Controller thumbnail
Analog water-level controller using an LM31 liquid level sensor input and PEL00884 brushed DC motor drive. The circuit buffers and scales the ratiometric sensor signal, derives motor current demand versus water level, shuts the motor off at 100%, and lights a green full-tank LED.

Properties

Pricing & Availability

Distributor

Qty 1

Arrow

$1.44–$2.15

Digi-Key

$2.58–$2.81

HQonline

$0.40

LCSC

$4.63–$4.71

Mouser

$3.63

TME

$2.03

Verical

$1.56–$2.70

Controls