Link Search Menu Expand Document

5. Final prep

Table of contents

  1. Program the Arduino
  2. Run Saleae
  3. Troubleshooting

Program the Arduino

Open the apparatus firmware (wheel_controller_sweep.ino) in the Arduino IDE.

Connect the Arduino to the computer using a USB cable. You may need to adjust the Arduino parameters (i.e. we are using the Arduino Mega 2560 board) in the “Tools” dropdown menu, as shown below. In particular, set the “Board”, “Processor”, “Port” appropriately (the exact COM # may differ from the screenshot): Arduino board settings

After setting the board parameters, upload the firmware (“sketch”) onto the Arduino by “Sketch –> Upload (Ctrl+U)” drop down menu.

After uploading the sketch, the USB cable can be removed. The Arduino board will retain the firmware even when powered down. During regular operation, the Arduino can be powered via the USB cable or via a “wall wart” power supply (e.g. this 9V supply from Sparkfun; though any supply from 5V to 12V will work here).


Run Saleae

Connect the Saleae to the PC using a USB cable. In the “Logic” software (at the time of writing, I recommend using version 1.2.29), set up the device as follows: Saleae settings

Note that all signals are digital. I recommend that you label each channel with meaningful names (e.g. Channel 7 is “Frame clock”).

At this point, if you switch on the apparatus using the flip switch (and, of course, the Arduino is powered), then you should be able to observe the following with the Saleae, and hear the sweep tone accordingly: Saleae trial run


Troubleshooting

Not hearing the sweep tone?

  • Is the slide switch on the WAV Trigger board set to “Run”? (Note: After the switch is set to “Run”, the device must be power-cycled.)