ro_ro Posted August 5, 2004 Share Posted August 5, 2004 Does anyone have detailed information about the lens protocol used inold Nikkor AF and AI-P lenses? I wonder if it should not be impossible to make custom chips by usinga 1$ PIC12C508 or similar. Open source preferred. Why that? Nikon doesn't sell chips to everyone, and they areexpensive. Chips from old lenses don't often fit the apertures of themanual lens to be upgraded. An MF lens with an AF chip makes theCamera try to AF, not so good. Even if you find a chip with suitingapertures, the focal length is different. Thats what I found out myself: The names of the lens contacts could be found in some old servicemanuals that can be download on the internet. Search for 'n90.pdf'with google. I recently dissassembled an old Nikkor 35-70/3.3-4.5 to see whatsinside. The only important thing is a NEC uPD7554G577. The datasheetwas hard to find, but I now have one, which I could mail to anyonewho's interested. The NEC CPU is an old and slow 4-bit one, so the protocol can't bethat complicated. I drew a sipmle schematic to show the connections. But I don't have a logic-analyzer to figure out what data istransmitted. Could anyone help? Link to comment Share on other sites More sharing options...
ro_ro Posted August 5, 2004 Author Share Posted August 5, 2004 The UPD7554A seems to be compatible. A good datasheet can be downloaded here: http://www.alldatasheet.com/datasheet-pdf/pdf/NEC/UPD7554A.html Link to comment Share on other sites More sharing options...
zack_lau Posted August 5, 2004 Share Posted August 5, 2004 http://www.xs4all.nl/~jwasys/old/diy2.html A link to a do it yourself logic analyzer that uses a PC parallel port. Link to comment Share on other sites More sharing options...
Prof-K Posted August 5, 2004 Share Posted August 5, 2004 Hi Ro Ro, I can't help you on this, but whatever result you get (doesn't matter how long it takes), please let us know the final version by posting it here/in a new thread. Thanks, Shakil Link to comment Share on other sites More sharing options...
ro_ro Posted August 5, 2004 Author Share Posted August 5, 2004 This analyzer software works great ;) I had to use the allowio driver with w2k ('allowio DIGITRACE.EXE' in the command prompt). The buffer was increased to 255000. I build a simple buffer with a 74LS14 to protect the camera (Nikon N4004s) lens --|>o--|>o-- lpt Many byte flying on the lines but slow enough to get cought. The screenshot shows the beginning of transfer. I'm busy the next days but will try to figure more out next week. The datasheet schuld tell about the bitorder. Perhaps someone else who likes experiments could try the same. Link to comment Share on other sites More sharing options...
ro_ro Posted August 5, 2004 Author Share Posted August 5, 2004 Sorry, I forgot the picture Link to comment Share on other sites More sharing options...
walterh Posted August 6, 2004 Share Posted August 6, 2004 it sounds like a very good idea, long overdue :-) Roro - how did you "listen"? did you disassemble an old lens? a spacer tube like an AF macro ring might be great for this. this way different lenses could be tested. I would not be surprized if the protocol is really simple. even if not understood the only data we need to know is the max opening and the current opening? perhaps all needed is to fill in the correct data replacing the once found in an test lens. (in case one finds a matching lens it would even be simpler.) Link to comment Share on other sites More sharing options...
mskovacs Posted August 6, 2004 Share Posted August 6, 2004 Wonderful, long overdue idea! I just hope this doesn't end with Nikon USA smiting you for your efforts. Link to comment Share on other sites More sharing options...
ro_ro Posted August 6, 2004 Author Share Posted August 6, 2004 to Walter: I disassembled a mechanically defective 35-70 and soldered wires direct to the 180R protection resistors. Extension tubes could maybe also do the job but are more expesnsive than a N4004/N50/N55 with broken shutter oder defective back. I try to get an working AF Nikon with defective shutter and solder wires direct to the inner lens connections. Some on the lens data is decribed in the N90s memory map. (LENS BANK)http://members.aol.com/khancock/pilot/nbuddy/protocol.htmlI think the bytes are the same. To Mike: I should contiue work on old Sigma lenses, the Nikon's databytes may be covered by US copyright. The protocol is standard I think. Link to comment Share on other sites More sharing options...
neil_parker Posted August 6, 2004 Share Posted August 6, 2004 Its greek to me, but if it leads to a way to hack a D70 to meter w/ AI lenses my check will be in the mail. Unfortunately the lens I truly would like to use (35 1.4) can't be chipped. Link to comment Share on other sites More sharing options...
paulus Posted August 6, 2004 Share Posted August 6, 2004 Ro Ro, How are the efforts going? To me it looks like that 1) is an interupt signalling end of a transfer. 2) is the clock signal and 3) is the actual data. If you need some help converting this serial data to parrallel format, send me some data you sampled and I will write a translator (I have done things like that before) Paul Link to comment Share on other sites More sharing options...
joseph_wisniewski Posted August 7, 2004 Share Posted August 7, 2004 It is written in the winds that great enlightenment will grace the eyes of one who looks upon US patent 4,896,181. Link to comment Share on other sites More sharing options...
ro_ro Posted August 10, 2004 Author Share Posted August 10, 2004 Many thanks for your help. I got further now. I made a first test with a PIC (containing my special emulation software ;) connected to a N4004. The timing diagrams shown in the patent were very helpful, but the datebyte described are different from what I discovered. There are 26byte transferred instead to the 16byte in the patent. It works, the camera tries to AF (I took databytes from an AF lens) with only my PIC attatched. The bad news: Newer Nikons use a high speed clock, so the PIC cant't follow and no real data is transmitted :( The serial port in the NEC chip could handle clock rates of serveral 100kHz. My software serial port could only do 20kHz. ToDo: Get a faster micro or one with a hardware serial port. Case should be SO8 or smaller to be put in lenses with almost no space. I won't post any software or schematics in public to get not in trouble with Nikon. I only tell what can be done to get a working chip. More in next week. I still don't know what most databyte exacly do, but I gussed aperture and focal length. Link to comment Share on other sites More sharing options...
walterh Posted August 10, 2004 Share Posted August 10, 2004 "don't know what most databyte exacly do, but I gussed aperture and focal length." well somewhere must also the "D" info come in. but you will see this by comparison of "D" with "non D" lenses once you got the hardware running. by the way where are you located on the globe. perhaps someone sharing the interest is close to you. cheers walter Link to comment Share on other sites More sharing options...
ro_ro Posted August 14, 2004 Author Share Posted August 14, 2004 'D' chips are different to the old AF ones. Not only the distance information is transmitted, but also values for AF and other compensation values change. This works even on old cameras that use protocol 0x22. Newer cameras that include the 'D' feature use 0x25, 0x27 and 0x28 protocols for the 'D' chip lenses. These newer protocols provide addition information. My opinion is that even on older cameras a 'D' lens can provide better AF and metering. But for an upgrade of old lenses the 'D' isn't important. So only a basic 0x22 protocol used with the first AI-P lenes is needed. I got further using a fast AVR instead of a PIC. Clocked at 8MHz the AVR can handle clock speeds of 100kHz, but current consumption is too high (8mA). My old N4004 has problems with mirror and shutter if a chip takes more than 5mA. The old NEC chips take 1mA and the new AF-D ones take 5mA. Another problem is the missing capacitor on the power pins of the micro. AVRs don't work fine without this capacitor. The chips Nikon uses do. The old NEC 4-bit line is now obsolete and could not be used for a self-made chip. The new 'D' chip have 48pins are clock at 8MHz and have a Nikon logo, I don't know what's inside. I still haven't found a suiting micro and my time is limeted. For now I stop research on make compatible chips. If anyone wants to continue my work, please write me an email. Link to comment Share on other sites More sharing options...
marc_gazal Posted September 16, 2006 Share Posted September 16, 2006 Hello, I'm interrested in this topic. Does anybody knows a way to reach "Ro Ro" ? Regards Link to comment Share on other sites More sharing options...
duncan_murray1 Posted October 1, 2008 Share Posted October 1, 2008 I am also interested in this. Has any progress been made? Link to comment Share on other sites More sharing options...
bjørn rørslett Posted October 1, 2008 Share Posted October 1, 2008 Definitively. Customised matrix chips are used in my lenses. Link to comment Share on other sites More sharing options...
chris_d10 Posted October 22, 2008 Share Posted October 22, 2008 Hi Bjoern, can you be more precise. Where are these chips available? Price? Protocol details? Chris Link to comment Share on other sites More sharing options...
joel_bierling Posted November 4, 2008 Share Posted November 4, 2008 I'd love to know more about the chips too. Link to comment Share on other sites More sharing options...
bjørn rørslett Posted November 4, 2008 Share Posted November 4, 2008 The latest chip model allowed me finally to CPU-modify 35mm f/1.4 Nikkor. Runs are still experimental and availability limited. Link to comment Share on other sites More sharing options...
joel_bierling Posted November 4, 2008 Share Posted November 4, 2008 Who is doing the runs? Will they produce/sell them for us? Price? Contact info? Any other detail? Thanks! Link to comment Share on other sites More sharing options...
marc_gazal Posted November 5, 2008 Share Posted November 5, 2008 Hello, To people who understand French, 18 pages of interresting discutions <a href="http://forum.nikonpassion.com/viewtopic.php?id=1640&p=1">here</a> Link to comment Share on other sites More sharing options...
joel_bierling Posted November 5, 2008 Share Posted November 5, 2008 Since the French site prevents the Google translation tools from accessing the whole thread, can anyone summarize? Link to comment Share on other sites More sharing options...
marc_gazal Posted November 5, 2008 Share Posted November 5, 2008 Hello,<br /> <br /> 1° They managed to program a chip with any lens data.<br /> 2° It works on an old F8008 but too they're too shy to test on F5,D200 and so on.<br /> 3° They didn't manage to make new contact blocks ( hardware part of the project ).<br /> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now