Log in

View Full Version here: : Adapting a TTL-232R-3v3 cable for an EQ8


pmrid
03-07-2013, 11:58 AM
Could one you electronic wunderkind please help me figure out which cable goes where - I've bought one of the 3.3 VDC TTL cables to use with my EQ8 with EQMOD. Bu I'm having trouble figuring out the cableing for the RJ45 (8P8C) plug. The data sheet lists the pinout for their 6-pin connector as:
1. GND - black
2. CTS# brown
3. VCC red
4. TXD orange
5 RXD yellow
6 RTS# green

The EQ8 manual gives the pinout for the hand controller (an 8-pin plug not 6) as:
1 and 4 GND
2 and 3 (no connection)
5 Tx
6 Rx
7 and 8 Vpp+

i just had a quick look at a Shoestring Astronomy USB2EQ5 cable and note that it uses 6 wires only with nothing in slots 7 and 8 whereas the Synscan hand controlled has wires in all 8 slots. Mystery deepens?


I'm a bit stumped.

Peter

mswhin63
03-07-2013, 03:26 PM
Hi Peter,

You only need GND, VCC, TXD and RXD.

GND -> GND
VCC -> VPP
TXD -> RXD
RXD -> TXD

The Rx and Tx are usually the one that goes wrong, so if it doesn't communicate (recognised) the first time then swap the Rxd Txd.

CTS (Clear to Send) and RTS(Ready to Send) are not used in EQMOD.

pmrid
03-07-2013, 05:17 PM
Thanks Malcolm.
I'm wondering now whether I actually need the VCC/VPP at all - the EQMOD documentation seems to suggest that only GND, RX and TX are needed.

http://eq-mod.sourceforge.net/tutindex.html - scroll down a bit to about mid-page where they talk about the FTDI cable.

Any thoughts?

Peter

mswhin63
03-07-2013, 09:21 PM
The FTDI TTL module may require power from the source (being the EQ8) to provide the correct logic level. If you have a multimeter measure the VCC pin and VPP pin while powered to see if they both have a supply voltage usually 3.3V in your case. One usually does not read the voltage and is the reason for connecting both together.

But units must be referenced with the correct voltage although in most cases that is done by the GND connection.

Tandum
03-07-2013, 10:35 PM
I foresee a small cloud of smoke.

Is the thing you bought USB? if so it should be powered from the PC so you will only need RX, TX and Gnd going to the mount. That's 12v coming out of the mount socket, I doubt your device would like that.

mswhin63
03-07-2013, 11:31 PM
I just checked my set-up and I use the VPP to power my Bluetooth module, The other connection are only RX TX and GND for the data.

As mentioned earlier measure voltages and if there is a voltage present on both VCC and VPP then connect only the GND, TXD and RXD

chrisshillito
04-07-2013, 05:40 AM
The instructions on the EQMOD Website are quite clear and tried and tested - they are all the advice you need.

There is 12V coming out of the mount and on some EQDIRECT types (Bluetooth, RS232) this is used to provide power. However, the ftdi USB cable takes its power from directly form the USB (5V) line so the only connections you have to make are GND, Rx, and Tx.

If you are fitting your own RJ45 plug then just omit the 12V line completely. If your are splicing a cable to your ftdi cable and the 12V line is present on the RJ45 then you should carefully isolate it.

Please be warned that if you manage to short the 12V line to either the Tx or Rx lines you will permanently damage both microcontrollers (one for each axis).

Chris.

mswhin63
04-07-2013, 10:58 AM
EQMOD does not require minimum 4V, if that information is on the website then it is incorrect. The mount requires the correct logic conversion whether it is 1.8, 3.3 or 5V. (1.8V is experimental ATM)

EQ5 and 6 mounts require a minimum 4 V to make it work not the other way around.

I would check the specs properly on the EQ8 if it is 3.3V then many people have it connected wrong. It may work OK for a period of time but may fail very early voiding any warranty.

3.3V is also a high speed logic level so running at 5V will limit the speed of communications as well.

pmrid
04-07-2013, 12:06 PM
The schematic for the hand controller that appears in the EQ8 users manual shows both the TX and Rx lines as 3.3V so I assume that distinguishes it from the EQ5 and 6. I read somewhere that the interface is 5 volt-tolerant but is designed for 3.3.

Peter

mswhin63
04-07-2013, 01:12 PM
Hi Peter, If the manual says that it is 5V tolerant then it is fine but if you already have 3.3V level FTDI then that will be better. The primary reason for lower voltage level is that it take less time to reach 3.3V then it takes to reach 5V, hence 3.3V can work faster. The technology to read logic 3.3V has only been achievable recently (10 years)

