PORTS Forum
Ports and Interfaces => USB => Topic started by: suman on August 19, 2012, 02:32:40 pm
-
Respected sir,
I am a student of MCA department. I read in Bengal Institute of Technology(Kolkata, India). I want to connect a temperature sensor into the USB port & want to read the temperature & show in a text box using in VB6 or VB.NET for my project work.
Sir, please tell me how i will access the usb port & how i read the port? If it is possible to mscomm control then please tell how ? I add the MSComm control in vb.
-
To use MSComm or other serial-port programming tools, you'll need:
A USB/serial adapter or chip (FT232 or similar).
A temperature sensor such as a DS18B20.
A microcontroller that connects to the temperature sensor and also has an asynchronous serial output that connects to the USB/serial circuits.
Programming for the microcontroller to read the temperature sensor and send the data to the PC.
Here is one project:
http://www.camelspit.org/2008/02/29/envstick-usb-temperature-sensor/
A web search on
temperature sensor usb project
will bring up other examples such as:
http://www.poempelfox.de/ds1820tousb/
-
sir,
Thank you for your reply. But you tell me to add a micro controller that connected to the temperature sensor. I don't know what micro controller i use? And if i only check a pen drive is connected or not then how i will make in vb6.0 by using mscomm control? Please you also tell from where i find or learn this micro controller programming to read data and send to pc via usb port?
yours faithfully
Suman Dutta
-
To access a pen drive, you use the file system, not MSComm.
You can use just about any microcontroller. See my links here under Development Boards and Data Acquisition:
http://www.lvr.com/usb_device_hardware.htm
If you don't want to program a microcontroller, you can buy a programmed one. Here is one example:
http://www.robotshop.com/ca/home/new-arrivals/phidgets-usb-temperature-sensor.html
Searching on
usb temperature sensor "visual basic"
will bring up more possibilities.