Author Topic: PI zero pixel drive board  (Read 5386 times)

Offline CaptainMurdoch

  • Administrator
  • *****
  • Join Date: Sep 2013
  • Location: Washington
  • Posts: 7,854
  • Kudos: 139
Re: PI zero pixel drive board
« Reply #15 on: December 27, 2015, 04:11:45 PM »
Sounds great.  Will you be creating a Mouser BOM we can order from?  I am looking forward to this.  Making a simple board like this has been on my TODO for a while.  I would like to put some Pi's with lights in my kids' rooms and have given a little thought to synchronized Halloween costumes as well.

On the ws2801 support, are you adding a chip to work with the chip select?  I think that Materdaddy may have played around with that but can't recall.  FPP does call the SPI write function with the 0 or 1 to tell the wiringPi library which SPI output we are using but I haven't connected up a chip to test two strings of ws2801.
-
Chris

Offline ronp

  • Newbie
  • *
  • Join Date: Nov 2014
  • Location:
  • Posts: 29
  • Kudos: 1
Re: PI zero pixel drive board
« Reply #16 on: December 30, 2015, 01:41:10 PM »
Chris,

Last check for the schematic before I order a couple.

I will probably ship you one for free for helping out, and I can put the BOM on Mouser.

http://www.diychristmas.org/vb1/showthread.php?5358-PI-SPI-to-pixels-WS281x&p=62801#post62801

Ron


Offline CaptainMurdoch

  • Administrator
  • *****
  • Join Date: Sep 2013
  • Location: Washington
  • Posts: 7,854
  • Kudos: 139
Re: PI zero pixel drive board
« Reply #17 on: December 30, 2015, 02:35:30 PM »
Looks good to me.  I will defer to Mat on the nRF question.  If someone does want to use this to drive a universe of PixelNet they can make an adapter cable and maybe I can get DMX working on the onboard serial at some point.

Offline arw01

  • Hero Member
  • *****
  • Join Date: Oct 2013
  • Location:
  • Posts: 821
  • Kudos: 0
Re: PI zero pixel drive board
« Reply #18 on: December 30, 2015, 02:56:17 PM »
yes please Pixelnet. I think it would neat to drive a couple of neighbors for this price point  :)

Sit a ubiquity AP outside and light em up..

Offline ronp

  • Newbie
  • *
  • Join Date: Nov 2014
  • Location:
  • Posts: 29
  • Kudos: 1
Re: PI zero pixel drive board
« Reply #19 on: December 30, 2015, 06:22:05 PM »
Is pixelnet just a different pinout on the RS-485 UART output?

Ron

Offline CaptainMurdoch

  • Administrator
  • *****
  • Join Date: Sep 2013
  • Location: Washington
  • Posts: 7,854
  • Kudos: 139
Re: PI zero pixel drive board
« Reply #20 on: December 30, 2015, 08:20:20 PM »
Yes, PixelNet uses the same wiring as DMX, pins 1&2 on the rj45.

Offline ronp

  • Newbie
  • *
  • Join Date: Nov 2014
  • Location:
  • Posts: 29
  • Kudos: 1
Re: PI zero pixel drive board
« Reply #21 on: April 05, 2016, 08:42:22 PM »
Got my controller working off the PI SPI or FPD output.
« Last Edit: April 08, 2016, 05:25:16 PM by ronp »

Offline CaptainMurdoch

  • Administrator
  • *****
  • Join Date: Sep 2013
  • Location: Washington
  • Posts: 7,854
  • Kudos: 139
Re: PI zero pixel drive board
« Reply #22 on: April 05, 2016, 10:23:38 PM »
Nice.  It's an easy way to get a lot of data off the Pi.  There is a detection routine, are you sending back the same packet that a FPD sends or is FPP assuming older firmware that didn't support version detection?

Offline JonB256

  • Supporting Member
  • ******
  • Join Date: Mar 2013
  • Location: Granbury, Texas
  • Posts: 3,552
  • Kudos: 74
    • Granbury Christmas Lights
Re: PI zero pixel drive board
« Reply #23 on: April 06, 2016, 05:18:02 AM »
Got my controller working off the PI SPI or FPD output.


https://youtu.be/jRCl5uHoal8

Ron, will your FPGA board run using a Ribbon Cable or does it need the direct connect to the 40pin GPIO output?

Offline ronp

  • Newbie
  • *
  • Join Date: Nov 2014
  • Location:
  • Posts: 29
  • Kudos: 1
Re: PI zero pixel drive board
« Reply #24 on: April 07, 2016, 02:37:31 PM »
So currently, I am sending back 0x00. I see the 0xCC CC CC CC CC  55, but I don't respond.

You could use a ribbon cable, but I would keep it short.


Ron
« Last Edit: April 07, 2016, 06:15:47 PM by ronp »

Offline CaptainMurdoch

  • Administrator
  • *****
  • Join Date: Sep 2013
  • Location: Washington
  • Posts: 7,854
  • Kudos: 139
Re: PI zero pixel drive board
« Reply #25 on: April 08, 2016, 11:45:11 PM »
So currently, I am sending back 0x00. I see the 0xCC CC CC CC CC  55, but I don't respond.

The newer FPD firmware supports a discovery packet.  When FPP sends all zeros, the FPD responds with a packet with the first byte set to 0x02 which indicates that it is a FPD.  If there is no response to this query, then we assume it is an older FPD firmware which doesn't support the query.  In either case, the SPI speed is set to 8000000.  I believe that we will probably be using 16000000 or faster when support for the F16v2 is eventually added.  Would it help to bump the speed up for your board or is the default of 8000000 fine for your use?

Offline ronp

  • Newbie
  • *
  • Join Date: Nov 2014
  • Location:
  • Posts: 29
  • Kudos: 1
Re: PI zero pixel drive board
« Reply #26 on: May 01, 2016, 03:29:34 PM »
So I see the data 0x00 00 00 00 00 00 request coming off the PI, followed by a 0x55 55 55 55 55 CC and 0xCC CC CC CC CC 55. I would like to present an unique response to the zero command, and it looks like anything that is non-zero is a hardware detect. I would prefer the 16Mhz SPI, but either works for me. Would a generic response of 0x80 10 00 00 00 00 work for you, or pick something else? This will be my response to all commands.


0x01 - Falcon.F16V2-alpha
0x02 - Falcon.F9DV1

0x03 - Falcon.FPDV2




Offline AAH

  • Sr. Member
  • ****
  • Join Date: Jul 2014
  • Location: Australia
  • Posts: 477
  • Kudos: 14
  • Blinky blinky blinky
    • I love blinky lights
Re: PI zero pixel drive board
« Reply #27 on: May 04, 2016, 01:41:29 AM »
I'm just wondering how and where you configure the DMX/Renard output on the board from within FPP. I had what I think is a good look in FPP but I couldn't work it out. It may have been a matter of me not knowing what to look for of course. It's DMX in particular that I am looking for.
You can call me AAH, you can call me Al, or you can call me Alan.
http://www.hansonelectronics.com.au/wp-content/uploads/Catalogue.pdf Catalogue of my blinky bits
http://www.hansonelectronics.com.au/

Offline CaptainMurdoch

  • Administrator
  • *****
  • Join Date: Sep 2013
  • Location: Washington
  • Posts: 7,854
  • Kudos: 139
Re: PI zero pixel drive board
« Reply #28 on: May 04, 2016, 07:55:22 PM »
You want to configure and OpenDMX output.  If you do not have any USB serial dongles plugged in then there should only be one serial device listed in the drop down.  That will be the onboard serial port on the Pi.

I need to double check the code to see what ID to recommend to send back for the board identification.   I think I would like to reserve the high bit to indicate it is a non-Falcon board and we can use the rest of the bits as an ID.

Offline AAH

  • Sr. Member
  • ****
  • Join Date: Jul 2014
  • Location: Australia
  • Posts: 477
  • Kudos: 14
  • Blinky blinky blinky
    • I love blinky lights
Re: PI zero pixel drive board
« Reply #29 on: May 04, 2016, 10:14:12 PM »
I guess I was right. I didn't know where to look. As I knew that Open DMX is a usb "dongle" I didn't even contemplate looking on there. Thanks yet again Chris.
Now I have all the outputs sussed out I can attach pixels and dmx boards and see if my rPi-28D works as expected.



 

Back to top