So it is better to run on the complaint voltage if only just to make sure.

EQ5 and 6 were made before 3.3V logic became mainstream so it wouldn't have been the best to change half way through production. This is good engineering practice. Anyway I hope managed to get as much out of this thread but it appears you only need to connect GND, TXD and RXD only.

pmrid
04-07-2013, 04:21 PM
Yep, thanks Chris, Malcolm, Robin. Appreciated.
Peter

chrisshillito
04-07-2013, 06:28 PM
The 4V limit comes in when considering the 5V interface of the EQ6 Pro and HEQ5. The USARTs of the mount controllers for these mount types have schmitt trigger Rx inputs and these require a level of 0.8xVcc to trigger. 0.8x5 = 4V and this is why those using 3.3V interface cables have found that they do not work with these mounts even though the normal switching threshold of 5V ttl might lead some folks to believe they would.


Unlike the earlier mounts the EQ8 and AZ-EQ6GT have been designed with 3.3V signalling interface. However, this interface has been designed to be 5V tolerant in order to maintain compatibility with the synscan handcontrollers. This information comes from synta technical staff and was obtained by Richardo Contreras, the skywatcher dealer for Argentina and Chille who approached me when it became clear there was some confusion over the use of EQDIRs and EQ8s. This info was initially posted to the EQMOD yahoo group and re-posted in the EQ8 topic on this forum (by Robin).

So, there is no inherent danger in using an EQDIR using 5V logic levels with an EQ8 - that is what your handcontroller is doing anyway. 5V EQDIRECTS have been widely used with the AZ-EQ6GT mounts for quite some time now with no problems.

When it comes to warranties you really need to check with your dealer as you may find that some would argue that that plugging anything into it, other than the synscan, invalidates the warranty. If this concerns you, or you have any doubt you could always use PC-Direct mode during the warranty period.


The mount interface only runs at a fixed low speed (9600 bps), there is absolutely no limit imposed on actual mount communication speed when using 5v signalling compared to 3.3V

Chris.

mswhin63
04-07-2013, 10:03 PM
Yeah I sort of worked that out after going to the auctions today, just got back to update. Speed is not going to make a real difference in this case. Skywatcher must have some practical engineers to even consider capability issues. Most I deal with try to phase out 5V logic now. Thumbsup for Skywatcher :thumbsup:

Thanks Chris for making clear everything.

coldknights
04-07-2013, 10:31 PM
So what do we now name this thread now( Adapting a TTL-232R-5v cable for a EQ8 ) ?

chrisshillito
05-07-2013, 05:58 AM
I can't see anything wrong with tread title. Those with an EQ8 or an AZ-EQ6Pro are in the lucky position of being able to use either a TTL-232R (5V) or TTL-232R (3.3V) cable for their EQDirect interfaces and this thread highlights that fact.

Chris.

coldknights
05-07-2013, 08:29 AM
Good to see people can use both cables as you have described .

RobF
05-07-2013, 09:58 AM
Would like me to help wire it up? :D


