I would like to read data from the Scalextric Sport RMS (Lapcounter hardware to connect a slotrace track to a computer) which uses an RS232 port and I'm looking for a sketch which reads from the RS232 port and writes to serial monitor.
A simple schematic would help, you would have seen your problem immediately. Also what baud are you operating and what are the settings, N,8,1 or what are they, this all has an effect. You also have your TX and RX crossed, Tx goes to Rx and Rx goes to Tx. Tx=transmit, Rx=receive. Transmitting to a transmitter only uses electrons and can only accomplish heating something up.
I ignored the part about the motor, because I don't want to control a motor. I just look at the MAX3232 connected to the Arduino and in the schema I found RX was connected to RXD and TX to TXD. I don't know if the schematic is correct.
What I am looking for is a simple example (sketch and schematic) on how to read data from a device using RS232 with a MAX3232 connected to my Arduino.
I don't know what information the Scalextric RMS is sending, all I know is that it will have to do with laps from the slotrace track. I want to find out what data it is sending over the RS232 port. When I connect the RMS to an old computer with a RS232 port it uses 9600 Baud, but it works on other rates as well.
Regards Gerrit