Using digital outputs
Moderators: adafruit_support_bill, adafruit
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- ellisob
- Posts: 8
- Joined: Fri Nov 13, 2015 8:12 am
Using digital outputs
I can turn on or off the built-in led using WipperSnapper, but cannot seem to do the same with other digital outputs (D4, D5, D12, etc.). Any ideas? I am just using a DVM to check the output I am trying to toggle. I am using an Adafruit HUZZAH ESP8266. I can also toggle a switch as per the tutorial with no issues.
- brubell
- Learn User Page
- Posts: 2011
- Joined: Fri Jul 17, 2015 10:33 pm
Re: Using digital outputs
Hi, what type of component/part/etc are you planning on driving with the digital output?
Could you attach a screenshot to this post of your ESP8266's device page showing the configured digital outputs?
Could you attach a screenshot to this post of your ESP8266's device page showing the configured digital outputs?
- ellisob
- Posts: 8
- Joined: Fri Nov 13, 2015 8:12 am
Re: Using digital outputs
Actually, I am just trying to get acquainted with this very clever concept. Eventually, I would like to deploy various sensors and outputs around the house to play with. So, for now, I am feeding the positive lead of a LED which in in seried with 1K resistor to ground. If I move my drive side of the LED to D0, I can verify the LED turns on and off (alternately with the on board LED). When I move the drive side to D4 . . . I can not toggle the LED at all. Same for D5, D2, or D12. I also verified that all of these outputs will work if I use the Arduino IDE with a modified "blink" program . . . so the problem seems to be related to the io system . . . ? Pic of screen attached as you suggest. Thank you for your assitance!
- brubell
- Learn User Page
- Posts: 2011
- Joined: Fri Jul 17, 2015 10:33 pm
Re: Using digital outputs
Could you also attach a photo of your LED wiring when connected to D4?
- ellisob
- Posts: 8
- Joined: Fri Nov 13, 2015 8:12 am
Re: Using digital outputs
Attaching photo of test setup per your request:
Picture shows drive (green) wire connected to pin 4 of Huzzah esp8266. When I toggle the led4 switch, the led state does not change (stays off). If I move the green wire to Pin 0, the external led will toggle on/off when I toggle the led built-in switch (but of course state is inverted from the internal LED). This let's me know my wiring is correct from Green wire, through resistor, to ground.
Picture shows drive (green) wire connected to pin 4 of Huzzah esp8266. When I toggle the led4 switch, the led state does not change (stays off). If I move the green wire to Pin 0, the external led will toggle on/off when I toggle the led built-in switch (but of course state is inverted from the internal LED). This let's me know my wiring is correct from Green wire, through resistor, to ground.
- ellisob
- Posts: 8
- Joined: Fri Nov 13, 2015 8:12 am
Re: Using digital outputs
Side view of pinout connected :-)
- owenthepuppy
- Posts: 6
- Joined: Sat Dec 24, 2022 12:00 am
Re: Using digital outputs
Hello,
We are having the same problem - same board, same issue.
One thing we can add is that if you add the device as a dimmable LED, it will work properly. It only fails to work if we are doing it as a digital output.
It is also worth mentioning that we tested our wiring by using the arduino environment to turn the LED on and off as a digital output and it worked fine there.
If I didn't know any better, I would say there is some kind of bug with wippersnapper setting a digital output to high/low. Everything else seems to work - button as an input, analog output to a dimmable LED...
Thank you
We are having the same problem - same board, same issue.
One thing we can add is that if you add the device as a dimmable LED, it will work properly. It only fails to work if we are doing it as a digital output.
It is also worth mentioning that we tested our wiring by using the arduino environment to turn the LED on and off as a digital output and it worked fine there.
If I didn't know any better, I would say there is some kind of bug with wippersnapper setting a digital output to high/low. Everything else seems to work - button as an input, analog output to a dimmable LED...
Thank you
- ellisob
- Posts: 8
- Joined: Fri Nov 13, 2015 8:12 am
Re: Using digital outputs
Gr8! Thx! I will give this a try when I get a chance.
- brubell
- Learn User Page
- Posts: 2011
- Joined: Fri Jul 17, 2015 10:33 pm
Re: Using digital outputs
I've filed an issue report for this on the WipperSnapper firmware repository and assigned it to myself.
For a timeline, I will be able to look into this towards the end of this week/early next week. I'm currently finishing up a feature to support addressable RGB pixels (NeoPixels, DotStars). I will sweep across bugs after, with this bug as a priority item.
You may track it here (I'll also update the thread): https://github.com/adafruit/Adafruit_Wi ... issues/401
For a timeline, I will be able to look into this towards the end of this week/early next week. I'm currently finishing up a feature to support addressable RGB pixels (NeoPixels, DotStars). I will sweep across bugs after, with this bug as a priority item.
You may track it here (I'll also update the thread): https://github.com/adafruit/Adafruit_Wi ... issues/401
- ellisob
- Posts: 8
- Joined: Fri Nov 13, 2015 8:12 am
Re: Using digital outputs
Thx!!
And yes it does work if I use a dimmable led :-)
And yes it does work if I use a dimmable led :-)
- brubell
- Learn User Page
- Posts: 2011
- Joined: Fri Jul 17, 2015 10:33 pm
Re: Using digital outputs
I've been able to replicate this issue and resolved it via this pull request: https://github.com/adafruit/Adafruit_Wi ... o/pull/413. The fix for this is included in the Beta.61 release.
Could you both update to beta 61 and let me know if it has fixed this issue for you?
Could you both update to beta 61 and let me know if it has fixed this issue for you?
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.