Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 02:24 21 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Output PWM

Author Message
mikedownunder

Newbie

Joined: 03/03/2016
Location: Australia
Posts: 26
Posted: 10:16am 18 May 2022
Copy link to clipboard 
Print this post

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: Australia
Posts: 3308
Posted: 11:39am 18 May 2022
Copy link to clipboard 
Print this post

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: Australia
Posts: 26
Posted: 12:54am 19 May 2022
Copy link to clipboard 
Print this post

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
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025