Yeah Windows PC interest.
I have a headless setup and CNCjs running. I’d like to have a mechanical pendant for mostly jogging around. Find it would be quicker and less likely to fat finger than tapping on a screen.
Yeah Windows PC interest.
I have a headless setup and CNCjs running. I’d like to have a mechanical pendant for mostly jogging around. Find it would be quicker and less likely to fat finger than tapping on a screen.
I updated the code to do feedhold/resume upon pushing/releasing the Estop button
The modified code is up on github, just replace the cncjs-pendant-raspi-jogdial file in the bin directory, relaunch the pendant, and you should be good to go.
@PaulAlfaro: I’ll be posting in that thread once I’ve progressed on the keyboard pendant for CNCjs on Windows. Once I have a Windows Node.js environment that works, both the remote keypad and this jog wheel pendant should work.
Your post is very interesting. It opens up possibilities.
I was looking out of curiosity, and there are USB remotes, what do you think?
Maybe it could avoid another control card for the remote control?
@Julien - Looks like there was a data loss and this thread disappeared
The last thing I believe I asked was about the enable/disable button working, hold feed working, but the jog dial doesn’t seem to do anything.
I am going to add some more debug code tomorrow, but I believe you referenced a specific wire to check on that could be to blame here?
So I was basically saying that if you see the enable working, then the X1/X10/X100 selector is working (since it reads that to figure out if the enable button is pushed)
The passive switches (open/closed circuits) are probably all working, but the dial is special, that part of the pendant needs 5V to work, so double check whether your red and black wires are properly connected to GND and 5V on the breakout board.
Debug traces in the code should help you figure out what still does not work after that, let me know.
Now I’ll go and cry in a corner, thinking about my 6 days worth of posts lost
I feel like I have tripled checked everything - Tried on both my Pi4 and Pi3, both with the same result.
Here is a link to a few pictures of my wiring, but as far as I can tell, everything is where it should be.
https://drive.google.com/drive/folders/13MzCk-z4ySclluocFOlR4jbTPSty-gxo?usp=sharing
So I double-checked your wiring photos compared to mine (which I re-post here for future use)
and it all matches.
Did you do the changes in /boot/config.txt to configure the GPIOs to use internal pull-up ?
Let me know if you want me to do a version of code with traces in the right places to investigate this (unless you have done that already?)
I did add that line to the boot/config file as well :X -
If you are able to make a branch for debugging, that would be super helpful (for others too I’m sure).
Can you please try this version (a few log traces added in key places),
cncjs-pendant-raspi-jogdial.zip (5.3 KB)
and try:
and let’s see what is displayed then
Doesn’t appear to be making it to your console.log("DIAL TURNED")
line. When I engage the side button, the enable/disable logs, as well as each change to X1/X10/X100, but nothing when turning the dial while the button is pressed.
Mmh. So for some reason the “A” signal is not read correctly, so we should first check whether the signal arrives from the pendant at all.
I don’t suppose you have a scope on hand to check that ?
When the dial is turned, a 5V pulsed signal should appear on the “A” wire. You could try and use a voltmeter between the Green wire (A) and GND, turn the dial continuously, see if the voltage is 0V when idle and jumps to non-zero values when the dial is turned. We’ll go from there.
EDIT: and assuming you do see some voltage coming to the green wire, next step would be to check whether the scaled down voltage is there in the middle point of the resistor divider, that’s the one that actually enters the GPIO.
I checked with a volt meter between green wire and ground and got around 3.6 as I continuously turned the wheel. https://drive.google.com/file/d/13pprFYLNdfCgddLVHr1fG6NGyfVbDVV9/view?usp=sharing
I then checked ground and TXD (I think thats what you meant by the middle point) and didn’t get anything when turning the wheel. Might have misunderstood what I needed to check there.
Allright so the dial works.
Did you do that measurement with the green wire still connected to the top of the voltage divider? If so the pb would seem to be somewhere in the wiring/soldering of the top or bottom resistor. It’s getting late, I’m heading to bed, will check this thread tomorrow.
Just elaborating on my previous post, can you try and measure voltage like so:
But WAIT, after writing this, I took a second look at your picture, and I wonder about the color on that top resistor:
We don’t all see the colors the same way, but these two color bands look suspiciously close to being orange to me. If this is in fact orange, then the top resistor is 13.000ohms and you would get 2200/(13000+2200) * 3.7V at the middle point, so 0.5V, which is below the GPIO activation threshold, and mystery solved?
OT: That resistor (“13000”) doesn’t look like it is soldered at the top connection point.
Might be the lighting, I bought these a few ago specifically for this project.
As a test, I moved everything on the breakout board one row to the right to make sure there was no issues with the soldering. Made sure everything had solder on it on the top side as well ( there was full contact on the bottom side).
When I check voltage from ground and green, I get the 3.7 when turning the dial. However, when I moved down and check the top of the resistor (your red circle) and ground, I get nothing when I spin the dial.
Can you clarify how the green wire that came with the pendant (and where you see the signal correction) is connected to that green wire that is soldered near the top of the resistor ?
I mean those two things:
Did you check continuity between those two ? (broken wire ? it can happen)
I attached one of my breakout wires with pins to the end of the original green so I could make sure it had a good connection. In my latest test, I removed the extension wires from Green and White and just went straight to the board. Thats where I am now testing the green (right on top of the solder point) and ground.