Hi guys,
I'm new to micro-controllers, I need help figuring out how to use pins on Arduino individually, I'm trying to make a simple acquisition system using two or three temperature sensors and then plot their values on a chart, and at the same time have each of these pins displaying the value on a text box, like this:
pin0 -> textBox1.Text
pin1 -> textBox2.Text
pin3 -> textBox3.Text
I'm using Visual Studio C++ 2015, So I already created that program, attached a snap for my in-progress work
And I used this basic sketch on the Arduino:
int _ABVAR_1_sensorValue = 0 ;
int _ABVAR_2_sensorValue2 = 0 ;
void setup()
{
Serial.begin(9600);
}
// 1(s)= 1000(ms) -> 1000ms/50ms = 20 readings every second
void loop()
{
_ABVAR_1_sensorValue = analogRead(0) ;
Serial.print(_ABVAR_1_sensorValue);
Serial.println();
delay( 100 );
_ABVAR_2_sensorValue2 = analogRead(1) ;
Serial.print(_ABVAR_2_sensorValue2);
Serial.println();
delay( 100 );
}
So is this done by linking an Arduino DLL to my project (VC++ Solution)??
Or is their a way to use (define) the physical addresses of the pins to have access for them from Visual Studio??
What if I get 4 channel relay module?? Am I gonna be able to have access to these channels (pins) separately??
But is it right to hook up a sensor to a relay?? is the relay gonna return the temp. value??
What about Firmata or Windows Remote Arduino, but I have Windows 7...
Is Firmata usable for pin interfacing??
I thought about using an array that displays the values on one row separated by tab, but anyway I need to do it right, professionally, so I can have a Series on the chart for each pin.
I know I'm asking too much,, Sorry,, So,,,Any ideas guys?
Thanx in advance