How to Add RS232

How can i use RS232 ? I want to send command to a printer via RS232. 

Ganesh Datt Joshi
Ganesh Datt Joshi
7
| 2 1 2
Asked on 7/15/15, 9:06 AM
0
vote
3372 Views

Is there Any RS232 port Available??? 

there is a rs485 port in industruino . can we add 9 Pin RS232 Port

Ganesh Datt Joshi
Ganesh Datt Joshi
7
| 2 1 2
Answered on 7/18/15, 4:40 AM
0
vote

Use the Serial1 port.

-----------------------------------------------------------------------

int waarde = 10;

void setup() {
  Serial1.begin(9600);  //open the TX/RX port
  while (!Serial1) ;     //Specific Leonardo
}

void loop() {
  Serial1.println("test");
  Serial1.print("Value = ");
  Serial1.println(waarde);
}

-----------------------------------------------

 

Jan Faber
Jan Faber
27
| 0 0 1
Answered on 7/17/15, 1:52 PM
0
vote

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

9 follower(s)

Stats

Asked: 7/15/15, 9:06 AM
Seen: 3372 times
Last updated: 12/19/15, 10:23 AM