Search results

  1. A

    2 phase Square Wave Inverter

    I'll probably use something like a UC3525A or something similar to what you mentioned if I can't get a good solution from the Teensy itself as all the circuitry is already manufactured. Using a good driver ic already for each individual IGBT with protection built in, HCPL 316J.
  2. A

    2 phase Square Wave Inverter

    I am using a Teensy 4.1 to make a power supply that has a DC Bus that then goes to a 2 phase Square Wave AC Inverter that uses 4 IGBTs. Already using a FlexPWM instance (Teensy_PWM library) for the single IGBT for the DC Bus but require help for the Inverter stage. Require two individual...
  3. A

    Teensy 4.1 ADC Issue

    Thanks for the input! I'm working on putting a buffer on the circuit that connects to the analog input. Regarding the analog reading, if I put a dummy read for every time I require an analog read it will take significantly more time and will block the Teensy from doing other processing for the...
  4. A

    Teensy 4.1 ADC Issue

    Hi, Am currently working on a project that requires me to read the Analog Inputs A0, A1, A2 and A3 at a 20kHz update/refresh speed. There is a current transformer connected to two of the inputs A0 and A2 and there will be a potentiometer and another sensor input on A1 and A3. The project isnt...
  5. A

    Interrupts interfering with PWM Generation

    Hi MarkT, This does make more sense. I will have the PID calculations and PWM duty cycle updating in the same loop at 20 or 30kHz. I was previously switching the output for the PWM high/low manually through code and just found out that I can use the Teensy_PWM library for generating the PWM...
  6. A

    Interrupts interfering with PWM Generation

    Hi, I am using a Teensy 4.1 for a project that requires a PI loop which decides the duty cycle of one PWM output. The PI loop has to be run at 25kHz while the frequency of the PWM output it controls will be at 10kHz. There will be another PWM output which is at a constant duty cycle at 250Hz I...
  7. A

    PID Library for Teensy 4.1

    Worked like a charm! Thank you for the help :)
  8. A

    PID Library for Teensy 4.1

    Hi, I am working on a project that requires two high speed PID loops for generating PWM waveforms that control current and voltage of downstream equipment. The PWM waveforms are generated via IntervalTimer interrupts and there is no issue there. The duty cycle of the PWM requires a finer...
  9. A

    Modbus RS-485 with Teensy 4.0

    Hi, I need to use a teensy 4.0 as a Modbus Server(Slave) to send and receive integer and bit values to a touchscreen HMI or a PLC for process diagnostics and control. I am using the ArduinoModbus library and wanted tried using the code mentioned in the following page by @PaulStoffregen ...
  10. A

    How to clear an external interrupt's status flag in Teensyduino for Teensy 3.2

    How different would this be to do on the Teensy 4.1? Im currently doing an application where I connect 8 sensors to the teensy and there is an ISR for each of them. However, the operator can choose which of the sensors are used or not used on a certain job. Im using a row of DIP switches on 8...
  11. A

    Help for a beginner

    Hi, I have just made the switch from an Arduino Uno to a Teensy 4.1. However, I am finding it hard to get resources for the Teensy 4.1 like: 1. How many hardware timers are on the i.MX RT1062 chip (the 328p had Timer0, Timer1 and Timer2). 2. Which of these timers are used for the default...
Back
Top