Author Topic: about usb programme  (Read 8594 times)

suman

  • Member
  • ***
  • Posts: 5
about usb programme
« 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.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: about usb programme
« Reply #1 on: August 19, 2012, 06: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/



 

suman

  • Member
  • ***
  • Posts: 5
Re: about usb programme
« Reply #2 on: August 21, 2012, 01: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


Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: about usb programme
« Reply #3 on: August 21, 2012, 02: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.