I think you could build a PWL file, but it might be a pain.How do I simulate this waveform in LTSpice?
I don't care so much about the noise but it would be nice. I can get a pulse to look close but this is a bit more half sinusoidal than a square pulse.
View attachment 119167
I think you could build a PWL file, but it might be a pain.
http://www.simonbramble.co.uk/lt_spice/ltspice_lt_spice_tutorial_5.htm
@Alec_t is good at these. Maybe he can help.
How do I simulate this waveform in LTSpice?
I don't care so much about the noise but it would be nice. I can get a pulse to look close but this is a bit more half sinusoidal than a square pulse.
View attachment 119167
The second graph is the output? Then yes. Wow that is amazing. It even has the noise. It looks just like my waveform. Only difference I see right off is it looks like it goes negative but I guess I can play with it. Thanks!This generates half sinewave pulses.
Is that close enough?
Edit: Added noise.
View attachment 119179
Yes. I am using a fan right now with a odd shaped blade. Plus I may not have done such a great job at paining the mark. I think that might be were the noise comes from.Is that the actual output from your sensor?
Well, the good news is that a comparitor can turn that Bump into a 5v signal easily. If it is not long enough, you can connect a 555 to the comparitor as a one-shot to extend the duration of the peak, or use a flip-flop to square it up (and cut frequency in half (but that can be corrected in software). Everything is possible.Yes. I am using a fan right now with a odd shaped blade. Plus I may not have done such a great job at paining the mark. I think that might be were the noise comes from.
Yeah someone I know that is pretty darn smart suggested I use a comparator to turn that "half sine wave" into a square wave. So I guess I get the bonus of having the noise removed too. And I had already planned to use the interrupt pin.Well, the good news is that a comparitor can turn that Bump into a 5v signal easily. If it is not long enough, you can connect a 555 to the comparitor as a one-shot to extend the duration of the peak, or use a flip-flop to square it up (and cut frequency in half (but that can be corrected in software). Everything is possible.
PS: or connect to a pin that has Interrupt-on-change flag.
Slick!This generates half sinewave pulses.
Is that close enough?
Edit: Added noise.
View attachment 119179
@crutshow. Would would you mind explaining how your model works? What part does what?This generates half sinewave pulses.
Is that close enough?
Edit: Added noise.
View attachment 119179
V1 generates a sinewave of the desired frequency, amplitude, and offset.Would would you mind explaining how your model works? What part does what?
What I am trying to to is figure out how to invert the signal. I got some new sensors in, basically the same wave form as above but inverted.