HVPS Initial Configuration

Once you have assembled a board (assembly instructions for HVPS) and placed it in an enclosure (assembly instruction for the full enclosure), you need to configure it and calibrate it before it can be used.

The drivers and the LabVIEW user interface or Python user interface must be installed on your computer.

For the SHVPS to work correctly in single-channel mode, the jumper h5V must be in the on position. The header H2 can be changed depending on your usage, but the GUI requires this jumper to be on the Onboard position.

1 Upload the program to the HVPS microcontroller

  1. Get the most recent firmware from the Download page (shvps_x.zip, where x represents the version), and decompress it on your computer.
  2. The High Voltage enable switch (S2) must be in the off position.
  3. Connect the SHVPS to your computer with a micro-USB cable (the power adapter can be used, but is not required at this stage).
  4. Using the Arduino IDE, compile and upload the code to the microcontroller (see HVPS drivers for more information).

2 Perform the initial configuration

To perform the required initial configuration, you can either use the LabVIEW interface (see 2.1), or you can use a simple command (see 2.2). The second solution is useful if you intend to use the Python interface, and do not want to install the LabVIEW interface.

2.1 Using the LabVIEW interface

  1. Connect the 6 VDC power adapter to the HVPS.
  2. Connect the HVPS to the computer with a micro-USB cable.
  3. Launch the interface. A dialog box will pop-up to attract your attention that the HVPS is not configured

    Press OK to close the dialog box
  4. In the GUI select the tool icon (Access HVPS configuration options) at the top right of the window.
  5. In the dialog box that pops up enter Bazinga! in the password text field to unlock the configuration options
  6. Press the Reset to defaults button
  7. In the Dialog box that opens, check all of the options. Enter the value of the I2C address attributed to the HVPS (as defined on the assembly test sheets), the voltage rating of the HVPS, and the name of the board.
  8. Press Reset settings to store the parameters in the HVPS
  9. The main window should display the name of the board (red rectangle). The maximal voltage indicated on the setting dial should correspond to the voltage rating of the HVPS (blue rectangle). You can display the parameters saved into the memory of the HVPS by pressing on the content of the HVPS memory button (green rectangle).
  10. The HVPS is now ready to be used (refer to the GUI manual), but for better accuracy, it should be calibrated first.

2.2 Direct Command

You can perform the initial configuration of the HVPS with a simple command sent on the serial link:

  1. Establish a serial connection with the HVPS (refer to direct communication with the HVPS)
  2. Enter the command Conf XXXX where XXXX is the voltage rating of your board, in order to automatically initialize the HVPS. XXXX must be one of the 5 standard voltage ratings described on the website (5kV, 3kV, 2kV, 1.2kV, 500V). Specifically, the parameters initialised are indicated below. They can all be modified using the serial commands.
    • Vmax, the voltage rating of the board, corresponding to parameter XXXX
    • C1, the ideal voltage calibration, based on this table (with C2=C0=0)
    • Gains Kp, Ki, Kd of the PID regulator
    • Name of the board to MyHVPS. Can be changed with SName command.
  3. The HVPS is now ready to be used (refer to the GUI manual), but for better accuracy, it should be calibrated first.