Sure see post #43 #45 and #47
How should I connect the components, Could you explain the figure from post #47 ?
You've talked a lot about a serial connection. Is this as well as the analog signal that your supervisor told you about?
Perhaps I've misunderstood the serial interface. Your earlier document indicated that the sensor had a TTL serial interface at 9600 baud. The document detailing the 15-pin connector says that pins 9 & 10 of the 15-pin connector are RS232 signals that go direct to a standard 9-pin D-connector as found on lots of older PCs.
You don't need them.
According to your connector pin assigment document the signals are RS232 levels so you just need an RS232 to TTL converter to connect to the Mega.
There is some changes in the pin configuration. Actually this configuration is of a RS232 pyrometer but the electronic guy used this connection to my Optris sensor.
Here is 15 pin connector of Optris Sensor:
Power (White) -> External connection
Out - Tx (Yellow) -> Pin 10
IN/OUT - Rx (Green) -> Pin 9
GND (Brown) -> Pin 4
Shield (Black) -> Pin 15
Also according to Optris manual:
It has inverted RS232 or TTL outpt
What if, I want to read analog voltage output from the sensor which is graded as 4-20mA in the manual.
Now we are going in circles.
Are you absolutely sure this recent information is correct?
Yes, I verified it just now with my supervisor. Sorry for the confusions.
Currently, I have the following components for my project:
- Optris cs micro LT sensor
- TTL to RS232 converter
- RS232 to RS485 converter
- MAX485 module
- Resistors
- Mega 2560
Let me know if you need the manual for the above components!!
Well you will have to build the circuits I show in post #47.
You can solder the parts together on a protoboard or use a solderless breadboard.
Do you know how to to use either?
I can use a solderless breadboard, but in post #47, I didnt get th second connection for 2.5V
You said you have the CSMA model and according to post #40 and #44, the pyro Txd output is 2.5V, so that needs to be raised to 5V for the Mega.
I will connect everything to breadboard and upload here.
There are few changes from the diagram:
- R1 = 220 ohms
- R2 = 330 ohms
- Transistor = 2N2222
Here is the connection:
Do you have any suggestion for the code?