Homespan example 5 issue

I am using Homespan example 5 (two working LEDs) to test some wiring and other stuff.
Issue is that only the LED declared first is activated - the activated led is changed if the PIN number is changed so it seems not to be an issue with the ESP32 or the led. Double checked the code to be identical with the example 5 download and struggling to get both leds to light. Fitzing attached.
Ex 5.pdf (651.4 KB)

Any guidance to fix this will be appreciated,

  1. LEDs should always have series resistance. Full stop.
  2. since the odds are, your code is in some way flawed, how about providing it?

Your "Fritzing" diagram is far from complete. It appears you’ve used Wago 225 connectors where resistors should be. Additionally, though you didn’t post the code, I suspect issues in lines 10 through 30 that need to be addressed. Please provide the complete code and an updated, accurate schematic to help us assist you better.


This shows the voltage needed to light the LED at the current you are passing through it.

Why This Matters:

We have no way of knowing the specifics of your setup unless you provide that information. Clear and detailed descriptions enable us to offer the most accurate help possible. Without these details, it’s difficult to diagnose and solve the issues you're experiencing.

Yes! But we need the following:

Annotated Schematic: Clearly show all connections, including power, ground, and power sources. This will help us understand your circuit setup and identify potential issues.

Technical Information Links: Provide links to technical documentation for each hardware component in your setup. Avoid links to sales sites like Amazon, as they often lack the detailed specifications we need to assist you effectively.

its OK, I figured it out: HomeKit needs to command each led individually (I had assumed both switched on by single command)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.