Introduction: LCS-1M - a Full-Featured, Low-Cost Hobby Oscilloscope

Picture of LCS-1M - a Full-Featured, Low-Cost Hobby Oscilloscope

This instructable will show you how I developed a simple yet full-featured digital sampling oscilloscope that I hope will enable you to get a successful start in this domain. The main goals in this development were:

Create something that is really usable in practice - i.e. it must have sufficient sample rate to at least cover the audio range (DC up to well over 20 kHz), and a wide input range (from Millivolts up to several Volts). The present design actually is usable up to about 150 kHz (sample rate is 1 MHz = 1 million samples per second). The maximum voltage range is -15 to +20 Volts, but can also go down into the low mV range.

Use only readily available, inexpensive parts which don't need special skills to assemble - e.g. no tiny surface mount components. The whole scope can be put together with a cheap soldering iron, a small wire cutter and flat-nosed pliers.

Keep down cost as much as possible and design it in a way that all the components are easy to procure and assemble, so any moderately skilled hobbyist can build his/her own (see circuit description later).

Make it easy to use so even a user without much experience with oscilloscope gets a quick start, and make it compact so it doesn't use much desk space.

Last but not least, make it an open design so anyone can improve upon it. Note that the design may be used without any restrictions for personal, non-commercial use only. Any other use is strictly prohibited without explicit, written permission by the author.

You can get additional information as well as download the original design files (schematic, layout) and scope software from my oscilloscope homepage. From this site you can also obtain the bare printed circuit board and (as long as I have some left) the fully assembled scope and accessories.

In case you wonder what LCS-1M stands for, it's Low Cost Scope, 1Megasample/sec.

Good luck!

Disclaimer (yes, this is a litigious world :-):

The author of these pages does not assume any responsibility whatsoever regarding the design, construction or use of the described circuit. The author cannot be held responsible for any damage to persons or property connected with the described design. This includes (but is not limited to) damage to your computer, fitness for a specific task, and specified performance. If you decide to build the oscilloscope and use it, you do so at your own risk. Observe safety guidelines when soldering, as well as when using the oscilloscope. Never apply any voltage exceeding 20V to the oscilloscope inputs.

Step 1: Filling a Niche

Picture of Filling a Niche

An oscilloscope is an invaluable tool for anyone working in electronics. It allows studying electrical signals that are changing over time. Perfect for troubleshooting, monitoring, or simply observing one's electronic creations in more detail.

Unfortunately, even with significant reductions in cost in recent years, a usable oscilloscope remains out of reach for many people who could benefit from it - especially young students just starting out, and many hobbyists on a limited budget. A good low-end standalone scope easily comes in at over US$1000, and even PC-based scopes (which connect to a computer for display and control) usually cost US$300 and above.

On the other hand, most "hobby" solutions (sound-card based or purely microcontroller based) lack sufficient performance and usually are not much more than toys without much practical use. Most of the time they are more like "proof of concepts" that lack any decent frontend (to amplify small signals or attenuate signals) and have bandwidths much too low even for audio.

Of course it is often possible to pick up a decent used analog scope on Ebay for a good price, but most such scopes (cathode ray type) are rather bulky and bothersome, especially for someone without the luxury of a spacious electronics lab, and they often are difficult to use without a good dose of prior experience.

Step 2: Main Features

Picture of Main Features
Here is an overview about the capabilities of my design:

Hardware Performance:

  • Two independent input channels
  • Sample rate up to 1 MSample/sec (good enough for signals up to approx. 150 kHz)
  • Analog bandwidth approx. 400 kHz
  • Input impedance > 100 kOhm
  • Sensitivity from 20mV/div to 1V/div (20 vertical divisions).
  • Vertical offset 0 - 20 divisions (except for 0 - 12 divisions in 1V/div range)
  • Record length 256 samples per channel
  • Trigger on CH1 (rising or falling edge, selectable) or autotrigger
  • Connects to PC through serial port (RS-232) or USB
  • Power supply from a generic wall-wart type supply (9 - 15 V DC)
  • Compact and lightweight (about the size of a DVD box)

PC-based Scope Software:

  • Runs on Windows 95, 98, 2000, XP, Vista
  • Fully graphical interface.
  • All settings (timebase, vertical resolution, trigger) are controlled from the PC.
  • Screen update rate up to 7 frames/sec (mostly limited by scope hardware; will improve with future
versions of the hardware)
  • Real-time Fourier transform (frequency spectrum display)
  • Real-time averaging
  • Waveform measurements using cursors
  • Waveform export to Excel etc. (.CSV file format)

Construction:

  • All components easily available and inexpensive. About half of the chips can be obtained as free
samples from the manufacturer.
  • Total parts cost approx. US$60 for minimal version (bare board, i.e. no enclosure).
  • Through-hole and DIP packages only - easy to assemble and solder.
  • Can be built up on a breadboard or a protoboard (but I'd recommend the "real" printed circuit board
to minimize work and possibility for mistakes).
  • No adjustments or trimmings necessary whatsoever - put it together and use it right away! Thus
very beginner-friendly.
  • No separate programmer needed for the microcontroller (Picaxe 28X1) - the cable already used for
PC connection is all that is needed. Programming software is freely available as well.
  • Fits in a robust standard enclosure
  • Accepts standard 1:1 probes, BNC cables, or grabber cables.

Step 3: Design

Building or buying and then using your oscilloscope is one thing. At least as much fun - if not more! - is understanding how it works. We will have a detailed look at the circuit schematic in the next few pages. If you don't find that interesting, just jump ahead to get a look at how the scope is put together in practice.

The next pages will show the following:

  • The overview page gives a short introduction into to overall design. That should help getting the big picture.
  • The next pages each explain one page of the circuit schematic - what the circuit does, some
considerations that went into the design (why us the circuit built the way it is), etc.

  • The firmware page gives a high-level overview of the firmware that gets burned into the
microcontroller. This is the program (written in a version of BASIC) that controls the oscilloscope hardware and communicates with the PC.

  • The PC Software pages gives an overview over the scope program that runs on the PC, including some screenshots.

Step 4: Design Overview

The oscilloscope hardware has several main sections, described in the following pages.

First, there is the controller. It is the heart of the scope and is based on a industry-standard 8-bit microcontroller. It sets up the scope's sample logic, sets the input amplifiers' gain and offset, reads the captured samples from the capture memory, and communicates with the PC which tells it how to set up the hardware and then waits for it to send back the acquired data.

The input signals are conditioned in the analog frontend, which depending on the signal levels either attenuates them or amplifies them, and can also add offset. All this is necessary to make optimum use of the fixed voltage range that the analog-to-digital converters can convert into digital information.

Third, the analog-to-digital converters (ADCs) take the analog signals and convert them into digital
numbers which then get stored in memory (static RAM = SRAM).

The sample process and sample storage is controlled the sample logic. It consists of a few generic CMOS logic chips, controlled by the microcontroller, and are also used to read out the data from the capture memory.

The PC interface is standard RS-232. The cable connecting the PC can either be a normal serial cable, which is the cheapest solution (in this case the scope is connected to the computer's serial port, e.g. COM1) or can contain an integrated serial-to-USB converter, allowing to connect it to the computer's serial port. The change is transparent to both the scope and the PC software and has no impact on performance, but is helpful because the old serial port is slowly disappearing from new computers.

Finally, the power supply circuitry converts the voltage coming from the external power supply - which can vary anywhere between 7 and 15 V - into a stable and well defined voltage suitable for the circuit. This voltage is also the reference against which the input voltage gets measured.

Step 5: Circuit Description - Microcontroller

Picture of Circuit Description - Microcontroller

The Microcontroller is the heart of the oscilloscope. It controls all the other parts of the circuitry. I chose the Picaxe 28X1 (from www.picaxe.com), which basically is a Microchip PIC16F886 with built-in bootloader and Basic interpreter. While this makes it a bit more expensive than the raw PIC it is based on, the advantage is that you don't need to buy or build a separate programmer to burn the scope firmware - which makes it much more beginner friendly and also saves money overall.

The firmware download circuit consists of just three resistors (R2, R3, and R4). The download cable, a simple RS-232 serial cable (also available from the Picaxe vendor) ending in a stereo phono plug, which gets re-used during normal operation as the connection between scope and PC - again reducing overall cost.

Because the microcontroller itself doesn't have enough I/O's, I added a Maxim I/O expander (MAX6956 or the pin-compatible MAX7300), which gives 20 additional I/Os. These are mostly used to transfer the sample data from the scope's SRAM memory, as well as for chip enables for the DACs and programmable gain amplifiers that the microcontroller talks to via an SPI bus. The communication between the microcontroller and the I/O-Expander is through an I2C bus (the Picaxe's program execution is relatively slow, and the I2C version of the expander results in less commands to send compared to the SPI version).

There is a jumper to switch between firmware download and regular connection. In principle we could use the download connection to transfer commands and data during normal operation as well, but this connection is a "software UART", i.e. the microcontroller has to bit-bang the data, and in addition it uses CMOS levels (0 to 5V) instead of standard RS-232 levels (-15 to +15V).

On the other hand, switching to the other jumper setting connects the microcontrollers to the hardware USART port, which can run in the background, i.e. the data byte gets transferred in the
background while the microcontroller can already perform the next operation. This speeds up the
frame rate (maximum number of scope screen refreshs per second) by more than half. In addition it uses a MAX232 level converter that converts between the CMOS levels to/from the Microcontroller and the RS-232 levels to/from the PC, and also adds a layer of protection between scope and PC (after all, you may accidentally connect your scope to a high voltage, and that shouldn't fry your PC as well!).

Step 6: Circuit Description - Power Supply, PC Interface

Picture of Circuit Description - Power Supply, PC Interface

The connection between the scope and the PC is a standard RS-232 serial connection. A Maxim MAX232 level converter converts between the CMOS levels to/from the Microcontroller
and the RS-232 levels to/from the PC, and also adds a layer of protection between scope and PC. The data is sent at 19200 baud, which according to my tests is about as fast as the microcontroller can read the data from the memory, meaning an increase in baud rate does not translate into an increase in screen update rate.

As for the power supply, the scope runs from any generic DC power supply capable of supplying at
least 300mA (the scope really only uses about 150mA, but it is better to have at least some headroom) at a voltage between 9V and 15V). This voltage is regulated down to a very constant 5V with the venerable (and easy-to-obtain and inexpensive) 7805 linear regulator.

You may wonder why there are two identical regulators in the circuit. The reason is that digital logic
chips (like the microcontroller or the sample logic) cause large spikes in current whenever they are
switching (basically whenever the clock toggles). This in turn produces sudden drops in the supply
current. While this is usually of little consequence for the digital circuits as long as it doesn't get too
excessive, it impacts the accuracy of the analog circuits in the scope and would introduce noise in the measured signal.

To avoid this situation, I chose a very common supply arrangement where one regulator supplies all digital logic, while the second regulator supplies the analog portion of the circuit (op-amps,
digital-to-analog converters supplying offset voltages, analog section of the digital-to-analog converters). That way compared to my original breadboard version of the scope I was able to reduce the noise on the analog power supply by about a factor of three, to less than one LSB of the 8-bit sampler. The analog supply voltage also doubles as reference voltage (against which the signal level gets measured), which again asks for a very stable supply because any changes or noise would show up as changes or noise in the measured signal.

Four 100uF electrolytic capacitors (one before each of the regulators, and one after each one) buffer supply current changes. In addition, a 0.1uF ceramic capacitor close to each IC (distributed over the rest of the schematic pages) buffers fast current spikes caused by digital switching.

Step 7: Circuit Description - Sample Logic

Picture of Circuit Description - Sample Logic

There are quite a few simple oscilloscope designs out there that try to implement the full sample logic in software on the microcontroller. Unfortunately typical inexpensive and simple-to-use 8-bit microcontrollers lack sufficient speed, so achievable sample rates are low. That's why I decided to use external digital logic instead. In the current design the limit for the sample rate (1 MS/sec) is given by the analog-to-digital converter that I used (MAX153) rather than by the sample logic - it would be easy to have it run to 10 MS/sec and beyond.

Originally I designed the scope using a Xilinx CPLD (programmable logic device), but in the end
decided to employ standard CMOS logic chips (74HCxx series) instead - a CPLD again needs special programming hardware and software and I figured that would probably put off everybody except a few experts. It also knocked a little bit off the component cost. This forced me to really reduce the logic content to an absolute minimum, so thats why there is e.g. no pre-trigger option (i.e. a possibility to capture the signal before the trigger). Maybe I'll make such a scope in the future.

The microcontroller supplies a clock signal (produced in the background through its PWM output)
which is gated (blocked) until a trigger impulse arrives through flip-flop DFF1. The XOR in front of
DFF1 acts as a programmable inverter to select triggering on either rising or falling edge. In front of it is a Schmitt-trigger logic gate that adds some hysteresis to minimize the chance of false triggering due to noise.

The clock signal drives a 8-bit binary counter (CTR1) which increments the address for the data
storage in the SRAM (see next page). When the counter wraps around (i.e. after reaching its
maximum, and the most significant bit goes again from 1 to 0) this triggers another flip-flop (the
second half of DFF1) which in turn gates off the clock signal. The other output (Q) of the flip-flop
produces the "DONE" signal which indicates to the microcontroller that the data acquisition has ended and the data can now be read from the sample memory and transferred to the PC.

For this readout, the microcontroller re-enables the clock path and alternately pulses the clock signal and reads out one bye of sample data, which it transfers to the PC through the serial connection.

Step 8: Circuit Description - Analog-to-Digital Converter; Sample Memory

Picture of Circuit Description - Analog-to-Digital Converter; Sample Memory

The analog-to-digital converter (ADC) is a central part of the oscilloscope; it samples the analog signal and transforms it into a digital number which then gets stored on the sample memory. For this design I chose the Maxim MAX153 ADC, which is a half-flash ADC capable to acquire up to 1 million samples per second with a resolution on 8 bits (i.e. values of 0 to 255). This was the fastest ADC I could find that is available in DIP package (beginner-friendly!) as a free sample.

That sample rate means the scope can produce meaningful displays of signal up to about 150kHz (in that case, there are about 7 samples per period). The ADC is driven by the same clock as the counter, and it provides the sampled data in parallel format (8 data lines).

The sample memory is a legacy SRAM chip with a size of 2K x 8 (i.e. 2 KBytes), of which only the first 256 bytes get used. One could easily put in a larger counter (just cascade another counter IC), but I chose to keep it down to an 8-bit address out of two reasons - first, it cuts down on components and cost, second, a record length of 256 samples is sufficient for a very decent waveform display while at the same time the screen update rate is relatively fluent (I measured close to 7 frames/sec with a single channel turned on). Doubling the record length would cut the update rate roughly in half.

