When I start Ethernet.begin(mac, ip); D11 stays high and is not responding.
Wrote a simple test and the channels run correctly until I activate Ethernet.begin(mac, ip); Anyone else with this problem?
Tried this on 3 ethertens.
//
#include <Ethernet.h>
// Network info
byte mac[] = {0xDE,0xED,0xBA,0xFE,0xFE,0xED};
IPAddress ip(192,168,2,100);
IPAddress server(192,168,2,66);
EthernetClient client;
const int pin[]={3,5,6,9,10,11};
int x=0;int y=0;int z=0;
void setup()
{
delay(50);
// setup serial monitor
Serial.begin(9600);
//Ethernet.begin(mac, ip); //Activating this line and D11 stops responding
}
void pinLevel(int L) // set backlight level
{
//Serial.print("void pinLevel(");Serial.print(L);Serial.print(") called");Serial.println();
for(x=0;x<6;x++)
{
analogWrite(pin[x],L);
}
}
void runLight(int L,int M)
{
//Serial.print("void runLight(");Serial.print(L);Serial.print(",");
//Serial.print(M);Serial.print(") called");Serial.println();
for(y=0;y<6;y++)
{
analogWrite(pin[y],L);delay(100);analogWrite(pin[y],M);delay(50);
}
for(y=4;y>0;y--)
{
analogWrite(pin[y],L);delay(100);analogWrite(pin[y],M);delay(50);
}
}
void loop()
{
x=0;
pinLevel(255);
for(x=0;x<10;x++)
{
runLight(0,255);
}
x=0;
pinLevel(0);
for(x=0;x<10;x++)
{
runLight(255,0);
}
x=0;
pinLevel(50);
for(x=0;x<10;x++)
{
runLight(255,50);
}
}
Thanks Jan.
Etherten blocks D11 (pwm 6) on NDrive shield
The EtherTen combines an Uno-equivalent Arduino-compatible board and Wiznet-based Ethernet support, along with a microSD card slot and Power-over-Ethernet support. [Product page]
Jump to
- Arduino-Compatible Boards
- ↳ ArduPhone
- ↳ CNCPlotter
- ↳ Eleven
- ↳ EtherDue
- ↳ EtherMega
- ↳ EtherTen
- ↳ Goldilocks
- ↳ KitTen
- ↳ LeoStick
- ↳ LeoStick examples, software and fun sketches
- ↳ Pebble v2
- ↳ StepDuino
- ↳ USBDroid
- Arduino Expansion Shields
- ↳ BTSH: Bluetooth Shield
- ↳ DLOCK: RFID Door Lock Shield
- ↳ ES: Ethernet Shield
- ↳ HBRIDGE: H-Bridge Motor Driver Shield
- ↳ LCDK: LCD & Keypad Shield
- ↳ RX315/RX433: 315MHz and 433MHz Receiver Shields
- ↳ SECSENSE: Security Sensor Shield
- ↳ SH-RFIDLOCK: RFID Lock Shield
- ↳ SBS: SimpleBot Shield
- ↳ THINK: Thinker Shield
- ↳ TS: Terminal Shield
- Modules, Sensors, & Displays
- ↳ Module Discussion
- ↳ Dot Matrix Display
- ↳ Experimenters Kit
- ↳ 4x4x4 RGB Cube
- ↳ OLED128 Display
- Raspberry Pi
- ↳ Raspberry Pi Expansion Boards
- ArduSat Arduino Satellite
- ↳ General ArduSat Discussion
- ↳ ArduSat Payload Processor Module
- General Discussion
- ↳ Random Chit-Chat
- ↳ Project Showcase
- ↳ Product / Device Ideas
- ↳ Practical Arduino
- ↳ Arduino Workshop
- ↳ 3D Printing
- ↳ SuperHouseTV Home Automation
- Arduino Shield List
- ↳ Shield Discussion
- ↳ Shield List Site Discussion