This is a good thread for USB/TTL to RJ45 concoctions actually: USB EQDir for under £4 (http://stargazerslounge.com/topic/130721-usb-eqdir-for-under-4/)

coldknights
05-07-2013, 10:50 AM
Good link Rob thanks for sharing and it looks like a lot more people out this weekend with soldering irons making this cable.
:thanx:

RobF
05-07-2013, 10:59 AM
Just make sure you carefully check each wire with a multimeter at the end before wiring it up Cathy and you should be fine.

pmrid
06-07-2013, 10:53 AM
I have done a rewire of one of these FTDI 3v3 cables and thought I might share what I have done. I have isolated the black, orange and yellow wires and cut the remainder short. The 3 wires I have then inserted in slots 4,5 and 6 of the RJ45 plug. These are supposed to be the Ground, TX and RX respectively - according to the FTDI spec sheet.

To be clear about this, I count the slots from left to right looking down on the RJ45 plug with the Tab underneath and with the plug facing forwards (i.e. the wires enter from the side closest to the viewer).

I have used installed the right drivers and connected the USB to my 64 Bit laptop. It recognized the device and established a COM port as expected.

I then used a multimeter to measure the voltages across the 3 wires using slot 4 (Ground) for the negative and measuring the other 2 I got readings of 2.96 and 3.36 volts respectively.

I don't know whey they are different. Perhaps someone else does.

Peter

coldknights
06-07-2013, 11:41 AM
Good one Peter you have done well and a good description as well.:thumbsup:

pmrid
06-07-2013, 04:36 PM
Thanks Cathy.
I should mention that I haven't tested it yet so I can't give any kind of assurances about it.
Peter

mswhin63
06-07-2013, 09:38 PM
The 2 voltages are based on data trying to communicate through the wire which are a series of on/off pulses. The meter will average out the pulses hence give you a lower voltage at 2.96 possibly 88% pulse are high the rest are low. The other one is possibly unable to communicate and could be continually high until such time it starts communicating properly.

To really test it completely would require an oscilloscope of logic analyser. This is out of reach for most people so it will require a practical test to ensure it is working correctly.

coldknights
18-07-2013, 10:49 PM
How did it go Peter with the cable did it work ok I got a few of those cables and opened them up and under the microscope had a look at them I found that their soldering had splashes of solder here and there and a few loose bits as well so while you got them open putting a plug on them have a peek and check in case as you would not like them to move around and make contact between the wires.a little bit of circuit board cleaner and a esd safe cleaning brush under a microscope to brush any unwanted bits of solder away.

pmrid
19-07-2013, 06:53 AM
Hi Cathy. I didn't try to open up the circuitry - all I did was snip off the connector supplied and replace it with an RJ45. I haven't look at the USB end of the adapter - and from memory, the one I bought was a sealed unit. Perhaps you have a different device/model.
I haven't tried my modified cable yet - I am not confident that I have the cabling right - the orientation of the pins on the RJ45 and matching that with the hand controller schematic in the EQ8 User Manual is the issue. I have used pins 4,5 and 6 on the RJ45 (from behind, tag down and reading left to right). If I have read the hand controller upside-down (which I fear I may), then I will have effectively wired into pins 3,4 and 5 instead. So I plan on taking it and my soldering iron up to Astrofest where I hope to find someone with more electronics skills than I.
Peter

peter_4059
19-07-2013, 08:35 AM
Peter,

I'm pretty sure the HEQ5/AZEQ6-GT diagram on the EQMOD website is all you need - the pinout described in your EQ8 manual seems to agree with this.

This diagram shows which pins on the RJ45 connector are for GND (1&4), RX (5) and TX (6). If you sit the RJ45 with the locking tab down and the connections to the mount facing right pin 1 is the top pin.

It also shows an image looking at the front of the plug with the locking tab at the top to show pin 1 is on the left. You will connect the wires into the back of the plug.


The FTDI wiring you posted is:
1. GND - black
2. CTS# brown
3. VCC red
4. TXD orange
5 RXD yellow
6 RTS# green

So I believe you need to connect the black wire to pins 1 and 4, the orange wire to pin 6 and the yellow wire to pin 5.

Peter

coldknights
19-07-2013, 12:51 PM
Hi Peter I looked at the EQMod web page and it is correct below is the extract to the wiring you need to do.


You will need to splice an RJ45 cable to the flying lead of the TTL232R. Connect as follows:
Solder Pin 4 of the RJ45 to the Black wire (GND)
Solder Pin 5 of the RJ45 to the Yellow wire (RXD)
Solder Pin 6 of the RJ45 to the Orange wire (TXD).

The biggest confusion is where is pin 1 if you have the RJ45 in your hand with your thumb on the clip well pin 1 is on the right and pin 8 on the left.


If you want instead of splicing cables go to your local jaycar buy a crimper to do plugs they sell one for about $39 and comes with a 10 , 8 , 6 , 4 modules that you can change to suit the plug you are doing the one we bought was the model ( KY-1368 ) works well on RJ22 plugs as well ( celestron ) hand controllers.
If you are going to buy a crimper just make sure the 3 wires will sit together in 4,5,6 as the wires may be to thick and may be easier to just solder them and use heat shrink.
Hope this helps if you need more info let Us know.
Just a up date photo's attached the cable would not fit in the RJ45 Socket so We got another cable and rewired it all.
Just have to Wait to test in a couple of weeks when we get a AZEQ-6.

pmrid
20-07-2013, 11:36 AM
Thanks Cathy and Peter.
I'll have some time tomorrow to finish this little task. This will certainly make it a doddle.

Peter, might be worth mentioning that the 12 VDC line in that image you posted should not be used with these adapters - that's only for powering the hand controller.

Peter

coldknights
20-07-2013, 12:17 PM
Hi Peter that is correct you use the 12 v if you use the handcontroller or if you make a Bluetooth Adaptor as you can see the picture I have included the 12v is used.
We make the Bluetooth Adaptors that uses the 12v from the mounts power and the one Bluetooth module with a flick of the switch does the 4 following mounts
The EQ5 , AZ-EQ6 ,EQ8 And a flick of the switch the EQ6.

pmrid
22-07-2013, 04:46 PM
Well, may miracles never cease! That is exactly the way I had done it. So I don't have to undo or repeat the exercise - which is a good thing because I have run out of RJ45 plugs.

Thank you once again.

Peter