Measuring Solenoid Stroke, which corresponds to the inductance, by sensing current waveform at OFF->ON state,calculated from resistance's voltage at source of nMOSFET, amplified by non-inverting amplifier.
- connect this board to M5Stck Core2's PortA.
- connect the solenoid and the power for it to this board
- generate PWM at PortA's pin3 (GPIO32). PWM frequency can be set for the solenoid used, such as 100Hz.
- waveform on PortA's pin4 (GPIO33) gives current
- sample programs (for Arduino or ESP32/M5Stack Core2)
- Measure_... for parameter measurement
- Control... for position control
available at here or purchase here.
Test results are in 'test240424' folder. Takaha's CBS07300580 with power suppply of 12V. R5=100k&R6=10k for x101 amplification, with R4, R7, R8, R9 unused.
Junichi Akita (akita@ifdl, @akita11)