Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: frohr

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    228

    Acceleration - bandpass filter

    Hi all,
    I am reading samples from ADXL via ADC (Teensy 4). I have it in buffer and then I need apply bandpass filter to calculate acceleration for 500-7500Hz and for velocity for 10-1000Hz. Anybody...
  2. Thread: Measure mV

    by frohr
    Replies
    3
    Views
    266

    Measure mV

    Hi all,
    I have function generator (Joy-it JDS6600 lite) and I want generate sine wave 0,02V RMS = on generator I have to setup 0.06V because 0.06 is peak-peak, then divided 2 to have 0-peak and...
  3. Thread: TFT RA8875 fonts

    by frohr
    Replies
    4
    Views
    363

    Hi, I installed...

    Hi, I installed https://github.com/mjs513/ILI9341_fonts
    Now my example code looks like:



    #include <SPI.h>
    #include <RA8875.h>
    #define RA8875_CS 10
    #define RA8875_RESET 9
    RA8875 tft =...
  4. Thread: TFT RA8875 fonts

    by frohr
    Replies
    4
    Views
    363

    TFT RA8875 fonts

    Hey all,
    I tried many web pages but I am not sure hot set font fot my TFT RA8875.
    Teensy 4.0



    #include <SPI.h>
    #include <RA8875.h>
    #define RA8875_CS 10
    #define RA8875_RESET 9
  5. Replies
    1
    Views
    365

    FFT draw in display

    Hey,
    I have code for FFT and I want to draw frequency range 500-10000Hz on display 800px.
    I apply FFT on 16384 samples.
    In my FFT are many peaks in all spectrum and I want to see them all on...
  6. Replies
    22
    Views
    1,676

    Here is my cleaned code without any other...

    Here is my cleaned code without any other calculations - this part is very important for futher calculations - to have pin A1 value (in adcbuffer) and sample time duration - expected every 50 micros...
  7. Replies
    22
    Views
    1,676

    I made a few measurements and comparisons: ...

    I made a few measurements and comparisons:

    ADC, 16384 samples, sampling 20000Hz, averaging 4, resolution 12 - used source code by mborgerson
    analogRead, 16384 samples, read every 50 micros,...
  8. Replies
    22
    Views
    1,676

    1. I use Teensy 4.0 2. I want 16384 samples...

    1. I use Teensy 4.0
    2. I want 16384 samples (maybe less but I have to try it)
    3. I will use just Teensy memory
    4. I will proceed data on Teensy

    With this one buffer I will work in many ways -...
  9. Replies
    22
    Views
    1,676

    Hi, could you show me example how read data to...

    Hi, could you show me example how read data to buffer via ADC? In one buffer I need value from analogread and in second buffer I need have time in micros (0,50,100,150,200,....) - its because FFT.
    I...
  10. Replies
    22
    Views
    1,676

    analogRead sampling

    Hey all,
    I want read from analog pin every 50 micros.

    My code:



    void READ_BUFFER()
    {
    analogReadResolution(12);
  11. Thread: TFT / ePaper

    by frohr
    Replies
    7
    Views
    959

    I found solution here and works well. ...

    I found solution here and works well.

    https://forum.pjrc.com/threads/28674-7-inch-TFT-Capacitive-Touch-Application-Help-Needed/page2

    25085
  12. Thread: TFT / ePaper

    by frohr
    Replies
    7
    Views
    959

    Hey, I found this connection in example: ...

    Hey,
    I found this connection in example:



    #include <SPI.h>
    #include <RA8875.h>

    /*
    Teensy3.x
  13. Replies
    3
    Views
    551

    This seems much better than I had before. ...

    This seems much better than I had before.



    for (int k = 1 ; k < BUFFER_SIZE ; k++)
    {
    tft.drawFastVLine(k, 99, 100, (ILI9341_BLACK));
    tft.drawFastVLine(k, 100, random(100),...
  14. Replies
    3
    Views
    551

    Drawing FFT spectrum smoothly on TFT

    Hey all,
    I have Teensy 4.0 with adxl sensor and I want draw FFT spectrum smoothly in realtime.
    Now I use something like:



    x_pos = 0;
    for (int k = 0 ; k < 299; k++)
    {...
  15. Thread: TFT / ePaper

    by frohr
    Replies
    7
    Views
    959

    Dear Mark, what is the minimum wiring? (no...

    Dear Mark,
    what is the minimum wiring? (no touch, no SD, ...) Is it similar like for TFT? https://www.pjrc.com/store/display_ili9341_touch.html

    Thanks a lot


    Michal
  16. Replies
    1
    Views
    239

    SIM800 send buffer

    Hey all,
    does anybody have experience with SIM800L module and sending data? I need send 4kB every 1 hour or every request.
    Now I am able send two values every 10 seconds to MySQL and draw data with...
  17. Thread: TFT / ePaper

    by frohr
    Replies
    7
    Views
    959

    Hi Mark, thank you, it looks great. Could you...

    Hi Mark,
    thank you, it looks great. Could you help me with wiring and show me example of code?
    Thnks

    Michal
  18. Thread: TFT / ePaper

    by frohr
    Replies
    7
    Views
    959

    TFT / ePaper

    Hello,
    I want to use for my project display 7-10". Touch display is not necessary. Exist any for Teensy 4.0? Would you recommend me any?
    It will be for real time plotting charts.
    Thanks a lot!
  19. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,245

    I think Setup is OK: Serial.begin(115200);...

    I think Setup is OK:



    Serial.begin(115200);
    pinMode(readPin, INPUT);
    adc->adc0->setResolution(12); // set bits of resolution
    ...
  20. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,245

    Could you help me with it? I have no idea how to...

    Could you help me with it? I have no idea how to do it...
  21. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,245

    Teensy 4.0

    Teensy 4.0
  22. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,245

    #include #include ...

    #include <ADC.h>
    #include <ADC_util.h>

    #include "arduinoFFT.h"
    arduinoFFT FFT = arduinoFFT();

    IntervalTimer timer;
    elapsedMicros micros_0;
    float cas;
    float period;
  23. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,245

    I try this code now, but I do not know what...

    I try this code now, but I do not know what number is SUMA - I need mV or g...

    and signal is not uniform.




    void rms_mm()
    {
    suma = 0;
  24. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,245

    Measuring bearings vibrations in mm/s. Now I am...

    Measuring bearings vibrations in mm/s.
    Now I am able measure g RMS for 500-10000 Hz from time signal - confirmed with professional tools.

    But for mm/s I have to use FFT.
  25. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,245

    Could you give me axample please?

    Could you give me axample please?
  26. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,245

    I use Teensy 4 What I need: Get values in g...

    I use Teensy 4

    What I need:
    Get values in g or mV after FFT windowing
    =
    Read 16384 values (samples) from ADXL to buffer
    FFT, hanning windowing
    Calculate frequency for every bin from FFT...
  27. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,245

    Fft

    Hi all,
    I want read ADXL from analog pin, for example 16384 samples and save values to buffer. Then I want apply FFT (hanning window) and get average value. But I think I have problem because...
  28. Thread: ADXL mm/s

    by frohr
    Replies
    2
    Views
    345

    OK, I have #define BUFFER_SIZE 16384 I use...

    OK, I have

    #define BUFFER_SIZE 16384

    I use ADC

    void START_ADC ()
    {
    pole=0;
    startTimerValue = timer.begin(TIMER, period);
  29. Thread: ADXL mm/s

    by frohr
    Replies
    2
    Views
    345

    ADXL mm/s

    Hi all,
    I do not want to post my code because it is not important for now.
    I wan to use Tennsy 4.0 and ADXL1005 (eval board) to measure mm/s.
    I will read samples from pin A0 to buffer of size...
  30. Replies
    14
    Views
    1,014

    I use just 3d printed box according oled display...

    I use just 3d printed box according oled display dimensions and then hot gun glue.
  31. Replies
    14
    Views
    1,014

    Yes, pullups and SH1106. 👍

    Yes, pullups and SH1106. 👍
  32. Replies
    14
    Views
    1,014

    now it works, good job PaulS :-) 23837

    now it works, good job PaulS :-)

    23837
  33. Replies
    14
    Views
    1,014

    OK, I added 2x 4.7k - see picture - is it correct...

    OK, I added 2x 4.7k - see picture - is it correct or wrong assembly? I have the same wrong result. I tried change frequency, no change.
    23834
    Thanks
  34. Replies
    14
    Views
    1,014

    It is 0.54MOhm

    It is 0.54MOhm
  35. Replies
    14
    Views
    1,014

    Scanner shows me the same address for both...

    Scanner shows me the same address for both displays, 0x3C.

    I tried change frequency but no change.

    23830
  36. Replies
    14
    Views
    1,014

    OLED 0,96" vs. 1,3"

    Hi all,
    I have Teensy 4 and two OLED displays. 0,96" works fine but on 1,3" I can see just random points.

    My code is:



    #include <Wire.h> // SCL pin 19, SDA pin 18
    #include...
  37. Replies
    12
    Views
    1,351

    Yes, I will try. But if I connected OLED to SCL0...

    Yes, I will try. But if I connected OLED to SCL0 / SDA0 and sensor to SCL1 / SDA1 and I run Wire / Scanner I saw only OLED but not temperature sensor.
  38. Replies
    12
    Views
    1,351

    Hi, thanks. If temperature sensor MLX90614 is...

    Hi, thanks. If temperature sensor MLX90614 is connected then I have nonsense chars on display. If I disconnect it, its ok (without values from sensor of course). Any idea?




    #include...
  39. Replies
    12
    Views
    1,351

    OK, thank you, it is more clear for me now. But...

    OK, thank you, it is more clear for me now.
    But how to define address?

    I have:




    #include <Adafruit_SSD1306.h>
    #include <Adafruit_MLX90614.h>
  40. Replies
    12
    Views
    1,351

    OED display and temperature sensor on same pins?...

    OED display and temperature sensor on same pins? It is possible?
    Thanks
  41. Replies
    12
    Views
    1,351

    Infrared temperature sensor

    Hi all,
    I have Teeny 4 with OLED display connected to SCL0 and SDA0. It works fine. Now I connected infrared temperature sensor MLX90614, GY-906 on SCL1 and SDA1. But I can see value about 1037C...
  42. Replies
    0
    Views
    354

    Read ADXL1005 and show g values

    Hi all,
    I have ADXL1005 eval board and Teensy 4. I want to measure g RMS value on bearing housing. Reading will be for frequency 500-10000Hz.
    But values which I got from my code are nonsense. I am...
  43. Thread: Oled i2c

    by frohr
    Replies
    18
    Views
    2,662

    Am I right? (without pull-up) 22305 22306

    Am I right? (without pull-up)

    22305

    22306
  44. Thread: Oled i2c

    by frohr
    Replies
    18
    Views
    2,662

    This is my OLED: 22304

    This is my OLED:

    22304
  45. Thread: Oled i2c

    by frohr
    Replies
    18
    Views
    2,662

    Hey ALL, thanks a lot for you great help. Now it...

    Hey ALL,
    thanks a lot for you great help. Now it works :-)
    I use PIN 18 and 19 and I do not need pull-up resistors.
    PaulS code works great.
    Thanks a lot again and have a great evening.
    ...
  46. Thread: Oled i2c

    by frohr
    Replies
    18
    Views
    2,662

    I can see just black display. I will try use...

    I can see just black display.

    I will try use pins 18 and 19 and if there will be still problem I will post my code.
    Thanks a lot for now, I let you know evening.
  47. Thread: Oled i2c

    by frohr
    Replies
    18
    Views
    2,662

    Its this display (sorry it is in Czech language...

    Its this display (sorry it is in Czech language but datasheet and code is clear I hope)

    https://arduino-shop.cz/docs/produkty/0/114/1487765029.pdf
    ...
  48. Thread: Oled i2c

    by frohr
    Replies
    18
    Views
    2,662

    I tried this code -...

    I tried this code - https://www.pjrc.com/teensy/td_libs_SSD1306.html
    On oled display is SCK, not SCL...

    Main problem for me is:
    How define Pins - or are there any difficulties with this type of...
  49. Thread: Oled i2c

    by frohr
    Replies
    18
    Views
    2,662

    Oled i2c

    Hello,
    I have Teensy 4.0 and I want to connect oled I2C, 4-pin, VCC, GND, SCK (pin 13?), SDA (pin 18?). I use library SSD1306. But no success. Could you help me please?
    Thanks a lot.
Results 1 to 49 of 49