Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't turn the lights on #82

Open
tamasharasztosi opened this issue Sep 19, 2017 · 11 comments
Open

Can't turn the lights on #82

tamasharasztosi opened this issue Sep 19, 2017 · 11 comments

Comments

@tamasharasztosi
Copy link

tamasharasztosi commented Sep 19, 2017

Hi!
I cannot make this work. I have a esp8266 (data pin: D4) connected to ws2812b lightstrip with 32 leds.
I could connect to it thought the phone app but cannot turn the lights on.
The only instruction I didn't do is this because I didn't find this one: Replace avm/pgmspace.h with pgmspace.h
what I set up:
wifi creditials,
#define NUM_PIXELS_PER_LIGHT 32
#define pixelCount 32
#define pixelPin D4
set #define PRINT_BUFFER_LEN 4096 in aJSON.h
and this one shows as many device in the app as I write into it:
#define MAX_LIGHT_HANDLERS 2
What have I missed?

@probonopd
Copy link
Owner

Are you sure the electrical connections to the LED strip are correct, can you use it using other sketches using the same LED library (e.g., its example sketches)?

@tamasharasztosi
Copy link
Author

tamasharasztosi commented Sep 21, 2017

I have tried the LED library's examples and it worked great with both GPIO2 and GPIO3 connection/method. And your project is also looks like working on my device because the strip goes white-red-green (on all the 50 leds) and the pairing process in the app also looks good but after that I can't control the added lightstrips (however in the serial monitor the state and stuff change after I set something in the app).
Could you write down your config? How should I set NUM_PIXELS_PER_LIGHT, pixelCount,MAX_LIGHT_HANDLERS? Have I missed something? And where should I replace avm/pgmspace.h with pgmspace.h ?
Thank you for your help.

@rickylee64
Copy link

Same issue here. I get the white / red / green scans indicating I've got wifi connection. My Android Philips Hue app establishes a connection, but is not switching the strip on. Serial monitor indicates communication is happening. Did you get it working tamasharasztosi?

@tamasharasztosi
Copy link
Author

Sadly i didnt manage to make it work so i gave it up..

@probonopd
Copy link
Owner

@tamasharasztosi can you control your LED strip with the example files that come with the https://github.com/Makuna/NeoPixelBus library?

@tamasharasztosi
Copy link
Author

tamasharasztosi commented Oct 16, 2017

Last time it worked with bitbang method I think, but now I can make it work at all. Im using Wemos D1 mini board which is based on ESP-12, the data pin is connected to D4 (GPIO2).

@jdschuitemaker
Copy link

jdschuitemaker commented Oct 16, 2017 via email

@Quanghoster
Copy link
Contributor

Quanghoster commented Oct 16, 2017 via email

@tamasharasztosi
Copy link
Author

tamasharasztosi commented Oct 16, 2017

Ok guys, finally it started working with bitbang method! (only with that)

My setup:
#define MAX_LIGHT_HANDLERS 2 //in LightService.h
#define NUM_PIXELS_PER_LIGHT 21
#define pixelCount 41
#define pixelPin 2 //(D4 on wemos d1 mini)
NeoPixelBus<NeoGrbFeature, NeoEsp8266BitBang800KbpsMethod> strip(MAX_LIGHT_HANDLERS * NUM_PIXELS_PER_LIGHT, pixelPin);

Also replace avm/pgmspace.h with pgmspace.h in Arduino/aJson/aJSON.cpp

@jdschuitemaker
Copy link

Bitbang solved it for me too! Thank you @tamasharasztosi .

Now how to get the iOS version see the same setup that I created with the Android version of the app.

@probonopd
Copy link
Owner

@tamasharasztosi want to send a pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants