PIC Projects
WiFi, Ethernet
Doorbell with SD / EEPROM
SD FAT16/32 for .bmp
LCD 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
TFT 10MHz
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

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

Infrared Decoder
PIC Music

Code Lock
Code Lock with LCD
HOME MOBILE Technical Tips

ANALOGUE INTERFACE TO SERIAL PORT

This project is for connecting analogue signal to serial port. Included a VB6 software, PIC assembly, C code and a circuit diagram. The PIC12F675 micro controller is programmed to convert the analogue input to 10 bit digital and transmit it in RS232 protocol to the serial port. The microcontroller is powered by the signals of the serial port, so no external power supply is needed.
You can read more about serial interface in http://www.beyondlogic.org/spp/serial.htm

Software includes PIC code and VB6 code (20KB). You are free to use the circuit diagram and the software with no limitations.


The VB6 application is a combined digital and analogue voltmeter.

Circuit Description
See also Technical Tips

Pin 4 at the serial port is turned to +12V by the software enabling RTS. It is regulated to 5V by 78L05. The 5V is also the reference voltage.
Pin 3 is at -12V and pin 7 at +12V constantly and they are used to drive RX input between -9V (input HIGH) and +8v (input LOW) . These levels are sufficient to drive the RS232 input.
Pin 4 at PIC12F675 is reset and pin 2 is output. The other pins are not in use but must be left open circuit.





Name:

Comments and questions

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



11.11.2018 - 15:08
Name: Jan
Comment: Thanks for info!!

29.09.2013 - 20:04
Name: alimogh
Comment: ANALOGUE INTERFACE TO SERIAL PORT with i/o

29.09.2013 - 07:25
Name: alimogh
Comment: ANALOGUE INTERFACE TO SERIAL PORT with i/o

29.09.2013 - 06:44
Name: alimogh
Comment: ANALOGUE INTERFACE TO SERIAL PORT with i/o

06.06.2011 - 08:14
Name: Adnivog Atokpas
Comment: This is really a nice tutorial.

02.11.2010 - 14:47
Name: John
Comment: Nice project, thanks. There are many PIC12Fxxx projects on www.artic-instruments.webs.com regards
23.04.2010 - 06:23
Name: khaleel
Comment: good