|
Forum Index : Microcontroller and PC projects : Output PWM
| Author | Message | ||||
| mikedownunder Newbie Joined: 03/03/2016 Location: AustraliaPosts: 26 |
Hi All I have one of these https://www.soberton.com/wt-1201/ that I want to drive with a Micromite using PWM command on Pin 6 of a 32MX170F256B. Pin 6 is PWM 1C, and the syntax is PWM, freq, 1A, 1B, 1C. I'm not really sure what this means. All I Want is to hear a short alarm from this Buzzer when called in a SUB. All help greatly appreciated. Thanks Mike |
||||
| Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3308 |
You would be better off moving the device to pin 4 which is PWM 1A. The way the PWM works you must also use pin 4 (PWM 1A) and pin 5 (PWM 1B) as PWM outputs if you are using PWM 1C. If you do move it to pin 4 the command would be PWM 2500,50 and you will be able to use pins 5 and 6 for other duties. You will also need a buffer transistor to drive that device as it has a very low impedance. Have you thought of using an easier to use device like this (no PWM required). Geoff Edited 2022-05-18 21:42 by Geoffg Geoff Graham - http://geoffg.net |
||||
| mikedownunder Newbie Joined: 03/03/2016 Location: AustraliaPosts: 26 |
Thanks Geoff I can understand now. I had the other type on hand in my odds box. Guess I'll have to go shopping to Altronics again. Trouble is I always end getting other stuff!! Oh well such is life. Thanks again Mike |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |