返回首页 设为首页 加入收藏
新闻中心 | CAV视角 | 改装案例 | DIY乐园 | 产品库 | 人才市场 | 企业名录
音响品牌 | 展会比赛 | 维修协会 | 商海观澜 | 名家访谈 | 供求信息 | 汽车导航
您现在的位置: 中国汽车影音网[CarCAV.com] >> DIY乐园 >> 文章正文 【字体:
Ford方向盘控制器转SONY主机

中国汽车影音网[CarCAV.com] 2005-9-22 0:33:38

Steering wheel remote control stalk adapter
Connect Ford Focus remote control to your Sony main unit

I was used to use easy-to-use MDs in car with my Sony MDX-C5960R MD player. However, my new Ford Focus (year 2004 model) was going to be equipped as standard with Ford's own CD player 6000CD with remote control stalk near the steering wheel. Finally, after my friend already driving with Focus said that the remote controller is a great thing to have, I needed to find a solution for it when replacing the original player with my Sony.

Note that the interface described here applies only to cars equipped originally with a Ford 6000CD or compatible player (e.g. Ford Focus 2004). Cars designed for other player models may have a different remote controller interface.

Interfaces

As you guess, Ford's remote control and Sony's RM-X4S are not compatible with each other. However, after searching the web for a while, I found out that both of them are simple resistor networks (as the remote controller of my Sony MZ-R2 MD Walkman).

My measurements of the Focus controller matched with Half_Geek's message on the Unofficial Empeg BBS:

Figure 1. Equivalent circuit for Ford Focus remote control for Ford 6000CD player.

I have checked later the Focus controller schematics from Ford's wiring diagrams, and it is correct. (Resistance values were not present in the manual.)

Because I do not own any Sony RM-X4S to measure, I had to rely on this Polish web page that shows the following circuit for the Sony RM-X2S remote control:

Figure 2. Equivalent circuit for Sony RM-X2S remote controller. [Source: http://www.studio24.prv.pl/]

My MDX-C5960R officially supports RM-X4S controller. However, it seems to work correctly with these RM-X2S resistances. Now the only thing I needed was a circuit that converts the resistances used in Ford's controller to those used by Sony. The Ford controller has five buttons and I decided to use them as follows:

Table 1. Cross-reference table for Ford and Sony remote controllers.
Ford function
Ford resistance
Sony function
Sony resistance
VOL-
54 Ω
VOL-
23.6 kΩ
VOL+
147 Ω
VOL+
16.8 kΩ
SEEK+
301 Ω
SEEK+
8.8 kΩ
SEEK-
562 Ω
SEEK-
12.1 kΩ
MODE
1037 Ω
SOURCE
2.2 kΩ
(none)
5057 Ω
(none)
high impedance


As you can see, I decided to map the Mode button to the Source function, i.e. make the Mode button to switch between the radio and MD modes (and power-up the unit, too). This is a practical choice as I do not have any multi-disc player (in such case you may want to have a button to change the current disc).

You may think that the simplest way to use the remote with Sony unit would be changing the resistors in the Ford controller. However, there are three reasons why I did not want to do it that way:
The functions are in different order in the resistor ladders: you will need to modify the circuit more than just replace the resistors.

  • I did not want to try opening the dashboard of my brand new Focus (< 400 km) to find out how to detach the controller stalk.
  • I still have the original Ford 6000CD player and I wanted to quickly reinstall it when I would sell the car.

    Adapter

    First I planned to use a simple analogue circuit to convert the resistances from Ford stalk to Sony input. However, such circuit is not so simple. That is why I ended to a microcontroller-based solution.
    Figure 3. The schematic diagram of PanuWorld's Ford-to-Sony remote control stalk adapter.

    I decided to use inexpensive and easy-to-find microcontroller PIC12C508. However, this most common (and old) 8-pin PIC does not have any integrated AD converter so I needed to read the Ford stalk by measuring the time constant of an RC circuit with I/O pin GP2 (the only Schmitt Trigger input). The resistor network for the Sony output required 4...5 output pins, and because GP3 is an input-only pin, it has no use in this circuit. GP2 is then used for both sensing the capacitor voltage (in the input mode) and charging the capacitor (in the output mode). Q1 amplifies the charcing current and ensures that the capacitor is charged enough also when there is a low impedance on the FORD IN connector.

    Table 2. Component list for PanuWorld's Ford-to-Sony adapter.
    Component
    Type
    Comment
    U1
    LP2950-5.0
    Any low-quiescent current 5 V voltage regulator (up to 100 mA)
    U2
    PIC12C508-04
    One-Time-Programmable 8-pin microcontroller + socket
    Q1
    2N3904
    Probably any NPN switching transistor (check the pin-out!)
    D1
    1N4005
    Any rectifier diode
    C1, C2
    10 µF 35 V tantalum
    Good margin for the voltage specification
    C3
    100 nF
    Critical component, preferably a polyester capacitor?
    R1
    2 kΩ Not so critical
    R2
    21.4 kΩ
    R3
    10.0 kΩ
    R4
    2.1 kΩ
    R5
    16.9 kΩ
    J1
    pin header, 2.54 mm pitch
    Something to be attached to the Ford connector
    J2
    3.5 mm stereo plug
    Preferably a 90-degree plug?

    Note that the newer mask version PIC12C508A has slightly different electrical properties and may not work here without changes in the time constants defined in the software.

    Figure 4. Circuit layout for copper-striped board.This kind of circuit is non-critical, so you may probably use standard components instead of components rated for industrial temperature range. (However, I used a PIC12C508-04I/SM. Because it is an SMD version, I had to solder the chip on a DIL socket to be able to use my PIC programmer with a DIL socket...)
    I recommend using a screw connector for connections because it easies mounting the adapter on radio's wiring harness. The circuit board fits in a film box. DIL-packaged microcontroller allowed building the circuit on a copper-striped board without the effort of etching a PCB.

    I used a five-pin pin header (actually a piece of some connector) for the Ford connection. Two pins are enough but five pins shows implicitly the place of the Ford connector where to plug the header (there is only one five-hole group on the connector). The plastic guides prevent reversed insertion of the header to the connector.

    The cable is soldered to the correct pins on pin header (see Figure 3) and then insulated with shrinking tubes and hot-melt glue.

    OperationThis circuit does nothing without any software programmed on the PIC. The PIC must "read" the input resistance using the RC circuit connected to GP2 and then use resistors connected to GP0, GP1, GP4, and GP5 to control the Sony unit.

    When the device is idle, all GPIO pins are in high-impedance state (i.e. configured as inputs). R1 keeps Q1 closed so the power consumption is minimized. The Sony unit sees high impedance on J2 (= no button pressed). When a reading cycle starts, C3 is charged via Q1 by setting GP2 to output '1' level for 4 µs. Then the software waits for five predefined moments checking the state of C3 with GP2 input after each timeout.

    When C3 has been discharged via the resistors in the Ford remote controller, the GP2 input changes to '0'. Because GP2 is a Schmitt Trigger input, the voltage over C3 must drop considerably before GP2 input detects the change. How quickly this happen depends on the button pressed (if any) on the Ford controller. If C3 is not discharged enough after those five timeouts, the connected resistance is so high (> 3 kΩ) that no button is pressed on the controller. In such case, the PIC goes into low-power sleep mode and wakes up for a new reading cycle after watchdog timeout (set to nominal 36 ms). This low-power operation drops the average current consumption of the circuit down to 150 µA (including the voltage regulator loss) so the adapter may be connected to the car battery all the time.
    If '0' state is detected on GP2, the number of the timeout loop specifies the button which has been pressed on the Ford controller. To avoid incorrect results due to EMI or buttons pressed/released during the measurement cycle, the program repeats the reading cycle until 64 consecutive same results are detected. This will take time up to ~20 ms depending on the button pressed (if any).

    After 64 same results, the PIC changes the output resistance by switching the pins GP0, GP1, GP4, and GP5 between '0' output and high-impedance. The selected combination depends on the detected button.

    Table 3. Output pin combinations used by the software ('0' = output low, 'Z' = high-impedance).
    Sony function
    GP0
    GP1
    GP4
    GP5
    Resistance on J2
    VOL-
    0
    Z
    Z
    Z
    23.5 kΩ
    VOL+
    Z
    Z
    Z
    0
    16.9 kΩ
    SEEK+
    0
    0
    Z
    Z
    8.9 kΩ
    SEEK-
    Z
    0
    Z
    Z
    12.1 kΩ
    SOURCE
    Z
    Z
    0
    Z
    2.1 kΩ
    (none)
    Z
    Z
    Z
    Z
    high-impedance

    This simple way of using three-state outputs and resistors for generating the output impedances works because the Sony unit reads the remote control resistance using a voltage less than the PIC power supply (5 V).

    Software

    I made a mistake in the software of my own adapter which reversed the SEEK+ and SEEK- functions (compared to the original Ford radio and car handbook). However, I started to like the way of "going back" (seek down, previous track) by pulling the SEEK button and "going up" (seeking up, next track) by pushing it. You may select which way you like:

    Table 4. Adapter software for downloading.
    File name
    Description
    fordsony.hex
    Standard software (pull SEEK for SEEK+)
    fordsonr.hex
    Reversed SEEK button (push SEEK for SEEK+)
    点这里下载所有的程序
    Source code for Microchip's MBLAB

    You may program your PIC with any compatible programming tool. I used JDM's incredible simple PIC programmer on MS-DOS.

    Testing

    The software timeouts are optimized with my own adapter. However, the variation in the microcontroller, C3 capacitor, etc. may cause the adapter behave incorrectly. Therefore you will need to test the adapter before installing it!

    To test the adapter, power it with a 12 VDC power supply or battery.

    • Check that the supply current is something like 150 µA (when the FORD IN is open).
    • Set a multimeter to resistance range and connect it to J2 (COM probe to the ground and Ω probe to the tip). It shall show infinite (or very high) resistance.
    • Connect each of the following resistances (or close values) between the FORD IN and GND: 54 Ω (VOL-), 147 Ω (VOL+), 301 Ω (SEEK+), 562 Ω (SEEK-), and 1037 Ω (MODE). The multimeter shall show corresponding resistance values (see table 3).

    If the output values do not match the input resistors correctly, you need to fine-tune the software timeouts. (To do that you have to use Microchip's free MBLAB IDE for recompiling the software from the source code!)

    • Connect a 5 kΩ potentiometer (preferably a multi-turn one) between the FORD IN and GND. Before connecting, check that the resistance of the potentiometer is set at ~50 Ω. (If it is at 0 Ω, it may damage the adapter!)
    • Then carefully turn the potentiometer so that resistance increases. Find the point where the multimeter reading changes from 23.5 kΩ to 16.9 kΩ.
    • Disconnect the potentiometer, measure its resistance and write it down. Continue to the next point where the multimeter reading changes.
    • Calculate new timeout values for each software loop by using formula: T1 = T0 * R0 / R1, where R1 is the potentiometer resistance at the change.

    Table 5. Current timeout values in the software.
    Change on J2
    T0 (original timeout)
    R0 (target resistance)
    Parameter name
    23.5 to 16.9 kΩ 10 µs
    100 Ω VOL_DOWN
    16.9 to 8.9 kΩ 23 µs
    224 Ω VOL_UP
    8.9 to 12.1 kΩ 44 µs
    432 Ω SEEK_UP
    12.1 to 2.1 kΩ 81 µs
    800 Ω SEEK_DOWN
    2.1 kΩ to infinite
    310 µs
    3047 Ω MODE

    • Replace corresponding parameter values in FORDSONY.INC with the new values (T1) and recompile.
    For example, if the change from 23.5 kΩ to 16.9 kΩ on J2 is detected at potentiometer resistance R1 = 130 Ω, you need to change the VOL_DOWN parameter from  T0 = ".10" to T1 = 10 µs * 100 Ω / 130 Ω =  7.7 µs ~ ".8"
    • Test the circuit operation with the new software.

    Note that PIC12C508 is one-time-programmable (OTP). You need to use a new PIC for the changed timeout values. However, there is some space reserved for timeout modifications in FORDSONY.ASM. If you want to reuse the same PIC, remove one movlw H'FF' in each five loops and add a nop after the last movlw command. For example:

    Original code
    Modify to
    movlw H'FF'
    movlw H'FF'
    movlw H'FF'
    movlw VOL_DOWN
    movlw VOL_DOWN
    nop

    This allows you to program the same PIC again after changing the timeout values in FORDSONY.INC.


    Installation

    Ford does not use standard ISO radio connectors so connecting a Sony to a Ford requires an inexpensive Ford-to-ISO wiring harness adapter. That is why the complete harness will be rather huge.


    To get power for your adapter you need to add some wires to your wiring harness: Branch the +12 V Continuous and Ground wires and isolate the branches carefully. I recommend protecting the connections with shrinking tube. (You may probably use also the +12 V Switched instead but the current consumption of the adapter is so low that it does not drain car's battery even if it is continuously powered.)

    Connect the power wires and input/output wires to the adapter and close the adapter in its box before connecting the wiring harness to your car. The pin header connector is connected to the FORD IN and GND terminals, and the 3.5 mm plug is connected to SONY OUT and GND terminal. (I used a 3.5 mm plug from inexpensive headphones but the green cable was so thin that I had to solder it directly on the adapter circuit board instead of using the screw terminal.) Be careful when making any connections -- bad connections may cause short-circuits, and the short-circuit current is limited only by car's fuse!

    Installation of the adapter is simple. Just connect the pin header to the correct pins (see Figure 3) on the Ford's connector and plug the 3.5 mm plug into the Sony unit. -- And remember to test the operation before inserting the main unit into the slot...


    7.2.2005

    To see PanuWorld's finest appearance, update your web browser!
  •  
    作者:阿锦 文章来源:中国汽车影音网
    发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    在您选购或改装汽车影音产品时,请向改装店提及是CarCAV.com的网友,将会享受到更好的服务或更优惠的价格。
  • 上一篇文章:

  • 下一篇文章:
  •  相关新闻  发表评论
    途胜没有方向盘音响控制器的DIY改装
    在我的马6 2.0MT方向盘上加装声音控制
    万能方向盘音响控制器改装特殊车型的原理
    常见车型改装第二代万能方向盘控制器的说明
    爱国 守法 自律 真实 文明

    评分:
    1分 2分 3分 4分 5分
    网友昵称 :
    DIY乐园搜索
    网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    新闻资讯

    “非常城市”吴杰获十
    推荐新闻07年天派重点经销商博螯峰会将举推荐新闻07年新春增城汽车音响交流展示会
    推荐新闻商务部副部长魏建国率调研组深入推荐新闻三水好帮手2007新春丽江送礼大行
    推荐新闻上海摩迪:真情回馈,新春有“礼普通新闻07年1月车载数码主机新品资讯榜
    推荐新闻D&M收购PPS荷兰飞利浦扬声系统公推荐新闻阿尔派三款带iPod功能2007全新主
    普通新闻好帮手公司2日召开07年经销商年会推荐新闻广州车元素新年导航大优惠促销酬
    推荐新闻“非常城市”吴杰获十大风云人物普通新闻2月3-5日北京车之影举办阿尔派汽
    影音测评
    普通测评导航新秀 深圳任e行 F-139 GPS评推荐测评PhaseLinear菲斯尼奥功放MS-D9ES
    推荐测评麻雀虽小五脏俱全的FREEWAY飞韵D普通测评触控式16:9 RikalineGPS-I610揭密
    普通测评同永pq2 GO-420 WalkSpace 导航测普通测评评测:高性能蓝牙GPS Leadtek 95
    普通测评支持3D导航与SP地图编码的导航地普通测评四平八稳 Rikaline 6036蓝牙GPS评
    普通测评GPS市场又添生力军 博客首款产品普通测评细品Garmin高端GPS导航 Streepil
    普通测评Holux CR-100车架型多功能GPS导航普通测评小身材大屏幕PapaGo S500车载GPS

    四平八稳 Rikaline 6
    改装乐园

    深圳永隆行布吉店别克
    普通改装深圳永隆行布吉店别克凯越----摩普通改装我的千里马音响改装——道声北京
    普通改装深圳非常城市奔驰旅行大奔5.1声道推荐改装广州本田2.4主机拆卸方法及ipod输
    普通改装广州原音坊别克GL8先锋6.1声道改普通改装温州德胜红色激情点燃奔驰ML350
    普通改装广州华成又一宝马320经典改装--摩普通改装大理清秀--超级震撼长安之星5万炫
    普通改装广州安发功放新改起亚赛拉图改装普通改装广西南宁车元素标致307DVD音响改
    普通改装陕西车神--标致307之MBL音响改普通改装泰国赢得美国IASCA 2006决赛总冠
    名家访谈 音响常识 教你维修 展会比赛

    三洋集团:逐鹿中原

    漫步者音响专家答网

    松下DP88碟盒机主机

    CHINA AAE’07 中国

    热点文章
    标志307国产CD主机改AUX
    威姿车用音响加装AUX音频
    佳美2.4用原车屏加数字电
    比亚迪F3加装视频全攻略
    万能方向盘音响控制器改
    ipod I/O接口定义,开始D
    让顶级CD机发出极品的声
    04千里马加装MP3输入接口
    教你制作卡带mp3转换器(
    制作音响改装玻璃钢模具
    推荐文章
    车主爱上DIY 奇瑞QQ进行
    音响改装欣赏:一些改装
    高音怎么加电阻 请给个参
    常见车型改装第二代万能
    天籁导航版音响改装DVD的
    2厢飞度加装自动伸缩液晶
    两台主机共同使用自动切
    汽车音响喇叭拉线心得
    二手N制车载液晶电视的高
    DIY车载DVD建议大家自己
    精彩图片

    途胜没有方向盘音响控

    神龙富康DC529收音机加

    捷达原车配的收音头AU

    不用怕主机过热!DIY安


    CarCAV总部:
    广东省广州市新市华益街1号之一(白云花园内)
    电话:020-86095291
    传真:020-86095591
    上海办事处:
    上海市吴中路2375号凯斯装饰城二期院内第二.三幢(车之宝内)
    电话:021-62707831
    传真:021-64190745
    北京办事处:
    北京市朝阳区慧忠北里411号楼一层(新城子昂内)
    电话:010-64830333
    传真:010-64830222
    广州办事处:
    广州市永福路40号盛大国际汽车用品城A28.29(先歌兄弟内)
    电话:020-62682228
    传真:020-62682226
    中国汽车影音网 由www.CarCAV.com 建设维护 保留所有权益
    Copyright © 2006 CarCAV.All Rights Reserved
    信息产业部备案号:粤ICP备05021683号