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

[Everybody] TTL Cable length
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
libor



Joined: 14 Dec 2004
Posts: 288
Location: Hungary

View user's profile Send private message

PostPosted: Sun Sep 23, 2007 3:33 am     Reply with quote

Quote:
sugar house to an modern one (adding pipes to trees to get the sap) and he asked if it was possible to gatter statistics

...so you want to detect if the syrup is being eaten by a bear not flowing into the sugar house, don't you ? Smile
btw. I envy you, this would be a perfect test-field for a wireless RF mesh sensor network running on lithium cells with an ultra low duty cycle.

Back to the topic: yes RS485 is a multiple devices capable hw standard for a data bus. (RS-422 is its point-to-point sister btw.) all RS-485 transceicers have a state (controlled by an extra pin) to detach from driving the signal going into a high-impedance state, so you can control from software that only one device talk at any time on a bus, all others can listen simultaneously of course. The data protocol itself is not defined by saying 'RS-485', it is just a physical link.

So the protocol is up to you. I suggest you to cast a glance to Modbus, Fieldbus, etc. industry standard protocols and make your own Smile , very simple one, first. (i would go for one master per bus regularly polling the slaves for the gathered data). You can later implement an industry-standard protocol if you wish, with a simple 'firmware upgrade', so you can begin making your 'Multipoint Maple Syrup Sensors' being compatible with the many industrial control devices on the market Wink

With the copper prices so high, I would consider the 8-wire cable as an overkill for this project, but may be you're right that can buy this cable less expensive than a 2 or 4 wire one used less often, anyway have a look for other cables also.

As an alternative (e.g. for learning an up-to-date professional industrial solution), you can also consider using the CAN bus, a family of PIC's have this interface built-in. It would mean for you a lot of features done in hardware (addressing, collision-avoidance, etc.). ...but (not looking further or as beginner) i would stay with the less challenging RS485 now.
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Sun Sep 23, 2007 8:39 am     Reply with quote

I add to the idea of using RS485 to cover reliably the distance you are needing, it is the safest and
simplest way.
While the RS-485 specification does not specify protocol nor cabling, RS-422 does for the physical layer
and as both are differential, by extension these recommendations should be used for RS-485 systems as well.
The RS-422 specification recommends 24AWG twisted pair cable with a shunt capacitance of 16 pF per
foot and 100 ohm characteristic impedance. Shielded cable is only slightly more expensive than unshielded,
so to not get any risk go for the shielded and life will smile you.


Humberto
SET



Joined: 15 Nov 2005
Posts: 161
Location: Glasgow, UK

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sun Sep 23, 2007 9:50 am     Reply with quote

Quote:
...so you want to detect if the syrup is being eaten by a bear not flowing into the sugar house, don't you ?
btw. I envy you, this would be a perfect test-field for a wireless RF mesh sensor network running on lithium cells with an ultra low duty cycle.


Battery performance at -32F would be an issue though.. Smile

Regarding the cable choice - CAT5 as the OP is thinking of might be good, the economics of mass production mean it is quite cheap - and you could adapt Power over Ethernet if you need to get some watts down the wires
L.Belanger
Guest







PostPosted: Sun Sep 23, 2007 11:35 am     Reply with quote

Quote:
...so you want to detect if the syrup is being eaten by a bear not flowing into the sugar house, don't you ?
btw. I envy you, this would be a perfect test-field for a wireless RF mesh sensor network running on lithium cells with an ultra low duty cycle.


mouhaha Laughing ... no seriously, thats a good way to detect leaks as tube can be affected by the heavy snow.i don't know about the bear things if its true i will ask to my uncle Smile ...RF would be nice but snow (talking about 3-4ft of non stopping snow ;) ) may affect considerably the RF signal if its a low power solution.

Quote:
Battery performance at -32F would be an issue though..


Hell yes!! many batteries appliances are not capable of running in the cold winters day (rarely but happen few days per year it can reach -40F). Even cars have trouble to start.



Quote:

Source wikipedia:
According to one book, lithium-ion batteries should not be frozen (should not be stored below -40 °C), because most lithium-ion battery electrolytes freeze at approximately −40 °C (this is much colder than the lowest temperature reached by household freezers, however).


hmm i don't know information of the working temp. range of the li-ion battery but i guess it's way below -40F.

as for the RS485, i have taked notes Mr. Green
Quote:

Look at the RS485 Transceivers at Linear Technology.

Fun ends here. Sad available on MSOP-8 and DFN-8 package...
As a hobby ..i do my own pcb (toner transfer way + good old ferric chloride) and i can tell you that having thin enough track to match the MSOP pins is very tricky and all my attempts were unsuccessful. DFN is a no win for me Laughing

