CH341 USB TO I2C/SPI/EPP
Waveform Generator
AHT21, MAX6675 Thermometer
USB to I2C OLED
USB to LCD
USB Input Output
SD CARD
CH376 USB Picture Frame
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
AD9833 Waveform Generator
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 RPM meter PIC16F876A
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
Cuckoo 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  

SELF POWERED ADC INTERFACE TO COM PORT

Project for connecting analogue signal to serial port. Included Visual Basic VB6 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, the DTR is used for clocking the ADC and the CTS is used for data input.
You can read more about serial interface in http://www.beyondlogic.org/spp/serial.htm
Datasheet for the MCP3201 can be downloaded from here. LTC1285, ADS7822 are direct replacement to MCP3201.
You are free to use the circuit diagram and VB code with no limitations.

 

Circuit Description
See also Technical Tips

MCP3201
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.

line

ANALOGUE SIGNAL TO PC WITHOUT CODING

roject for connecting analogue signal to PC without a need for microcontroller. Included Visual Basic VB6 software and app, VS2010 code and circuit diagram. The MCP3201 is a micro-power 12 bit analogue to digital converter. The conversion selector reads eigther 10 or 12 bits. With less resolution the reading is more stable. The 5V supply to the circuit is from the USB.
The communication to the PC is bit banging the Hardware Controls, the DTR is used for clocking the ADC, RTS as CS and the CTS is used for data input.
Datasheet for the MCP3201 can be downloaded from here. LTC1285, ADS7822 are direct replacement to MCP3201.
The USB to Serial I used is: https://www.ebay.co.uk/itm/CP2102-USB-2-0-to-TTL-UART-Module-6Pin-Serial-Converter-STC-Replace-FT232-Module/381374541932?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649
There are other similar modules, make sure they have all the connections needed. RTS and CTS need to be soldered, they come with only holes in the module's PCB.

usb3201  usb3201  

line

INPUTS OUTPUTS TO PC WITHOUT CODING

Using USB to serial module drive 2 outputs that can be LEDs or relays. Also read 2 digital inputs from a switch or a DC source. The app uses the Hardware Controls of the USB to Serial module; inputs CTS, DSR and outputs DTR, RTS. Outputs and inputs are 3.3V , to sense voltage over 3.3V it's needed to add a series resistor to the module input.
The app is in VS2010. In the app enter the Com Port that the USB to Serial modules opens. 2 LED images show the state of the 2 inputs and 2 tickboxes operate the 2 outputs.
The USB to Serial I used is: https://www.ebay.co.uk/itm/CP2102-USB-2-0-to-TTL-UART-Module-6Pin-Serial-Converter-STC-Replace-FT232-Module/381374541932?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649
There are other similar modules, make sure they have all the connections needed. RTS and CTS need to be soldered, they come with only holes in the module's PCB.

You are free to use the circuit diagram and the VB software with no limitations.

 



Name:

Comments and questions

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



07.03.2013 - 08:48
Name: paolo
Comment: Oh.. something useful!!

10.12.2011 - 19:33
Name: Moty
Comment: Hi Lutz, The weakness of this project is in the VB6, there is no time base of less than 10ms in VB. For the clock of about 2 KHz I have the 'Private Sub clock()' that counts to 4000. On my new computer the count needs to be 20000 because the computer is faster (4000 counts gives a clock of 10 KHz which is too fast for the ADC). I assume that your computer is as fast as my new PC. In case that you can't correct the VB source code then you can use the modified 'ser3201fast.exe' attached. If you can change the VB code then try doubling the count until the reading is stable. I hope that this is a useful remedy. I'm afraid that this project will never meet the standard German renowned reliability.

10.12.2011 - 16:30
Name: Lutz
Comment: Hello, I build a MCP3201 AGC, in general it works. But fom time to time reading on PC will change to exactly half of the voltage. This means wehn connecting a good charged Li-Batt it will schow 4,16V but then reading will drop to 2,08V from time to time, but then it quickly return to 4,16 V. This will happen al the time but in a unregular timespace. Any hints what could be the reason for this behavior would be welcome !!

iconFlag Countermoty22.co.uk  2008-2024