0

I have been looking for the cheapest/easiest way to get 100 or so different i/o devices to all talk to a "Master." (Sending temp data, receiving motor information) Since i am looking for a simple solution, I went with the esp8266 ($1.50 - Cheapest MicroPython MCU). Connecting 100 of these devices seems to be a challenge over wifi/ESPNOW. Since they will be 2 feet apart, i figured i can connect them in parallel, hardwired, connecting the Master's TX, to every devices RX, and every devices TX to the masters RX. Can i now send data normally, as if i were sending it using wifi, and receive it as if it were a WIFI signal to every device.

drew wood
  • 131
  • 8
  • How will you stop the TX outputs shorting to each other? – Andy aka Dec 02 '22 at 16:47
  • @Andyaka Diode. – drew wood Dec 02 '22 at 16:49
  • Or i can chain the tx-rx lines, and have each module act as a repeater. – drew wood Dec 02 '22 at 16:59
  • UART probably isn't the best way of doing this, if you have so many devices. You could probably make it work, but it wouldn't be very easy. Consider something designed for multi-device buses, like CAN for instance. – Hearth Dec 02 '22 at 17:03
  • @Hearth How So? The transmission lines will have a diode, and will only be transmitting one at a time. – drew wood Dec 02 '22 at 17:08
  • You can't put a diode in a simple UART TX line. UART TX needs to pull the line both high and low, and your diode will only allow one or the other. – brhans Dec 02 '22 at 17:15
  • How much data will be transmitted by the 100 units over what period of time? – Elliot Alderson Dec 02 '22 at 19:36
  • i would be sending and receiving about 2 bytes of data to each unit, every minute or so. (including units address) – drew wood Dec 02 '22 at 20:21
  • How about a high frequqncy diode, one capable of 2.4ghz? – drew wood Dec 02 '22 at 21:35
  • 1
    The frequency capability of the diode is irrelevant. You're confusing the flow of current with the flow of information. Diodes only allow *current* to flow in one direction, but for the *information* to flow from a UART's TX to another UART's RX, current needs to flow in *both* directions. The TX needs to be able to pull the RX high, and it also needs to pull the RX low, in order to be able to successfully send a signal. The diode will only allow one of those to happen (depending on which way around you connect it). – brhans Dec 03 '22 at 14:44

1 Answers1

-2

Having 100 devices 2 feet apart means that 1st to 99th device distance is 200 feet. I would suggest any multidrop (for example, RS-485 or current loop) converter to connect then all together. A current loop would reduce amount of Rx/Tx errors stacking up due to various electromagnetic interference sources.

If wireless feature of is not used at all, esp8266 is OK if higher current consumption is not an issue (typical non-wireless microcontroller is consuming less power typically).

Alex Stark
  • 52
  • 3