Project

General

Profile

Pwm » History » Version 19

joostn, 2014-08-16 16:00

1 1 hugomeiland
h1. PWM
2
3
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
5 9 peter
Based on the laser power supply, there are different connections required.
6
7
In general we can identify 3 cases:
8
# Only "Laser ON" signal connected to the power supply
9
# Seperate "Laser ON" signal AND "Analog power" (PWM) input used on the laser power supply
10
# "Laser ON" and "PWM" signal combined (not covered in this description) 
11
12
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
14 18 joostn
Note for rev.5 boards: when using the Laser ON output on the optocoupler (J39), do not place the jumper on J41 in the LaserON position. Otherwise the laser will be powered during boot when the mbed pin is in high impedance state.
15
16
Also it appears that the firmware as of august 2014 is hard coded to LaserOn = low when lasering, high when idle. This means that the output on J27 cannot be used to pull down the laser as it needs the reverse polarity.
17
18 19 joostn
Note that LaserEnable is not used.
19 18 joostn
20 10 peter
h2. Example of enabled laser PWM
21 9 peter
22 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. 
23 1 hugomeiland
24 10 peter
Note: There is a difference between the PWM connections of boards with revision<3 and board revision >= 4!
25 1 hugomeiland
26 10 peter
Revision 3 boards: "Laser PWM" output is actually on the "Exhaust enable" connector (J37 PIN 1 and 2)
27
Revision 4 boards: "Laser PWM" output is correctly on the "Laser PWM" connector (J39 PIN 3 and 4)
28 1 hugomeiland
29 12 peter
h3. Connection of the PWM signal _together_ with the analog potentiometer
30
31
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. 
32
33
34 11 peter
h3. Connection of the PWM to the analog input of the power supply (GND/IN/5V)  
35
36 1 hugomeiland
Use a 470 ohm (0.25W or more) pull-up resistor between +5V and analog in at the laser power supply side. 
37 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)
38
* "E" connects to GND   
39
40 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.
41 1 hugomeiland
42
!pwm-connector.jpg!
43 13 peteruithoven
This image is slightly confusing because the 4 pin JST is also connected using 2 cables to the _laser on_ connection (but not rev 3).
44 1 hugomeiland
45 2 hugomeiland
h2. HPC3020 laser
46
47 17 hugomeiland
Overview of the modified connections for PWM on the newer HPC3020 boards. The WP and TL cables have not been changed. The cables to 5V and IN have been removed before connection to the LAOS board (thus original potentiometer is not in use). I've increased the resistor to ~1150 Ohm for better behavior in the low power area. Beware this is a rev4 LAOS board.
48 14 hugomeiland
!PWM.png!
49 1 hugomeiland
50 15 hugomeiland
Here a picture of the "older" HPC power supply connectors
51 1 hugomeiland
!powersupply.jpg!
52 2 hugomeiland
53
h2. KIII laser
54 3 peteruithoven
?