PIC Projects
WiFi - ESP8266
Doorbell with SD / EEPROM
SD FAT16/32 for .bmp
TFT Egg Timer
LCD TFT Oscilloscope
SD Talking Clock
SD Sound Recorder,
    FAT32 wav Player
LED Thermometer
LED Egg Timer
LCD Egg Timer

Frequency Counters
100KHz For PC
1MHz For PC
8 Digits LED 50 MHz
Scope Screen Display
LCD Module 10MHz
6MHz for Android
USB PIC18F2550
USB TFT display BMP
USB DS18B20 Sensor
USB Thermometer
USB Counter
USB Meter
USB Oscilloscope
USB Input-Output
USB 16x2 LCD

COM & LPT Ports
MCP3201 on LPT
Serial TFT Text
Serial Inputs Outputs
Serial Port LCD
Analogue Signal to LPT
MCP3201 on Serial Port
Serial Thermometer
Analogue Signal to Serial
LCD Display on LPT
Serial Thermostat

Water Softener
HP Stream 7 docking
3.7V to 5V
Solar Charger

Infrared Decoder
PIC Music

Code Lock
Code Lock with LCD


Project for connecting analogue signal to serial port. Included Visual Basic 6 software and a circuit diagram. The MCP3201 is a micro-power 12 bit analogue to digital converter. The conversion selector reads all the 12 bits, the 10 or 8 MSB and ignores the LSB. With less resolution the reading is more stable. The supply to the circuit is via the 12V at pin 7 that are switched to logic high by the software.
The communication to the PC is bit banging the Hardware Controls (not RS232 protocol), the DTR is used for clocking the ADC and the CTS is used for data input.

You can read more about serial interface in
Datasheet for the MCP3201 can be downloaded from here
You are free to use the circuit diagram and VB6 code with no limitations.

The VB6 application is a combined digital and analogue voltmeter.

Circuit Description
See also Technical Tips

Input at pin 2 of the ADC is 0 to 5 volts full range positive voltage only. The chip over voltage protection is 5V max.
Pin 8 is the 5 V supply to the IC.
Pin 1 is reference voltage for the ADC , it's connected to the 5V and can be connected to an external reference voltage. The reference voltage determents the input voltage span.
Pin 6 is the serial data out of the ADC, BC237 and BC327 are a level shift from 0-5V to -8 to +8V which is the voltage required for the serial connector.
Pin 7 is the clock for reading the data and pin 5 is the Chip Select. The 22K resistors are for lowering the 12V out of the serial port to 5V level of the ADC.


Comments and questions

Copy the number from the picture It stops net-robots from adding comments.

Be the first to add a comment.