Done. Using this code, I get "Setup complete", two zeros, nothing more. I wonder if one of the RS485 chips is dead... Re-verified that the RE/DE on the receiver is 0V and that the RE/DE on the transmitting chip is 5V. Nuts.
/* YourDuino RS485 Slave Node A Example
terry@yourduino.com */
/*-----( Declare Variables )-----*/
int ledPin=13;
int EN = 6;
byte Val;
void setup()/****** SETUP: RUNS ONCE ******/
{
pinMode(ledPin, OUTPUT );
pinMode(EN, OUTPUT );
Serial.begin (9600);
Serial.println("Setup Complete.");
}//--(end setup )---
void loop() /****** LOOP: RUNS CONSTANTLY ******/
{
// receive Data
digitalWrite (EN, LOW ); // enable receive
if (Serial.available()>0) {
Val = Serial.read ();
Serial.println(Val,HEX);
}
}//--(end main loop )---