Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

NO LONGER NEEDED since Prohelion has made its own software (Profinitiy) to interface with the motor controller - Yanshen, Winter 2023

___________________________________________________________________

To reduce the risk and problems with setting up the CAN to USB necessary to communicate with the Tritium Motor Controllers, just use this Virtual Machine.

You can download it from the Google drive, under the Electrical\Virtual Machines directory.

Before getting starting, I (Micah Black ) highly recommend reading the Tritium Wavesculptor20 Documentation found in the downloads folder of the VM. This page is essentially a super short summary of the documentation contained there. If you like learning, you will be glad that you spent the time to read it (I found the description of the different control loops that are running inside the motor controller pretty interesting)

Cable setup

The CAN connectors should have a termination resistor (120ohm) on both ends of the network. You will also need to power the motor controller through a separate 12V power adapter.

  1. Remove the terminator resistor off of the CAN cable that is attached to the motor controller and attach a CAN extender cable
  2. Attach the CANUSB adapter to the CAN extender cable
    1. Make sure you are using the LAWICEL CANUSB adapter (pictured) or another adapter that does CAN-Serial and acts as a serial port, and not the PEAK CAN devices, which act as a CAN port on the PC side.
      Image Modified
  3. You can now power the motor controller with a 12V power supply by plugging the jumpers is (red and black wire in the picture). AUX does not have to be on for this step, and neither does the car. The motor controllers should now be sending CAN messages.

...

  1. Download and Import the Virtual Machine
  2. Connect the CANUSB device
  3. Enable the USB Filter for the LAWCEL CANUSB devicethe LAWICEL CANUSB device
    1. From the Oracle VM VirtualBox Manager, select the VM
    2. Scroll down and click on the USB heading
    3. Make sure there is a checkmark on the LAWICEL CANUSB adapter
      1. If it is not in the list, add it using the green '+' icon on the right side
  4. Make sure that the LAWICEL CANUSB Adapter is passed to the virtual machine. 
    1. In the bottom right corner of the VM, there is a USB icon. Right-click it and make sure there is a checkmark beside the LAWICEL CANUSB Adapter. If you have Box Open, you may need to disconnect the USB device from there first.
  5. Open the WaveSculptor configuration tool (Downloads\WaveSculptor 20\WSDrvCtrls3_07.exe). You should see a window like this.
  6. Set the baudrate as configured in the motor controllers. Note that a quick "Connect" and "Disconnect" most likely means your buadrate is incorrect. Our motor controllers should be configured either at 500kb/s or 1Mb/s (otherwise, try 250kb/s).

...

The configuration will automatically be downloaded from the motor controller. If you want to make changes, be sure to use Transfer > Upload to actually update the configuration stored in the motor controller. If you are just testing, choose a motor config that is not being used - they should be named appropriately.

Note that you can store up to 10 motor configs.

...