0

funhouse NeoPixel strip?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: funhouse NeoPixel strip?

by adafruit_support_carter on Fri Jun 04, 2021 10:55 am

For the above tests, are you running the same code (except for maybe pin changes) on the MagTag and FunHouse? Can you post the full code listing here.

adafruit_support_carter
 
Posts: 20535
Joined: Tue Nov 29, 2016 2:45 pm

Re: funhouse NeoPixel strip?

by mattlewis on Fri Jun 04, 2021 1:52 pm

good question. Let me do this methodically and see what I get:

Code: Select all | TOGGLE FULL SIZE
import board
import neopixel
pixels = neopixel.NeoPixel(board.D10, 30) # MagTag
#pixels = neopixel.NeoPixel(board.A1, 30)  # FunHouse
pixels.fill((128,128,0))
#pixels[0] = (100, 0, 0)


Using Laptop power:
-------------------------------
  • "Neon" & MagTag: solid yellow
  • Strip & MagTag: solid yellow

Both still fine and after reset or off/on switch toggle
I also get good behavior with both strips using an adafruit 2000mAh battery on MagTag.

  • "Neon" & FunHouse: solid yellow
  • Strip & FunHouse: no light. Tried tapping, wiggling wires, reset, off/on. Tried "pixels[0] = (100, 0, 0)" instead of fill.

Trying 2.4A adapter from ADABOX 016:
-----------------------------------------------------------
  • "Neon" & MagTag: solid yellow (good after reset or off/on)
  • Strip & MagTag: first two lights blue, 3rd amber, rest dark. Each reset after: half lit but not yellow, few colors change.
  • Either strip & Funhouse: no light

Hardware
------------
  • NeoPixel strip from ADABOX 017
  • "Neon" strip is first 30 pixels from 96 pixel https://www.adafruit.com/product/4310 (cut at line 10)
  • MagTag from ADABOX 017 (6.2.0 on 2021-04-05)
  • FunHouse from ADABOX 018 (6.3.0 on 2021-06-01)

mattlewis
 
Posts: 25
Joined: Mon Sep 23, 2019 10:51 am

Re: funhouse NeoPixel strip?

by adafruit_support_carter on Sat Jun 05, 2021 11:16 am

Try this slightly modified version on the FunHouse:
Code: Select all | TOGGLE FULL SIZE
import board
import neopixel
import adafruit_dotstar

ds = adafruit_dotstar.DotStar(board.DOTSTAR_CLOCK, board.DOTSTAR_DATA, 5)

pixels = neopixel.NeoPixel(board.A1, 30)

ds.fill((0, 128, 128))

pixels.fill((128, 128, 0))


Do the DotStars at the top of the FunHouse board at least light up? Should be a cyan color.

adafruit_support_carter
 
Posts: 20535
Joined: Tue Nov 29, 2016 2:45 pm

Re: funhouse NeoPixel strip?

by mattlewis on Sat Jun 05, 2021 4:52 pm

Yes: they light up cyan using either strip and either power source.
(after I added the dotstar library)

Strip behaviors remain same as above.

mattlewis
 
Posts: 25
Joined: Mon Sep 23, 2019 10:51 am

Re: funhouse NeoPixel strip?

by adafruit2 on Mon Jun 07, 2021 12:25 pm

matt - it could be a marginal voltage issue on the protecter diodes. its worth trying A0 and A2, do those act any better?

adafruit2
Site Admin
 
Posts: 20094
Joined: Fri Mar 11, 2005 7:36 pm

Re: funhouse NeoPixel strip?

by mattlewis on Mon Jun 07, 2021 1:34 pm

Same behavior:*

