Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 8 Replies) How can i read data from my ARDUINO without using serial port (Read 28781 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How can i read data from my ARDUINO without using serial port
Reply #20 - Dec 2nd, 2012 at 11:24pm
Print Post  
By the way you should not define SoftwareSerial as Serial1 because some arduino boards have numerous serial ports and Serial1 will certainly fail. 
If you switch board in the future you will have to rewrite your code. A good rule... Don't prefix softwareSerial variables with "Serial". "mySerial1" would work, or something that you like. 
« Last Edit: Dec 2nd, 2012 at 11:25pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How can i read data from my ARDUINO without using serial port
Reply #21 - Dec 2nd, 2012 at 11:32pm
Print Post  
Modified my example. It was a bit confusing with the HIGH/LOW indicator and thanks to Ray for the help.
« Last Edit: Dec 2nd, 2012 at 11:35pm by Tim@Visual Micro »  
Back to top
IP Logged
 
kireita
Junior Member
**
Offline


Posts: 12
Location: Dominican Republic
Joined: Nov 28th, 2012
Re: How can i read data from my ARDUINO without using serial port
Reply #22 - Dec 2nd, 2012 at 11:34pm
Print Post  
Tim@Visual Micro wrote on Dec 2nd, 2012 at 11:24pm:
By the way you should not define SoftwareSerial as Serial1 because some arduino boards have numerous serial ports and Serial1 will certainly fail. 
If you switch board in the future you will have to rewrite your code. A good rule... Don't prefix softwareSerial variables with "Serial". "mySerial1" would work, or something that you like. 


That makes perfect sense.

ill give it another name and see how it works out. Smiley once again thank you for those codes  Cheesy. you are like a programming guru hehehe XD.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint