![]() ![]() MaxFrequence is the frequence you want to use for detecting the signal. SensorPin is the analog pin used to detect the DTMF, must be an anlog pin. uint16_t begin(uint8_t sensorPin, uint32_t maxFrequence = 0) Standard values are from 1.0 to 4.0, if you need to amplify it more than 4 times, it would be better to put an opamp on your circuit. Set amplify if your signal is not good or if your signal does not cover the entire amplitude. 128 samples with a frequence of 6000Hz need 128 * 1 / 6000 = 21.3ms to be executed. Higher value gives you a better result but need more time to be executed. ![]() It must be at least 50 if you want a good result. Set sampleCount to define how many times the analog input should be sampled on each request. } PhoneDTMF(int16_t sampleCount = 128, float amplify = 1.0f) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |