hi friends,
I am back again with another question.I am trying to make DC motor position control using arduino and vee pro software.The position of motor will be sensed by 360degree rotating potentiometer.I want to take that voltage value back to my computer through arduino.Vee pro software can directly read the values from serial port.Now it's time to send back proportional error to arduino using this software only and mu arduino will change it to voltage.I have tried this using simple serial.print and serial.read it failed.
Now coming to the point.Can I use NewSoftSerial library in this perticular?
i have made this simple code i am not getting any values in arduino serial comport.
the code is
#include <NewSoftSerial.h>
NewSoftSerial Pos(2,3);
void setup()
{
Serial.begin(9600);
Pos.begin(9600);
}
void loop()
{
if(Pos.available()>0)
{
byte incomingByte=Pos.read();
Serial.print(incomingByte,DEC);
Serial.print(" ,");
}
}
Any kind of help will be appreciated.
thanx.