¿ªÔÆÌåÓý

Control Knob wiring


Matt Harrington
 

Whilst I order the various components, I thought I would get to grips with the schematic and understand what is involved.
From the schematic, what I can't fathom out is the wiring of the control knob. I see there are only 2 logical wires that appear to be connected to the control knob which can't be right.
Could someone correct me on this?
My control has CLK, DT, SW, + & GND
So, should power and earth be connected??

Matt


 

On Tue, Dec 7, 2021 at 07:39 PM, Matt Harrington wrote:
My control has CLK, DT, SW, + & GND
I will admit that I am embarrassed that I didn't do a cable/display/knob schematic.? I am going to have to fix that, and apologize for the confusion.? I don't have time today to verify it all and draw something up, but from the knob to the Arduino, + goes to +5V, and GND goes to GND.

-Jon


Matt Harrington
 

Jon, no need to be embarrassed! I sort of thought that was the case.?

I'm not sure if it is necessary, but maybe a future 'extra' would be to set a limit stop using the push on the control knob - maybe!

Matt


Matt Harrington
 

Jon,

I have now started the project and I am mocking up the layout on the bench.
Could you confirm the connections for knob_a & knob_b.
Will the system work WITHOUT the encoder etc connected - ie just the Mega, control knob and the Nextion display?

Matt


 

You will be able to test the basic display and knob functionality without an encoder.? If you have the encoder you can just chuck it up in a drill to test it before you actually fit it up to your lathe.

If you don't have one, I strongly recommend getting an oscilloscope.? Rigol's DS1202Z-E can be had from Amazon for $299 and will also give you serial decoding, which is extremely useful when you're debugging the Arduino/display interface.? It's also invaluable when you're chasing signal integrity issues.

-Jon

?


Matt Harrington
 

Interesting. Both myself and a friend (who is also building this) can't get the control knob to affect the display.....


Matt Harrington
 

Ok, I have sussed out the issue - I was matching the RX and TX from the Nextion with the Arduino. Swapped the connections over and voila, the mockup all works.
I can now start building the control box whilst I sort out the mechanics.
Matt