Search results

  1. P

    PID Library for Teensy 4.1

    i know the LED is ok and A9 is OK. what should I expect with the output? #include <PID_v2.h> int led = 13; #define PIN_INPUT A9 #define PIN_OUTPUT 0 // Specify the links and initial tuning parameters double Kp = 0, Ki = 0, Kd = 0; PID_v2 myPID(Kp, Ki, Kd, PID::Direct); void setup() {...
  2. P

    PID Library for Teensy 4.1

    I have an error in my code, so i will make a standalone with a pot input with the temperature range and output to the Monitor of the PWM driver, I need to have it initialize to the PWM output of 45.5% with the temperature pot set to +5.
  3. P

    PID Library for Teensy 4.1

    yes I had an integrator only, so I am now putting this code in. your timing is perfect. before setup: #include <PID_v2.h>//https://forum.pjrc.com/index.php?threads/pid-library-for-teensy-4-1.71153/ double Kp = 2.1, Ki = 20.5, Kd = 0; // not set yet PID_v2 myPID(Kp, Ki, Kd...
  4. P

    PID Library for Teensy 4.1

    I would like to use you Lib to implement a PID. I have a 500W Single Can Thermal Electric Soda Cooler. I have a PWM on the Teency 4.1 and I read the temperature of the water. the red is the temperature of the diver, black is the temperature of the soda (purple is the PWM value) input is...
  5. P

    ILI9488_T3 Display load flicker

    works great! thanks
  6. P

    ILI9488_T3 Display load flicker

    I am graphing 4 lines of data with 6 horizontal limit lines. I will be adding text later. the write cycle is slow. any way to do a one time write? it also has a heave flicker. #include <Adafruit_GFX.h> int randNumber; #include <SPI.h> #include <ILI9488_t3.h> #define TFT_RST 23 #define...
  7. P

    code explanation on a: http: 3.5inch_SPI_Module_ILI9488

    my 4.1 is on a task, I am using a 3.6 to get the display formatted then will put the code on the 4.1 next week
  8. P

    code explanation on a: http: 3.5inch_SPI_Module_ILI9488

    so this would be the correct setup?: //http://www.lcdwiki.com/3.5inch_SPI_Module_ILI9488_SKU:MSP3520#top============================================================================= //display ILI9488 9488_colortest=============================================================================...
  9. P

    code explanation on a: http: 3.5inch_SPI_Module_ILI9488

    //could someone please explain this section of code: I //http://www.lcdwiki.com/3.5inch_SPI_Module_ILI9488_SKU:MSP3520#top============================================================================= // do i comment out one area for a teensy 4.1 and a different for 3.6? // I will start coding...
  10. P

    Teensyduino H-Bridge PWM

    I had an old version. the sketch runs now. what I want is 3 PWMs phase shifted 60 degrees. Each PWM is drawing 6 AMPs I am running a high current PWM pulses to one 25 Amp PS and i want to reduce the ON current surge. if the ON time PW is 30% then the current will be a continuous 18Amps if the...
  11. P

    multiplying a complex number

    part of a larger project is (A+Bi)x (C+Di)=(E+Fi). In LabView I just use the DataType so How do this in a Teency 4.1?
  12. P

    eFlexPwm Simple Example, offset help

    I have 3 PWM Power controllers and I need to offset the PWN Start times by 30 from each other. any ideas? /* eFlexPwm Simple Example This example generates 3 pairs of PWM signals on a Teensy 4.1 board Each signal pair corresponds to the PWMA output and the PWMB (A's complement) output...
  13. P

    Teensyduino H-Bridge PWM

    no outputs, I DL from GH an old version. I would like to change the active output pins from 33,9,37 to 33, 36, 37 but is also will not run if i do that.
  14. P

    Teensyduino H-Bridge PWM

    I get a Teency 4.1 error and it wont run; eFlexPwm Simple Example WARNING: library eFlexPwm claims to run on teensy architecture(s) and may be incompatible with your current board which runs on avr architecture(s). Sketch uses 23328 bytes (0%) of program storage space. Maximum is 8126464...
  15. P

    PWM Phase control

    the first run on the overhauled driver with no soda got to -20c in 3.5 minutes :)
  16. P

    PWM Phase control

    the old way was to run the Peltier's at max cooling and then turn the power down so it was at 1c steady state were it would take time freeze the soda solid again 😂 soon I will be able to analyze the new cooling profile and have an analog PI(D?) feed back. I figured out the shape of the air...
  17. P

    PWM Phase control

    I use a 0.3% 100ohm at 0C temperature sensorMAX31865 and digikey 1759-1020-nd I 3D printed a rotation/compression ring to squeeze the sensors onto the side of the can for direct measurements this is a 2.8mm sensor. I bring it down to -10c for five minutes and regulate it a +1.5c until the can...
  18. P

    PWM Phase control

    next is to create a PID and use the eFlexPWM as the throttle to set the temperature of five Peltier 1206s to almost freeze a can in my 500W soda cooler. (-10c in 4.5 minutes)
  19. P

    PWM Phase control

    WOW! this is exactly what I was looking for. Thanks.
  20. P

    PWM Phase control

    I will be controlling 5 FETS , 6 amps each on 2 25Amp PS so for the discusion here, I will focus on the 3 controllers here. wow I think it would be easer to use 555 timers to make an offset to a PWM 🤣
  21. P

    PWM Phase control

    how do I set the PWM outputs to a 30% offset and be able to set the %On Time different values?
  22. P

    5 Peltier drive Single Can Thermal Electric Soda Cooler (SCTESC) controlled with a TC4.1 PID

    the Engineers I am working with said a 12V 30KHz PWM is a good way to go. I was working on a 5 channel 29V Half Bridge Current Mode Buck, and changed to 12V PWM.
  23. P

    5 Peltier drive Single Can Thermal Electric Soda Cooler (SCTESC) controlled with a TC4.1 PID

    each Peltier draws 6 amps and I need to go from a 90% PWM to 5%. 3 Peltier's will draw from on 15V PS and i do not want the PDMs from the Teency to be in phase. I would like a 30% phase shift to distribute the current draw. for example if the PDMs are at 30% then the PS would be 6 Amp conscious...
Back
Top