Home Forums Software How To Send pwm Wave?

Tagged: ,

Viewing 5 reply threads
  • Author
    Posts
    • mahoemahoe
      Participant
      Post count: 6

      I tried to send PWM waves myself, but they were unsuccessful. Below I will send you my page related to the debugging process, I hope you or your company’s engineers can help me solve this problem.
      I can’t send photos under this theme.
      Could you ask your engineer to configure a program that can generate square waves, we really can’t configure it here.
      Greatly appreciated!

    • mahoemahoe
      Participant
      Post count: 6

      I can’t send my own photos and programs under this theme. I have tried using the DIO program you sent, but I don’t know if I have a problem with the module settings for sending PWM waves. So I hope you can contact me and send me a program that can generate PWM wave.

    • ConnorConnor
      Keymaster
      Post count: 20

      We have added an option for uploading, please upload photos as needed.

      If you are trying to create a square wave, it may be easier to use regular digital out.

      When you ran the unmodified DIO program, was the wire harness setup the same as in the DIO tutorial? Did the diagnostic buzzer act as expected based on the tutorial?

      • mahoemahoe
        Participant
        Post count: 6

        Sir,i really need your help!

    • mahoemahoe
      Participant
      Post count: 6

      Sir, I tried to upload photos using the upload options you added, but it didn’t work. So I want you to try uploading photos and see if it works.
      I’m sorry sir, but I don’t quite understand how to use digital outputs. Because I want to emit PWM waves to control the rotation of the motor.
      When running the unmodified DIO program, the harness setup is the same as in the DIO tutorial, because it is relatively simple to wiring, so there will be no problem. However, the diagnostic buzzer is not working as expected. Since I had already checked the hardware connection before, I wondered if there was something wrong with your program.
      All in all, I hope you can send me a PWM wave that can be sent normally, whether it is DIO or a motor control program. I would be very grateful if I could.

    • ConnorConnor
      Keymaster
      Post count: 20

      For motor control, you can use the PWM output block (FTM PWM Config) to control the effective voltage level going through the motor. The duty cycle inputs (0.0-1.0) indicates what percentage of the time the output is activated. If you only need one speed for the motor, you can also use the regular output block (GPO Write). In the DIO tutorial, the first PWM output is switching the pin between floating and ground, and so the digital input it is connected to can read two different levels.

      Is the diagnostic buzzer not working in the DIO example specifically? Have you verified that the buzzer works with the MCU software that was on the board by default?

      Attachments:
      You must be logged in to view attached files.
    • mahoemahoe
      Participant
      Post count: 6

      Thank you sir!Now i send you some pictures!

      Attachments:
      You must be logged in to view attached files.
Viewing 5 reply threads
  • You must be logged in to reply to this topic.