0

Feather Relay ADC Pin?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather Relay ADC Pin?

by eightlines on Mon Jan 22, 2018 4:29 pm

I soldered up a Featherwing Relay (https://learn.adafruit.com/adafruit-pow ... g?view=all) with the ADC pin as the jumper. Using this pinout diagram for the HUZZAH 8266 (https://cdn-learn.adafruit.com/assets/a ... 1504885873) I can see that the ADC is accessible through pin D17 or A0. I've uploaded a Blink sketch using D17 as the relay trigger, but the relay isn't firing. Is there any quick way to make this relay switch, or am I best to desolder the jumper and select a different pin? If so, what is the point of the ADC jumper on the relay?

eightlines
 
Posts: 14
Joined: Tue Nov 04, 2008 11:36 pm

Re: Feather Relay ADC Pin?

by adafruit_support_bill on Mon Jan 22, 2018 6:31 pm

Did you set the pin mode on D17 to OUTPUT? https://www.arduino.cc/en/Reference.PinMode

adafruit_support_bill
 
Posts: 64877
Joined: Sat Feb 07, 2009 10:11 am

Re: Feather Relay ADC Pin?

by eightlines on Tue Jan 23, 2018 12:35 pm

Yes, my modified blink sample below:

Code: Select all | TOGGLE FULL SIZE
const int RELAY = 17;

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
  pinMode(RELAY, OUTPUT);
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);
  digitalWrite(RELAY, HIGH);
  delay(1000);
  digitalWrite(LED_BUILTIN, LOW);
  digitalWrite(RELAY, LOW);
  delay(1000);
}

eightlines
 
Posts: 14
Joined: Tue Nov 04, 2008 11:36 pm

Re: Feather Relay ADC Pin?

by eightlines on Tue Jan 23, 2018 12:58 pm

Update, wicked the ADC pin and joined the jumper at pin D0. Relay operates fine when tied to the boot indicator of the Huzzah. Wicked that and set it to pin D15, [Edit - working now].

Really wish the documentation had better indicators about which pins the jumper connections lead to. (https://cdn-learn.adafruit.com/assets/a ... 1471579587) A couple of flashes later with different pin assignments and I figured it out.

I still didn't get the ADC pin (D17) to fire but the only thing I changed was the jumper and the pin int in the code.

eightlines
 
Posts: 14
Joined: Tue Nov 04, 2008 11:36 pm

Please be positive and constructive with your questions and comments.