CH341 USB TO I2C/SPI/EPP
USB to I2C OLED
USB to LCD
USB Input Output
SD CARD
SD FAT32 Player PIC12F1822
W25Q64 Flash Recorder
Picture Frame PIC16F690
Color OLED Picture Frame
SD FAT32 TFT Display
Doorbell with SD/EEPROM
SD Talking Clock
SD Sound Recorder
SD FAT32 wav Player
SD Arduino Recorder
Arduino Picture Frame
FREQUENCY COUNTER
Chrome Browser Counter
Arduino LED MAX7219 Counter
LCD Accurate Counter
OLED Accurate Counter
MilliHertz Counter
PIC Counter For Android
MAX7219 LED Counter
WiFi Frequency Counter
Frequency Generator
OLED Counter PIC12F629
Talking Frequency Counter
TFT Counter PIC16F628A
SSD1306 Counter PIC16F628A
SSD1331 Counter PIC16F628A
Arduino Counter for PC
OLED Arduino Counter
OLED Frequency Counter
TFT 10MHz Counter
PC Counter
LED Counter
Scope Screen Counter
LCD 16 x 2 Counter
LCD Arduino Counter
6MHz Android Counter
NIXIE Android Counter
Bluetooth Counters
USB Counter
OBD2
OBD2 Engine Rev Counter
OBD2 Diagnostic app
OSCILLOSCOPE
Logic Analyzer
PIC12F1822 Scope for PC
Arduino Oscilloscope for PC
Arduino OLED Oscilloscope
Android Oscilloscope
TFT Oscilloscope
USB Oscilloscope
THERMOMETER
Thermocouple 1023 Deg
Thermometer For Browser
OLED Thermometer PIC12F629
OLED Room Thermostat
TFT Clock and Thermometer
LED Thermometer
USB Thermometer
Serial Thermometer
Serial Thermostat
USB DS18B20 Sensor
TIMER / CLOCK
Real Time Clock DS3231
LED TM1637 Timer
OLED Timer Thermometer
TFT Timer Thermometer
LED Timer
LCD Timer
Clock Thermometer
Talking Clock PIC16F628A
Android Talking Clock
WiFi
WiFi, Ethernet
WiFi Thermometer
WiFi ESP8266
USB
IO for Chrome Browser
USB 16x2 LCD
USB TFT display BMP
USB Meter
USB Input-Output
USB Input-Output Android
DATA ACQUISITION
Analogue to USB (CH341)
MCP3201 on Serial Port
PC Analog Input (USB-UART)
SERIAL PORT
Serial TFT Text
Serial Inputs Outputs
Serial Port LCD
Analogue Signal to Serial
OTHERS
HC-SR04 Sensor
OLED Amp Meter
PC digital I/O (no coding)
Analogue Signal to LPT
LCD Display on LPT
Water Softener
3.7V to 5V
Solar Charger
PIC Music
Code Lock
SMALL PROJECTS  
  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 UART 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.

 

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

iconFlag Countermoty22.co.uk  2008-2023