View previous topic :: View next topic |
Author |
Message |
nagufever
Joined: 19 Jan 2011 Posts: 2
|
Curtain system |
Posted: Thu Jan 20, 2011 9:02 pm |
|
|
RF push button (transmitter) to activate LM35 temperature sensor (receiver). Can you give me syntax to write the code for transmitter and receiver section? |
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Thu Jan 20, 2011 9:28 pm |
|
|
You have a lot going on here.
1) You have an Rf transmitter. You can either buy a complete module or build something with a PIC.
2) you have a matching receiver which will do something in response to the signal from the transmitter.
3) You have a LM35 which is an analog temperature sensor, not a radio receiver, and it is not clear what you want to do with the temperature information.
We can't help you much without a lot more information. _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
nagufever
Joined: 19 Jan 2011 Posts: 2
|
|
Posted: Fri Jan 21, 2011 10:25 am |
|
|
If I press the button in the transmitter, it should either disable/enable LM35 to read temp and convert it to turn dc motor (at the receiver). How do I program the PIC16F876 microcontroller for this action? |
|
|
newguy
Joined: 24 Jun 2004 Posts: 1907
|
|
Posted: Fri Jan 21, 2011 11:53 am |
|
|
nagufever wrote: | If I press the button in the transmitter, it should either disable/enable LM35 to read temp and convert it to turn dc motor (at the receiver). How do I program the PIC16F876 microcontroller for this action? |
This is like saying "I have 10 tons of iron ore. How do I make a truck?"
The only way you're going to get help is if you post code. |
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Fri Jan 21, 2011 12:33 pm |
|
|
Start by dividing the problem into several parts. I suggest these:
1) Find a radio transmitter and receiver pair.
2) Write a program that will run the motor when the receiver gets a signal from the transmitter.
3) Write a program that reads the LM34 and runs the motor when it gets hot, and shuts off when it gets cool.
4) Combine these three parts to get the behavior you want.
Each of these may be a challenge if you have never done things like this before. _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
|