Power to ESP32 from USB

I’m taking this conversation to a separate thread from the Jackpot V2 thread:

^^^Link to that thread is above^^^

In general I’ll start with what I want:

  1. I want to have a USB cable connected to between the pc and the ESP32 that is (ALWAYS) connected

  2. I want to install a power blocker dongle to the USB cable going from the Mini pc to the ESP32 board so ONLY the Data wires in the USB cable are connected and the 5v wire in the USB cable is not connected

  3. I want the ESP32 to be powered solely from the Jackpot board

  4. I want the pc to recognize the ESP32 / Jackpot Com Port (even without the 5v wire of the USB cable live)

This is the setup I had with a previous V1 jackpot board and it ruled out human error since the order of operations for booting did not matter. IE: I could have the pc fired up and running (which meant the USB cable with Power Blocker) was not providing power to the ESP32/Jackpot and then I could boot the Jackpot up and never worry about voltage issues.

Currently my pc won’t recognize the com port or a com port is not established UNLESS i provide 5v current from the pc to the ESP32 through the USB cable.

In general I am hoping that the power suppled to the ESSP32 from the jackpot is sufficient to powerup the ESP32 and allow it to create a com port through the USB cable (without a 5v wire)

I’m running out of time for my day, but some next steps:

Power up the jackpot from VMOT power. Take a picture of the jackpot showing your wiring and state of all the LEDs.

Since you have a PC and you didn’t say Linux, I’ll assume you have windows.

Power off the jackpot.
Open up device manager on Windows. Look for COM ports and note what COM ports are present.
Power up the Jackpot. On device manager, once again note what COM ports are present.
If a new COM port didn’t show up, did a new unknown device show up?

What we do next depends partly on those results. It may be tomorrow morning US Mountain time before I respond- but I will respond.

4 Likes

Thanks Jim

I have a (work) deadline for Monday, and it’s Sunday, and since I’m a one-man shop…you guessed it, I’ve been selected to work on Sunday to get it done.

Next week, I plan to bring the old V1 board and the Old ESP32 back out to the Robot and perform some debugging to determine what’s going on.

In general, there are (5) hardware items that can make up a (mix)

  1. V1 Jackpot board
  2. V1.2.1 Jackpot board
  3. Original ESP32 (assumed fried)
  4. New ESP32 (remote antenna) Working
  5. USB powerblocker Dongle

As I mentioned, when I combine 1, 3, & 5, I get a COM port on the PC (I’ll document what COM Port)

When I combine 2, 4, & 5 NO COM port

I want to see if there is another combination of hardware that gets me a COM port using the blocker IE:

2, 3, & 5

or

1, 4, & 5

You can assume that I will have the Jackpot powered up correctly (pictures to follow)

Jim

I’ll run through these steps first and report the results.

Then I may move on to the test I outlined above (Just for kicks)

1 Like

In addition to data lines, you probably also need a shared ground. But you should be able to disconnect 5V and have it not boot.

2 Likes

OK, here is a video demonstrating the difference between the OLD v1 Jackpot and the NEW V1.2.1 Jackpot

Essentially:

On the OLD setup V1, I get a COM3 port when the Jackpot powers the ESP32 using a power blocker USB…

&

On the new setup, V1.2.1 if I have a NON POWERED USB cable with power to the ESP from the Jackpot, I DO NOT get a COM port

As I mentioned, my solution is to use a USB cable with On/Off switch and ONLY turn it on when I need to or want to use G-Sender and ONLY after booting with the power from the Jackpot first.

Anyway, I could do more testing if anyone thought it would help:

Video_demonstration

Jim, by VMOT, I assume you mean the 9-24 VDC input spades to the Jackpot.

Power up the jackpot from VMOT power. Take a picture of the jackpot showing your wiring and state of all the LEDs.

See my video:<<
Click to see the video

Since you have a PC and you didn’t say Linux, I’ll assume you have windows.

Window 11 Home<<

Power off the jackpot.
Open up device manager on Windows. Look for COM ports and note what COM ports are present.

No Com Port<<

Power up the Jackpot. On device manager, once again note what COM ports are present.

With DATA ONLY USB cable >> No COM Port<<<

With Data +Power USB Cable >>COM 4<<<

If a new COM port didn’t show up, did a new unknown device show up?

With DATA ONLY USB cable >> No NEW Unknown Device<<<

With Data + Power USB Cable >>COM 4<<<

Yes.

Your quotes are wonky, and the video for me is a 0 second embed.

So far, as expected.
With no VMOT power only the powered USB cables should do anything.

With VMOT on and the PC side disconnected is the next set of results. When you plug in the no-power cables we want to see what happens.

Plus pictures or a working video.

Sorry, I’m not trying to be “wonky”

The video links are to a video on Dropbox. I’ll try to fix it.

With 24v Power Only coming to the 9-24vdc connector (VMOT) and NO USB cable connected to the ESP32

this is a photo of the board:

The machine behaves normally and all Fluid NC and FluidDial functions are working properly.

All Limit switches are working properly…

Here’s something that might be unusual for my set-up though…

I am using Inductive Proximity switches that require 5v so I have added pins to the 5v slots on the Jackpot for each of the limit switches.

Proximity Sensors

I had this on the V1 board too and it was working fine until I fried the ESP32.

anyway I just wanted to add that bit of information in case it was helpful.

One other possibility is that these stepper drivers are new and came with the V1.2.1 board and I left the OLD stepper drivers on the Old board.

Wondering if for some reason the NEW ESP32 is not getting enough volts to make the USB port create the COM link with a data only USB cable. <<<Is there a way to check this with a multimeter to see if there is a difference between the Old V1 board and the new V1.2.2 board?

The only difference between the two boards is a resistor on gpio.0. That makes flashing work better.