The acquisition circuit (ADC + SRAM) is doubled, i.e. one set for each of the scope's two channels.

The overall design would allow for an easy extension to more than two channels - just add more sets of ADCs and SRAMs in parallel, as well as more I/O expanders to read back the SRAM content.

One little hitch that took me a while to debug is the following: The counter is a ripple counter, i.e. not all output signals toggle at exactly the same time. This means that for a short while the address going to the SRAM changes more or less randomly. If you keep the SRAM's write enable on during that time, the data at those random addresses will get overwritten with the current sample. I got waveforms that were recognizable but had sudden abrupt changes every few cycles. The solution was to hook up the /WE input to a copy of the clock signal of appropriate phase so the write gets disabled whenever the address from the counter changes.

Step 9: Circuit Description - Analog Frontend

Picture of Circuit Description - Analog Frontend

The ADC has a fixed input range of 0 to 5V. Signals smaller than that range will have reduced resolution, and larger signals will get clipped. Since the input signal that the scope is supposed to measure can span a wide range from quite small to quite large, we need an input stage that can attenuate and/or amplify the incoming signal to make it suitable for the ADC. The circuit shown here is for channel 1, but channel 2 looks identical.

First, the incoming signal is attenuated by a factor of 4. This increases the maximum voltage range to 20V. Since the subsequent circuits cannot deal with negative voltage (to keep the circuit simple, the scope has only a single +5V supply and no negative supply), the only way to measure negative signals is to shift them up with a programmable offset voltage provided by a digital-to-analog converter (see next page). This way the scope can display voltages between -12V and +20V max.

The two diodes act as input protection, clipping any signals to the preamplifier that exceed either +5V or 0V by more than one diode drop.

The preamplifier OP1, a Microchip MCP6022, produces two buffered copies of the input signal, one
with gain 1, one with gain 10, which can be selected by the subsequent stage. Apart from amplification (the gain=10 version), this buffering is also necessary because the following stage does not react kindly to an input circuit with too high an impedance (i.e. too little drive strength) - wild oscillations would be the result (of course I had to try this out experimentally, and indeed quite "interesting" but not really usable behavior was the result). The MCP6022 has a gain-bandwidth product of 10 MHz, so at a gain of 10 we can expect about 1 MHz of bandwidth - more than sufficient because our sample rate already limits us to less.

The input impedance of our oscilloscope - determined by the input attenuator - is 133 kOhm. I would have loved to make it 1 MOhm so one could use standard 1:10 probes which need this impedance to work, but the input capacitance of OP1 is too high - making the input attenuator resistance too large limits the bandwidth too much. In my experiments a 1 MOhm divider resulted in a measly 60 kHz of overall bandwidth, while the present design provides around 400 kHz (which nicely matches the sample rate limitation - see Nyquist theorem!). At least you can still use a standard 1:1 probe, and in any case I would not recommend applying voltages larger than 20V to this design. (Note: I recently designed a simple compensation circuit that enables 1 MOhm impedance as well as higher bandwidth (1 MHz) - see next step for more details).

The second stage in our signal chain is a programmable gain amplifier (PGA). I chose the Microchip MCP6S22, which offers a gain-bandwidth product of up to 12 MHz (again, more than enough) and has selectable gain settings of 1, 2, 4, 5, 8, 10, 16, and 32. The higher gain settings turned out quite prone to oscillations (the datasheet already warns about that, but I still had to try :-), so that's why my design only uses gains up to 10. Together with the pre-amplifier and the attenuator that gives a total gain range from 0.25 up to 25, sufficient for most applications. Best of all, there are no moving parts (like relays)! The PGA has two selectable inputs that I use to switch between the two copies of the pre-amplified signal, and it communicates with the microcontroller through the SPI bus.

Step 10: Upgrade to 1 MOhm Impedance and Higher Bandwidth

Picture of Upgrade to 1 MOhm Impedance and Higher Bandwidth

The signal input of the original LCS-1M design has an impedance of 133 kOhm. This is usually
sufficiently high to make signal aberrations due to the additional load negligible (e.g. with a 600 Ohm audio source the 133 kOhm load introduces a level error of well under 1%; errors due to resistor tolerances, power supply tolerances etc. add up to much more). But it precludes the usage of standard 1:10 scope probes, because these probes assume a scope impedance of 1 MOhm (they are basically just 9 MOhm resistors, which then forms a 1:10 voltage divider with the scope input).

As already outlined in the previous step the reason I had to choose a lower resistance is the input capacitance of the op-amp (OP1 for scope channel 1). It is parallel to lower resistor (R12) of the input divider, and at higher frequencies it shunts R12 and thus increases the division ratio (refer to
schematic page 5). That means higher frequencies get attenuated more - we got ourselves a low-pass filter without even asking for one. Use a higher resistance divider and the problem only gets worse. With a 1 MOhm divider I got a measly 60 kHz of bandwidth - too little to match the scopes 1 MS/s sample rate. I needed to go down to these 133 kOhm to achieve around 400 kHz.

There is no way to get rid of this input capacitance. So "if you can't beat them, join them". If you add a discrete capacitor C1 in parallel to R10 (the 100 kOhm resistor) you get a capacitive divider in parallel to the resistive divider. If you choose C1 so that

