Search results

  1. L

    Teensy 4.0 + W5500 ethernet module

    I modified the above said example for static IP and the serial response is, still HTTP response is not getting printed and also only once it gets connect if I keep loop running Local IP : 172.18.7.165 Subnet Mask : 255.255.0.0 Gateway IP : 172.18.90.50 DNS Server : 172.18.90.50 Ethernet...
  2. L

    Teensy 4.0 + W5500 ethernet module

    Hi all, I am using a W5500 Ethernet module interfaced with a Teensy 4.0 via SPI. My goal is to send data from the controller to a cloud database using HTTP requests. Before implementing the cloud communication, I wanted to first verify basic internet connectivity from the device. For this...
  3. L

    Interface ILI9341 based TFT display with T4.0

    I'm not able to access the webpage
  4. L

    Interface ILI9341 based TFT display with T4.0

    Hello Sir, I'm currently unable to access the updated version of the library, so I modified the .h file from the existing example provided in the ILI9341_t3_Keypad library. However, I'm facing a couple of issues: The keypad layout appears misaligned on the screen. The touch detection is...
  5. L

    Interface ILI9341 based TFT display with T4.0

    Hello Sir, I'm trying to use your number-keypad code (https://github.com/KrisKasprzak/Adafruit_ILI9341_Keypad), but during compilation of the code I'm having errors like In file included from C:\Users\SMDDC...
  6. L

    Interface ILI9341 based TFT display with T4.0

    So, got this issue sorted out. In case, in future if anyone had this issue, modify the ILI9341_t3.cpp file. look for setrotation function switch (rotation) { case 0: writedata8_last(MADCTL_MX | MADCTL_RGB); _width = ILI9341_TFTWIDTH; _height = ILI9341_TFTHEIGHT...
  7. L

    Interface ILI9341 based TFT display with T4.0

    previously it was 0x21 and now I changed to #define ILI9341_INVOFF 0x20 #define ILI9341_INVON 0xFF #define ILI9341_GAMMASET 0x26 #define ILI9341_DISPOFF 0x28 #define ILI9341_DISPON 0x29 but it is not sorted yet
  8. L

    Interface ILI9341 based TFT display with T4.0

    The issue related to colour inversion "The background color isn't displaying properly — I'm using fillScreen(RED), but the screen shows blue instead." has been sorted now with this solution, but still struggling with text inversion
  9. L

    Interface ILI9341 based TFT display with T4.0

    Any input on how to sort out this issue
  10. L

    Interface ILI9341 based TFT display with T4.0

    I already uploaded backside of the display in the top
  11. L

    Interface ILI9341 based TFT display with T4.0

    So, this is the location where all files are saved C:\Users\SMDDC2\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9341_t3\examples\graphicstest I uploaded the graphicstest.ino available in the above path, again everything is displayed in inverted
  12. L

    Interface ILI9341 based TFT display with T4.0

    I'm using examples codes from this link https://github.com/vindar/tgx which contains programs related to T4.0, I uploaded few examples and all these are appearing inverted
  13. L

    Interface ILI9341 based TFT display with T4.0

    Version: 2.3.4 Date: 2024-12-03T10:03:03.490Z CLI Version: 1.1.1 Copyright © 2025 Arduino SA Teensyduino version is 1.59.0
  14. L

    Interface ILI9341 based TFT display with T4.0

    Hello All, I'm trying to interface a 2.4" TFT SPI 240x320 display with a Teensy 4.0 microcontroller. The pin connections follow the setup described in the link below, except that the CS (Chip Select) pin is connected to pin 9, and the DC (Data/Command) pin is connected to pin 10...
  15. L

    Posting Float array to database

    I'm attempting to upload two arrays of float values to a MySQL database table using Teensy 4.0 and ESP8266. Each array consists of 512 elements with precision up to two digits. However, upon uploading the code, I encounter the following error. Could anyone provide assistance in resolving this...
  16. L

    Data posting to mysql database

    Hello All, I'm trying to send data from a Teensy 4.0 controller to a MySQL database. The board I'm using for testing is the Teensy 4.0 Expansion Board, which has an inbuilt ESP chip for data transmission over Wi-Fi. While I can successfully post data, the interval between postings is currently...
  17. L

    Max31865 and nax31855 not working

    can you explain little bit in detail
  18. L

    sending array values to mysql database using T4.0 controller

    with or without clearing arrays values, still the output is same
  19. L

    sending array values to mysql database using T4.0 controller

    this is the serial output JSON Payload...
  20. L

    sending array values to mysql database using T4.0 controller

    Hello All, I'm attempting to send two arrays, each containing 512 elements, to a MySQL database table. However, upon inspection via the serial monitor, I noticed that only 160 values are being printed for both the 'xarray' and 'yarray'. I'm sending this array data as JSON to the MySQL database...
  21. L

    digital input

    I think I should tell you about the LED i'm using in the PCB, The LED is https://www.digikey.in/en/products/detail/kingbright/WP934CA-2GD-90/3084288 , I'm thinking the 10k pull up will significantly reduce the current flow into the and this makes LED to glow dim even though it is ON.. Am I correct?
  22. L

    digital input

    can you share a simple circuit with above suggestion and diode part number
  23. L

    Max31865 and nax31855 not working

    I'm attaching the single channel MAX31865 schematic, I'm using the schematic of Adafruit's MAX31865, the pull up resistor value is 10k and diode is 1n4148. I'm using this type of 7 boards along with teensy 3.2 for almost 2 years which is not having any problem and till date it is working properly
  24. L

    Max31865 and nax31855 not working

    Attaching the schematic, I'm using the example code #include <Adafruit_MAX31865.h> Adafruit_MAX31865 max =Adafruit_MAX31865(2); // The value of the Rref resistor. Use 430.0 for PT100 and 4300.0 for PT1000 #define RREF 430.0 // The 'nominal' 0-degrees-C resistance of the sensor // 100.0...
  25. L

    Max31865 and nax31855 not working

    I have designed a PCB which has following functionalities 4 channel PT100 RTD Temperature sensor reading (MAX31865 based) 4 channel Thermocouple reading (MAX31855 based ) W5500 SPI Ethernet module for internet connectivity, all these modules are connected to teensy 4.0 through SPI interface...
  26. L

    digital input

    This is how, field implementation shall be, both capacitive and inductive proximity sensor will be connected, both can be of 24V output type or one can be 24V and other can be 5V output type, so I have to make circuit which can accept both type of sensors as well as both type of sensor voltage...
  27. L

    digital input

    That is for sensor, My aim is to connect different sensors with relatively wide range of signal voltages (5V-24V) Therefore, the optocoupler should turn on at sensor Voltages of 5V too. The maximum sensor Voltage is 24V. The input resistor value shall be such that the optocoupler has to be...
  28. L

    digital input

    Please let me know whether the attached image shall make LED to glow when Logic HIGH is detected So, the PCB I designed shall be capable of accepting 5V,12V and 24V sensors, as per above calculation if Vin is 5V, then the current into optocoupler will be 0.765mA, so in this condition , the LED...
  29. L

    digital input

    The sensor is PNP NO-open collector type
  30. L

    digital input

    this is the sensor I'm using (https://robu.in/product/autonics-cr18-8dp-dc1030-8mm-m18-capacitive-proximity-sensor-pnp-no-shielded/) So I made a pcb which accepts digital inputs (can connect proximity sensors), the attached schematic belongs to the pcb circuit, the capacitive sensor will be...
  31. L

    Teensy 4.0 Board Unresponsive After USB Disconnection

    Thanks paul, you killed it...., its working now. this was the error
  32. L

    digital input

    sorry my mistake. attached now
  33. L

    Teensy 4.0 Board Unresponsive After USB Disconnection

    I'm encountering unexpected behaviour with a Teensy 4.0 board. Currently, I'm utilizing it as the main controller on a custom PCB, integrating features such as analog voltage input, digital input and output, MAX31865 & MAX31855 interfaces, I2C interface, Serial2, and Serial1 interfaces. The PCB...
  34. L

    digital input

    Hello All, I'm attempting to monitor the status of a Capacitive Proximity sensor via one of the Teensy 4.0 Digital Inputs. To ensure isolation between the input and the controller side, I've employed an opto coupler. I've attached the schematic I've been utilizing. Despite this setup, the LED...
  35. L

    MODBUS TCP

    this is my qmodmaster output I have applied 3.3V to AI3+ and AI3- input terminal
  36. L

    MODBUS TCP

    Hi Paul, Thanks for the information. I was not aware of this. The PT100 sensor is connected to this transmitter https://www.twinschip.com/RTD_PT100_Temperature_Sensor_Transmitter_Module_0-400C_4-20mA The output of this transmitter is connected to one of the analog input of the device
  37. L

    MODBUS TCP

    https://www.industrybuying.com/temperature-and-humidity-sensors-ace-instruments-IND.TEM.44392345/
  38. L

    MODBUS TCP

    I sorted the issue with analog output. I was providing incorrect values, which resulted in improper output voltage measurements. However, I've encountered another problem with reading analog input. I have a PT100 temperature transmitter that outputs 4-20mA. I've connected it as an input to one...
  39. L

    MODBUS TCP

    Yes, Please refer the post #26, I attached device settings I have set the output type to be voltage, so I tried measuring voltage across AO0+ and AO0-
  40. L

    MODBUS TCP

    Hi Paul, Thanks for your reply. I implemented your suggestion, but now the code is unable to write into holding register. code I used: #include <SPI.h> #include <Ethernet.h> #include <ArduinoRS485.h> #include <ArduinoModbus.h> byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED}; IPAddress...
  41. L

    MODBUS TCP

    Hello again, I'm encountering an issue with another device from the same series. This particular device features analog input and output, each with four channels. The analog output is of the Read/Write type, operating with a function code of 03. It's designed to output either voltage (ranging...
  42. L

    FFT not working properly

    I hope now this code is computing mean, subtracting mean from each data value , please let me know is this correct or not #include <SPI.h> #include <arduinoFFT.h> #define CS_PIN 14 #define DRDY_PIN 15 #define RST_PIN 16 #define SPISPEED 2500000 #define SAMPLING_FREQUENCY...
  43. L

    FFT not working properly

    So these data points collected from Arduino and saved in excel. The arduino seems to remove offset meanwhile I used other software to check on what's really going wrong in FFT part. time domain and frequency domain graphs, and FFT detects my first peak properly. So I reconstructed the signal...
  44. L

    FFT not working properly

    actually i just want to collect 30k samples , remove dc offset (if any) and plot fft for the same..
  45. L

    FFT not working properly

    Sry for the late reply, held up with some work. So I used this code to read 30000 samples and saved those samples and plotted the signal and my serial output prints like this #include <SPI.h> #include <arduinoFFT.h> // PIN assignements #define CS_PIN 14 #define DRDY_PIN 15 #define RST_PIN...
  46. L

    FFT not working properly

    the signal plot is the adc reading which i got from loop section. I saved 30000samples and plotted the samples in excel but 1024 samples belongs to FFT section, where it performs 1024 point FFT, which is how I understood related to peaks the x axis are frequency values and y axis are vReal...
  47. L

    FFT not working properly

    so updated with your suggestion and changed little bit program but still no success #include <SPI.h> #include <arduinoFFT.h> // PIN assignments #define CS_PIN 14 #define DRDY_PIN 15 #define RST_PIN 16 // SPI #define SPISPEED 2500000 #define SAMPLES 1024 #define SAMPLING_FREQUENCY 1000...
  48. L

    FFT not working properly

    as of now the frequency of interest to be determined by the code is 159.2 Hz, I hope sampling the signal at 1000Hz is reasonable, further on my signal ac level is 40mV without offset attaching the signal plot(5000 samples), readings saved from arduino
  49. L

    FFT not working properly

    can anyone please check on reply #16 and provide insight of the code
  50. L

    FFT not working properly

    Now, I have one more program which detects my input signal frequency properly, but there are few differences as compared to previously used program and to this #include <SPI.h> #include <arduinoFFT.h> #define cs 14 // chip select #define rdy 15 // data ready, input #define rst 16 // may omit...
Back
Top