We've just launched our map. Add yourself by clicking here!

close

PID Firmware for Injection

This topic contains 12 replies, has 7 voices, and was last updated by  William 3 months ago.

2
William wkhs

PID Firmware for Injection

12/02/2017 at 08:19

Previously, I made a PCB for interfacing SSRs, thermistors and LCD to Arduino Nano. These days I have more time and started writing the firmware. So here are the capabilities of this firmware:

1. LCD Menu (click-rotate interface)
2. Serial interface (similar to G-codes but not exactly)
3. Profile heating (select preset profile, e.g. PET –> heat to 250)
4. Manual heating (manually selecting temperature)
5. PID algorithm (output is duty cycle % of a heating cycle of 200ms, 5Hz)
6. PID autotune (modified from Marlin firmware for 3D printing)
7. EEPROM for settings

The interface shown is for 2 heaters.
“T0 17/0 P (empty box)” means the temperature is 17 and target is 0 for heater 0. Power (P = output for heater 0 / 200ms in %) is zero.

I’m planning to add mosfets to control fans. What do you guys think?

This is also designed to work for shredder but no PID. (measure rpm –> if stalled, stop power)

Let me know if you want a copy, I am planning to design a full-fledged hardware. But you know, PCBs are done in quantities of 10’s. I will wait until I have enough backers.

Attachments:
12 replies
2 subscribers
2 saved
2 likes
sort on most likes
warrior
12/02/2017 at 09:56
1

that is some solid amount of time you’ve put to make this for us. thanks you very much.
would you mind sharing this in the form download package with circuit diagram and parts list as well as a tutorial for connections

starter
13/02/2017 at 04:59
1

I would love to. But my current version is not yet updated with my improvisation (ie where I corrected drawing faults with jumping wires). I was trying to find if anyone can help me double check on my work. But…I don’t see many enthusiasts in electronics here..

If you’re fine with the current faults, I can send you a copy in advance

warrior
13/02/2017 at 11:18
1

@wkhs yeah sure. i am not a electronic techie so It’ll take time to understand but i wilk do it. send me files at [email protected]

starter
27/02/2017 at 15:55
1

[Updates] Connecting wires and enhancing current capacity with bare copper wires

Attachments:
starter
27/02/2017 at 15:59
1

[Updates] putting into electronic box
(ignore my breakfast coupons)

Attachments:
warrior
23/06/2017 at 14:47
1

@wkhs
Super cool work!

starter
22/11/2017 at 19:45
1

Thank you for sharing this!
Could you send me the schematics and the code you use for the arduino?
I would really like to develop this.
Thanks again!

new
08/06/2018 at 19:12
1

Super cool work!!!!!!
Thank you for sharing this!
Could you send me the schematics and the code you use for the arduino?
[email protected]

helper
09/06/2018 at 09:16
1

@wkhs Which resistance did you use for the tension divider ciruit of the ntc?

starter
11/07/2018 at 07:30
1

Hi all,

I’m planning to upload the firmware and PCB here.
https://drive.google.com/drive/folders/1-CQXoi1p293H7V2ABN1w5_qbTKHo4KnM?usp=sharing

Do note that they are <span style=”text-decoration: underline;”>not ready for release</span>. (Theoretically they could blow your home up — well, just a disclaimer).

Jokes aside, note the following before you order a pcb.
1. I could remember there is a manual reroute after the PCB was made. It should be the pin A7 (it should not be used a digital pin as it was in the scheme).
2. Be ready to install some dependencies (libraries). My habit is to make a copy of the library directly in the project folder so that I don’t have to install them again. But I didn’t do the same for u8glib (if I remember correctly).
3. The tachometer part is almost done. It can count rpm but it doesn’t stop the machine if it goes wrong.
4. Check the pin configuration of the AC transformer

starter
11/07/2018 at 20:02
0

What would the tachometer be measuring?

starter
15/07/2018 at 15:26
1

@seanpo tachometer (tacho, speed) measures the rotation speed of the shredder shaft in rpm. If it drops below its working speed, something is wrong so the power should be cut out. That’s a fail safe measure I was trying to add.

Viewing 12 replies - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.