-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
THC plugin not working properly, showing false "arc ok" among others #10
Comments
Also, I just realize setting the plasma to "Off" has the settings file changed to "$350=0" and when switching to "Up/down", it writes in the settings file "$350=2", which is not understandable to me, not consistent with the operation mode description. |
Is the ADC board recognized? If it is not powered it will not show up in the |
I'm currently having the same problem. I have 3.2VDC between the 3V3 and GND output terminals on the ADC. When I run the $pins report, PIN:MCP3221 is not visible. I've attempted the above reset and have not had any luck. When spindle is turned on, the slide comes to life, but without the voltage input, the THC starts to lower the torch. Here is the current config and pins report: I'm new to this , so I apologize in advance if this an obvious fix. |
@DBS3262 Have you compiled with the MCP3221 option enabled? |
That was the original issue. Thanks Phil for the help with that! |
This means that it is not possible to communicate with the MCP3221, normally due to it not beeing powered but could be other issues with the I2C bus. |
I'll look into this when I am back home late next week. |
Thank You. I appreciate it! |
I have tested with my setup and the ADC works, are you sure the ADC card is powered? U3 on the ADC board is a regulator for the supply to the MCP chip, the output pin is connected to C6. What is the voltage there? |
Yes, I am getting the same result. Did you test a freshly flashed board? |
When the MCP3221 report says No power the plasma plugin will not enable the settings needed for voltage control. |
The ADC board is possibly bad then? The one I have is working. |
Hey Terjeio, Hope all is well! My problem doesn't appear to be in the hardware. I wrote the sketch pictured below in the Arduino IDE requesting 2 bytes of data (12 bit resolution) from the isolated ADC. I flashed it onto the Teensy and connected the i2c lines to the breakout board. (T41U5XBB pictured below.) I then set up the test procedure detailed in the ADC manual. I can vary the voltage from 0-5 VDC and get the corresponding 0- 4096 reading from the ADC. This verifies 100% of the hardware. These are the same boards Ive been attempting to bench test Iosender and the plasma plug-in with. I don't know if something is not compiling correctly, or there is an error in the code, but something else is causing the problem. I have flashed multiple configurations from the web builder on to this hardware and everything has worked except the MCP32221 I2C ADC input. If there is something else you would like me to try to get this going, please let me know. |
I guess we have to ask @phil-barrett to test with a T41U5XBB board since mine is mounted in a rather inaccessible box in a different building. |
Hmm, is the ADC board powered after the controller has booted? If so init fails and it is flagged as having |
If the board is plugged into the I2C header, it will be powered at boot
time. The one I show in the (poor) photo above is working - reports arc
voltage and varies when I adjust the potentiometer.
…On Tue, Dec 3, 2024 at 11:28 AM Terje Io ***@***.***> wrote:
Hmm, is the ADC board powered *after* the controller has booted? If so
init fails and it is flagged as having No power and ignored.
—
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD6NUTREDA5IPQ7W537CK4D2DYA5RAVCNFSM6AAAAABOPOG45SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJVGQYDOMJYGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Only if V_ISO is present... If from an external supply that is coming up after the controller the ADC chip is not powered. |
Ah, yes, you are right. I have that set up. Oddly enough, V_ISO is 5V but that is sufficient to run the ADC at about 3.8V (from the VReg on the ADC board) and the isolator doesn't really care. I should probably spec V_ISO down to 5V. Makes for a more convenient set up. Need to do some testing to see if there are ill effects on the ADC but probably not. As long as it is stable the actual ADC reading is not terribly critical. |
Super frustratingly funny. I went back and looked over our discussion at how many times you asked me if it was powered. It pains me to say more than once. It never dawned on me that it had to be powered first, so it could initialize. After reading todays posts I powered V_ISO before powering the teensy and it worked!!!! Thanks gentlemen! Now that I'm finally getting to play with it I have some more questions, but I'll move that over to discussions. |
I can see how it might not be obvious that it needs 2 power connections. I will update the manual and make it clear. Glad you are making progress! |
Ugh, I regret that I missed this thread all together. I can confirm I ran into this issue as well. Viso needs to be powered before the teensy boots. I assumed it was just the isolated power supply I was using being wonky and taking too long to come up to voltage. I solved this on both my machines by adding a delay timer relay in line with the Teensy power feed. It disconnects power from the teensy for 2 seconds when the regular 24v power comes up before powering the teensy. |
Hello,
I have tried the THC ADC plugin from Phil Barrett. I had the web builder built the firmware accordingly and flashed it to my Teensy.
I then made a few tests, just with a potentiometer instead of real arc tension divider. I also made a few test with potentiometer signal unplugged, or even the ADC board unpowered. All results are the same.
Whatever the circumstances : THC panel shows no "virtual red LED" lit before first M3, then various LEDs lit : THC up, THC enabled, Torch On, Arc OK, Breakaway. After M5, only the THC up LED remains lit.
It looks more like a soft issue than hardware, especially since I do not have the GRBL settings menu allowing the three $350 modes
only "off" and "Up/down" DId the web builder not work properly ? What solutions could there be ?
The text was updated successfully, but these errors were encountered: