Pwm » History » Version 12

peter, 2013-03-06 01:04

1 1 hugomeiland
h1. PWM
2 1 hugomeiland
3 1 hugomeiland
PWM stands for Pulse Width Modulation and is used to control the power of the laser. On the HPC3020 you will see a mA meter and a turn knob that will allow you to control the power of the laser by hand. With PWM the Laos board can take over this function, which allows for e.g. engraving of pictures or controlling the right power settings for certain materials. 
4 1 hugomeiland
5 9 peter
Based on the laser power supply, there are different connections required.
6 9 peter
7 9 peter
In general we can identify 3 cases:
8 9 peter
# Only "Laser ON" signal connected to the power supply
9 9 peter
# Seperate "Laser ON" signal AND "Analog power" (PWM) input used on the laser power supply
10 9 peter
# "Laser ON" and "PWM" signal combined (not covered in this description) 
11 9 peter
12 9 peter
The outputs of the Laos board have opto-couplers that need to be connected to the right pins of the power supply. Usually a pull-up resistor is required between the collector of the opto-coupler and 5VDC. The emitter of the opto-coupler is connected to ground. In some power supplies the pull-up resistor is already present, on some inputs an additional resistor is required.
13 9 peter
14 10 peter
h2. Example of enabled laser PWM
15 9 peter
16 10 peter
To use the power control from the LAOS board, you need to connect the _laser PWM_ output  to the _ANALOG_ input of your power supply. 
17 1 hugomeiland
18 10 peter
Note: There is a difference between the PWM connections of boards with revision<3 and board revision >= 4!
19 1 hugomeiland
20 10 peter
Revision 3 boards: "Laser PWM" output is actually on the "Exhaust enable" connector (J37 PIN 1 and 2)
21 10 peter
Revision 4 boards: "Laser PWM" output is correctly on the "Laser PWM" connector (J39 PIN 3 and 4)
22 1 hugomeiland
23 12 peter
h3. Connection of the PWM signal _together_ with the analog potentiometer
24 12 peter
25 12 peter
Some people have connected both the original potentiometer and the PWM output. While this does work, the linearity of the power setting is very bad. It is not advised to have both connections at the same time. Replace the potentiometer with the PWM output. 
26 12 peter
27 12 peter
28 11 peter
h3. Connection of the PWM to the analog input of the power supply (GND/IN/5V)  
29 11 peter
30 1 hugomeiland
Use a 470 ohm (0.25W or more) pull-up resistor between +5V and analog in at the laser power supply side. 
31 11 peter
* "C" connects to the analog _IN_ pin (and 1 side of the resistor, the other side connects to 5V on the power supply)
32 11 peter
* "E" connects to GND   
33 11 peter
34 12 peter
The laser side of the connection can be on a 3 pin JST connector or the large GREEN connectors, depending of the power supply type.
35 1 hugomeiland
36 1 hugomeiland
37 10 peter
(This image is slightly confusing because the 4 pin JST already contains 2 cables for the _laser on_ connection, right?)
38 1 hugomeiland
39 2 hugomeiland
h2. HPC3020 laser
40 2 hugomeiland
41 3 peteruithoven
hpc side, very much a poc (a what?) (How do I recognize the analog input? The image doesn't really help)
42 2 hugomeiland
43 4 peteruithoven
An alternative image of a power supply, could someone highlight the analog input?
44 5 peteruithoven
45 4 peteruithoven
46 2 hugomeiland
laos side
47 1 hugomeiland
48 2 hugomeiland
49 2 hugomeiland
h2. KIII laser
50 3 peteruithoven