Ports
May 22, 2013, 11:34:47 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: [1]
  Print  
Author Topic: about usb programme  (Read 675 times)
suman
Member
*
Posts: 5


« on: August 19, 2012, 01: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.
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1629


WWW
« Reply #1 on: August 19, 2012, 05:57:14 pm »

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/



 
Logged
suman
Member
*
Posts: 5


« Reply #2 on: August 21, 2012, 12:04:39 pm »

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

Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1629


WWW
« Reply #3 on: August 21, 2012, 01:43:23 pm »

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.

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!