Making MaxMSP talk to sparkfun bitwacker
1. Bitwacker board (sparkfun.com)
2. Usb cable
3. Boot Down Application
4. uosc -1.04 folder
Please visit https://netfiles.umn.edu/users/vasu0002/MaxMSP-Bitwacker.zip?uniq=-htd5oa to obtain the required files.
Double click on the Boot Down Application to open it.
Open the uosc-1.04 /hex/Which Firmware To Use.txt for instructions in programming the bitwacker device.
Follow the instructions. For this device the recommended HEX file is uOSC-1.04 PIC18F2455BITWACKERTTL_PORTBINT.hex
After following these steps, quit out of the Boot Down application. See if MaxMSP talks to the bitwacker by connecting it to the computer via the usb cable. Then open uosc-1.04 /max/display/uosc.display-bitwacker.mxb in MaxMSP.
There is a corresponding MaxMSP interface to the board. In other words, the '/ra/#' and '/rb/#' in MaxMSP correspond to the 'RA' and 'RB' columns on the board respectively. To make any '/rb/#' patch an output, use the drop down menu within the '/rb/#' patch and select 'output'. Then press command E and connect the the outlet of this patch to the inlet of the 'usc.io' object. Press command E again and the toggle switch should be able to turn the corresponding outlet on and off.
To convert the input interfaces to output interfaces like above, press command E. Copy and paste a '/rb/#' output patch for duplication and press command I for the Inspector and edit the Arguments row to provide the correct new name for switching the corresponding outlet on and off.