Author Topic: DSPro WiFi+NewPixel?  (Read 4418 times)

Irony

  • Newbie
  • *
  • Posts: 7
DSPro WiFi+NewPixel?
« on: January 02, 2016, 09:21:49 pm »
I have a DSPro with the WiFi shield and a strip of NeoPxels. I have the NeoPixels attached to PIN2 (and I've tried most other pins with the same results).   

I can get the WiFi example to work by itself, and I can get the NeoPixel example to work by itself, but I can't get them to work together.

Once I initiate the NeoPixel strip, the HTTP serial read/println becomes corrupted.

Has anyone made these work together and/or is there an incompatibility I don't know about?

Thanks!

Irony

  • Newbie
  • *
  • Posts: 7
Re: DSPro WiFi+NewPixel?
« Reply #1 on: January 10, 2016, 12:00:53 am »
So after doing some more reading (and learning), it appears the following was similar to the issue I'm seeing:

The problem is the the lights dont draw after just doing attach. Not even reading the pulse or anything. I also have animations going every few milliseconds so even if a read the pulse and save it, there is enough time doing the animations for the next pulse to come. Im following the example as you wrote now, i have a function that checks the mode change for the animations via the rc channel, checking the pulse range and then changing the animation mode if required, or just doing the animation.

When i tried to use the built in arduino interrupts i had the same issue. as soon as a attached a function Int0 or Int1, not even doing anything, the lights would not work.

But I'm unable to find any solution attached to that thread. I tried to insert SoftSerial into my example, but it didn't seem to change anything: The pixels work great no matter what I do, the WiFi serial communication fails whenever I initialize the pixels.

All I want to do is turn the NeoPixels on/off via the WiFi. Anyone have an example that shows how to do this?