Search results

  1. 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...
  2. 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...
  3. 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...
  4. L

    Max31865 and nax31855 not working

    can you explain little bit in detail
  5. L

    sending array values to mysql database using T4.0 controller

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

    sending array values to mysql database using T4.0 controller

    this is the serial output JSON Payload...
  7. 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...
  8. 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?
  9. L

    digital input

    can you share a simple circuit with above suggestion and diode part number
  10. 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
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. L

    digital input

    The sensor is PNP NO-open collector type
  17. 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...
  18. L

    Teensy 4.0 Board Unresponsive After USB Disconnection

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

    digital input

    sorry my mistake. attached now
  20. 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...
  21. 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...
  22. L

    MODBUS TCP

    this is my qmodmaster output I have applied 3.3V to AI3+ and AI3- input terminal
  23. 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
  24. L

    MODBUS TCP

    https://www.industrybuying.com/temperature-and-humidity-sensors-ace-instruments-IND.TEM.44392345/
  25. 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...
  26. 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-
  27. 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...
  28. 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...
  29. 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...
  30. 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...
  31. L

    FFT not working properly

    actually i just want to collect 30k samples , remove dc offset (if any) and plot fft for the same..
  32. 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...
  33. 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...
  34. 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...
  35. 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
  36. L

    FFT not working properly

    can anyone please check on reply #16 and provide insight of the code
  37. 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...
  38. L

    FFT not working properly

    So I tried implementing your suggestion and modified the code, but still my FFT is not correct #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...
  39. L

    FFT not working properly

    code i uploaded to teensy #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 arduinoFFT FFT = arduinoFFT(); #define BUFFER_SIZE...
  40. L

    FFT not working properly

    So thanks for the update, still program is not able to find the peak frequency and observed weird behaviour is that, my serial port keeps toggling, connecting and disconnecting, any idea why it is happening
  41. L

    FFT not working properly

    saved arduino time domain samples in excel and plotted this signal for 30k samples but x axis is not time value it only points closer look of signal with 1500 samples
  42. L

    FFT not working properly

    attaching the code with offset removal, but still the program not detecting peak frequency, not sure whether the method i'm using for DC removal is good, it seems to ok when I plot time domain signals. #include <SPI.h> #include <arduinoFFT.h> // PIN assignments #define CS_PIN 14 #define...
  43. L

    FFT not working properly

    Thanks for pointing out my silly mistake. now the code outputs ADS1256 test program Peak frequency is: 17.68 Cycle completed Peak frequency is: 7.89 Cycle completed Peak frequency is: 3.97 Cycle completed Peak frequency is: 15.96 Cycle completed Peak frequency is: 7.94 Cycle completed...
  44. L

    FFT not working properly

    Hello All, I'm reading data from 24 bit ADC with 30kSps, and trying to remove offset and plot FFT. I'm attaching the code I have been testing with. But the serial monitor is not printing the peak frequency value. Also I want to remove DC offset in the signal, but I dont know how to do it. can...
  45. L

    Teensy 4.0 + ADS1220

    Hi Paul, I modified the code, Now I'm able to detect the peak frequency, but the detected frequency is almost 2Hz more, for eg, if input frequency is 100 Hz, then detected is 102 Hz, it follows for all values. I hope the samples collected for FFT operation is not proper. can you help me to...
  46. L

    Teensy 4.0 + ADS1220

    any idea how can I change the sampling rate to 2000samples/sec
  47. L

    Teensy 4.0 + ADS1220

    As you can see in the serial plotter , the signal reconstruction is not that correct. How can I properly reconstruct the signal.
  48. L

    Teensy 4.0 + ADS1220

    So, attaching the code without FFT , and screenshot serial plotter. Input is Sinusoidal signal with 1.0 Vpp and DC offset 0.5V and 60Hz frequency #include "Protocentral_ADS1220.h" #include <SPI.h> #define PGA 1 // Programmable Gain = 1 #define VREF 2.048...
  49. L

    Teensy 4.0 + ADS1220

    Hi all, Back again with ADC related question. I have Teensy 4.0 and ADS1220 ADC. I have an ADXL356 based Accelerometer sensor which captures vibration and its output is mapped to ADS1220. I need to continuously read 2k samples from ADC, calculate vibration in terms of Acceleration (either g or...
  50. L

    MODBUS TCP

    hi paul, As suggested by you, this line made my job easier. Thanks a lot for you. Without your help my job would not have been done. Now I'm able to read discrete input function status, also can read and write coil status. A big thanks for you.
Back
Top