* dotstars are happily cyan in all tests.
* "neon" strip is consistently full yellow in A0 or A2 with FunHouse powered by laptop
* no light from neopixel strip in A0 or A2 (*except once the first few lit up w/A2, wrong colors, can't replicate)
* no light from either strip when powered from power adapter using A0 or A2
* power adapter sanity check: still powers matrixportal / panel from ADABOX 016 fine

mattlewis
 
Posts: 25
Joined: Mon Sep 23, 2019 10:51 am

Re: funhouse NeoPixel strip?

by adafruit2 on Mon Jun 07, 2021 2:08 pm

ok another last check before changing hardware - waht if you power the funhouse from your computer's USB port or *unpowered* hub (not a powered hub)?

adafruit2
Site Admin
 
Posts: 20094
Joined: Fri Mar 11, 2005 7:36 pm

Re: funhouse NeoPixel strip?

by mattlewis on Mon Jun 07, 2021 2:47 pm

YES - ok - so if I connect/power from my unpowered USB Hub, the previously dark strip goes full yellow, using A0, A1, or A2.

I had previously tried different cables and ports from the laptop, but not from a hub.

Does the laptop give the hub more power than it will directly from the ports?

(Looking at the About This Mac -> system report -> USB, it will only say FunHouse Current Available 500mA and required 100 mA, regardless of port or strip status.)

mattlewis
 
Posts: 25
Joined: Mon Sep 23, 2019 10:51 am

Re: funhouse NeoPixel strip?

by mattlewis on Tue Jun 08, 2021 12:52 pm

I noticed the FunHouse parking assistant guide suggests using an official Rpi 5.1V 3A power supply (and A2) so I just tried that... neither strip lights up, but dotstars are on and cyan.

What's the magic that's allowing my unpowered hub to consistently power/light strips, when my laptop USB ports and power supplies won't?

mattlewis
 
Posts: 25
Joined: Mon Sep 23, 2019 10:51 am

Re: funhouse NeoPixel strip?

by drschlock on Tue Jun 29, 2021 4:26 pm

I'm having a very similar issue with a strange twist: When my funhouse is connected to my windows PC with the "CIRCUITPY" drive mounted, the NeoPixels work fine. However, when the Funhouse is ONLY connected to power (no data), the NeoPixels do not work/light up.

I've tried with multiple power supplies and if there's no data connection to the PC then the NeoPixels do not light. This does not affect the built-in dotstar leds. They run regardless of USB connection as long as there is power.

Setup:
  • NeoPixels: Strip that came with the MagTag AdaBox
  • NeoPixel Wiring: Black Wire connected to Ground, Red Wire connected to VCC, Green Wire connected to A0, A1 or A2. Note, I used the VCC and GND pins associated with each of the A0, A1 or A2 ports
  • Funhouse Ports tried for Neopixels: A0, A1, and A2
  • CircuitPython Version: 6.3.0
  • CircuitPython Library version (all files used from this version): adafruit-circuitpython-bundle-6.x-mpy-20210629
  • Non-data power supply amps: 1.8A


Any guidance would be greatly appreciated!


** Edit**

Here is the test code I used. The count variable outputs to the LCD so I can see that code is running even if the NeoPixels are not lit.
Code: Select all | TOGGLE FULL SIZE
"""CircuitPython Essentials NeoPixel example"""
import time
import board
import neopixel

pixel_pin = board.A1
num_pixels = 13

pixels = neopixel.NeoPixel(pixel_pin, num_pixels, brightness=0.3, auto_write=False)


def wheel(pos):
    # Input a value 0 to 255 to get a color value.
    # The colours are a transition r - g - b - back to r.
    if pos < 0 or pos > 255:
        return (0, 0, 0)
    if pos < 85:
        return (255 - pos * 3, pos * 3, 0)
    if pos < 170:
        pos -= 85
        return (0, 255 - pos * 3, pos * 3)
    pos -= 170
    return (pos * 3, 0, 255 - pos * 3)


def color_chase(color, wait):
    for i in range(num_pixels):
        pixels[i] = color
        time.sleep(wait)
        pixels.show()
    time.sleep(0.5)


def rainbow_cycle(wait):
    for j in range(255):
        for i in range(num_pixels):
            rc_index = (i * 256 // num_pixels) + j
            pixels[i] = wheel(rc_index & 255)
        pixels.show()
        time.sleep(wait)


RED = (255, 0, 0)
YELLOW = (255, 150, 0)
GREEN = (0, 255, 0)
CYAN = (0, 255, 255)
BLUE = (0, 0, 255)
PURPLE = (180, 0, 255)

count = 0
while True:
    print("Count:", count)
    pixels.fill(RED)
    pixels.show()
    # Increase or decrease to change the speed of the solid color change.
    time.sleep(1)
    pixels.fill(GREEN)
    pixels.show()
    time.sleep(1)
    pixels.fill(BLUE)
    pixels.show()
    time.sleep(1)

    color_chase(RED, 0.1)  # Increase the number to slow down the color chase
    color_chase(YELLOW, 0.1)
    color_chase(GREEN, 0.1)
    color_chase(CYAN, 0.1)
    color_chase(BLUE, 0.1)
    color_chase(PURPLE, 0.1)

    rainbow_cycle(0)  # Increase the number to slow down the rainbow
    count = count + 1

drschlock
 
Posts: 8
Joined: Wed Sep 25, 2013 11:57 am

Re: funhouse NeoPixel strip?

by drschlock on Thu Jul 01, 2021 2:02 pm

Update: I've found that neopixels work fine when the data line is connect to the pir sensor port on the funhouse (board.PIR_SENSOR).

It would appear there could be some sort of USB or power negotiation issue with the A0, A1 and A2 ports.

drschlock
 
Posts: 8
Joined: Wed Sep 25, 2013 11:57 am

Please be positive and constructive with your questions and comments.