Serial To 2.5Mm

On
  1. Serial To 2.5mm Cable
  2. Serial To 2.5 Mm
$begingroup$

Serial To 2.5mm Cable

  1. This usb serial DC2.5MM jack cable is perfect to convert your DC3.5mm headphones or audio extension cable into a DC2.5mm pin,for use with phones,MP3 etc.
  2. APC Console Cable, 2.5mm to DB9 Female for APC UPS 940-0299A. NEW Genuine APC 940-0299A 6FT DB9 to 2.5mm Management cable AP9630/AP9631.

Feb 23, 2015 - This camera connects to computers and charges via a 2.5mm audio jack on the device and plugs into USB on the PC. Now this 'audio jack' has.

I am connecting a 2.5mm TRS jack to an Arduino Mega to monitor for data from a remote.

The remote conforms to LANC standard, viewable here:http://www.boehmel.de/lanc.htm

So in short, the Tip is LANC itself, the Ring is 5V power and the sleeve is GND. Descargar repair_v2.9.1.1.

What do I connect to what on the Arduino to monitor serial communications?

If the Tip is LANC in its entirety, what do I use as TX and RX? As far as I can tell, the same wire alternates between transmitting and receiving.

Thanks

Serial To 2.5Mm
Josh DredgeJosh Dredge
$endgroup$

1 Answer

$begingroup$

You will need a way to share an input and an output over the one LANC pin.

Here is an example that shows how this can be done.

In this diagram, 15 is the data going to your Arduino (RX), and 17 is the data your Arduino is sending (TX.) 18 is ground.

So, wire things up as shown and connect to your two serial pins on the Arduino.

Your Arduino will probably receive its own sent data. You'll have to program around that.

Given that LANC isn't truly RS232 compatible, you may end up programming your own library to do some bit banging to implement the protocol. In that case, ignoring your echoed output is easy - just don't read the RX line while doing TX. If you find you can use some standard RS232 library, then you'll have to find another way to ignore the echo.

To just receive, you only need to connect the LANC line to your serial in on the Arduino. License key download.

To use the normal RX/TX lines on your Arduino, try following the instructions from the Arduino Serial reference. Ground is fine, and use digital pin 0 for the RX.

While looking for info on the signal levels for LANC, I found this article. Looks like someone has already gone to the trouble of figuring all this out and documenting it.

JREJRE
Usb to 2.5mm adapter$endgroup$

Serial To 2.5 Mm

Not the answer you're looking for? Browse other questions tagged arduinoserialcommunication or ask your own question.