New answers tagged

0

You can use the EthernetENC library. See the examples of Arduino Ethernet library on how to use Ethernet libraries for Arduino. EthernetClient object wraps a TCP socket. A normal TCP socket is connected to IP address and port. EthernetServer listens on a port. If server is contacted by a remote client socket, it creates a local socket connected with the ...


1

Let the ultrasound-module broadcast measurements and not care about whether anyone are listening or not. If you are using wifi, you can send to the broadcast address of the network you are using. Then the ultrasound-module does not need to know anything about the receiver, like ip address or number of receivers. The only thing you need to make sure is that ...


0

One way is periodically send a "Hello?" request. If you don't get a "Hi, I'm here." reply, then don't send your data. These calls and responses could be as simple as couple of constant bytes that won't appear in your data. The master would send it out and wait briefly for the slave to repeat it. If the master times out, it assumes the ...


2

I cannot really understand why you can't catch pulses at 6613 Hz. That is not that fast, even for an Uno. I did the following experiment with an Uno: I use Timer 2 to generate a short burst of pulses on pin 11 (PB3 = OC2A). This pin is connected to pin 8 (ICP1), where I use Timer 1 to capture the falling edges. In the input capture ISR I count the number of ...


Top 50 recent answers are included