Langues

Répondre au commentaire

Another comment: other bus types

So you had the "wrong" idea about the serial being a bus?

In fact, it is wrong an idea when we are talking about the RS232 or the logic-level serial on the Arduino.

But there are serial bus systems. Research the RS485 standard for example.
This can be implemented using the AVRs serial port and a simple diver chip like the SN75176 or its low power cousins from Maxim.
the tricky part is the bus arbitration: no two senders may send at the same time. Usually this involves a master-slave scheme of some kind.

I am using RS485 type buses for all the long-haul communications where TWI is really at hte limit.
When using 5bit datawords (5n2 is the smallest the AVR serial supports, iirc), then the clock difference between the devices on the bus may even be 3% or so - usually communication is stable even with devices running off the RC oscillator (without a crystal).

For linking a bunch of Arduinos this is a very good choice for hte long distance: cheap drivers, good isolation (worst case: a driver chip burns out) and loooong distance is possible (one through your garden and back).
Drawback is bandwidth: on a long line only like 4800 or 2400 bit/s are really usable.

hase

Répondre

Le contenu de ce champ ne sera pas montré publiquement.
  • Les adresses de pages web et de messagerie électronique sont transformées en liens automatiquement.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <h3> <h4> <h5> <h6>
  • Les lignes et les paragraphes vont à la ligne automatiquement.

Plus d'informations sur les options de formatage

CAPTCHA
Cette question permet de vérifier si vous êtes un visiteur humain afin d'empêcher les envois automatisés de pourriel.
Fill in the blank
By submitting this form, you accept the Mollom privacy policy.