Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

PID loop not running at full power #315

Closed
thomaskilian opened this issue Nov 13, 2018 · 11 comments
Closed

PID loop not running at full power #315

thomaskilian opened this issue Nov 13, 2018 · 11 comments

Comments

@thomaskilian
Copy link

When I watched the signal LEDs for the bed/extruder I found that they are not working at maximum power, but only at 50%. My board runs at 24V and when measuring with a volt meter it reads 12V only (I could pul in my scope but for sure it will just show a 50% duty cycle for the PWM). Why is that so?

My heater settings are

DEFINE_HEATER(extruder, DIO10, 1, 1, 100) DEFINE_HEATER(bed, DIO7, 1, 1, 100) DEFINE_HEATER(fan, DIO9, 0, 1, 50)

Also, for the fan I noticed that it's not completely turned off but the LED is glowing very dimly. It's harder to measure but clear to see and, more important, clearly to hear by the fan making quite some noise in stand by.

@Wurstnase
Copy link
Collaborator

#311 (comment)

I rather figured out how the heating PWM works. I'm using DIO7, 9 and 10 for bed, extruder and fan.

So this is now working and we could close this issue? Could you describe what you changed and why it doesn't work before?

@thomaskilian
Copy link
Author

thomaskilian commented Nov 25, 2018

No, it's not really working. I hooked up a scope and noticed that the bed gets sort of saw-tooth (it's raising like sine) signal with (IIRC) 4us wave length when it should have full power. The extruder however seems to work with fine PWM.

@Wurstnase
Copy link
Collaborator

Do you have a picture?

@thomaskilian
Copy link
Author

thomaskilian commented Nov 25, 2018

Set to 5us per cm which means PW = 20us
Bed heating was just turned on and should run at expected constant high value. The extruder does that in contrast.

cimg0512

@Wurstnase
Copy link
Collaborator

Are you sure, that you don't have any electrical issues? I wouldn't expect any issues with pwm. Probably some wrong pullups or pulldowns.

@thomaskilian
Copy link
Author

It "might" be, but why do I see that frequency once I start heating and I don't see it at the extruder? Both are configured with the DEFINE_HEATER macro (see top). I'll cross check the cables, though.

@AnHardt
Copy link

AnHardt commented Nov 25, 2018

Is that pin really configured as an output, or is just the internal pullup working against the gates capacity?

@thomaskilian
Copy link
Author

Both run a MOSFET in the same way. It's a MKS GEN V1. I'll try switching the outputs just to see whether the behavior will switch with the attached heat sources.

@thomaskilian
Copy link
Author

Never mind, that was an electrical issue. The PWM sends a short off (inverted logic) signal every 20us. The bed draws so much current that the power supply shortly breaks down so the strange pulse appears on the scope. Well, good to know at least :-)

You can close this.

@Wurstnase
Copy link
Collaborator

You can close issue by yourself :)

@thomaskilian
Copy link
Author

Obviously I'm not much used to that. Will do next time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants