Hot Wire Foam Cutter - Arduino PWM
by adachsoft in Workshop > Tools
6494 Views, 74 Favorites, 0 Comments
Hot Wire Foam Cutter - Arduino PWM
![MainPicture.jpg](/proxy/?url=https://content.instructables.com/FWK/LUNA/J1CEMOIU/FWKLUNAJ1CEMOIU.jpg&filename=MainPicture.jpg)
Last time I did the Hot wire foam cutter but I missed the temperature control. So that's why I made a simple PWM control. The whole project was based on Arduino ATtiny85 Digispark. For this project I only needed three pins, so the ATtiny85 is fine. Also I carried the wires in the PVC pipes. This article can also see here:
Components
- Arduino Digispark ATtiny85
- Plastic box for electronics
- Some wires
- IRF530
- 5 x resistors 1k ohm
- 2 x resistors 100 ohm
- 1 x potentiometer 10k ohm
- 2 x BC547
- 1 x LED 3v
- 1 x 7812
- Hot wire foam cutter
Schematic Diagram
![Schematic.jpg](/proxy/?url=https://content.instructables.com/FFM/ZE61/J1CEMOJA/FFMZE61J1CEMOJA.jpg&filename=Schematic.jpg)
Fixing
![Fixing.jpg](/proxy/?url=https://content.instructables.com/FBG/UBV8/J1CEMOI4/FBGUBV8J1CEMOI4.jpg&filename=Fixing.jpg)
After soldering the circuit, we can mount it to the PVC pipe.
Wires
![Wires.jpg](/proxy/?url=https://content.instructables.com/FZ5/2GU9/J1CEMODS/FZ52GU9J1CEMODS.jpg&filename=Wires.jpg)
The next step is to place the wires inside the PVC pipe.
Software for the Controller
#define LED_PIN 0 #define PWM_PIN 1 int val = 0; long t = 0; bool sw = LOW; //the setup routine runs once when you press reset: void setup() { pinMode(LED_PIN, OUTPUT); //LED on Model B pinMode(PWM_PIN, OUTPUT); analogWrite(PWM_PIN, 0); delay(1000); } void loop(){ val = analogRead( A1 ); analogWrite(PWM_PIN, val/4 ); if( millis() - t > 1000 ){ sw = !sw; digitalWrite(LED_PIN, sw); t = millis(); } }Download source code: Hot_wire_foam_cutter.ino
Programming ATtiny85 With Arduino IDE
![Arduino-0.jpg](/proxy/?url=https://content.instructables.com/FQK/G57W/J1CEMOEB/FQKG57WJ1CEMOEB.jpg&filename=Arduino-0.jpg)
![Arduino-1.jpg](/proxy/?url=https://content.instructables.com/FCD/KSSU/J1CEMOF9/FCDKSSUJ1CEMOF9.jpg&filename=Arduino-1.jpg)
![Arduino-2.jpg](/proxy/?url=https://content.instructables.com/FE6/697P/J1CEMOG7/FE6697PJ1CEMOG7.jpg&filename=Arduino-2.jpg)
![Arduino-3.jpg](/proxy/?url=https://content.instructables.com/FN0/NOXJ/J1CEMOGQ/FN0NOXJJ1CEMOGQ.jpg&filename=Arduino-3.jpg)
- Select board digispark (Default - 16.5mhz)
- Select programmer micronucleus
Press upload and connect ATtiny85 Digispark to USB. You have 60 seconds to do it.
Wait until it's over
The End
![Easter-bunny.jpg](/proxy/?url=https://content.instructables.com/F24/HD8X/J1CEMOH6/F24HD8XJ1CEMOH6.jpg&filename=Easter-bunny.jpg)
Work finished time to test Hot wire. Soon it will be Easter, so I will cut out Easter bunny.