Pages: [1]   Go Down
Author Topic: *Coding question: Sensors --> Arduino -> VB6  (Read 958 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys, new to the forum. I'm doing a project in which I have 3 sensors: Carbon monoxide, methane and propane. I want to interface these sensors through the Arduino and use VB6 to retrieve the data and display the various concentrations using a created bar-graph program.

My problem is the coding for the Arduino. I'm familiar with vb6, but unsure as to how I can transfer this data from the arduino to vb6. Also aware I need to add a comm. control to my VB form, but setting the comm. control properties i'm unsure..

If anyone could give me a rough code example for both the arduino and vb6 to retrieve this data serially that would be much appreciated. Thank you!
« Last Edit: February 10, 2010, 10:42:39 pm by Cool_Dave98 » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Carbon monoxide sensor: http://www.parallax.com/Store/Sensors/AllSensors/tabid/760/CategoryID/46/List/0/SortField/0/Level/a/ProductID/556/Default.aspx

Propane sensor: http://www.parallax.com/Store/Sensors/AllSensors/tabid/760/CategoryID/46/List/0/SortField/0/catpageindex/2/Level/a/ProductID/558/Default.aspx

Methane sensor: http://www.parallax.com/Store/Sensors/AllSensors/tabid/760/CategoryID/46/List/0/SortField/0/Level/a/ProductID/557/Default.aspx
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 610
Posts: 49077
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are two parts to your question. First is how to get the sensor data into the Arduino. Second is how to get the sensor data out of the Arduino.

The second part is easy. Use Serial.print or Serial.write to send data to the serial port, where the VB application can read it.

The first part shouldn't be too hard, but I can't tell you anything about how to do it.
Logged

Pages: [1]   Go Up
Jump to: