Search results

  1. P

    Modbus RTU

    Hi all, There are a lot of RS485 modbus programs but the code below works out of the box and is fully tested on a T4.0, T4.1 and ESP32C3 for the ESP32C3 you need only change the Serial5 to Serial0. Look at the SensorModbusMaster for the modbus registers. Used modbus converter is a Grove RS485...
  2. P

    I2C and AD7991 and Teensy4

    F This must be added in WireIMXRT.cpp to get the I2C clock on 2 MHz } else if (frequency < 1000000) { // 400 kHz port->MCCR0 = LPI2C_MCCR0_CLKHI(26) | LPI2C_MCCR0_CLKLO(28) | LPI2C_MCCR0_DATAVD(12) | LPI2C_MCCR0_SETHOLD(18); port->MCFGR1 = LPI2C_MCFGR1_PRESCALE(0)...
  3. P

    I2C and AD7991 and Teensy4

    Hi Dave, This is what I used for my power and SWR meter and changed it a bit for you..... Hope it is usefull. Best, Johan #include<Wire.h> #define AD7991REF 2.60 int8_t ad7991_addr = 0; // Address of AD7991 I2C connected A/D, 0 if none detected #define AD7991_0 0x28...
  4. P

    ADC with sampling rate of 4Msps with Teensy

    Hi group, If you need ever a high speed ADC I have tested the LTC2315-12 on a Teensy 4.1. // We use SPI MISO = 12, SCK = 13 CS= 10 // Tested on Teensy 4.1 measured with scope SPI clock at 5MHz #include <SPI.h> #define CS 10 static uint8_t LTC2315_shift = 1; float LTC2315_vref = 3.315; float...
  5. P

    Differences between Teensy duino 1.57.2 and 1.58.2

    Hi Michael, That explains a lot now it's clear thanks again for the clear explanation. Best regards, Johan
  6. P

    Differences between Teensy duino 1.57.2 and 1.58.2

    This is my result! Used a Teensy 4.0 and RA8875 touchscreen TFT with GSL1680 controller. This I will use as a automatic antenna tuner with three servo's for my 700 Watts RF FL2100Z amplifier. Best, Johan
  7. P

    Differences between Teensy duino 1.57.2 and 1.58.2

    Not true, I understand you correctly. const char* is not needed I use a char* Paul has pointed me in the good direction to use here a NULL instead of '\0' the point is that the lines of code can be converted directly into one line. I mean this void scale(double s, char *range = NULL )...
  8. P

    Differences between Teensy duino 1.57.2 and 1.58.2

    Compiler in Teensyduino V1.58 Dear Paul, others, Compiling was ok but a real test not, Paul stated many times poorly code however this code (more than 10000 lines) was written 2017 and the compiler never noticed any problem than we can also say a short coming of the Teensyduino compiler in...
  9. P

    Differences between Teensy duino 1.57.2 and 1.58.2

    Thanks all, I changed all char to const char now I can compile with 1.58.1. Best, Johan
  10. P

    Differences between Teensy duino 1.57.2 and 1.58.2

    Those errors I not get in version 1.57.2 In file included from /home/holstein/Desktop/FL2100Z_PWRV1.0/PSWRtft.cpp:28: /home/holstein/Desktop/FL2100Z_PWRV1.0/PSWRtft.h: In member function 'void PowerMeter::scale(double)': /home/holstein/Desktop/FL2100Z_PWRV1.0/PSWRtft.h:84:37: warning: invalid...
  11. P

    Differences between Teensy duino 1.57.2 and 1.58.2

    Hi, My project compiles perfect with version 1.57.2 but get a lot of errors with version 1.58.1 is here a solution or must I stick on version 1.57.2. Best regards, Johan
  12. P

    LOAD Wifi manger ESP32 direct from Teensy4

    The code below works as passthrough to load the ESP32 via a Teensy 4.0 perhaps some people can help for my question. #define EN 22 // EN ESP32 to pin 22 of T4.x #define IO0 2 // IO0 ESP32 to pin 2 of T4.x char s_dtr = 1, s_rts = 1; char old_s_dtr = 1, old_s_rts = 1; void setup() {...
  13. P

    LOAD Wifi manger ESP32 direct from Teensy4

    Hi all, This is the situation, on my Power meter build with Teensy4, I installed also a ESP32 to get wireless all data the ESP32 and Teensy4 works perfectly and I can load the firmware for the ESP32 via pass trough to the ESP32. The idea is to put the Wifimanger code directly into the Teensy...
  14. P

    Noise in morse signal

    I used. Low pass filer. Best, Johan
  15. P

    Noise in morse signal

    Hi Bob, I did some filtering listen to the results.... https://mega.nz/file/KnA1FaLa#-1FnML0Iw-2Uv3pg1dJ-Pyfsx5Lw2G6Nn2pMCvIQDjI Thanks for your suggestion! Best, Johan
  16. P

    Noise in morse signal

    Hi all, My project for the new binary CW decoder is nearly finished however I like to add a noise filter. Used here a Teensy 4.1 so is there away to remove the noise from my signal listen to https://mega.nz/file/DvxiXKjT#rUPTJDSJTuE_Oo2ZdtbeIPJW5w76MjdsLR9qWUyUwQU The tone is approx 350 Hz...
  17. P

    Teensy 4.0 hardware timers for PWM and pins

    The question is how can change this SIM_SCGC6 |= SIM_SCGC6_PIT; // CONFIGURE TIMERS SIM_SCGC6 |= SIM_SCGC6_FTM0; for a Teensy 4.0 I looked already to link timing but I have no clue.... Best regards, Johan
  18. P

    Teensy 4.0 hardware timers for PWM and pins

    Dear all, The code is used with a Teensy 3.2 but I like to use a Teensy 4.0 I think a Teensy 4.0 has different timers? Please help ..... Best regards, Johan #ifdef ___TEENSY #define BOARD_LED_PIN 13 pinMode(BOARD_LED_PIN, OUTPUT); pinMode(OLED_MOSI, OUTPUT)...
  19. P

    analogWriteFrequency adjust in loop

    Dear all, For my project I need to change the analogWriteFrequency for PWM in the main loop and not in the Setup, is there any possibility to do this? Frequency goes from 180 Hz till 280 Hz. analogWriteFrequency(5, 180); analogWrite(5, 128); Best regards, Johan
  20. P

    Missing pixels when using drawLine RA8875 tft display

    Hi group, My meter use two needles and for that I use drawLine... is there a better solution for that so that it looks like a real needle? Best, Johan tft.drawLine(pos[0], pos[1], x_n, y_n, RED); tft.drawLine(pos[0]+1, pos[1]+ 1, x_n + 1, y_n + 1, RED);
  21. P

    ILI9341 fonts RA8875 display

    Problem solved.
  22. P

    ILI9341 fonts RA8875 display

    Hi group, I need the degrees symbol for LiberationMono_20 font, I use a T4 with an RA8875 display and the ILI9341_fonts-master library. Is there any possibility to add this degree symbol... perhaps remove the ~ symbol and replace it for the degree symbol ? Who can help me with this, Best...
  23. P

    RA8875 from Buydisplay

    The cabinets not spray coated but standard anodized aluminum, https://sites.google.com/view/pd0lew/projects/cnc A nice project deserve a decent cabinet!
  24. P

    RA8875 from Buydisplay

    I use a CNC machine for all my cabinets please look here https://sites.google.com/view/pd0lew/projects/power-and-swr-meter Best, Johan
  25. P

    RA8875 from Buydisplay

    Hi, virtual screens are not that easy but needed for fast writing on the screen, also needed for refresh a value without flickering. If you need more information about that please send me a private mail at holsteinjg@gmail.com Because this is a big example made for a GSL1680 and FT5206 RA8875...
  26. P

    RA8875 from Buydisplay

    Use awesome fonts and use virtual screens the RA8875 display is in this way very fast with a Teensy 4. Look herehttps://www.youtube.com/watch?v=X34qxH-2JwA Best, Johan
  27. P

    I2C maximum speed

    Hi Paul, Is there any change that the I2C bus will run on high speed at 3.4 MHz soon, for my projects it would be very nice to have! Thanks and best regards, Johan
  28. P

    ra8875/GSL1680 .teensy 4.0 ..touch panel functional but an issue

    Two screens, a 5" with GSL1680 controller and a 7" with FT5206 controller both displays are awesome. Johan
  29. P

    ra8875/GSL1680 .teensy 4.0 ..touch panel functional but an issue

    Keith, please confirm if you have a E257834 display, because there are also 480x272 displays from Buydisplay. The font library is ILI9341_fonts-master and have the font Awesome. Best, Johan
  30. P

    ra8875/GSL1680 .teensy 4.0 ..touch panel functional but an issue

    Hi Keith, do you have a 800x480 display? please look at the backside if it shows E257834 than you are good! Best, Johan
  31. P

    teensy 4.1 + OLED 4x20 NHD-0420CW-AY3

    Problem solved for this display on a Teensy4, works perfect. I made a mistake to let the display run on 5V instead of 3.3V. Best, Johan
  32. P

    teensy 4.1 + OLED 4x20 NHD-0420CW-AY3

    Dear group, My NHD-0420CW-Axx works perfect with a Teensy 3.2, now I changed it for a Teensy4.0 and the display is not working. Are the Teensy's not compatible. The NHD is a SPI device and connected to 13= SCK, MOSI=11 and CS=10. As mentioned the 3.2 has no problems can any help? I suspect that...
  33. P

    ra8875/GSL1680 .teensy 4.0 ..touch panel functional but an issue

    The RA8875 5" with GSL1680 controller is quite simple, build many projects with this RA8875 display. Best regards, Johan #include <SPI.h> #include <RA8875.h> #include <GSL1680.h> #define TC_INT 8 // install : ILI9341_fonts-master #include "font_LiberationMono.h" #include...
  34. P

    RA8875 from Buydisplay

    Hereby the test sketch, know that the latest ILI9341_fonts-master must be installed. // test sketch for LolinD32 (ESP32) // Johan Holstein @2021 #include <SPI.h> #include <RA8875.h> #define RA8875_CS 5 int i; RA8875 tft = RA8875(RA8875_CS); #include "font_DroidSansMono.h" #include...
  35. P

    RA8875 from Buydisplay

    Dear group, The RA8875 can now be used also for the LolinD32(ESP32) and ESP8266 works out of the box it's not a Teensy but people must know. Works with the ILI9341 fonts as well I tried to upload the library but I get errors perhaps the file is to big. If there is a way to upload the...
  36. P

    second spi channel ?? teensy 4.1

    Hi Kurt, Wire and Wire2 works but Wire1 is failing...... I removed the Teensy from the board and connected directly with wires.... no differences.
  37. P

    second spi channel ?? teensy 4.1

    This was the error from Wire1.... 13:24:18.417 -> Scanning(Wire1)... 13:24:18.450 -> Unknown error at address 0x01MCR:1 MSR:2002001, MIER:0 MDER:0 MCFGR0:0 MDMR:0 MCCR0:1928373b 13:24:18.450 -> Unknown error at address 0x02MCR:1 MSR:2002001, MIER:0 MDER:0 MCFGR0:0 MDMR:0 MCCR0:1928373b...
  38. P

    second spi channel ?? teensy 4.1

    Hi Kurt, group, Tested the T4.1 with the scanner and Wire is ok, Wire1 not found, Wire2 is ok it seems that the T4.1 has a defect. I will order a new one. Thanks for helping! Best regards, Johan
  39. P

    second spi channel ?? teensy 4.1

    Hi group, The Teensy 4.1 second I2C SDA1/SCL1 bus is definitely not working , I connected several devices but nothing, however all the devices working on the first SDA0/SCL0. Did anyone used the second I2C bus on a Teensy 4.1, on a Teensy 4.0 both are working perfectly. [CODE #include...
  40. P

    second spi channel ?? teensy 4.1

    Hi Kurt, Thanks for that! I have the same problem for a display with I2C bus on a Teensy 4.1, while on SCL0 and SDA0 this works out of the box with the scanner and the device is found. On SCL1 and SDA1 no device found. // -------------------------------------- // i2c_scanner //...
  41. P

    second spi channel ?? teensy 4.1

    Hi Kurt, group, Made the changes in the both files and YES now it works. Thanks a lot for helping this was really a quick solution! Best, Johan // This example demonstrates continuous conversion mode using the #include <Adafruit_MAX31856.h> Adafruit_MAX31856 maxthermo = Adafruit_MAX31856(5...
  42. P

    second spi channel ?? teensy 4.1

    Hi all, I used here a Teensy 4.1 with a MAX31856 connected to SPI1 bus used MOSI1 pin 26, SCK1 pin 27, MISO1 pin 1 and CS1 pin 0. Also I did this as suggested by Kurt > Adafruit_MAX31855(0, &SPI1) and changed it to Adafruit_MAX31856(0, &SPI1) The error is "no matching function for call...
  43. P

    second spi channel ?? teensy 4.1

    Hi group, I noticed that the MAX31856 is not working on the SPI1 bus used MOSI1 pin 26, SCK1 pin 27, MISO1 pin 1 and CS1 pin 0, I need this pins because my RA8875 display is on SPI0. Is there a explanation why this will not work? Best regards, Johan
  44. P

    RA8875 from Buydisplay

    Dear members, I have a problem with the awesome fonts, the #include "font_AwesomeF100.h" works perfect however when print some text then still the awesome fonts are actual. See attachment. Used T4 and RA8875 display. Best regards, Johan #include <SPI.h> #include <RA8875.h> #define...
  45. P

    Curved text on RA8875 display

    To complex for me :o Thanks anyway. Johan
  46. P

    Curved text on RA8875 display

    Hi Jurt, Thanks for the repley! I turn every char in the Liberation_mono.ttf and convert it to .c but this is very time consuming. I think there must be a easier way perhaps on pixel level to turn every character on the right angle, to get a nice curved word ... Perhaps someone has a smart...
  47. P

    Curved text on RA8875 display

    This is what I mean for curved text.
  48. P

    Curved text on RA8875 display

    Hi all, For my newest power meter I like to print curved text on the display, so I like print the text in a curved position on my RA8875 display. I can change a liberation_mono.ttf say the character F in every angle adjusted with fontforge, to get the full word FORWARD curved is a lot of work...
  49. P

    Serial port on Teensy4.1

    Hi all, There where two issues at my place first the level shifter was wrong and second I reversed TX and RX. Everything is working fine now. I feel a bit dumm and sorry for bothering the group! Thanks for helping! Best regards, Johan
  50. P

    Serial port on Teensy4.1

    Hi all, In my previous project with a Teensy 3.6 I used Serial port 4 at 2400 baud (Serial.begin(2400); Now I rewrite my program for a Teensy 4.1 and used Serial port 7, Serial7.begin(2400); This is not working ... what can be the problem? Please help this is the only thing in my project what...
Back
Top