Search results

  1. B

    Pulses counting in intervals with teensy 3.2

    Ok, I fixed this error on teensy 3.2, but I don't know why it worked. I changed the speed of the CPU from 72 MHz (error about wrong formatted SD card) to 24 MHz (no error). Then I changed the SCK to pin 14 - it worked also. How? Why? The other question is? Should I change the speed of the...
  2. B

    Pulses counting in intervals with teensy 3.2

    Okay, I've changed the program to get more information about what is going on with my SD connection. It's copied from here http://mb-raw.blogspot.com/2017/07/teensy-tutorial-sd-card.html #include <SD.h> #include <SPI.h> // set up variables using the SD utility library functions: Sd2Card card...
  3. B

    Pulses counting in intervals with teensy 3.2

    I've tried it, it doesn't change anything. But according to this thread https://forum.pjrc.com/threads/62897-Teensy-4-1-Connecting-multiple-SPI-devices it should be okay. What's the meaning of the p3? When I added the line, that you've suggested to my code (in void setup()), during the...
  4. B

    Pulses counting in intervals with teensy 3.2

    Thanks for you reply. I found the information about alternative pins for the SPI library. As you can see at https://www.pjrc.com/store/teensy32_card7a_rev3.png. The alternative pin for SCK is the pin 14. Firstly, I decided to go for some basic example code, directly from arduino forum...
  5. B

    Pulses counting in intervals with teensy 3.2

    Doubt. In Hardware Requirements (https://www.pjrc.com/teensy/td_libs_FreqCount.html) there is an information, that the library requires special pin, Teensy 3.2 - Pin 13. On the other hand, I have to use the <SD.h> including the <SPI.h> library (some kind of bus, as i read), which is using the...
  6. B

    PMT pulse counting using Teensy 3.2

    Hello, on the website FreqCount library (https://www.pjrc.com/teensy/td_libs_FreqCount.html) - Hardware requirements, there is a table with board types and frequency input pins included - is there any possibility to change the pin in the program code or the library? I use teensy 3.2.
  7. B

    Pulses counting in intervals with teensy 3.2

    Hello! Does anybody find any solution to my problem to connect FreqCount with SD card?
  8. B

    Pulses counting in intervals with teensy 3.2

    The solution of my problems was adding a peak detector circuit before comparator and everything started working very well. Then, the hysteresis became unnecessary. Now, I want to improve my device by adding a SD card to register the number of pulses. I also want to add RTC, to write out the...
  9. B

    Pulses counting in intervals with teensy 3.2

    Maybe, I'll try to summarize the current work status. I wrote a PM to Theremingenieur, because when I was doing research on LM331 (F/V converter) which he advised me to use, I realized that he made a mistake. That was right, he thought about the LM311 (comparator). Finally, I used it to compare...
  10. B

    Pulses counting in intervals with teensy 3.2

    Ok, I thought that this library counts the rising slopes, I'll get rid of this. So you thing that this comparator will be better option, than simply using some kind of analogRead instruction? The next question, I should use it in a voltage-to-frequency circuit? Will it make square signal based...
  11. B

    Pulses counting in intervals with teensy 3.2

    Hello everyone! I’m trying to use the teensy 3.2 with PaulStoffregen’s library (https://github.com/PaulStoffregen/FreqCount) to count the number of partial discharges. #include <FreqCount.h> #include <LiquidCrystal.h> const int rs = 12, en = 11, d4 = 9, d5 = 8, d6 = 7, d7 = 6; LiquidCrystal...
Back
Top