![]() | ![]() | ![]() |
| | |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Hello all.... a very low tech question (maybe refreshing? or interesting at least!) Pics below! BACKGROUND: I have a 1800's style US Weather Bureau mechanical wind-vane device, with a later style (1950's - 60's?) indicator-light panel. When I got them, no wires connected the two together. There must have been a tube type answer before, but if I can fit the "new" interface in the existing light box, which has room at the corners (the lights are in a circle), I'll use any solution. DESCRIPTION Simple enough: the wind-vane contact device is heavy brass by Julien P. Friez (Balt.) in the style of a music-box; there are 4 output terminals and a ground terminal. The 4 raised areas on a spool close 1 or 2 of the 4 brass contact outputs when the spool rotates. The elevated sections overlap so that when the wind is between N and E say, both N and E contacts close. The display panel is by MC Stewart (Boston), and has N, E, S, W, and NE, SE, NW, SW, and "V" lamps (I assume the V means voltage). with on/off switch inline with a common ground to all 8 lamps, and each lamp has it's own a wire going to the center post. However, I can't tell what type of lamps these are, DC I assume. They're like auto-side light types: small, glass is same witdth as the base, with fairly bright blue insulator keeping the two terminals apart. It is a modern screw-in lamp. Has "46" stamped in black on the base, but nothing else. 2.7 ohms across the terminals. IN SHORT: Soooo... I have a "simple" 4-input to a 8-output application question! MY BACKGROUND: (!) I have a background in Computer Science, with electronics. I can put together any circuit, but being unpracticed, I'm embarrassed to say I can't get anywhere past a crude and voluminous "and" gate solution, and don't even remember if I can put voltages through that AND-gate solution anyway without burning the place down. I did draw up a truth table, but I can't remember what to do with it since I don't have a single binary output... N, E, S, W, Condition 0 0 0 0, <NA> 0 0 0 1, W 0 0 1 0, S 0 0 1 1, SW 0 1 0 0, E 0 1 0 1, <NA> 0 1 1 0, SE 0 1 1 1, <NA> 1 0 0 0, N 1 0 0 1, NW 1 0 1 0, <NA> 1 0 1 1, <NA> 1 1 0 0, NE 1 1 0 1, <NA> 1 1 1 0, <NA> 1 1 1 1, <NA> Now the pitch! Where do I go from here? How much voltage am I likely to use (and DC?); Is there some kind of a 4 bit D-to-A converter I need? The current likely went through the contacts (they are burnt/worn like it would over time), but I assume with an elegant solution, the current in wires going from the contact switches into the display light box can be separated from the current that lights the bulbs. (for fire safety) Thank you so much in advance for being here to answer questions like this!!!! I appreciate any help anyone can give me! Jason Last edited by LAJay; 5th September 2007 at 06:44 AM. | |
| |
| | (permalink) |
| there are a lot of ways to do this electronically. the simplest way I could think of is to use a 4-16 demux like the 74HC154. Use the 4 contacts as the 4 inputs. select the 8 output pins that correspond to the correct terms. Run them into a ULN2803A darlington array which will drive 8 lamps. This could drive 500 mA lamps (6 W at 12V). If you want more, you will need higher capacity drivers. However, I can't help think there is a very simple solution that uses some sort of cancellation that prevents, for example, E & N from lighting but allowing NE to light. It's too late for me to ponder it. | |
| |
| | (permalink) |
| Hi Jason, Looking at the pics, it looks as though the cams/switches maybe already 'coded'.[ they don't look like quadrants?] Can you post a sketch of the 4 cams, that is, highs/lows and in the same orientation as they are mounted? The lamp holders appear to be threaded, more like a lamp type screw bulb, with a single centre pole. If you have a 0 to 12Volt dc power supply, connect one lamp, start at 0V from the psu and turn up the voltage very slowly do this until the lamps appear bright enough to illuminate the legend. Lets know what you get.
__________________ Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 5th September 2007 at 08:54 AM. | |
| |
| | (permalink) |
| Your discrete logic chip solution would work. You could also use a microcontroller and implement the same AND, NAND, OR, NOR, XOR logic in software or simply implement your existing table as a 16 element constant array of 8 bit output values; Code: ; ; input lamp outputs ; N,E,S,W N NE E SE S SW W NW N ; 0 0 0 0 --> 0 0 0 0 0 0 0 0 0 n/a ; 0 0 0 1 --> 0 0 0 0 0 0 1 0 0 ; 0 0 1 0 --> 0 0 0 0 1 0 0 0 0 ; 0 0 1 1 --> 0 0 0 0 0 1 0 0 0 ; ; 1 1 1 1 --> 0 0 0 0 0 0 0 0 0 n/a Last edited by Mike, K8LH; 5th September 2007 at 12:59 PM. | |
| |
| | (permalink) |
| Hi The switch cams are cut to suit a pattern as per the attached GIF. The High of the cam closes the corresponding switch. Mike. Did you get my PM?
__________________ Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 7th July 2008 at 12:21 PM. | |
| |
| | (permalink) |
| hi Jason, Added a simple cam/lamp test circuit to the drawing.
__________________ Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 7th July 2008 at 12:21 PM. | |
| |
| | (permalink) |
| I assumed that LAJay wasn't familiar with microcontrollers. The demux is pretty easy to do and is either cheaper or the same cost. | |
| |
| | (permalink) |
| Yes, a 4-to-16 demux' solution would work too, and without using a microcontroller. I was simply offering an alternative to your excellent suggestion. | |
| |
| | (permalink) |
| wow. thank you for the replys. I went right up to Fry's and RS to look for the demux solution. Found the 74hc154, but not the uln2803a. Fry's referenced that to a NTE2018, but didn't have it. Had a 2019, but that was PMOS i think, and I don't know if that will work. I tested the bulb in a PS on display (Fry's is great!) and got this: at 5v, it was drawing 210ma, and at 6v it drew 240ma. Since only one light lights at a time, is it possible to use NAND or other GATES to do this with that little current? I am basically capabable of all your solutions, however I would need a bit more info to go on with either the DEMUX or MC solution, like assistance with any resistors, or the alternatives for a TTL driver... I only have a breadboard to piece this together, no MC software etc... FYI, I used to program 65c02 on Apple IIe as a teen in the 80's, and remember doing some MC work in college. But I'm short on current details on doing anything other than looking at spec sheets and spending days figuring out a resistor value! I can work of a logical layout diagram of a complete circuit, or should be able to read a schematic ok as well... MIKE: I didn't get your PM.... ?? Thanks again! Hope to hear from you guys again! Jason Last edited by LAJay; 6th September 2007 at 12:55 AM. | |
| |
| | (permalink) |
| the nte will probably work ok. You could also use 8 small signal NPN transistors like 2n2222 or 2n3904. the 2803 is just more compact and carries a bit more current. No, you need to drive each bulb independently. The following is how you would use a transistor. replace the coil and diode with your bulb. I'd use 1k ohms for R1. R2 isn't necessary but doesn't hurt - 100K would be fine. The '154 would feed R1. q1 is any NPN transistor that can carry 250 mA (Ic from the datasheet). Use one of these per bulb. ![]() Last edited by philba; 6th September 2007 at 01:15 AM. | |
| |
| | (permalink) |
| I looked at the spec sheet for the 2019, it does say that I should be able to use it. Diff between 19 and 18 is 10.5ohm vs. 2.7ohm, and 6v vs 5v, which I observed would be better lighting. http://www.nteinc.com/specs/2000to2099/pdf/nte2016.pdf So instead of using the NPN's and Resistors separately, what else will I need to use the NTE2019 with the 74HC154? Anything? Thanks, Jason | |
| |
| | (permalink) |
| I did get the NTE2019. It will accept 6v-15v instead of 5v from the '154. The only other difference is the 10.5k series input resistor, instead of 2.7k.. will that matter? The spec for the 2019 is here: http://www.nteinc.com/specs/2000to2099/pdf/nte2016.pdf So do I need to put anything else in this except these two IC's? Thanks, Jason | |
| |
| | (permalink) |
| Those two ICs, a regulator, filter cap', bypass caps, and a flux' capacitor (grin)... Last edited by Mike, K8LH; 6th September 2007 at 07:23 AM. | |
| |
| | (permalink) |
| hi Jason, I was under the impression you wanted to rewire the two devices as they were originally wired. If you check the highs/lows on the cams driving the switches I expect you find that they are 'encoded' as I have shown my drawings. IMO you dont need semi-conductor logic to drive the lamps from the cam switches, remember the circa dates 1800's 1950's, no semi's as we know them today. If you want to upgrade the electronics I would still suggest that you checkout the cam encoding, its most likely not binary this was for MikeK8LH MIKE: I didn't get your PM.... ??
__________________ Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ | |
| |
| | (permalink) |
| Eric, please explain the "encoded"... i'm curious what this means. But continue reading to get an idea of what i understand it to be... I don't think original rewire is possible, since the original (1800's version) was to a pen register (only 4) and not 8 lights. So, I must assume someone took this cam later in the 50's-60's, decided they wanted to get fancy and see a light for "NW" alone instead of simply seeing "N" and "W" lights lit together, and there was some other solution - heck, this may have been done with circuit processors if it was done in the 70's or 80's. i'm just guessing about the 2nd life it has lived. I don't really need "original" or the "50's/60's/70's" spec logic. If modern stuff works better/cheaper, then so be it. If another way works (simpler is more elegant) like it might have in the 1800's, that would be fun too... How would they have made 8 indicators for 4 terminal switches? Interesting question, even if I don't implement it. upon testing per your diagram, i hook up 4 lights (leaving 4 not hooked up) to the 4 cam terms (as you specified): n-n, e-e, s-s, w-w. when i rotate it, it performs as i expected, and I see in your drawing. Here are the results: When starting at N, N is lit alone. Rotating through toward E you will see N and E light up simultaneously for the same time N and E light up independently. i.e. the lit order goes like this: N (for 45deg); N+E (for 45deg); E (for 45deg); E+S; S; S+W; W; W+N. (in theory, roughly 45deg for every light, right? NE is lit from 22.5deg to 67.5deg; east becomes lit at 67.5 and through to 112.5 ) So I believe my truth table in the first post tell the correct story (yours may, but i just don't see it) and where 1 is on, 0 is off. yours was opposite maybe? mine: N-E-S-W --> desired light (1 of 8) 1-0-0-0 --> North lights up 1-1-0-0 --> NE (the intended behavior is to not light up the N or E at all, but light up NE (like an AND gate from N and E) ... So it looks like the 4-16 '154 chip and the 2019 will do. But I now need to know what pins to connect to the NTE2019, and what caps I might need. If I'm already using a regulated (for sure, not a cheapy wall wart) power supply with 12 volt output, what resistor do i need for a drop to 5.4volts (that's what my 4x1.5 batteries tested in actuality, and the lights were perfect. If I need to use 6v, as it looks like the NTE2019 requires it, then the resistor value to get me from 12 to 6.) The other confusing point to me is the requirement of the "enable gate" in the '154. what is that, and how do I implement it? just tie it to ground? Also, is my electricity running all the way through the contacts, and into the chips, or do i have separate voltage/currents going into the chips for the 4 inputs and the 2019 output voltage/current? sorta like how a relay works, small currents control large isolated ones - will I have two loops? know what i mean? Do I want two loops for better safety? Thats all - as long as it works, and now that I have the two main chips for less than $6, I can rest assured this "new" demux solution will not be more than $20 which is good. so i really need help with the hookups and identifying any additional parts. Thank you very much. This is a great encouragement, to be able to get near-live help. that's whats held me back from taking on small little projects like this in the past. Now I'm excited to learn again! Jason Last edited by LAJay; 6th September 2007 at 10:01 AM. | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| odd project, 1 button adds a light 1 button takes a light away with sound. | KevinAlaska | Electronic Projects Design/Ideas/Reviews | 15 | 6th June 2007 05:38 AM |
| Black light vs Black Light White | Oznog | General Electronics Chat | 4 | 22nd October 2006 12:17 AM |
| Light sensor with LED's | mcs51mc | Electronic Projects Design/Ideas/Reviews | 13 | 7th July 2006 06:34 AM |
| Answers for cisco test | faiz | General Electronics Chat | 0 | 13th July 2004 04:06 PM |
| Simulated Lighthouse Light | Kingpin094 | General Electronics Chat | 1 | 20th August 2003 06:05 PM |