*Coding question: Sensors --> Arduino -> VB6

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!

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

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.