CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Curtain system

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
nagufever



Joined: 19 Jan 2011
Posts: 2

View user's profile Send private message

Curtain system
PostPosted: Thu Jan 20, 2011 9:02 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Jan 20, 2011 9:28 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Jan 21, 2011 10:25 am     Reply with quote

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: 1908

View user's profile Send private message

PostPosted: Fri Jan 21, 2011 11:53 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Jan 21, 2011 12:33 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group