SOIC or DIP package are welcomed here ;)
I will check for TI or Maxim-ic IC's later today.
Any feedback on TI RS-485 ic?

Update: i have quickly checked on the TI website... there's some Differential Bus Transceiver for RS485 and maybe 1-2 IC with a RS-485 Transceiver name...i'm clueless about these terms.
Also theres alot of RS-485 driver and receiver IC

Please have a look here (used tinyurl to shorten the very long ti url exceed 255 chars) ---> tinyurl.com/38yc8u

Thread is interesting and very useful hehe Smile
libor



Joined: 14 Dec 2004
Posts: 288
Location: Hungary

View user's profile Send private message

PostPosted: Sun Sep 23, 2007 11:51 am     Reply with quote

I suppose maple syrup does not flow either ...and the bears are sleeping as well at -40F Smile

Look for the old, cheap 75176 (SN75176B) RS-485 transceiver (receiver + transmitter in one = transceiver), it is widely available in DIP version. Be sure to add some ESD protection (at least zeners, or transient suppressors are better), this chip has no such thing built-in.
L.Belanger
Guest







PostPosted: Sun Sep 23, 2007 12:00 pm     Reply with quote

Quote:
I suppose maple syrup does not flow either at -40F


Laughing True True... but having to remove/replace the battery.
-1 for the maintenance thing. ;)
but wait.. what about a relatively high humidity environment (rain does occur to in march)??

are li-ion batteries very well suited for outdoor operation ?
libor



Joined: 14 Dec 2004
Posts: 288
Location: Hungary

View user's profile Send private message

PostPosted: Sun Sep 23, 2007 12:09 pm     Reply with quote

Quote:
what about a relatively high humidity environment ... are li-ion batteries very well suited for outdoor operation

No electronics is 'well suited' for outdoor operation regarding the humidity. Whatever you build -without doubt - you must enclose it in a water-proof box. Either a water proof enclosure (look for IP68 protection) or some silicone or epoxi filling is required. (for maintainable devices I suggest the first one, though once I had good results with a stearin filling / dipping)
Stearin = it is the stuff candles are made from, I could reuse it by simply warming up the device and let it flow out / off. ...stearin residue can be easily soldered upon also... though I have not found any example others using this stuff for reusably protecting a PCB from moisture)


Last edited by libor on Sun Sep 23, 2007 12:15 pm; edited 1 time in total
L.Belanger
Guest







PostPosted: Sun Sep 23, 2007 12:10 pm     Reply with quote

Quote:
I suppose maple syrup does not flow either ...and the bears are sleeping as well at -40F


Sap only flow when days are «warm» (around -12F and less) and nights are cold... so only February,March,April ...is the «sugar harvesting season» depending on the weather.

BUT weather is instable here in Quebec,Canada so there might be an weather warning anytime about cold or heavy snow fall. So having NOT to run to remove the batteries, prior to a storm is a good + Laughing hehe
L.Belanger
Guest







PostPosted: Sun Sep 23, 2007 12:15 pm     Reply with quote

Quote:
No electronics is 'well suited' for outdoor operation regarding the humidity. Whatever you build -without doubt - you must enclose it in a water-proof box. Either a water proof enclosure (look for IP68 protection) or some silicone or epoxi filling is required. (for maintainable devices I suggest the first one)


Waterproof box + Acrylic conformal coating should be sufficient...

Ho btw,, i have a question non-topic related about pcb coating... what is the name of the coating that is applied to a FR-4 PCB ... you know the green coating that protect tracks ?

i always wanted to buy this!!
libor



Joined: 14 Dec 2004
Posts: 288
Location: Hungary

View user's profile Send private message

PostPosted: Sun Sep 23, 2007 12:26 pm     Reply with quote

For homemade boards I used acrylic lacqueur. You can buy it in spray bottles. It is not green but transparent, but gives good protection against moisture and (important!) can be easily soldered upon (without removal) when the circuit is being repaired.
The are many professional coatings also available. Many prefer also some protection against small mechanical damages, that's why there are some thicker coatings (urethane, epoxi, etc) available. ...but they can not be reworked.

The green thing you are talking about is rather called a solder mask. It protects the tracks where applied but leaves the solder pads uncovered (sensitive to moisture).
L.Belanger
Guest







PostPosted: Sun Sep 23, 2007 12:49 pm     Reply with quote

Quote:
For homemade boards I used acrylic lacqueur. You can buy it in spray bottles.


Nice that's exactly what i have Smile

back on topic... i still have not choose the flow meter model... so let say that average flow meter send pulses like the RPM wire on a fan.

So, to resume if i have understood...

Flow meter -> PIC -> RS485 transceiver -> cables -> RS485 transceiver -> PIC -> usb or rs232 interface

Thank you! Very Happy
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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