585,660 active members*
3,177 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > CNC Machine Related Electronics > logic level shifting, isolation, and pull up resistors
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2005
    Posts
    1943

    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:

    Attachment 409788

    Attachment 409790

    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

    Click image for larger version. 

Name:	LL wiring.jpg 
Views:	0 
Size:	63.3 KB 
ID:	409792

    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.

  2. #2
    Join Date
    Jan 2005
    Posts
    1943

    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
    Join Date
    Dec 2012
    Posts
    199

    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

Similar Threads

  1. Replies: 1
    Last Post: 12-13-2014, 01:57 AM
  2. Replies: 9
    Last Post: 09-07-2011, 11:49 AM
  3. Logic level gate MOSFET's instead of bootstrap circuit
    By epineh in forum CNC Machine Related Electronics
    Replies: 3
    Last Post: 01-12-2008, 11:36 PM
  4. PCB Trace Isolation - Minimum Track and Isolation
    By ahoodlum in forum CNC Machine Related Electronics
    Replies: 11
    Last Post: 09-26-2006, 05:02 AM
  5. "pull up" resistors ?
    By boyvox in forum CNC Machine Related Electronics
    Replies: 9
    Last Post: 06-22-2006, 03:56 PM

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
  •