Article
USB Analogue Converter
With two analogue inputs and four digital outputs
This circuit is based on the PIC16C765, a recent addition to the large Microchip PIC family. It can be used to measure two analogue voltages (0–5 V) via two analogue inputs and send the results to a PC via a USB connection. There are also four digital outputs whose levels can be set using the PC.Due to its ease of use, applications for the USB interface continue to proliferate. This time we present a USB analogue converter that has two A/D inputs that can be used to sample analogue voltages (ranging from 0 to 5 V), as well as four digital outputs to which data can be written.This circuit is based on the Microchip PIC16C765 microcontroller, whose pinout is shown in Figure 1.
Materials
Gerber file
CAM/CAD data for the PCB referred to in this article is available as a Gerber file. Elektor GREEN and GOLD members can exclusively download these files for free as part of their membership. Gerber files allow a PCB to be produced on an appropriate device available locally, or through an online PCB manufacturing service.
Elektor recommends the Elektor PCB Service service from its business partner Eurocircuits or AISLER as the best services for its own prototypes and volume production.
The use of our Gerber files is provided under a modified Creative Commons license. Creative Commons offers authors, scientists, educators and other creatives the freedom to handle their copyright in a more free way without losing their ownership.
PCB
Component list
Resistors:
R1 = 1k?5
R2 = 10k?
Capacitors:
C1,C2 = 22pF
C3,C4 = 100nF
C5 = 220nF
Semiconductors:
IC1 = PIC16C765, programmed, order code 020374-41
Miscellaneous:
X1 = 6MHz quartz crystal
K1 = 4-way PCB terminal block
K2,K3 = 2-way PCB terminal block
K4 = USB socket, PCB mount, type B
PCB, order code 020374-1
Disk, contains hex-code and Windowssoftware, order code 020374-11 or Free Download
R1 = 1k?5
R2 = 10k?
Capacitors:
C1,C2 = 22pF
C3,C4 = 100nF
C5 = 220nF
Semiconductors:
IC1 = PIC16C765, programmed, order code 020374-41
Miscellaneous:
X1 = 6MHz quartz crystal
K1 = 4-way PCB terminal block
K2,K3 = 2-way PCB terminal block
K4 = USB socket, PCB mount, type B
PCB, order code 020374-1
Disk, contains hex-code and Windowssoftware, order code 020374-11 or Free Download
Discussion (0 comments)