Jump to content


  • Content Count

  • Joined

  • Last visited

  1. Hello, this simple code is showing randomic behaviour. Data is sent only 2-3 times, sometimes up to a dozen times, then it completely stops. I'm listening on the PC side with "nc -k -l 8080". #include <Ethernet.h> void setup(void) { Serial.begin(9600); Ethernet.begin(0); Serial.println(Ethernet.localIP()); } void loop(void) { EthernetClient client; client.connect("", 8080); client.write("abc\n\n"); client.stop(); sleep(1000); } It looks like some buffer is not being flushed. Any hints? client.stop() / client.flush() don't seem to help. Th
  2. Hi, here are a few samples of the sensor: http://pastebin.com/WDLhm0v0 As you can see there's way more variance in the second column, which is samples taken after Ethernet.begin(0); Samples with Ethernet disabled range from 265 to 287 (acceptable, within specs of the sensor) while samples with Ethernet enabled range from 127 to 368 (way off). Thanks
  3. Hello! I'm having a few issues with this simple sketch: #include <Ethernet.h> EthernetClient client; int sensorPin = A3; float sensorValue = 0; void setup() { Serial.begin(9600); delay(100); Ethernet.begin(0); } void loop() { sensorValue = analogRead(sensorPin); Serial.println(sensorValue); delay(300); } The ADC values seem to jump around randomly when Ethernet.begin(0) is called. If I comment out the Ethernet portion the ADC seems to be stable again. I've tried other analog input pins and I get the same result. Hardware is a Connected LaunchPad (EK-TM4C1294XL
  • Create New...