My journey with the Falcon Pi Player

I finally made some time to start pulling my FPP together.
My goal is two fold – l prepare how I will play my Christmas lights this year, and learn some more stuff.
My current configuration ( what I had available)

  • Several new 4 and 8 GB Sd cards ( one cam loaded Rasbian OS \ great for proving the Pi boots)
  • A Rev B Pi
  • 4 port Powers USB 3.0 Hub
  • a Lenovo N5901 Mini Keyboard / Track ball
  • a Small 7″tft Analog display
  • I am waiting for the USB WiFi adapter to arrive ( I chose one for the list of known working units over at http://elinux.org/RPi_USB_Wi-Fi_Adapters)
    I need to purchase another Wireless Mouse Keyboard that is more compatible. But for now that can wait.
    So I followed the instructions to create the SD card at http://falconchristmas.com/forum/index.php/topic,483.0.html. (MyKroFt’s Instructions are straight forward and clear). For the dummies out there like me, you copy the contents on the of the Zipped Folder not the unzipped folder to the SD Card.

    So I connected all the hardware together as so:
    USB Hub powered the PI ( I only want a single Power supply.)
    The monitor is connected to the RCA analog port on the PIWireless keyboard is connected to USB Hub

    On Power up the Green LED flashes but the screen remains blank to a loon time. But then Surprise Surprise the screen started scrolling text. Yippee!
    Then the Falcon Christmas Splash screen popped up.
    It the disappears to a blank screen.

    So that is my first baby steps. I am happy to be starting the journey.

    the Next Step – WiFi
    Getting Wifi going Was easy.
    First purchase a recommended USB adapter. This is a good place to start:
    http://elinux.org/RPi_USB_Wi-Fi_Adapters

    I followed there instructions to install the dongle:
    http://falconchristmas.com/forum/index.php/topic,309.msg1975.html#msg1975

    Putty to the pi and

    List the USB devices
    lsusb
    Your Wifi Dongle should be there – if not seek help from a non noob. šŸ˜‰

    Have look at some information from a wireless network interface

    The last thing I did was read all the IP addresses on the Pi
    sudo ip addr show

    So there you go. In my case I was then able to type in the IP address of the Wifi and access the FPP home page.

    WiFi Continued
    So I discovered today if I reboot the Access point the Pi is connected, the Pi doesn’t connect to the AP when it is back up.

    This will need to be parked for the time being As I am unsure where to go with this issue.

    Posted in Uncategorized | Comments Off on My journey with the Falcon Pi Player

    Handling Errors

    My controllers use two LEDs to indicate controller status.
    H1 – DMX Activity flashes to indicate DMX data has been received and processed.
    H2 – Power / Error is on to indicating Power is ON and there are no errors.Ā  H2 flashes various patterns to indicate the type of error.

    The change of a relevant channel is indicated by a flashing green LED.

    flashing DMX data has been received and processed. Normal Operation.

    The red LED repeats error codes until cleared:

    Pattern Error Solution
    flashing There is no signal connected to the transceiver. Connect the transceiver to the DMX bus.
    double flashing The received signal is not DMX. Try swapping D+ and D- at the DMX connector.
    triple flashing Future Functionality. N/A.
    constant on DMX received and no errors. Ā Normal Operation

    This error indicator is easily implemented with the following code:
    void indicate(void) {
    static uint8_t count;
    if (++count >= 10)
    count = 0; // reset every 5 secs
    if(Blink ==0) CLEAR(H1);
    else if (count <= Blink)
    TOGGLE(H1); // toggle LED
    }

    Each error condition is given an unique Odd number.
    The LED Flash period is set by an timer overflow.

    Posted in AVRs, DMX, Light Controllers | Comments Off on Handling Errors

    I swear

    I am a husband, father, son, brother and a friend. Today I took the oath to Love, cherish and protect all women I come in contact with, starting with the ones closest to me.WhiteRibbonAustralia_CampaignFBCover

    Posted in ramble | Comments Off on I swear

    Motorboat – A La Matthew Styles

    Come with me down the old memory lane. Imaging, if you will a dark dimly lit street in late 1990s. The roads are still red dirt. The sun has long gone down for it nightly rest. Life on the main streets in Vientiane, the capital of Loa PDR are alive with both locals and foreigners ( ā€œforlangā€) wondering from food cart to food cart selecting the nights meal.
    The selection is not as great as Thailand, but then again, you know this food is fresh. There isn’t the incessant Thai noise either.
    We finally select a ā€œMotor boatā€ cart for our desert. Motor boats are a sweet fried delicious concoction of egg, butter, pastry, and sweetened condensed milk.

    So this morning I tried a similar product here in Australia.
    Ingredients needed are simple, Woolworths Tortillas, fresh eggs, Butter, raw sugar, and sweetened Condensed Milk.
    In a non-stick skillet, melt a little butter. Crack an egg on the pan and break the yoke. Place the tortilla on the egg and press down evenly to spread the egg. Fry for 1 minute. Lightly butter the top side of the tortilla and flip. Fry the tortilla for 2 minutes
    Place the pastry on a place tortilla down. Add sprinkle of raw sugar, and then drizzle a small amount of Condensed Milk on top. Fold 3 sides of the pastry over into an open envelop format. Serve hot.
    Optional extras include authentic red dirt and 2 Stroke soot from neighbouring road.

    Posted in Food, ramble | Comments Off on Motorboat – A La Matthew Styles

    Proud Dad or What?

    This is a rambling Rant.
    Recently my eldest daughter moved to south west Queensland to take on the position of Station Cook for a cattle station.
    She was a 100% city slicker girl.
    We had 6 weeks over Christmas to get her packed up and ready for the 2500km trip to her new work site.
    Now she has settled in, it is good to read the antic of Jess – The Station Cook.

    Am I proud of her? You bet I am.
    Am I jealous? A little. But I get to enjoy watching her develop and grow as a person, so I am supper happy any way.

    To read the antic of a 100% city slicker cook’n for a great bunch of Stockies, go to www.paperthumbtack.com

    Cheers

    Posted in ramble | Comments Off on Proud Dad or What?

    More Lantens

    Those that have seen my display will know i like Lanterns. I have about 30 of them.
    Whilst at Bunnings recently I picked up 6 more. These are larger that most and are galvanised.

    Now to work out how to light them. Currently I am think of 4 pingpong balls with 4 RGB LED running of a 6 channels. That should make for an interesting affect having 2 balls coloured differenctly to the other t2. We will see.

    This may been a new small controller, using all SMD compnent including a swish Dual SMD Fets.Ā  First look at MMDF1N05E look good, are difficault to purchase.Ā  IRF7341 are looking good too.Ā  at 55c each, the price ios also pretty good. šŸ˜‰

    More to follow.

    Posted in AVRs, Display Items, DMX, Light Controllers | Comments Off on More Lantens

    Dual Pixel DMX Bridge

    One of the great technology waves to hit Christmas Lighting is Pixels. For me probably the most historic display was my MrPacjkethead in NZ several years ago.
    I purchased a number of pixel strings add to our display. 4 years ago. Yeap that long ago. Before I get onto my own controller, the following best describe why they haven’t made it on to our Christmas display:
    Observation 1 – Pixels don’t obey normal channels laws.
    Each globs needs 3 channels. A string of 50 lights equates to 150 Channels. So if I were to replace my Mega tree with strings of pixels, that would equate to 16 x 100x 3 = 4800 Channels.

    Observation 2 – Pixels don’t last long
    The production process involved in the manufacturer of pixels means they have a tenancy for allow moisture to seep into the pixel at the wires entry. Way too many stories of people being disappointed with strings failing with the first rain fall.

    Observation 3 – I am yet to see a pixel display items that have the same effect as say a Holdman Star.
    Pixels are yet to wow me. Here is why I think they fail. being able to control so many channels means the normal rules for sequencing go out the door. you can no longer treat a display items like a macro unit. when you sequence a stepping notes, you used to step from Mini tree to mini trees in sequence with the music. Some mini trees had multi-colours, you may have the add “complication” of choosing a colour. that Macro was say 8 trees of 3 colours, equalling a total of 24 channels. channel them to Pixel trees of 42 pixels per tree and the channel count goes to 1008. This is an enormous problem. Some uses started to use patterns to create interesting colour effects. others used video capture. To my eye it just looked like random noise.

    Observation 4 – Pixels make great TV screens
    But this isn’t saying anything new, ’cause that is what pixels were designed for. But considering this should tell you how the manufacturer intended them to be used and the conditions they were to operate in. Outdoor TVs are vertical panels with the rear panel.

    Observation 5 – A breed of controllers is needed for Pixel Control
    One of the first guys to bring out suitable controllers was Jim StJohn of SanDevices. Check out http://www.sandevices.com/E681info.html I have two of Jim’s controllers. Currently one is used for our internal Christmas Tree.

    Observation 6 – Pixels strings need Low Voltage & high current
    Most pixels run of 5v and draw 20mA per LED or 60 mA per bulb. 8 strings of 42 pixels equates 20Amps. Cabling loss becomes a major issue needing special attention. Power cables need increased cross sectional area.

    2 stings of pixels draw 5amps, so cabling loss can be keep to a minimum using standard Fig8 cable, see below. 10 amps will required some pretty hefty cabling. This is best demonstrated with a typical example. Assume a power cable run of 10 meters, that is the power supply is 5 meter away from the controller. And lets do s strings of 42 pixels, that is a load of 5Amdps when all LEDs are on. OK now Look at the following tables:

    Supply Ā  voltage 5 Volts
    Load 5 Amps
    Cable Run length 5 m
    Cable Size 1.3 1.8 2.5 4 6 10 mm2
    Voltage drop 0.765 0.485 0.4 0.2475 0.165 0.0955
    Voltage Drop % 15% 10% 8% 5% 3% 2%
    Result No Good No Good No Good OK OK OK

    Now say we add two more strings to the same power cable. the full load goes to 10 Amps 4mm2 cable is no longer any good, we will need to upgrade it to 10mm2.
    Actually 5 meter is really short. I envisage these being 10 to 15 metre. at 10 meters I will need 10mm2.

    Observation 7 – Pixels power cables need to keep as short as possible
    First and foremost I will state there is a certain amount of “specmanship” with this observation. Rarely are all pixels on at the same time (otherwise we buy White LEDs, right?). That said I find it is best to know the limit and then trade off for what really happens, instead of going on gut feel alone.

    As mentioned I purchased a stack of strings in 2009 and 2010. 8 went in to service on our inside tree. 8 strings were fixed to mini tomato Trellis frames. I made these in July 2011, but have been unable to complete them sufficiently to add to the display. 8 Trees at 42 pixels equates to 1008 channels or 2 DMX Universes. Several options exist to control the trees.

    1. Use a E1.31 Sandevices Pixel Controller
    2. Use a quad Pixel DMX Bridge
    3. Use a dual Pixel DMX Bridge
    4. Use a Single Pixel DMX Bridge

    I decided I didn’t want to put my SanDevices E681 controller outside central to all the controllers.
    So the decision came down to some form of DMX bridge, Single Dual or Quad. a single string bridge is expensive on controller costs. I opted for dual string bridges primarily because the Power Cable sizing remains manageable.

    Pixels Protocols

    WS2811 – man this is a hard one.Ā  The specs are pretty tight. if slow mode, it uses a bit rate of 400 kbits per second.Ā Ā In fast mode you double it to 800Ā kbits per second.

    WS2811 protocol requirement

    WS2811 protocol requirement

    The chip seems to have a free running oscillator that is synced by a long Reset code of low for longer than 50us.
    The Reset code is the same for slow and fast rates. AVRs have no way of pumping out data at these exact 400 or 800 kbits per second rates. some form of tight bit banging will be required.

     

    6 March

    The PCB have landed.

    A nice DHL man visited our house today bearing gifts.

    Prototype Dual Pixel Bridge PCB

    Prototype Dual Pixel Bridge PCB

    12 April

    Time for an Update

    Fully Assembled Dual Pixel Bridge

    Fully Assembled Dual Pixel Bridge

    As shown above, the pixel Bridge Drives either LP6803 or WS2801, but not both.Ā  I have code completed for both manually setting the Start Address in software.

    Still to be completed:

    • Pixel Blanking
    • Switchless Start Address setting

    You may note 2 resistors R9 and R12 are not fitted,Ā  These were added to include MacHorsehead’s mods for driving WS2811 strings.Ā  you simply need to add R9 and R12, Remove R7, R8, R19 & R11, and change G1 to 16MHz.

    19 April

    So I created a small routine to try the the PCB and a String.

    I am usingĀ  a modified version of Alan Burlison’s (alan@bleaklow.com) asm bit banging routine.

    June 1st
    After a little reflection, I decided I would need to set the DMX Start Address to 1 or 2 possibilities:
    1 or 1+3x42x2 = 253
    This is quite easy to implement in code with a single link pack. The main advantage to have a way of selecting the start address is rapid replacement if one fails.

    July 20 / 21 –
    On Sunday night I finalised the Address setting / Bank selecting method. I can now set up the dual bridges to start at address 1 or 253.
    I couldn’t sleep last night so I got back up and worked on this some more. The Blanking option is now implemented.
    It is 4:30 in the morning and the coding is now finished.

    All 5 units I made (that 4 for the display and 1 spare) are mounted in Green project boxes with the RJ45 and DC power connector on the bottom. I added 2 nylon screws to line up with the Act and Pwr/Err LEDs.

    Posted in AVRs, DMX, Light Controllers | Comments Off on Dual Pixel DMX Bridge

    DMX splitters

    In a distributed network, you need to be able to connect multiple controllers together on the same universe. However, the display layout doesn’t always enable a simple daisy chain connection. This is where DMX splitters come in handy. They split a universe into 4 physical segments. Each segment still gets all 512 channels.
    Up to now I have only used simple non isolate splitters.
    In fact that are so easy to make I did even bother a Printed Circuit Board.

    Old 'Vero' board DMX Spliter'

    Old ‘Vero’ board DMX Spliter’

    using a 26L31 chip mad things really easy for wiring.

    I tend to use SMD for most of my designs these days.

    New SMD Quad DMX Splitter

    New SMD Quad DMX Splitter

    I finished a lay out using SMD and am pretty happy with the results expect to the following points:

    • I still have a gazillion 75176 interface chips from when I over ordered last year.
    • I need to purchase more SMD Electro Capacitors
    • The most likely parts to blow are the input 75176, the 6N139, and the the 26L31.

    So I decided to redo the design using all leaded components. this is the resultant layout.

    New Leaded Quad DMX Splitter

    New Leaded Quad DMX Splitter

    This new design utilises some parts I bought in bulk.

    I am still utilising a 3 pin header for the input DMX connector. I find this gives maximum flexibility in terms of final case mounting

    6 March

    A nice DHL man visited our house bearing gifts,Ā  the Quad DMX Splitter PCB has arrived.

    Quad DMX Splitter PCB

    Quad DMX Splitter PCB

    And the final product.

    Assembled Quad DMX Splitter

    Assembled Quad DMX Splitter

    Posted in DMX, Other Hardware | Comments Off on DMX splitters

    Candy Canes mk2

    I bought some more candy canes from Hot Dollar shop again this year.Ā  They are translucent red with a white strip.

    This year I want them on the nature strip so they need to be self supporting and self contained.

    The canes fit perfectly into 25mm Electrical ConduitĀ  Couplers.

    25mm coupler

    25mm coupler

    For Tee junctions, I have been using irrigation barbed Tees.

    25mm Irrigation Tee

    25mm Irrigation Tee


    20mm conduit fits nicely inside the irrigation fittings.
    Update – it is important to ensure you have drain holes! at the end of the 2013 season, I discover the fram was full of water.

    Posted in AVRs, Display Items, DMX, Light Controllers | Comments Off on Candy Canes mk2

    Mini Coro Trees

    This is a first for me – Using Coro or Flute board to construct display items. If you want check out what can really be done with Coro board, check out http://www.holidaycoro.com/. These guys do heaps of display items.
    I have traditionally had 5x fibre optic trees on the first floor of my house. they were store bought that had a 3watt RGB retrofitted under the tree stork. Last season one fails and refused to “stand up tall and proud”.
    This year I tried my hand at Coro board. Starting with a Pentagon base, I made 5 sided cones 900mm high. 5x RGB stips were then placed on hte base to make the trees glow.

    Posted in Display Items, Light Controllers | Comments Off on Mini Coro Trees