UroBoros
Advanced Member level 2
- Joined
- May 5, 2004
- Messages
- 642
- Helped
- 19
- Reputation
- 38
- Reaction score
- 8
- Trophy points
- 1,298
- Location
- Cochin - India
- Activity points
- 6,463
Picstudent said:Hai
I am doing a remote fan regulator using PIC16F628.
How the PWM module in PIC can be used to controll the speed of a ceiling fan?
Or else what method can be used to control the Speed .
Using a commercial TV RC5 remote control I will send command to the unit mounted in the switch board. the unit can recieve my commands and switch on the electrical devices using a triac.
But how to control the speed using pwm in PIC .What should be the period for PWm ?.My AC is 50Hz
I have seen circuits in which PIC is driven without a transformer for power supply, bridge and some droping resitor arrangement. Please share some information for doing that so that my unit can be fitted inside the switch box without a transformer.
Also how to detect the firing point for triac for noisless operation of Fan?
Thanks
Picstudent
IanP said:If you go for a small transformer (5-6Vac) connect a bridge to recify voltage and this will give you 100Hz. From this signal you will need to creat short pulses as clos to 0V as possible. This can be done by connecting a npn transistor to this signal (base resistor ≈10kΩ) and getting almost square wave at its collector. This signal can be fed to PIC microcontroller as reference for phase angle calculations ..
Once you have this reference you can continue testing this circuit using isolated PIC circuit (assuming that you use MOC to provide isolation from the triac's gate) ..
Regards,
IanP
IanP said:You obviously haven't included section to control fan to this schematic ..
Regards,
IanP
Picstudent said:hai
Thanks IANP . I will make arrangements like that.
In the meantime I will draw a schematic of my proposed (or rather my prototype )hardware which should fix into a switchboard in a bedroom and will control the lights and fan. from a remote control.
the scematic will give you a better idea of what I am doing.
Thanks a lot
Picstudent
Added after 1 hours 54 minutes:
hai
this is the schematic of my(Not mine ! proposed, lol) fan speed controller and light switch.
it has 4 lights on off fesility and a single fan speed control by a remote.
Ideas and sugessions for programe logic as well as debugging are requested.
Thanks to all
Picstudent
IanP said:If you change the time basis on the oscilloscope you will see that this spike is in fact a pulse of certain time. In your case the narrower the better as it will more accurately define the "zero-crossing". So now you have it .. and it can be used as your zero-crossing reference for both situations: positive-negative and negative-positive change ..
.. and then wait for the firing delay and trigger ..
Regards,
IanP
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?