I note also that you’re using a pendant kit. Did you use Bart’s adapter at each end? Do you have an M5 or a CYD?

OK, this is notable, prox sensors can be problematic.

How exactly do you have this interfaced to your Jackpot?

Interesting, but unless you were having motion problems with the old set, this is probably just a detail.

That’s pretty unlikely. There is a 5V voltage regulator on the jackpot which is adequately sized for this application.

You can measure 5V on the ESP32, and also the 3V3 on the ESP32.
They are clearly marked on the silkscreen of the ESP32.

OK

I may not have fallen into the rabbit hole, but let’s just say I can smell carrots!

Here is my plan:

  1. Answer Jim’s questions

  2. Plug the OLD ESP32 into the NEW Jackpot V1.2.1. Check for COM port with data only USB

  3. Plug the New ESP32 into the OLD Jackpot V1 check for COM port with Data Only USB

  4. Plug a (different) V1 Engineering ESP32 board into (Old v1 and New V1.2.2 Jackpot and check for COM port with data only USB cable

The above assumes there are

constants:

(PC, Power Blocker, USB cable, 24v VMOT power to Jackpot)

and

variables

(ESP32 board and Jackpot Board)

Based on the results, I’m hoping I can verify if I should focus on the Jackpot board or the ESP32

IE, if another combination of ESP32 and new V1.2.1 Jackpot gives a COM port as expected, then the issue may be in the currently in use ESP32 with the remote antenna

Also, if the combination of OLD ESP#2 and NEW V1.2.1 Jackpot gives a COM port with Data Only USB again, this would suggest the currently in use ESP32 is the issue.

However, if all variations involving the new V1.2.1 Jackpot yield no COM port with data only via USB, then the issue might be with the Jackpot.

Anyway that’s my plan and I’m sticking with it :wink:

OK, be as methodical as you can. Document what you do and what results you get.
We’ll keep helping try to sort things out.

Reminder- we need more details on the prox sensor. It’s in play as a possible variable.

  1. Yes, it’s an M5 Fluiddial using Barts RJ12 connector at both ends

  2. The Proximity sensors are just acting as limit switches with x1, x2, y1, y2, and z connected to the standard GPIO pins on the jackpot using Signal and Ground…I just added the pin in each row to send 5V signal to each prox sensor for them to function correctly. They are NC (Normally Closed) sensors see this photo for wiring:

Yellow (signal)
Blue (ground)
Brown (5V)

<<<Note this wiring and these sensors were connected and working properly with the V1 board, so they have not changed>>>

  1. I don’t want to go swapping out old steppers for new steppers etc. so we’ll leave that out of the equation for now

  2. I checked the voltage on the new v1.2.1 board with the new ESP32 (remote antenna)

4.86 volts at the 5V pin
3.28 volts at the 3.3 V pin

Now, to run through the variable combinations of Jackpot and ESP32 to see if there is a repeatable “issue” with one of the variables.

As Jim has noted, this is not a “big issue” nor is it something that is happening to lots of users, so it’s more of an itch that I’m willing to scratch for a while.

In the end, the workaround is simple. The solution of using an ON/OFF switch on the USB cable means that when it’s OFF, there is no potential for having power to the USB before starting up the Jackpot. I’ll just need to get in the habit of switching the cable on if I plan to use G-Sender, which is likely a good thing to have in my workflow anyway.

1 Like

Sorry but i i thought that data only cables were related to unicorns. All i can find are power only :angry: and the occasional dule power data

I’m using a USB Power Blocking Dongle:

Power-Blocker

Essentially, it’s a dongle that disables the 5V power pin in USB-A connectors, only allowing the Data and Ground pins to be active…Thus creating a Data-Only USB coable.

1 Like

Here are my results:

All variations use a (data-only USB cable)

  1. OLD ESP32 + Old Jackpot V1 = COM PORT
  2. OLD ESP32 + New Jackpot V1.2.1 = COM PORT
  3. New ESP32 (A-antenna) + Old Jackpot V1 = NO COM Port
  4. New ESP32 (A-antenna) + New Jackpot V12.1 = NO COM Port
  5. NEW (B) V1 ESP32 (FNC 3.9.5) + Old Jackpot V1 = NO COM PORT
  6. NEW (B) V1 ESP32 (FNC 3.9.5) + New Jackpot V12.1 = NO COM PORT
  7. NEW (C) V1 ESP32 (FNC 3.9.5) + Old Jackpot V1 = NO COM PORT
  8. NEW (C) V1 ESP32 (FNC 3.9.5) + New Jackpot V1.2.1 = NO COM PORT

Note: I have (3) NEW ESP32 boards

(A) Espressif with a Remote antenna

and

(B) + (C) V1 Engineering ESP32s with internal antenna

Conclusion:

ONLY the OLD ESP32 is giving me a COM port with a Data Only USB Cable and 5V Power (VMOT) from either Jackpot.

OK, it’s time to claw my way out of this rabbit hole…

I have a 99% working the way I want it set up, and now it’s time to make some sawdust…

1 Like

OK. Having you up and running is the main objective- and it sounds like you’re there.

Up in the pendant thread or this one, have you linked the specific data blocker dongle and power switch USB cable you’re using? I may grab those to experiment with.

Sometime this week I’ll do some more testing to see if I can find a way to recreate any of this.

Also, about this:

Those may appear to “act” as NC switches, but they are not. They are semiconductor devices and that means there’s potential system impacts even if they otherwise seem to work correctly. Mainly, there’s likely leakage currents and that can have implications at boot.

On your pendant setup, did you wire the M5 Dial to use VMOT or Jackpot 5V power? M5s can use VMOT or 5V, while CYDs can only use 5V. There’s potentially a lot of 5V power hanging off of that Jackpot.

1 Like