Pull Up enabled and PWM question
Hi
Q.1)- I would like to know what help does this "weak pull up enabled" does and what it actually means. I have a receiver and a transmitter which I have made myself using RF Modules. I press one button on transmitter and corresponding code is transmitted and receiver activates the corresponding triac (BT136 through MOC3021). CAN THIS WEAK PULL UP be useful in my code (if yes, will it be useful at receiver end or transmitter end or both)? I am using 12F635. I am holding Tx PIC pins ground so as to avoid unwanted transmission by floating pins.
Q.2)- I also want to control the speed of my fan, I read the microchips document using 12F508 but as it is in C I can't understand it fully. Does anyone has a PBPro program for it. I want to control speed of fan and two on/off operations with my Rx PIC and use 4 buttons on transmitter ( 2 for high/low and rest of the two for on/off operation.
Thanks
P.s: I tried using pwm command using 16F690 to dim a light bulb (Yes, it didn't worked). I am back to 12F635 and try your advice now.
Weak pull up example & PWM info
Thanks Melanie & Charles for your input. Here are my answers to your questions.
Quote:
Originally Posted by
Melanie
Weak Pull-Up's
If your Remote's Buttons for example are connected between the PICs pins and 0v, then you probably have an external Resistor connected between the PICs pin and Vdd. The internal weak pull-up's can save you adding that external Reistor by providing one conveniently internal to the PIC.
The way I have set it up is that the whole system gets +Ve supply when the button is pressed & the selected PIC pin gets high as well.
IF I use internal weak pull ups, I have to connect the button to the -Ve line and pic - Is that correct? Secondly, In the program I have to use the GPIO = 1 instead of GPIO=0 in the begining - Is that correct as well?
Quote:
Originally Posted by
Melanie
Weak Pull-Up's
PWM
Now with this question you have provided insufficient information for anyone to help you.
Are you speed controlling an AC or DC motor? There are different techniques for AC (and different depending on how many supply phases) or DC, and to make life more complicated there are different techniques for different kinds of motors (eg induction motor, etc etc). For some kinds of motors PWM is just unsuitable.
Likewise with your failed Lamp Dimmer... was it AC or DC or what? PWM is not suitable in all cases.
I tried it with an AC lamp.