USB2DMX: Difference between revisions

From doityourselfchristmas.com
Jump to navigation Jump to search
 
(4 intermediate revisions by 2 users not shown)
Line 18: Line 18:
=== Gerbers ===
=== Gerbers ===


As soon as I can upload the ZIP archive file..
[http://www.doityourselfchristmas.com/forums/dynamics/showentry.php?e=102 Gerbers for v2.4 (in the FILE LIBRARY)]


== Board building instructions ==
== Board building instructions ==
Line 67: Line 67:
[[Image:YADA_STEP_10.jpg|200px]] [[Image:YADA_STEP_10a.jpg|200px]]
[[Image:YADA_STEP_10.jpg|200px]] [[Image:YADA_STEP_10a.jpg|200px]]


Step 11 - Install 10 uf (C3) capacitor (note polarity!!)
Step 11 - Install 100 uf (C3) capacitor (note polarity!!)


[[Image:YADA_STEP_11.jpg|200px]]
[[Image:YADA_STEP_11.jpg|200px]]
Line 88: Line 88:
# Using your favorite Microchip programming device (i.e.: Microchip PICkit2 or PICkit3), load the bootloader software into the PIC 18f2455.
# Using your favorite Microchip programming device (i.e.: Microchip PICkit2 or PICkit3), load the bootloader software into the PIC 18f2455.
# Remove the 18f2455 from the programming device and install it into your USB2DMX device.  
# Remove the 18f2455 from the programming device and install it into your USB2DMX device.  
# Download the Microchip USB software package here.
# Download the Microchip USB software package: [http://ww1.microchip.com/downloads/en/DeviceDoc/MCHPFSUSB_Setup_v1.3.exe].
# Unzip the package, extract the application and install MCHPFSUSB_Setup_v1.3.exe as you would any Windows application. The software expects to install itself in the c: directory as c:\MCHPFSUSB\ ... if at all possible, please allow the installation here, as it will make the rest of these instructions easier to understand.
# Unzip the package, extract the application and install MCHPFSUSB_Setup_v1.3.exe as you would any Windows application. The software expects to install itself in the c: directory as c:\MCHPFSUSB\ ... if at all possible, please allow the installation here, as it will make the rest of these instructions easier to understand.
# Connect your USB2DMX to your PC using a USB-A/USB-B cable. There will be no "ding-dong" sound (called "USB enunciation") at this time. The DMX LED will be lit.
# Connect your USB2DMX to your PC using a USB-A/USB-B cable. There will be no "ding-dong" sound (called "USB enunciation") at this time. The DMX LED will be lit.
Line 110: Line 110:
=== Troubleshooting ===
=== Troubleshooting ===
* In development, the most frequent problem encountered was with the USB2DMX working up to the point of driving DMX devices, when it failed. This problem was easily fixed by unplugging the USB cable from the PC and plugging it into another USB port on the PC. Once the "ding-dong" was heard, the device always worked thereafter. If necessary, the USB cable can be moved back to the first USB port with no problem.
* In development, the most frequent problem encountered was with the USB2DMX working up to the point of driving DMX devices, when it failed. This problem was easily fixed by unplugging the USB cable from the PC and plugging it into another USB port on the PC. Once the "ding-dong" was heard, the device always worked thereafter. If necessary, the USB cable can be moved back to the first USB port with no problem.
== Testing ==
The USB2DMX has been tested successfully with the following products:
# REN48LSD
# JEC PIXEL
# American DJ PocketScan
# Lynx SSR4/DMX
[[Category:DMX]]
[[Category:DIYC Index]]

Latest revision as of 22:28, 15 January 2012

USB2DMX (aka YADA)

The USB2DMX (which also goes by the name Yet Another DMX Adapter, or YADA), is a build-it-yourself project that provides connectivity between DMX controllers and the Vixen 2.1 lighting software. It was designed by Andrew Williams (LabRat) of Ottawa, Canada, in the spring and summer of 2010 and released to the community in September 2010.

Unlike other adapters in the do-it-yourself Christmas lights community, the USB2DMX is not plug compatible with the ENTTEC USB Pro – conversely, it costs almost 50 percent less than other adapters. This is achieved because of a one-chip design, where the main CPU handles both the USB input and the DMX output, simultaneously. Other designs, including the ENTTEC USB Pro, have one chipset handle the USB input and another chipset handle the DMX output.

Andrew's design leverages the work of Microchip Technology Inc. in using its chips for USB communications. The USB2DMX uses the PIC18F2455 and a handful of components to communicate between the user's PC running Vixen 2.1 and DMX controllers. The design supports full electrical isolation so that the PC is not directly connected to the controllers, insuring safety at both ends of the circuit.

In addition to not being ENTTEC Pro plug compatible, there are other compromises that must be made to achieve the USB2DMX's low cost: the device only works (as of its initial release) with the Vixen software; a special USB driver must be installed in the PC; the user is required to take a two-step process to burn the firmware into the microprocessor, and the user needs to make certain that three files are included in the Vixen plug-ins folder.

Schematic & Board Files

Schematics

Gerbers

Gerbers for v2.4 (in the FILE LIBRARY)

Board building instructions

Step 0 - Bill of Materials (BOM)

$26.00 at Mouser

Step 1 - Install 470 (R1, R4, R5, R6) ohm resistors

Step 2 - Install 10k (R7), 22k (R3), and 100 (R2) ohm resistors

Step 3 - Install 0.1 (C2,C4) uf capacitors

Step 4 - Install sockets (note PIN 1 orientation)

Step 5 - Install 0.22 (C1) uf capacitor

Step 6 - Install XTAL - 20Mhz resonator

Step 7 - Bend lead on ferrite bead (L1), install vertically.

Step 8 - Install LEDs (note FLAT edge)

Step 9 - Install PROG (Program) and RST (Reset) switches

Step 10 - Install DC/DC converter (power isolation) Note PIN 1 orientation

Step 11 - Install 100 uf (C3) capacitor (note polarity!!)

Step 12 - USB and RJ45 jacks(may not appear 100% as shown here)

Step 13 - Install programmed PIC 18F2455(U1), SN75179BP (RS485), optoisolator (6N137)

Software and firmware

Firmware Images

Hex files and source code to be uploaded

Setup instructions

  1. Download the bootloader and the PIC firmware here.
  2. Using your favorite Microchip programming device (i.e.: Microchip PICkit2 or PICkit3), load the bootloader software into the PIC 18f2455.
  3. Remove the 18f2455 from the programming device and install it into your USB2DMX device.
  4. Download the Microchip USB software package: [1].
  5. Unzip the package, extract the application and install MCHPFSUSB_Setup_v1.3.exe as you would any Windows application. The software expects to install itself in the c: directory as c:\MCHPFSUSB\ ... if at all possible, please allow the installation here, as it will make the rest of these instructions easier to understand.
  6. Connect your USB2DMX to your PC using a USB-A/USB-B cable. There will be no "ding-dong" sound (called "USB enunciation") at this time. The DMX LED will be lit.
  7. The Windows operating system on the PC will acknowledge that a new piece of hardware has been attached to the computer, that a driver is not present and offer you a driver-installer application. (In the event this does not happen, go to Control Panel -> Add hardware and double-click.)
  8. The Add Hardware Wizard might need some help in adding the USB2DMX: your USB2DMX is probably not going to be listed in "The following hardware is already installed on your computer" list, so scroll to the end and choose "Add a new hardware device."
  9. In the next window of the wizard, choose "Install the hardware that I manually selected from a list."
  10. Choose "Custom USB devices" from the list.
  11. Click on "Microchip Custom USB Device" and then click on the "Have disk" button. Click on the "Browse" button and navigate to c:\MCHPFSUSB\Pc\MCHPUSB Driver\Release and click OK.
  12. Click "Next" twice; the Wizard should install the driver and you should hear the "ding-dong" of the PC recognizing the USB2DMX on the USB bus.
  13. Launch the PICDEM FS USB Demo Tool at c:\MCHPFSUSB\Pc\Pdfsusb\PDFUSB
  14. Choose the "Microchip Custom USB Device" from the pull-down menu and click on the "Load HEX file" menu, navigating to the Yada_v2 file you downloaded in Step 1.
  15. The PICDEM FS USB Demo Tool will throw up an error window at this point; choose "Yes."
  16. Push the "Program Device" button and then quit PICDEM FS USB Demo Tool.
  17. At this point, both the PWR and DMX lights should be lit on the USB2DMX device.
  18. Go to the directory c:\MCHPFSUSB\Pc\Mpusbapi\Dll\Borland_C\ and copy the file mpusbapi.dll to your Vixen 2.1 plug-ins directory.
  19. Download the Vixen plugins from here; unzip the files and copy them to your Vixen 2.1 plug-ins directory.
  20. Your Vixen plug-ins directory should have at least these three files: Vixen_DmxRat.dll, Vixen_DmxRat.pdb, mpusbapi.dll.
  21. Launch Vixen 2.1 and create a new profile (Profiles -> Manage -> +); click on "Output plugins" and from the window "Available plugins" choose "DmxRat". Give the profile as many channels as you want, up to 512.
  22. Create a new sequence using the profile you just created. Connect a DMX device to your USB2DMX. Using the "Test channels" feature of Vixen, select all channels and raise and lower the channel intensity. Your DMX device should respond accordingly. The USB LED should flicker dimly.

Troubleshooting

  • In development, the most frequent problem encountered was with the USB2DMX working up to the point of driving DMX devices, when it failed. This problem was easily fixed by unplugging the USB cable from the PC and plugging it into another USB port on the PC. Once the "ding-dong" was heard, the device always worked thereafter. If necessary, the USB cable can be moved back to the first USB port with no problem.

Testing

The USB2DMX has been tested successfully with the following products:

  1. REN48LSD
  2. JEC PIXEL
  3. American DJ PocketScan
  4. Lynx SSR4/DMX