(→Installing the ap)
(→Installing the app)
Revision as of 17:24, 29 January 2011
The nuScope is a PIC32 based oscilloscope and function generator.
It has the following abilities:
- bipolar power supply, providing +5v and -5v at up to 80mA
- 2-channel analog and 6-channel digital oscilloscope
- frequency counter
- signal generator with several output waveforms.
How to Use the nuScope
Analog oscilloscope There are two analog oscilloscope channels which are digitized at 100,000 samples/second. These are the Analog A and Analog B traces. Using the radio buttons to the left of the trace, you can adjust the sensitivity of each channel between 1 volt/division (+5 to -5 volts full scale) and 10mV/division. The "divisions" are the gray tick marks on the vertical axis, shown below. Note: The analog channels don't work when the power supply is disabled.
Digital oscilloscope There are six digital oscilloscope channels which are digitized at up to 10,000,000 samples/second. Four of the channels are inputs, D1 - D4. Two of the channels are outputs, O5 and O6, discussed below.
Sweep speeds The sweep speed can be adjusted between 1 second/division and 1 microsecond/division. In the trace display there are 10 divisions horizontally, indicated by the gray tick marks.
Sweep modes Sweeps can run continuously, or you can freeze one sweep. You can select Continuous or Freeze modes using the radio buttons (as shown below), or the equivalent keystrokes C or F. Each time you click Single Sweep (or type S) one new sweep will be displayed, and then frozen.
Triggering In general the graph will "roll" as new traces overwrite old ones, because the waveform is not at the same point in its cycle as each sweep begins. This is Free Run mode. To get a stable view you can freeze one sweep.
Better, you can use the trigger feature, which shows a continuously updating display but starts each sweep when the waveform passes a level that you select, so that the trace usually retraces itself accurately. You can select the "trigger level" by clicking on any of the traces; the trigger level will be indicated by a pink horizontal line, as shown in the Analog B trace above. The pink trigger level line is displayed only when the scope is in Trigger/Rising or Trigger/Falling mode.
In Trigger/Rising mode (keystroke U for "up") a triggering event is identified when the signal trace is rising and gets to the trigger level. In Trigger/Falling mode (keystroke D for "down") a triggering event is identified when the signal trace is descending, and gets to the trigger level. In the Analog B trace above you can see that the sweep began when the rising signal trace got to the red trigger level. Any of the 8 channels may be used for sweep triggering.
The "sweep dot" blinks pink when sweep data is received from the scope hardware, and otherwise it is gray. If the trigger level is set such that no triggering events occur, the dot will be gray because the scope hardware is never finding data to send. In freeze mode, however, the scope hardware can continue to send data to the Mac/PC, but the Mac/PC is not displaying the new data. The dot will be pink in this situation, since data is being transmitted.
Frequency counter Digital input D1 is connected to a counter. A display shows the total count of pulses on signal line D1, and below that the present frequency of pulses in Hz.
Signal Signal lines O5 and O6 can be shown on the scope just like the four digital input channels D1 - D4, but instead they are digital outputs generated by the scope hardware. O5 can be selected to produce square waves of several frequencies. O6 can produce sine waves and ramps. The outputs of O6 are not true analog signals, they are pulse-width modulated digital signals. For instance the sine output is a 1MHz square wave with a duty cycle that varies sinusoidally. To get a smooth sine wave you need a low-pass RC filter to get rid of the 1MHz component.
Keystrokes Most of the available keystrokes are marked on the corresponding radio button. Some that aren't are these:
- P to write an image of the screen to a .png file
- X to export all the trace data presently on the screen to a .txt file that can be read by Excel or Matlab
- Q to pause the scope hardware and quit the program.
Version compatibility and USB communication bandwidth At the top of the screen is the version number of the software that runs on your Mac or PC (e.g. nuScope v1-3 2011-01-12) and also a version number that is read from the scope hardware, telling the version number of the firmware installed there (e.g. firmware v.13). If the PC/Mac version is incompatible with the scope firmware, they may not work together.
The time shown (e.g. 81.8 seconds) is the number of seconds that the scope hardware has been powered up. kBps is present data rate from the scope hardware to the Mac/PC, in kilobytes per second. Excessive data rates may crash the Mac/PC. The rate is limited by the variable USBrate in the Mac/PC software, and you can change this if necessary. USBrate=20000 is a good limit value. Higher limits allow higher number of sweep refreshes per second.
Power supply The nuScope unit provides power supply "rail" voltages for your circuits: +5V and -5V with respect to ground, at up to about 80mA. Red and blue LEDs indicate the +5V and -5V rails; green LEDs indicate the G (ground) rails. The color stripes on your solderless breadboard won't necessarily correspond to the LED colors; trust the LEDs. The LED colors tell you which supply voltage each rail carries.
A pushbutton toggles the power supply on and off. If you exceed the current capability of the supply, it will turn off (red and blue LEDs will go out and the green LEDs will flash). You can reset it with the pushbutton, unless it is is still overloaded.
You can also toggle the power supply on and off from the screen. A bar graph shows the power consumption of the DCDC converter used to produce the rail voltages. When the power consumption becomes excessive, and before the DCDC converter overheats or the computer shuts off USB power, the power supply will be turned off.
Plugging in to a solderless breadboard
Plug your nuScope unit into solderless breadboard as far toward one end as you can, to maximize the working space you have left. It's best if you get the blue-striped edge of the breadboard at the left as shown in the photo, even though this may make the numbering on the breadboard upside down. +5V, -5V, and ground prongs from the nuScope (gold in the photo) connect to the power supply rails of the breadboard (the holes that have a stripe by them). Input connections to the scope (silver in the photo) connect to testpoints that you can access, via the breadboard. You can connect signals from your circuit to the A and B analog inputs, to be displayed on your laptop, by pushing wires through the holes in the nuScope board and into the breadboard. See the yellow and red wires in the photo below.
Installing the app
- For Mac, Windows, and Linux, you first need USB serial drivers by FTDI. Download and install the FTDI Virtual Com Port VCP drivers. (Note 1: use the VCP drivers; don't change pages to the D2XX Direct drivers. Note 2: these are the same drivers the NU32v2 uses, if you have installed them already you do not need to install them again.)
- Next you need the nuScope app for your platform. Download and install the nuScope app.
- When you run the nuScope app it will ask you to choose the USB port that your nuScope USB device is attached to. A list of ports is shown as in the screensnap below. The correct one may be obvious or not. You can try running the app with/without the nuScope USB device attached. You should see one USB port name present/absent in the list.
- Click on the correct port. You only get one shot at this: if you choose the wrong one, close the app, reopen it, and try again. Once you get this right, it will probably always stay the same. In the example below, it's the top one.
- As soon as you have selected the right USB port you should see a rolling oscilloscope display begin.
- Hit the Q key to exit the app.
If you select the correct port and everything works, you should see a moving trace, or, if the power supply is off, you will see a red "flat line" graph instead. Don't worry about the waveform; you should see motion.
Testing your nuScope
- Cut and strip the ends of a wire and place it across O5 and A. Select a Continuous sweep, and Trigger/rising. Use a 50mS/div sweep rate.
- Under Output 5, select 10Hz sqr. Click inside the Analog A window to set the Trigger level, somewhere between 0 and 5V. You should see a 10Hz square wave sweeping across.
- Press the button labeled SW on the nuScope and note that the sweep stops. Press the check box labeled Power Supply in the software to enable the sweep again.
- Move the wire out of A and into D1. Note the frequency in the second line under D1 count & frequency. Change Output O5 to 1KHz and 100KHz and note the frequency.
- Click inside the Digital 1 area to set the Trigger level to D1. Play with the Sweep Rate to see how you can zoom in the time scale and see more or fewer pulses.