17 Commits

Author SHA1 Message Date
aab02c8066 Added demagnetization pulses
Added some demag pulses to demag the HV transformer whenever the single pulse is armed.
2021-11-08 21:07:10 -06:00
dd293435e6 Disabled amplitude and period changes when in single fire mode 2021-11-08 20:53:18 -06:00
ee57b7e14c Removed continuous fire and slow fire modes
Removed these modes because they're no longer needed for the project
2021-11-08 20:20:23 -06:00
b32f768220 Added Isolate pin and fixed is_armed not disabling
Added an extra pin that's basically just a copy of the armed state indicator pin. This pin will control a relay to enable/disable some high voltage electronics. The is_armed flag and its corresponding indicator pin now get disabled when the single_pulse_enable_pin is off
2021-11-08 20:18:51 -06:00
4e7eba68ce Fixed period bounds and period resolution math
Fixed the bug where period bounds weren't being updated according to the sample_resolution parameter. Also artificially limited the period resolution to 1ms
2021-11-03 22:21:01 -05:00
4341f022b6 Changed some default period settings
Limited the maximum period to 20ms and set the default start up period to 10ms.
2021-11-03 21:46:37 -05:00
c9480fb278 Inverted Indicator Pin Logic
Indicator pins are now off when output is HIGH and on when output is LOW
2021-11-03 21:40:53 -05:00
0235bd3859 Fixed bug where is_armed could be true at startup 2021-11-03 21:22:01 -05:00
2dd56f6315 Updated the single pulse mode
Enabling single pulse mode now changes the status screen on the LCD display. Single pulse mode also no longer uses interrupts, and instead uses HEAVILY debounced inputs for enable, arm, and fire.
2021-11-03 21:15:15 -05:00
92f4db12ce Fixed debounce timer mistake
I realized I has been subtracting the wrong way which cause the debounce to not work. I've fixed this now. I also added a debounce to the arming pin.
2021-10-30 12:46:15 -05:00
1d274a6a2c Updated Single Pulse Mode
Updated single pulse mode so that it has an ENABLED, ARMED, and FIRED state. The enabled pin toggles the single fire mode. The armed state toggles whether it's armed or not. The fire pin will only fire if it has been armed.
2021-10-30 12:39:27 -05:00
0f3a19f653 Enabled LCD Output
Added support for an I2C LCD to be used with the project. The LCD can be driven directly by the data lines
2021-10-28 20:49:49 -05:00
f6453e4ab4 Got rid of waveform select feature
Waveform select feature is no longer needed since we've settled on a given waveform.
2021-10-28 18:37:00 -05:00
Cynopolis
de33953b66 Changed the way Amplitude and frequency scaling works
Amplitude scaling now changes the amplitude of the signal itself instead of outputting a separate signal.

Added a new pre-defined parameter called sample resolution. It enables the ability to skip a certain number of elements in the waveform array which allows for higher frequency waveforms.
2021-10-26 12:51:27 -05:00
Cynopolis
1cd275b713 Added new waveforms 2021-10-26 11:47:05 -05:00
Cynopolis
731c5abbbc First draft of the waveform generator. 2021-10-10 13:17:34 -05:00
Cynopolis
01d85538bb Initial commit 2021-10-10 11:39:32 -05:00