Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 8th May 2004, 10:18 PM   (permalink)
Default addressing a smart sensor that uses 16f877

I have a project about designing a protocol between smart sensors. First i need to design some sensors. (I'm a beginner about ucontrollers.) I will use pic16f877 because of its ADC and SPI. I will use rs485 protocol between sensorsç But i don't know anything about addressing the sensors. Can i do it with that ucontroller and how? if anyone sends some codes it'll be better. (i use pic c compiler)
tuncay is offline  
Old 8th May 2004, 11:15 PM   (permalink)
Default

Are you going to build these sensors yourself or are they premade? what are these sensors supposed to sense? ...

More information is required ....
Exo is offline  
Old 11th May 2004, 04:19 AM   (permalink)
Default

If the sensors support 485 comms then the address of the sensor is in the polling packet sent by the master.

MASTER: <STX><SensorID><PleaseTxReading><ETX>

The sensor will then reply with the data requested

SENSOR: <STX><SensorID><HereIsData><ETX>
gtrman1992 is offline  
Old 23rd May 2004, 02:31 PM   (permalink)
Default thanks

thanks for your attentions.
it's not important what to sense about thhe sensors. it will sense and the signal will be converted to digital by the ADC in the ucontroller. My problem is how to address the sensors and make them reply when the master want... İ need program codes about that...
tuncay is offline  
Old 23rd May 2004, 02:34 PM   (permalink)
Default

Quote:
Originally Posted by Exo
Are you going to build these sensors yourself or are they premade? what are these sensors supposed to sense? ...

More information is required ....
thanks for your attentions.
it's not important what to sense about thhe sensors. it will sense and the signal will be converted to digital by the ADC in the ucontroller. My problem is how to address the sensors and make them reply when the master want... İ need program codes about that...
tuncay is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 05:37 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker