logic level shifting, isolation, and pull up resistors


Results 1 to 3 of 3

Thread: logic level shifting, isolation, and pull up resistors

  1. #1
    Member
    Join Date
    Jan 2005
    Location
    USA
    Posts
    1943
    Downloads
    2
    Uploads
    0

    Default logic level shifting, isolation, and pull up resistors

    So I'm planning to use an ESP32 microcontroller as the brains of a new CNC machine running Grbl. The ESP32 uses 3.2 V logic on all pins. I happen to have several of the logic level shifters like in this picture and link:

    logic level shifting, isolation, and pull up resistors-logic-level-shifter-2-png

    logic level shifting, isolation, and pull up resistors-logic-level-shifter-circuit-png

    https://www.sparkfun.com/products/12009

    I plan to use them to convert the 3.3v logic to 5v like this picture. All of the devices on the right side of the last pic would use the same 5V source for signal power

    logic level shifting, isolation, and pull up resistors-ll-wiring-jpg

    I have a couple questions about them.

    1. if used like the last picture, will they also provide isolation between the MCU and whatever is hooked on the right (Switches, motor drivers, prox sensors, etc) ?
    2. If they will work for isolation I assume that the grounds should not be connected on the HV and LV sides, otherwise the isolation is at least somewhat defeated. Correct?
    3. Some of the pins on the MCU don't have internal pull-up resistors, but it looks to me like adding these would take care of that anyway. Is this correct?
    4. Would I be better off using optocouplers? I don't have any but could get some if they are a better option.


    Thanks,

    John B.

    Similar Threads:


  2. #2
    Member
    Join Date
    Jan 2005
    Location
    USA
    Posts
    1943
    Downloads
    2
    Uploads
    0

    Default Re: logic level shifting, isolation, and pull up resistors

    Well. It appears those aren't going to work that well at least for the stepper drivers. I breadboarded them up and while they work, I decided to check the output on my hand me down oscilloscope and what is supposed to be a square wave has the leading edge all rounded over. There signal from the mcu is nice and square but once through the level shifter it isn't. I just ordered some optocouplers so will just use them. I got 6N137 for the stepper signals and pc187 for the rest.



  3. #3
    Member
    Join Date
    Dec 2012
    Location
    Netherlands
    Posts
    199
    Downloads
    0
    Uploads
    0

    Default Re: logic level shifting, isolation, and pull up resistors

    1: No this will not provide isolation. However, most motor drivers have optocouplers at the inputs.
    2: the ground of this board could be connected to each other
    3: Yes, you can do that.
    4: Yes it's a good idea to use optocouplers for in and output of the MCU



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

logic level shifting, isolation, and pull up resistors

logic level shifting, isolation, and pull up resistors