>At 16.18 2011.11.13, you wrote: >>Electron wrote: >I would like to simulate it, but after 3+ hours (really!) I still can't ge= t a >working voltage/current controlled switch, or a relay, to work with LT=20 >Spice. :-( > >The symbols are there, but it just doesn't work. I watched and re-watched = the >video many times, but I couldn't manage to get it to work. > >The model should be this: >.model MyRelay SW(Ron=3D1 Roff=3D1G Vt=3D3.0 Vh=3D.4)=20 > >I get the symbol, but I can't make the model work (the best I reached was = the >error message Can't find definition of model "NC_01". > >I then gave up and decided to simulate the reed using a MOSFET.. but it do= esn't >look like the real thing. :( OK, at the fifth hour I managed to make it work. I had to use the sw symbol= , not the relay one. :/ Now it's the turn of subcircuits. :P At 18.14 2011.11.13, you wrote: >The cap doesn't have to go directly across the relay contacts - you >could still have a pull-up to Vdd and then at the node where you would >normally attach the PIC input pin, instead put a single pole RC LPF >between the pullup+switch node and the PIC pin. This way, the reed >relay never sees a high current pulse but you still slow down the edge >as far as the PIC sees it so that the PIC will not respond to >microsecond pulses but will respond to millisecond pulses (like the >relay closure). > >Sean OK, logical, pullup to reed, resistor to PIC which has the cap in parallel = to its input. Reed never stressed, cap near PIC input pin.. that shall work be= st. Cheers, MarI/O --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .