First time on the forum and first few weeks dipping my toes in Arduino, with still little experience in C (so thanks for your patience in advance!)
I have built a circuit for a galvanometer. Signal from two electrodes is processed by the 555 IC in astable multivibrator mode, and sent to input ~3.
My goal is to be able to calculate the frequency, pulsewidth, and duty cycle of the signal continuously in real time (this will then be printed to serial, and passed to Max/MSP where I will be using it to create MIDI signals.) For those of you familiar with PlantWave (formerly MidiSprout), this is the exact idea.
I’ve been going at it for 5 days with little progress. I would really appreciate someone explaining to me the process of turning the 555 PWM signal into a data type that I can use to find frequency, pulsewidth, etc. If I understand correctly, this is essentially sampling (which I’m familiar with in the audio world.)
Thank you so much!