PWM to 0-10V Output

Started by Paul in Piclist8 years ago 8 replies

I have recently come across a circuit...

I have recently come across a circuit diagram: http://f1.grp.yahoofs.com/v1/ULBpSg7H1FfAWrKBp02HDaRkyq4iFpOjfpH78Kql4Dxq0CgSrNLnPzPzZIhq_C7J8z1 8rM7VyWwp3bC8n2uBiJDZsrfy/PWM.jpg Now the purpose of this circuit, is to convert a 5V PWM Signal to a 0-10V Output. The details of the PWM are unknown. So it could be a normal type of PWM, with the mark to space ratio changing, but seen as it is a


18F4331 and PWM

Started by Paul L in Piclist11 years ago 1 reply

Hi. Well, after getting my new PIC, it didn't take long to get it going! Was a little worried at first! I can now receive using USART and then...

Hi. Well, after getting my new PIC, it didn't take long to get it going! Was a little worried at first! I can now receive using USART and then using the values taken put that in the PWM unit and there i have a dimming LED! Beats having a DA and few Op-amps! My question is about the PWM maths. I have read the datasheet but can't figure out how to calculate the frequency of the PWM. Maybe caus...


PWM output and FAST pic to pic messages

Started by holopoint.rm in Piclist14 years ago

Hey guys. I'm building a two wheeled balancing robot. I have a ADXL202 which outputs PWM I have an h-bridge with PWM input. ...

Hey guys. I'm building a two wheeled balancing robot. I have a ADXL202 which outputs PWM I have an h-bridge with PWM input. Make that two PWM inputs, one for each motor. The project is currently running on a PIC18F452 Whats the best way to output PWM ? Whats the be


PIC 17 PWM and Timer

Started by rashid husain in Piclist14 years ago 6 replies

HI everyone, I have a problem with the PWM signal that I feed to my Timer. I generate a PWM signal to control a motor and I...

HI everyone, I have a problem with the PWM signal that I feed to my Timer. I generate a PWM signal to control a motor and I also take the PWM signal and feed to Timer 2 of my PIC 17C756A. When I made the conenction to the Timer, The PWM voltage drops to 1.8V for 'mark' w


2 PWM's

Started by mr_gees100_peas in Piclist14 years ago 5 replies

I'm currently using the pic16f877. This one has two PWM's. I want to use them both. My question is can each PWM have diferent...

I'm currently using the pic16f877. This one has two PWM's. I want to use them both. My question is can each PWM have diferent frequecys or must both of them have the same frequency?


Re: CLOCK CALCULATIONS IN PIC12F675

Started by Paul James E. in Piclist14 years ago 3 replies

vaishnavi236, Well first, the 12F675 does not have hardware PWM. It does have a Timer1 and Comparators, but no PWM. I can explain the...

vaishnavi236, Well first, the 12F675 does not have hardware PWM. It does have a Timer1 and Comparators, but no PWM. I can explain the functions of the bits in T1CON, but that won't help the PWM situation, or more precisely, the lack of it. Secondly, you say you want TON = 10% and TOFF = 90%. What exactly is 'T'? Lastly, what exactly are you trying to accomplish with this program? Le...


pwm

Started by mr_gees100_peas in Piclist14 years ago 1 reply

I'm using a pic 16f877. This has 2 pwm pins. My question is. Is it possible to run the 2 pwm at 2 different frequenciesat the same...

I'm using a pic 16f877. This has 2 pwm pins. My question is. Is it possible to run the 2 pwm at 2 different frequenciesat the same time?


PWM Output Stuck Low

Started by Matthew Limpach in Piclist12 years ago

I am using CCP1 & CCP2 PWM on a 18F4220. Intermittently on reset, CCP1 sticks low. I have tried using standard PWM mode and enhanced mode...

I am using CCP1 & CCP2 PWM on a 18F4220. Intermittently on reset, CCP1 sticks low. I have tried using standard PWM mode and enhanced mode with auto shutdown turned off. Both do the same thing. Each PWM output is driving the base of a 2N4401 thru a 1K resistor. Any thoughts? Matt


Need help on PWM signal and MOSFET selection

Started by devonsc in Piclist13 years ago 5 replies

Hi. I would like to seek for advice for my PWM signal. In order to achieve an 8-bit resolution, can anyone recommend which is...

Hi. I would like to seek for advice for my PWM signal. In order to achieve an 8-bit resolution, can anyone recommend which is the best among the following? First Approach: > Crystal for my PIC microcontroller = 4Mhz > Frequency of my PWM = 10kHz


16F684 and PWM

Started by Dave Mucha in Piclist14 years ago 6 replies

Hi All, I was looking over the data sheet for the 16F684 and it lists that it has 4 channels of PWM. I'm assuming that it...

Hi All, I was looking over the data sheet for the 16F684 and it lists that it has 4 channels of PWM. I'm assuming that it means 4 seperate channels of hardware PWM. The layout of the chip shows one CCP1 module so it would appear that it can only have one hardwa


question about PIC drain

Started by Phil in Piclist13 years ago 17 replies

I was curious about current draw on the PIC so I set up a couple of test cases and measured the current. My test setup uses a...

I was curious about current draw on the PIC so I set up a couple of test cases and measured the current. My test setup uses a 16F628A, crystal and an LED on the PWM pin. I use PWM to the LED. With PWM at 0 duty, the circuit is drawing 0.6 mA. with the PWM at 100% duty its drawing


PWM output of 40khz and more

Started by holopoint.rm in Piclist14 years ago 2 replies

Good morning everyone. Me again. And another discussion. I'm planning on driving two pittman motors with an H-Bridge. These are...

Good morning everyone. Me again. And another discussion. I'm planning on driving two pittman motors with an H-Bridge. These are good motors with low inductance so i will be needing a PWM around 40khz or even 60khz if possible. The question is, how to produce variable width PWM


PIC PWM crazyness

Started by Vecheslav Silagadze in Piclist11 years ago 5 replies

Hello everyone, I've got a bizzare problem with a PIC18F4431. It seems that whenever I change the duty cycle of a PWM output *too frequently*...

Hello everyone, I've got a bizzare problem with a PIC18F4431. It seems that whenever I change the duty cycle of a PWM output *too frequently* the PIC will run run for 25-30 seconds and then crap out, exhibiting random behaviour. Now before you think I'm nuts, here is a list of evidence for my claim: 1. When I run the PIC with constant PWM duty cycle set, the PIC runs fine and performs


PWM CONNECTION TO SERVO DRIVER

Started by AMIT KAPOOR in Piclist13 years ago 2 replies

Hello Everyone i have a doubt: i have yaskawa servo pack( driver) SGDF-A2CS  , my question is can i connect PWM o/p generated...

Hello Everyone i have a doubt: i have yaskawa servo pack( driver) SGDF-A2CS  , my question is can i connect PWM o/p generated from PIC to driver speed control( analog voltage ) input directly....is it safe for the driver?.....pwm frequency is 15khz .. is this frequency ok?... Pl


PIC16f886 enhanced pwm

Started by speechlessspecies in Piclist9 years ago

Hi guys, how does one setup the enhanced pwm module of the pic16f886. I could setup the usual pwm module but setting up the enhanced module is...

Hi guys, how does one setup the enhanced pwm module of the pic16f886. I could setup the usual pwm module but setting up the enhanced module is a bit confusing for me. please help ------------------------------------


PWM output

Started by pakigenius786 in Piclist14 years ago 1 reply

I figured out how to configure PWM on a PIC in C. But...how do you actually set the thing to go. i.e. how do you start sending a...

I figured out how to configure PWM on a PIC in C. But...how do you actually set the thing to go. i.e. how do you start sending a pulse? do you make the pin high and it automatically starts or what? please help. much appreciated mohammed billoo


Re: thank u

Started by Paul James E. in Piclist14 years ago 3 replies

First thing you should do is go to the Microchip website and search their application notes section for PWM and/or 12F675 related...

First thing you should do is go to the Microchip website and search their application notes section for PWM and/or 12F675 related notes. PWM is really not that hard once you look into it. Get the Ap Notes and then get back with me. Regards, Jim


reading PWM input

Started by contact_gt1981 in Piclist14 years ago 3 replies

hi PIC fans...... i need serious help....does anyone know the source code (MPASM) for reading a PWM signal as input?..... ...

hi PIC fans...... i need serious help....does anyone know the source code (MPASM) for reading a PWM signal as input?..... experienced ASM coders, please reply ASAP...... thanks..... gt1981


SW vs HW PWM

Started by Trent in Piclist13 years ago 10 replies

Hi All, I need to borrow your collective wisdom and experience. I have developed differential motor controls for everything...

Hi All, I need to borrow your collective wisdom and experience. I have developed differential motor controls for everything from steppers to PWM dc motor controllers with PID but have only recently gotten around to discovering servos. Finding them pretty cool I built a quick


Sine PWM using 16f877

Started by p.vijayamurugan in Piclist13 years ago 5 replies

hai all this is vijay from India wishing you a happy day i have a requirement to generate a Sine PWm using PIC 16f877. ...

hai all this is vijay from India wishing you a happy day i have a requirement to generate a Sine PWm using PIC 16f877. can anybody help me in developing the logic thanx in advance vijay