MOBILE HOME 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.



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