Wanna see something cool

be80be

Joined Jul 5, 2008
2,395
No I've played with the 5 bit DAC I was looking for a pic with a 10 bit

I love this ADC stuff glade Joey posted.

The PIC18F65K90 make a DVM lol handle the ADC and the LCD.
 

jpanhalt

Joined Jan 18, 2008
11,087
@be80be
If you want the 10-bit version, here is a post by an individual who used the Demo board from AMS AS3935 that uses the 24FJ64GB002 chip's 10-bit DAC. Sweep is slower so you don't get the resolution I showed, but the steps are definitely smaller and square shouldered.
Link: https://forum.allaboutcircuits.com/threads/ams-as3935-lightning-emulator.126772/#post-1041059
Far:
upload_2018-4-19_18-18-11.png

Close:

upload_2018-4-19_18-18-51.png

Conclusion: It works. Steps are smaller, and I have no reason to doubt that at the same sweep it would look much different.

John
 
Last edited:

jpanhalt

Joined Jan 18, 2008
11,087
looks great both links @jpanhalt if you don't care could you pm me the code you tried.
@joeyd999 the adc stuff you post in the link nice.
I'll just post the emulator code here. The folder has the code, schematic, and a cute picture. My code is only for the 5-bit DAC of the 12F1xxx. The 10-bit stuff I posted was from the other contributor (See: link therein). I believe he was using the AMS emulator that comes with the AS3935 evaluation board. I don't believe that code is available, or I would have know what the pattern(s) are.

I had done a fair bit of experimenting to copy published lightning patterns, including pre-strike sizzle and post-strike "late peaks." I did not like the reproducibility they gave for producing "strikes" and distance versus disturber. When I saw how simple the device manufacturer's pattern was, it was a simple matter to duplicate it (labeled "complex" in my code) and my results were much more reproducible. Not sure this will be of any help, but since you asked, it is no great secret.

EDIT: Sorry, the picture doesn't include the op-amp that I added later as a buffer. Don't have a picture of that board. It is fitted between the PIC and the mosfet boards.

EDIT#2: added a picture with the op-amp enabled emulator (lower left) and receiver (upper right).

John

upload_2018-4-20_7-14-34.png
 

Attachments

Last edited:
Top