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

Search:

Type: Posts; User: frohr

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    9
    Views
    1,054

    VUSB is power for TP4056 and there is cutted the...

    VUSB is power for TP4056 and there is cutted the trace between VUSB and VIN. So if I connect USB to Teensy, I will power only battery charger TP4056 (VUSB and GND). And Battery powers Teensy (GND and...
  2. Replies
    9
    Views
    1,054

    I think this wiring will work - but Teensy will...

    I think this wiring will work - but Teensy will be powered only by battery, right?
    Thanks for your help!

    26373
  3. Replies
    9
    Views
    1,054

    Hi, this is ok or nonsense? Thanks. 26355

    Hi, this is ok or nonsense? Thanks.

    26355
  4. Replies
    9
    Views
    1,054

    Teensy 4.0 & battery

    Hi all,
    I have Teensy 4.0 and LiPol battery 5000mAh, 3,7V and battery charger TP4056. I want use only Teensy USB connector to programm and charge battery.
    How to do it in correct way?
    Options:...
  5. Replies
    3
    Views
    369

    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...
  6. Thread: Measure mV

    by frohr
    Replies
    3
    Views
    433

    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...
  7. Thread: TFT RA8875 fonts

    by frohr
    Replies
    4
    Views
    428

    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 =...
  8. Thread: TFT RA8875 fonts

    by frohr
    Replies
    4
    Views
    428

    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
  9. Replies
    1
    Views
    410

    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...
  10. Replies
    22
    Views
    1,877

    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...
  11. Replies
    22
    Views
    1,877

    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,...
  12. Replies
    22
    Views
    1,877

    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 -...
  13. Replies
    22
    Views
    1,877

    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...
  14. Replies
    22
    Views
    1,877

    analogRead sampling

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

    My code:



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

    by frohr
    Replies
    7
    Views
    1,045

    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
  16. Thread: TFT / ePaper

    by frohr
    Replies
    7
    Views
    1,045

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

    Hey,
    I found this connection in example:



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

    /*
    Teensy3.x
  17. Replies
    3
    Views
    603

    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),...
  18. Replies
    3
    Views
    603

    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++)
    {...
  19. Thread: TFT / ePaper

    by frohr
    Replies
    7
    Views
    1,045

    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
  20. Replies
    1
    Views
    280

    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...
  21. Thread: TFT / ePaper

    by frohr
    Replies
    7
    Views
    1,045

    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
  22. Thread: TFT / ePaper

    by frohr
    Replies
    7
    Views
    1,045

    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!
  23. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,408

    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
    ...
  24. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,408

    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...
  25. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,408

    Teensy 4.0

    Teensy 4.0
  26. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,408

    #include #include ...

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

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

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

    by frohr
    Replies
    19
    Views
    1,408

    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;
  28. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,408

    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.
  29. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,408

    Could you give me axample please?

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

    by frohr
    Replies
    19
    Views
    1,408

    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...
  31. Thread: Fft

    by frohr
    Replies
    19
    Views
    1,408

    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...
  32. Thread: ADXL mm/s

    by frohr
    Replies
    2
    Views
    405

    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);
  33. Thread: ADXL mm/s

    by frohr
    Replies
    2
    Views
    405

    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...
  34. Replies
    14
    Views
    1,116

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

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

    Yes, pullups and SH1106. 👍

    Yes, pullups and SH1106. 👍
  36. Replies
    14
    Views
    1,116

    now it works, good job PaulS :-) 23837

    now it works, good job PaulS :-)

    23837
  37. Replies
    14
    Views
    1,116

    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
  38. Replies
    14
    Views
    1,116

    It is 0.54MOhm

    It is 0.54MOhm
  39. Replies
    14
    Views
    1,116

    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
  40. Replies
    14
    Views
    1,116

    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...
  41. Replies
    12
    Views
    1,492

    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.
  42. Replies
    12
    Views
    1,492

    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...
  43. Replies
    12
    Views
    1,492

    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>
  44. Replies
    12
    Views
    1,492

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

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

    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...
  46. Replies
    0
    Views
    408

    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...
  47. Thread: Oled i2c

    by frohr
    Replies
    18
    Views
    2,950

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

    Am I right? (without pull-up)

    22305

    22306
  48. Thread: Oled i2c

    by frohr
    Replies
    18
    Views
    2,950

    This is my OLED: 22304

    This is my OLED:

    22304
  49. Thread: Oled i2c

    by frohr
    Replies
    18
    Views
    2,950

    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.
    ...
  50. Thread: Oled i2c

    by frohr
    Replies
    18
    Views
    2,950

    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.
Results 1 to 50 of 53
Page 1 of 2 1 2