R10 / R12 = Cin / C1 (Cin is OP1's input capacitance)

then the division ratios of capacitive and resistive divider are equal, and the division ratio is constant over frequency - no more low-pass filter effect even though Cin is still there. (Actually the input impedance decreases with frequency, but that's much less of a concern; the divider ratio does not change).

Cin is usually not known very precisely (and will vary from device to device, even of the same type), so scopes normally make C1 adjustable so you can trim it to optimum setting. Since I did not want
anything that need adjustment (because that tends to scare beginners off), I chose instead to also add a large-ish capacitor (C4) in parallel to Cin - that way variations in Cin have much less effect.

Standard low-end scopes typically have an input capacitance of around 15pF, so was shooting for a similar value. To get a 1 MOhm resistive with a ratio of 1:4, the resistors need to be 750 kOhm and 250 kOhm. As for the capacitors, after choosing C1 to be 18pF I varied C4 until I got the flattest frequency response with a choice of 43pF. With that, the bandwidth doubles to around 1 MHz (not very important given the scope's maximum sample rate), and the input impedance at DC is 1 MOhm, so you can now use 1:10 probes to measure voltages higher than 20V!

Practical implementation:

To modify the LCS-1M with the new input stage you'll need to hack the board a bit - but it's pretty easy. If you can't easly get the component value (750 kOhm, 250 kOhm, 43 pF and 18 pF) you can put them together from two components each, combining them either in parallel or in series. Remember that for resistors, the total resistance R_tot is

R_tot = R1 + R2 (series connection) or R_tot = (R1 * R2) / (R1 + R2) (parallel connection),

while for capacitors, the total capacitance C_tot is

C_tot = (C1 * C2) / (C1 + C2) (series connection) or C_tot = C1 + C2 (parallel connection).

For the resistors, as long as you get within about 1 - 2% of the goal, you are fine. The E24 series (1% tolerance) has 750 kOhm and 249 kOhm available. Or with easier-to-obtain E12 series resistors (5% tolerance) you can use 130+620 = 750, 270+470 = 740, or 330+430 = 760 (all series connected), or two 1.5 MOhm resistors in parallel. For the 250 kOhm resistor use series combinations of 100K+150K, 30K+220K or 51K+200K.

The capacitors usually have larger tolerances anyway (5% or 10%), so don't get overly fussy here. If
43pF and 18pF aren't easily available, use 44pF (= two 22pF in parallel) and 20pF (= two 10pF in
parallel), or 47pF and 22pF. Alternatively, replace the 18 pF capacitor with a ~5 - 50pF trim capacitor, measure a square wave and adjust it until it looks really square (no rounded edges and no overshoot either).

Attached below is the updated schematics for the two channels.

Step-by-step instructions:

Channel 1:

1. Unsolder R10 and R12.
2. Replace R10 with a 750K resistor (R10 and R31 in the updated schematic) and 18pF capacitor in parallel. Keep lead lengths short to reduce parasitic inductance.
3. Replace R12 with a 250K resistor and 43pF capacitor in parallel.

Channel 2: same, only the part numbers change.

1. Unsolder R18 and R19.
2. Replace R18 with a 750K resistor (R18 and R32 in the updated schematic) and 18pF capacitor in parallel.
3. Replace R19 with a 250K resistor and 43pF capacitor in parallel.

Step 11: Circuit Description - Level Offset; Trigger Circuitry

Picture of Circuit Description - Level Offset; Trigger Circuitry

The last part that the microcontroller is repsonsible for are some analog voltages. First, there are the channel offset voltages which move the measured waveforms and also allow for negative signals to be displayed. These voltages are generated by a two-channel 12-bit digital-to-analog converter (DAC, Microchip MPC4822) that is connected to the SPI bus.

A DAC of same type also sets the adjustable trigger level. Since the DAC can only produce voltages from 0V to 4.096V, one half of OP3 scales this up to the full necessary range of 0 to 5V. The second half is configured as an open-loop comparator, i.e. an op-amp without any feedback circuitry and as a consequence very high gain. It is fed by the trigger level on one side and the ADC1 input voltage on the other. This circuit will rail to the positive supply voltage whenever the input signal exceeds the trigger threshold ever so slightly, and rail to ground whenever the input signal is only sightly lower than the threshold. In other words, it provides a digital trigger signal that feeds the trigger input of the sample logic.

In the present circuit the scope can only trigger on channel 1. This is not really a serious limitation, the user simply must decide which signal he/she wants to trigger on before hooking up the scope to his/her circuit. At the same time, it cuts down on components, board size, and cost (at least two more ICs and some discrete elements).

Step 12: Breadboard Version

Picture of Breadboard Version

Initially I built up the scope on a standard breadboard. This allows for easy troubleshooting, adding and removal of components, trying out new ideas and alternative solutions, etc. Plus it looks really nerdy. I would have never succeeded in getting the scope to work with any other approach. I simulated the sample logic on the computer first, but reality always has a few surprises. Also I love being able to tweak the analog section until the signal path is clean and has the required performance.

The picture below is a fully functional single-channel development version. Looks messy but worked perfectly fine, apart from somewhat higher noise on the signals, and slightly less reliable trigger (because the power supply lines are quite inductive, so the trigger created transients on them). Creating the final schematic was then simply a question of copying the existing circuit piece by piece.

Step 13: Circuit Board Layout

Picture of Circuit Board Layout

I did schematic capture as well as the layout with the free design tools from ExpressPCB. I find their software easy to use and quite capable (but of course no match for really professional tools in terms of performance); also you get one-stop shopping, no complicated layout file set generation etc. The only hitch is that you can't send the files to any other fab house because they get encoded. Still, for moderate quantities their pricing is reasonable.

To obtain the design files, go to the oscilloscope homepage.

I made the board a two-layer board. A four-layer board would have been much easier to route but
would also be much more expensive. I would not recommend etching and drilling this board yourself, it really isn't worth the effort and would require quite advanced PCB skills - the lines are quite narrow (most are 10mils/0.25mm), there are hundreds of holes and vias, and the two sides would need to be aligned very precisely. I offer the board for sale on my oscilloscope homepage very close to my own cost, in volume pricing this is a much better solution.

The bottom has a flood-filled ground plane for optimum grounding. Still, because there are so
many lines closely together, one must take care to avoid "islands", i.e. patches of supposed
ground fill that in reality do not have any connection to the surrounding ground.

The routing is done in classic fashion, with the top layer carrying all the vertical traces, the bottom
layer all the horizontal traces, with very few exceptions. The power rails are routed using wider
traces to minimize inductance and ohmic drop.

Without exception all the components are through-hole, and all the chips are DIP packaged
(mounted in sockets for easy replacement). This makes the design very easy to assemble even
with moderate soldering skills. It will also allow for inexpensive assembly and wave soldering
should I find a vendor willing to offer it as a completely assembled unit.

The components placement follows largely the logical structure of the design. On the left is the
interface (power and serial) and the power supply regulators. Left in the middle is the sample logic
(four chips), below are the microcontroller and the RS-232 level converter.

The very right side is taken up by the analog frontend (probe connectors, amplifiers, bias DACs,
discrete elements), one channel on the top and one at the bottom.

Left to the frontend is the conversion (ADC) and storage (SRAM) section, with the I/O expander
needed for data readback from the memory chips in the center.

Step 14: Getting Chips for Free

To keep costs to a minimum, you can obtain about half of the chips without paying anything (legally, I'm not talking about robbing your local Radio Shack :-).

How to get free samples: Most semiconductor companies have sample programs - meaning they will send you small quantities of their chips for free! (often you don't even pay for shipping). The exact conditions are different from one vendor to the next, but for a hobbyist it means that you can get most of your chips you need without having to pay for them. The LCS-1M design relies heavily on that to keep costs down. For Microchip, you need a non-generic email address (e.g. not Hotmail) - use your work address or similar, then you can order 4 different types chips (between 3 and 5 of each) twice in each 40-day period - quite generous I think. Maxim has no specific limit on the email address or the number of orders per time span (although they do restrict the number of chips of a single type).

Step 15: Build Your Own - Step by Step

On the next few pages, I'll show how to put together your very own oscilloscope.

Please look at the design pages for the bill of materials (on the oscilloscope homepage). You will need to obtain free samples from Maxim and Microchip, all the other components are from Jameco (usually have much better prices than other web retailers); if you are living outside the USA and don't want to pay for international shipping, you'll need to find compatible parts from a local retailer; still the Jameco links are useful because they have a downloadable data sheet for each component.

Based on the schematic you could build up the scope on a protoboard, stripboard or veroboard, but it's going to be a lot of wiring work and it is easy to make mistakes - and unless you are an experienced electronics person, troubleshooting a non-working circuit designed by somebody else can be difficult (and no, I can't do the troubleshooting for you :-) Etching your own board based on the published layout may be possible, but line widths are quite narrow (mostly 10 mil / 0.25 mm) and there are hundreds of holes to drill and vias to connect. So in essence, I recommend getting a blank scope board (from the oscilloscope homepage) - after a few repeats I can now put together the full scope in less than two hours and so far every single one worked right away.

In addition you will need:

  • A soldering iron (approx. 20 Watts) with reasonably fine tip
  • Solder wire
  • Flat-nosed pliers (to bend component leads)
  • A wire cutter (to cut of component legs)
  • A screwdriver

If you are new to soldering, you may want to have a look at this instructable that gives a good introduction. It's really not that difficult but of course a little bit of practice always helps.

Step 16: Build Your Own Step 1 - Bare Board

Picture of Build Your Own Step 1 - Bare Board

Start out with the bare printed circuit board. All components will be mounted on the top side (the side which has the wide silkscreen). The component outlines are labeled with the component designators (like R10, C17, etc.) which correspond to the schematic and the bill of materials. Use those labels to find out which component goes where (alternatively, you could open the layout in ExpressPCB and the schematic in ExpressSCH and double-click on each component to find out its properties).

Make sure the board is clean and free from any dirt or grease (if needed, wipe it with a clean cloth lightly soaked with cleaning alcohol).

Step 17: Build Your Own Step 2 - IC Sockets

Picture of Build Your Own Step 2 - IC Sockets

Now put in the IC sockets and solder them. I'd recommend first soldering only two pins on diagonally opposed corners of each socket, then check that the socket is still firmly lying flat on the board, and correct if necessary. Once you have soldered more than two pins it is virtually impossible to make changes without specialized desoldering equipment. Also, make sure the notch (indicating pin 1 of the IC) is on the correct side (right side in the picture for all sockets) - the silkscreen outline shows the notch as well.

You may be tempted to omit the sockets and solder the chips directly onto the board to save some money. This is not a really good idea. First, unless you are very careful it is easy to damage the sensitive chips through electrostatic discharges during soldering, or overheat them when you keep the soldering iron on the same location for too long. Using sockets allows you to insert the chips after all the soldering work is done. Second, it is nearly impossible to replace a damaged chip once it is soldered down on its many legs. And after all, nothing says you will never kill the input amplifier by applying too high a voltage, making a repair necessary. (That said, the 100 kOhm resistor at the input in combination with the clamp diodes should provide protection of the several 100 Volts). And after all, those sockets cost very little if you look around a bit, typically 10 - 15 cents per piece.

Step 18: Build Your Own Step 3 - Capacitors

Picture of Build Your Own Step 3 - Capacitors

Next are the capacitors. The ceramic capacitors (brown discs in the picture) are easy - they are unpolarized (meaning you can put them in either way) and all have the same value (0.1uF).

More caution is required for the electrolytic capacitors (black cylinders in the pictures). First, there are two different values - 1uF (the group of four placed around the socket on the bottom left side), and 100uF (the other four). Second, those capacitors are polarized - inserting them the wrong way around will destroy them when you power up the scope. The silkscreen indicates the positive side (with a "+"), as is usual practice. Strangely enough, the capacitors themselves have the negative side labeled (with a "-", the vertical gray stripe on the capacitors), so make sure you put them in the right way.

Step 19: Build Your Own Step 4 - Securing Components Before Soldering

Picture of Build Your Own Step 4 - Securing Components Before Soldering

We need to avoid having the capacitors fall out again when you flip the board over for soldering. Thus before turning the board over, spread all the component legs apart with your finger, as shown in the picture below. The same technique applies to resistors and other components.

Step 20: Build Your Own Step 5 - Connectors, Voltage Regulators

Picture of Build Your Own Step 5 - Connectors, Voltage Regulators

Now come the connectors - power (left bottom), PC link (left top), and probe (right), as well as the two voltage regulators. Not all of the connectors shown are mandatory:

If you plan to put the board in an enclosure, you can safely omit the black power connector (keeping only the blue power terminal), the phono socket, and the board-mount BNC connectors (not installed in the picture above). Installing the through-hole BNC connectors will prevent you from fitting the board into the intended enclosure, and those connectors are very hard to remove once soldered on.

On the other hand, to keep the scope as a bare unit, you may not need the blue power connector (if you are using a power supply with coaxial plug), and can also omit the three-pin serial header (J_SERIAL).

Step 21: Build Your Own Step 6 - Diodes and LED

Picture of Build Your Own Step 6 - Diodes and LED

Now insert the diodes. Make sure you put them in in the right directions - diodes are polarized, and the circuit won't work if you put them in backwards (see picture for reference - the black ring indicates the negative end). Diodes are also sensitive to excessive heat, so try to solder them quickly and then immediately remove the soldering iron again.

The power indicator LED (light emitting diode) - between the two blue screw terminals - should be placed if you plan to use the scope without enclosure. Otherwise leave this connector open or put in a jumper header (like shown in the picture) so you can later hook up a panel-mounted LED. Again, the LED is polarized so you'll have to insert it the right way around (see "+" label; the LED's "+" pin is the longer one).

Step 22: Build Your Own Step 7 - Resistors

Picture of Build Your Own Step 7 - Resistors

Last but not least, we add the resistors. This is about the most time-consuming task because there are several different values - be careful not to mistake one for another. Each resistor's value is encoded as three rings of different color, plus one ring for tolerance (gold = +/-5%). If you are not familiar with this color coding, have a look at the bill of materials, which shows the color sequence for each value. Alternatively, you can use a multimeter in resistance mode (Ohmmeter) to find out which resistor is which. Resistors are unpolarized, so it does not matter in which orientation you put them in.

Step 23: Build Your Own Step 8 - Component Leads

Picture of Build Your Own Step 8 - Component Leads

If you haven't done so, once you are done soldering, clip all the component leads with the wire cutter. Be careful - wear glasses or at least close your eyes when cutting - sometimes those leads can shoot away with quite some force and you don't want them to land in your eyes!

This step is also a good occasion to check every single solder joint and make sure you actually soldered each and every component lead. Double-check all the chip socket leads as well - it is very easy to forget to solder some, which best case makes for an extended troubleshooting session, and worst case could cause damage to the chip when powered up. Also make sure all the solder joints look "good" (shiny and smooth surface - anything else could indicate a "cold" solder joint that does not really make good contact and/or will break open and lose contact in the future). If necessary, re-heat suspicious joints to re-flow the solder.

Step 24: Build Your Own Step 9 - Bare Board Version

Picture of Build Your Own Step 9 - Bare Board Version

Here is the finished scope as a "bare board" version. I added standoffs and board-mount BNC connectors.

The BNC connectors allow to connect standard 1:1 scope probes or coaxial grabber cable (see next page), while alternatively we can connect wires using the screw terminals. Similar for the power connector, here you can choose between a standard 2.1mm power plug (common on many wall-wart type power supplies) and a wire connection (e.g. if you get the power from a breadboard setup).

Step 25: Build Your Own Step 10 - Enclosure

Picture of Build Your Own Step 10 - Enclosure

Below we see the scope mounted in a plastic enclosure (top cover removed). Refer to the bill of material for the references of the enclosure. Note that I left out the board-mount BNC connectors and used panel-mount connectors instead. The board-mount BNCs would prevent us from assembling the unit. I also added a panel-mount power indicator LED in front, and power and serial data connectors on the back panel.

To avoid board warping, you either need to file or back-drill the two unused standoffs in the center of the enclosure (approx. below the two MAX153 ADCs) or add washers to the four used standoffs.

Step 26: Build Your Own Step 11 - Firmware Download

Picture of Build Your Own Step 11 - Firmware Download

Now it is time to burn the scope firmware into the microcontroller. Fortunately the Picaxe microcontroller does not need any fancy programmer - it has a serial bootloader already installed, so we can download the firmware through the serial cable.

First, set the jumper (JP7, see picture) to the download connection, which is marked with "DL". Note that in the picture above it is not in the "DL" position, but at "TX", which is used for normal operation. Simply move it over from there so it bridges the first and second pin.

Connect the power supply to your oscilloscope.

Then connect the serial cable between the oscilloscope and the PC.

If you haven't done so yet, go to the download page on the oscilloscope homepage and download the scope firmware as well as the programming editor. Open the latter and load the firmware file. In the "Option" menu, select "Picaxe 28X1" as the microcontroller type. Also select the correct COM port (usually COM1 if you are using the real serial port, but can be anything if you use the USB-to-serial converter cable). You can check if the software recognizes the scopes microcontroller by pressing the "check firmware" button.

Now download the firmare by choosing "Run" from the menu bar (or press the "Run" button). A download status window should pop up and inform about progress. Download takes less than a minute.

Shortly after the download finished, the scope's power indicator LED should turn on. This is the sign that the microcontroller is now running the scope firmware and is waiting for commands sent through the serial cable from the PC.

After that, move JP7 back to the "TX" (Transmit) position. The scope is now ready for use.

On the PC, launch the scope software. It will auto-detect the scope (as long as the serial port number is between COM1 and COM20).

Step 27: The Complete Deal

Picture of The Complete Deal

Here is the complete setup - scope in the enclosure, with power supply, probes, and data cable.

As for the power supply, anything that produces 9 - 15V DC and can deliver at least 300 mA will do (the scope takes 170 mA, but some headroom never hurts).

The probes are inexpensive coaxial cables with BNC connectors at one end and miniature grabbers on the other. For 150 kHz analog bandwidth you really don't need anything more fancy, and the coaxial cables provide good shielding and low inductance. You could also use standard passive oscilloscope probes, just make sure you set them to 1:1 mode, not 1:10.

The scope in the picture uses a cable that has a built-in USB-to-serial converter - that way I can hook it up to computers that don't have the classic serial (RS-232) port. Those converters come with drivers that make them look like a normal COM port (albeit a virtual one) for the software, so no changes to the scope software are necessary. Still, that solution costs more and does not improve performance otherwise, so I wouldn't go for it unless necessary.

Step 28: PC Software

Picture of PC Software

Shown below is the PC based scope GUI, displaying both scope channels. The software is available for free download from the oscilloscope homepage

You control all functions of the scope from this software: Channel level scaling and offset, timebase, trigger, averaging, etc. I made an effort to keep the layout simple and user friendly, and at the same time fast to operate. You be the judge if I succeeded - different people have different preferences of course. Good suggestions for improvements are always welcome.

You can make measurements on the traces using the cursors (here: amplitude and frequency - see green cursors in the display and status bar at the bottom).

The screen refresh rate is quite acceptable, I get about 7 frames/sec with a single channel turned on, and 4.5 frames/sec with both channels turned on (record length 250 points in both cases). There is a new version of the Picaxe microcontroller announced to be released some time in the future (but not sure when exactly) which will roughly double those numbers - then the display will become really fluent.

Step 29: Spectrum Analyzer Mode & X-Y-Mode

Picture of Spectrum Analyzer Mode & X-Y-Mode

The picture here shows the same waveform as the previous slide (CH1, square wave), but now in real-time frequency display. Great to find resonances and oscillations and to analyze periodic signals. Basically the scope works as a spectrum analyzer, with no extra hardware. The refresh rate is somewhat slower than in normal mode because of the real-time FFT (Fast Fourier Transformation) the computer has to perform after each acquisition. You can display power or voltage, linear or logarithmic scale, and use several different filter methods (e.g. Hamming).

Based on user suggestions I recently also implemented a X-Y display mode. In this mode, channel 1 provides the horizontal deflection, and channel 2 the vertical deflection. This display mode - well known from classic cathode ray oscilloscopes - provides a good way to e.g. check out
reactive components like capacitors and inductors - one channel looking at the voltage across the component, the other one looking at the current. Or feed in two waves of different frequency and enjoy the resulting Lissajous plots. It is usually easiest to set up levels, trigger etc. in normal mode and then switch into X-Y mode. The sample record should comprise at least one full period of the slower signal, a bit more is even better. A screenshot of this mode is shown below (Lissajous plot of two sine wave, one having twice the frequency of the other).

Step 30: Conclusion

Picture of Conclusion

Thanks for staying with my explanations through all those many slides! Maybe you are now motivated to try and build your own scope? Even if not, I hope you enjoyed it. Below is my contact address if you have questions, want to give me feedback, have suggestions for improvements, etc.

I also invite you to visit the oscilloscope homepage where you can get all the design files, bill of materials, PC software, scope firmware, etc.

There is also a page where you can order the printed circuit board and/or the pre-programmed microcontroller, a complete self-assembly kit with all components, or even the fully assembled and tested oscilloscope. I really try to keep it hobbyist- and student-friendly, so I'm selling those things pretty much at cost.

Comments

naveed.afzal.908 (author)2016-11-12

Awesome

SHOE0007 (author)2016-08-29

Very interesting. I don't have enough knowledge to build an oscilloscope like that so i will buy one online on e-bay. It goes up to 20 MHertz.

Here is a link.

http://www.ebay.ca/itm/SainSmart-DDS120-PC-Based-U...

The picture is how to produce a DAR TRANSISTOR with an input of a cds cell. Then the output is attached to a oscilloscope. It must be done in dark but it may work.

Yonatan24 (author)2016-01-31

Hi, I've added your project to the "Make Your Own Oscilloscope!" Collection

This is the link If you are interested:

https://www.instructables.com/id/Make-Your-Own-Osci...

MatD1 (author)2014-12-10

Sir can you give me the all(overall) of the pic program?we need it sir, we want to build for final year project . this is my email danial581@gmail.com

womai (author)MatD12014-12-10

Firmware (source code) and PC software (executable only) are freely available for download on the scope website (on the website go to "Design" tab and choose from the menu on the left):

http://www.pdamusician.com/lcscope/

melwinalm (author)2014-05-22

Sir can you give me the program of the pic sir ? and the VB6 code for the pc software We need it sir this is my email melwinalm@gmail.com

womai (author)melwinalm2014-05-22

Firmware (source code) and PC software (executable only) are freely available for download on the scope website.

cyrohn15 (author)2013-12-06

yes sir ..can you give me the program of the pic sir ? and the VB6 code for the pc software ..we need it sir ..we decided to make the project and pass it on our teacher but we need the code sir ..this is my email cyrohn15@hotmail.com ..

womai (author)cyrohn152013-12-06

replied directly to your email

cyrohn15 (author)2013-12-05

thank you sir ..we are from Philippines sir ..when we can have the kit if we buy this month?

womai (author)cyrohn152013-12-05

I assume your question refers to the DPScope SE? (I stopped selling the Picaxe based LCS-1M kit a long time ago). In my experience shipping to Asia takes anywhere between 1-4 weeks, usually on the long side during peak times like Christmas.

cyrohn15 (author)2013-12-03

Good day sir! can i ask a question in how to make the pc software ..

womai (author)cyrohn152013-12-03

If you want to use the scope as-is, you can simply download the software from the scope website.

The software is written in Visual Basic 6 (VB6), which unfortunately is no longer supported by Microsoft (you can't even buy a new license anymore). For new developments I would recommend C# or VB.NET instead.

cyrohn15 (author)womai2013-12-04

thank you sir .. we love to built this project ,,sir we would like to copy the program in the pic ..pls send us the program of the micro-controller ..if we buy the kit ..how much we will pay?

womai (author)cyrohn152013-12-04

You can download the firmware directly from my website:
http://www.pdamusician.com/lcscope/design_firmware.html

Same goes for the PC software, schematic, layout files etc.

I no longer sell the printed circuit boards though, so you either need to make your own (as said, the original layout is freely available for download) or build it up e.g. on a prototype board.

womai (author)womai2013-12-04

The design files (schematic, layout, bill of materials) is here:
http://www.pdamusician.com/lcscope/design_design_files.html

PC software is here:
http://www.pdamusician.com/lcscope/design_pc_software.html

womai (author)womai2013-12-04

If you want to build a kit supplied with all parts, I have a newer design, the DPScope SE, here:
http://www.pdamusician.com/dpscope/overview_se.html

This is much easier and cheaper to build since it uses only very few components.

ajoyraman (author)2012-10-05

Your Low-Cost Oscilloscope & DP Scope have been an inspiration to me.

Thanks also for the clarification you provided on sampling oscilloscopes.

I would love to get your comments on my recent instructable

https://www.instructables.com/id/Universal-Analog-Hardware-Testbench/

A non real time DSO is provided by the 'Capture Mode'

elfarandulero (author)2012-08-26

Where is the schematic, without the schematic you ain't going nowhere?

womai (author)elfarandulero2012-08-26

Steps 5 - 11 contain the full schematic (plus description of the functionality). Or you can download it from the oscilloscope webpage at http://www.pdamusician.com/lcscope --> Design --> Design Files

rashmi1990 (author)2011-07-17

Hi this design is bit complicated for a beginner

if some body want a easy design then check this link
http://microembeded.blogspot.com/2011/07/two-channel-pcbased-oscilloscope-usb.html

Eonir (author)2010-03-14

I have a noob question.

It is mentioned in the instructable that a USB cable can be used to connect the PC with the device. What kind of USB cable is it?
Is it perhaps this one?
http://www.sparkfun.com/commerce/product_info.php?products_id=8312

Can I use a cheaper USB<->RS232 converter instead? To connect it to the audio-jack only a few wires are needed.

womai (author)Eonir2010-11-04

Pretty any USB-to-RS232 converter cable should work. You can find them for just a couple bucks on Ebay.

Of course you may need to hack the RS-232 connector and attach a 3-terminal phono connector instead, or alternatively replace the scope's phono jack with a DP-9 jack.

Blackice504 (author)2009-09-30

Hi there i am thinking of building this as i need such a device i can get a $165 real scope but it only has 20mhz bandwidth but it can handle 300volts on the probes. Say i not need to know the voltage and just see the waveform can i use a transformer on this scope to step the voltage down provided that i use a high freq type transformer and also what is the total cost to build this scope assuming i have all the tools? Thank you so much for this instructable i think its great that someone try's to save us money especialy when scopes are such a needed device but so much money.

womai (author)Blackice5042009-09-30

It comes down to what you need. In some respects the scope you sent the link to is more powerful than my design, and in some it lacks. Most of all, note that it only has one channel (mine has two), so you can't display one signal in relation to another (e.g. clock + data), which is quite a limitation. It does have better bandwidth than my design - 10 MHz vs. 400 kHz (or 1 MHz after upgrade). It has traditional knobs (some people prefer that), but my design makes it easy to e.g. take screenshots, save waveforms in ASCII format to process them in Excel, make numeric measurements with cursors, etc. If you need to extend the voltage range, the most straightforward way is to use a 1:10 or 1:20 scope probe (note that you'll need to make some small changes to the frontend of my scope to be able to use such a probe, because it needs a 1 MOhm scope input; the details are on my webpage and I'll be happy to answer any further questions). With such a probe the input range goes up to +200V and down to -120V (1:10 probe) or +400V / -240V (1:20 probe). So if you need the bandwidth, I'd look for a decent used two-channel cathode ray scope on Ebay - for $170 you should be able to get something useful. If you can live with lower bandwidth and want a more modern design (or like to build things yourself), go for my scope. Building my scope should come to well under $100, less if you can live without the enclosure; most chips it uses you can get a free samples (btw, that includes the Cypress SRAMs). If you did electronics before you probably have quite a few other components (resistors, chip sockets etc.) already lying around, which would reduce expenses even further.

Blackice504 (author)womai2009-10-01

Thank you so much for a speedy responce i mostly work with high voltage above 60volts. and you right high voltage is really dangerous even 9volts ac can give you a tingle or two but apart from that after reading that you said its probley best for me to have your scope for testings chips and things and use the bench scope for testing the high voltage it would be a scary thing to see 300volts run down a usb cable then stright into a 3.3 volt south bridge. thank you so much i will build this but later for now i need to play with high voltage as i am building invertor circuits.

womai (author)Blackice5042009-09-30

Regarding measuring high voltages, a transformer is not necessary (in addition it would have a lower-frequency cutoff so it won't display any DC offset). All you need is an ohmic divider. Apart from using a 1:10 or 1:20 probe you can also modify the resistive input divider of my scope. Right now its division ratio is 1:4 (100 kOhm and 33 kOhm), so if you make this 1:40 (e.g. use 390 kOhm and 10 kOhm) that achieves the same 1:10 scaling. That said, as also outlined in the disclaimer, I explicitly assume NO RESPONSIBILITY if something happens at such high voltages (e.g. damage to your computer or yourself); anything exceeding 20 - 30V is potentially dangerous or even lethal. You need to know what you are doing and take proper precautions.

Blackice504 (author)2009-09-30

http://www.jaycar.com.au/productView.asp?ID=QC1920&CATID=12&form=CAT&SUBCATID=628

here is a link to the scope and its a type that is 10mhz as its 20Mhz

jam BD (author)2009-09-08

Sooooooooooooooooooooooooooooooo....
professional =D It's really good =D

stefannasehi (author)2009-09-08

This has got to be the biggest instructable ever!

learner1234 (author)2009-08-24

Hello. I am still trying to get the scope to work. The stage I am at now is the computer won't recognize the scope thru the serial port. On two different computers, after loading the programming editor and setting options as 28X2 and COM1, I get a "Hardware not found on COM1" message. I have meticulously traced continuity from the serial end of the cable to the pins on J_SERIAL. I have checked for 5 volts on the power in pin on just about all the ICs. The voltage regulators put out 5.07 volts. There are 1.67 volts between the serial in ( R) pin on J_SERIAL and groung (G) when the serial cable is connected to a computer. The only bad thing that happened was briefly I used a walwart with too high a current rating. The voltage regulator next to JP7 got extremely hot. Now, using a 300mA 9 volt supply , that regulator - screwed to the board- gets pretty darn warm- too hot to touch the screw after several minutes. I don't know what heat tolerance these devices are, but this seems too hot. I'm at a loss about what to do next. Could I have fried the PICAXE microcontroller or another IC when the regulator got too much current? Should I replace the regulator? Is this the stage where I have to sequentially replace ICs? Though I did change the line pwmout FAST_CLK_PWM_CHAN off to add a comma before the word off, and that seemed to correct a syntax error, I'm afraid my diagnostic skills stop there. I'm guessing that IC function could be checked with a logic probe, but have no knowledge of that. I'm not sure what pwmout is, but I checked the syntax in the PICAXE manual. Any help anyone can offer would be appreciated. Attached is the firmware file I modified

learner1234 (author)2009-08-06

It appears I fixed the syntax error in line 394 by adding a comma before the word "off". The Programming editor seemed to accept the revision and loaded something to the microcontroller. Now, when I insert the power cable, I get three flashes of the LED, then the LED stays on. However, the PC software keeps giving me an error " Could not find an instrument attached to the computer..." I've tried both the new software and the beta software without success. BTW, I switched the JP7 pins to TX. DO you have any suggestions? Thanks

learner1234 (author)2009-08-06

I have built the scope, using the Ver 1.1 PCB. While trying to download the firmware using Picaxe Programming editor, I consistently get an error code for line 364, pwmout FAST_CLK_PWM_CHAN off, saying "Syntax error". Do you have any insight into this problem? I tried using the Ver 1.3 BAS file, even though I know it is the wrong version, and got the same error.

davidkr (author)2009-06-22

Can anybody tell me how exactly to install the voltage regulator? It seems like some voltage regulators need to be bonded to a heat sink via a thermal adhesive. For this project, the voltage regulator appears to be attached directly to the board. Do I still need to use a thermal adhesive? Any advice would be greatly appreciated.

womai (author)davidkr2009-06-22

Thermal adhesive or thermal paste improves thermal conductivity to the heatsink. That's only necessary when running the regulator at higher power; for a linear regulator the dissipated power is the supply current times the difference between input and output voltage. I run the scope with a 9V supply and the regulators get warm, but not hot, and the regulators aren't even attached to the board at all. I have people telling me that one of the regulators gets hot if supplied with 12V or higher, in this case simply screw it firmly onto the board - the bottom ground plane will act as heat sink. I don't think at these power levels (the scope only uses 170mA of current) you need anything fancier than that.

learner 123 (author)womai2009-07-31

Here is another novice question about the power supply. I purchased a " 9 volt, 300 mA" wall wart- nice word- from a local surplus store. The panel mount power jack ( Jameco151777) has three pins. I was expecting 2 pins, V+ and ground. When I measured the voltage at the pins, I was surprised to find 14.4 volts and 7.8 volts Here are my questions. 1. The 14.4 volts is just under the 15 volt maximum, so it is safe to use, correct? Or, should I be worried that the wall adapter is apparently mis- labelled as 9 volts, and discard it and buy another one? 2. What is the purpose of the second, lower voltage, roughly half of the maximum? Do all power plugs have this setup? Is the half voltage pin dependable to use, though in this case it is not enough voltage, being less than 9 volts? Thanks

womai (author)learner 1232009-07-31

Chances are your 9V (nominal) supply is unregulated. Because it has some internal resistance (the transformer's secondary coil) its voltage will drop when you put a load onto its output. Without any load 14V output is very possible. These simple DC supplies are sized so at maximum load (300mA in your case) they will give approx. 9V, at lower loads the voltage will be higher. The 7805 regulator can take up to >25V so you are safe. The scope takes approx. 170mA so chances are the actual supply voltage will not be much more than 9V anyway. The third ("half voltage") pin is not connected to anything, but is free floating. Chances are you get fooled by capacitive coupling in combination with the high input impedance of your voltmeter. Connect a resistor (maybe 10 kOhm) between this pin and ground and the voltage should disappear.

learner 123 (author)womai2009-07-31

Thank you. Should I solder the two resistors ( 180 and 22K ohms) into the IC socket (CONV1) to accomplish upgrade 1?

womai (author)learner 1232009-08-01

es, bridging the socket pins with the resistors is the most elegant way.

learner 123 (author)womai2009-07-31

Thank You. I sure learned something. The DMM is not always right. Your right, the voltage disappeared.

davidkr (author)womai2009-06-23

Thanks. That helps.

learner 123 (author)2009-07-31

I am assembling the scope, PCB ver 1.1 enclosure and have a couple novice questions. 1. Are the pins on the breakaway headers ( J_LED, J_SERIAL) meant to have hookup wire soldered to them or are there single female leads with crimp connections available for a cleaner assembly? I soldered leads to J_LED and they look functional, but are messy in appearance. Soldering hookup wire to the various panel mount adapters is the most difficult job in the project, to me at least. 2. Is the correct hookup order for the phono connector to J_SERIAL- a ( fattest part of phono plug) to Rx, b ( middle portion of plug) to Tx, and c (tip of plug) to G?? It is not clear to me from the schematic, so I found a PICAXE datafile online that gave this information 3. For upgrade 2, using the 750/249K resistors and 18/43pf capacitors, in parallel, I intend to wrap and solder the capacitor wire on the resistor wire keeping the capacitor and resistor as close as possible, then solder the resistor wire to the PCB. Is this correct procedure? I suppose I will have to do the soldering as quickly as possible to avoid burning the components?

womai (author)learner 1232009-07-31

1. both solutions will work; soldering wires directly is a bit faster and cheaper (no jumper headers to and jumper cables to buy).

2. please have a look at the ExpressPCB layout file for the pin assignment:

http://www.pdamusician.com/lcscope/design_design_files.html

3. the easiest solution is to solder the resistors onto the board, then stick the capacitor leads under the resistor leads and solder them to the resistor leads. The capacitors and resistors aren't terribly heat sensitive (unlike e.g. diodes or transistors), so the solder speed isn't that critical.

learner 123 (author)womai2009-07-31

Thank You for your reply. In this sentence I am asking if I have the correct order on the MALE part of the phono plug- on the serial-phono cable. Is the correct hookup order for the phono connector to J_SERIAL- a ( fattest part of phono plug) to Rx, b ( middle portion of plug) to Tx, and c (tip of plug) to G?

BlackHawk1200 (author)2009-05-04

I'm collecting all of the parts to make the version with the enclosure, and I'm not quite sure what to do. The enclosure doesn't have any openings in it, and there are no replacement parts that do have holes for the cables. Am I supposed to drill the openings into the enclosure or am I missing something obvious?

womai (author)BlackHawk12002009-06-13

Sorry for the late answer, out of some reason I never got any notification about your post. Yes, you need to drill the holes yourself, just like I did. It's actually quite simple, because the enclosure plastic is a very soft material, and all you need is round holes (btw, that's one of the reasons I did not use a DB-9 connector for the serial link). Any plain vanilla electric drill is fine for that and will go through like butter. For the bigger holes (BNC connectors) I'd recommend pre-drilling with a smaller drill (approx. 1/3 to 1/2 of final diameter) to assure the big drill stays centered. I'd also highly recommend clamping the plastic parts down when drilling (i.e. DON'T hold them with your hand - this can cause serious injury should the big drill become stuck and start whirling the piece around!).

baitzzz (author)2009-04-15

Could CY7C128A-45PC be replaced with MK48Z02?

womai (author)baitzzz2009-04-15

The part you propose seems to be a 0.6 inch wide 24-pin DIP (the data sheet says "wide DIP"), while the CY7C128A-45PC is a 0.3 inch (narrow) 24-pin DIP. So the other part won't fit without some sort of adapter board. You MAY be able to do it by taking a 0.6 inch wire-wrap socket (i.e. one with long leads) and bending the socket leads together so it fits into the circuit board's 0.3 inch wide landing pattern. Otherwise, judging from a quick comparison of the data sheet, they should be pin compatible. The LCS-1M runs pretty slow so memory access time should not be an issue. One other thing, your proposed part is battery buffered - I'm afraid this will would be a quite expensive alternative. You should be able to find other 0.6 inch wide SRAMS that are not battery buffered and thus cheaper.

kyle.marsh (author)2009-04-14

I take my hat off to you. If I'd seen this two weeks ago, I may have decided to build this scope for a projects competition my school's electronics club is doing; as it stands I'm building a theremin, but I'll keep this on the radar and will probably end up building it after I graduate. I'll keep you posted if I do.

jasonangel29 (author)2009-03-13

does any one have a complete parts list for LCS-1M - digital Oscilloscope i just started college for electronic engineering and i am really interested in building this scope to help me with my studies