Generic Serial ISO
 
Notifications
Clear all

Generic Serial ISO

13 Posts
4 Users
0 Reactions
5,700 Views
Posts: 18
Topic starter
(@cheapolights)
Eminent Member
Joined: 17 years ago
[#15424]

I have previously run a large display on a 100 year old house but have moved. Since I am at a new location, I have decided to start looking at upgrading my control boards. Previousy I was using a simple 8 channel board with opto22 ssr's. It was being driven directly from a parallel port (I know, stupid idea). I would like to upgrade my controller to use an intelligent controller so that I could use xbee links to add more simaler controllers.

My questions are as follows:

  • What EXACTLY is output from the 'generic serial' plugin?
  • How bug free is it?
  • Does the serial plugin scale well?
  • 2.5 Seems to have some massive bugs, is it still the latest version?

Additionally, can anyone suggest a source for low cost SSR's? I am finding opto-22's 13.50 a piece to be a little steep, even for name brand products!

Thanks in advance.


12 Replies
Posts: 789
(@chilloutdocdoc)
Prominent Member
Joined: 18 years ago

Welcome to the world of expanding your blinky flashy. The generic serial output is great for custom hardware setups, which it sounds like you're pretty good at, while I'm not familiar with the exact number of channels that you can output, I know that the Renard output is capable of outputing well over 100 channels per port.

The output plugins are great, and really aren't all that buggy, the lagest issue you may have, is your computer trying to re-assign port numbers nightly, which is why most of us leave our show computers to do nothing else but run our show.

The output plug-ins scale great, many people here have run thousands of channels in vixen.

As for 2.5's buggy nature, it was a beta release that most people treated as a fully featured product. The latest current version is 2.1 which you can download from http://vixenlights.com/ . KC and the gang are working on 3.0 as we speak, but as always he will provide an uprgrade path to move sequences from 2.1 or 2.5 to 3.0.

If you'd like to use the Xbee's go ahead and look at the Ren-W (Renard Wireless) There's quite a lot of information, and it's a pretty well tested setup.

Any more questions feel free to go ahead and shoot them on over 🙂


Reply
Posts: 18
Topic starter
(@cheapolights)
Eminent Member
Joined: 17 years ago

The Renard looks shockingly like DMX without a universe channel limit...

While it appears to be an excellent design that I may implement in the future, with no way of purchasing the prebuilt boards, it is out of my skill range. I don't yet have the equipment to solder that style of board and unfortunatly, I don't have the hardware to flash PIC ROM's.

At this point I think that I just need to work out how to read the data coming off of the generic serial plugin. I am not that concerned about be COM port reasigning at night. Besides my show computer doing nothing else, I rewrote the UART so that it is permanently enumerated as COM1:D.

Any more ideas about the data string? Also, if I am using a controller that can output PWM to the SSR's, how important is it that the PWM cycle lines up with the zero crossing of the mains power?


Reply
Posts: 789
(@chilloutdocdoc)
Prominent Member
Joined: 18 years ago
CheapOLights wrote:The Renard looks shockingly like DMX without a universe channel limit...

While it appears to be an excellent design that I may implement in the future, with no way of purchasing the prebuilt boards, it is out of my skill range. I don't yet have the equipment to solder that style of board and unfortunatly, I don't have the hardware to flash PIC ROM's.

Where are you at that you can't purchase boards, 99.99% of hardware seen here is built by the End User (aka you).

At this point I think that I just need to work out how to read the data coming off of the generic serial plugin. I am not that concerned about be COM port reasigning at night. Besides my show computer doing nothing else, I rewrote the UART so that it is permanently enumerated as COM1:D.

Any more ideas about the data string?

You might be able to find something on this thread: http://doityourselfchristmas.com/forums/showthread.php?12757-Vixen-Generic-Serial-Output-controls-the-Arduino!&p=129693#post129693

Also, if I am using a controller that can output PWM to the SSR's, how important is it that the PWM cycle lines up with the zero crossing of the mains power?

If you're controlling AC the PWM cycle must be the width of one AC cycle, and we're using Forward Phase Dimming. You can google the term and find a lot smarter people explaining it then me, but basically, you turn the current on partway through the AC cycle, and it kicks off at Zero Crossing due to the nature of the hardware used.


Reply
Posts: 18
Topic starter
(@cheapolights)
Eminent Member
Joined: 17 years ago

I could easily purchase the PCB's, but assembling them is beyond what I have available at the moment. Aside - why else would it be called DIY christmas???

I am familiar with the concepts of forward phase dimming, but nowhere can I find a definitive yes or no answer that states it must be synchronized with the zero-crossing.

I had found the thread you linked to a while back, but the version of C that is used with the arduino is one that I am not familiar with. I don't understand what is meant by the only 7 channels statement.


Reply
Posts: 789
(@chilloutdocdoc)
Prominent Member
Joined: 18 years ago
I could easily purchase the PCB's, but assembling them is beyond what I have available at the moment. Aside - why else would it be called DIY christmas???

Fair warning, using boardhouse produced PCB's is a LOT easier than protoboard or doing your own.

I am familiar with the concepts of forward phase dimming, but nowhere can I find a definitive yes or no answer that states it must be synchronized with the zero-crossing.

Yes it must be sync'd with the zero cross, otherwise the values won't be correct

I had found the thread you linked to a while back, but the version of C that is used with the arduino is one that I am not familiar with.

What type of controller are you using? This might help us point you toward some code you could use.

I don't understand what is meant by the only 7 channels statement.

that's just how he set his code up.


Reply
Posts: 18
Topic starter
(@cheapolights)
Eminent Member
Joined: 17 years ago

I am using a Parallax Basic Stamp 2 micro controller to handle the serial to relay comm. I would love to do dimming and may order some boards for the Renard later, but as a high school student, my budget is very tight.

I understand that Vixen is outputting channel data in what seems very much like 8ch segments. If this is true, could I grab the data as it comes into the buffer and then output a byte at a time to the lights. This would then only need to be triggered when the controller received more data.


Reply
Posts: 352
(@pmscientist)
Reputable Member
Joined: 16 years ago
CheapOLights wrote:I am using a Parallax Basic Stamp 2 micro controller to handle the serial to relay comm. I would love to do dimming and may order some boards for the Renard later, but as a high school student, my budget is very tight.

I understand that Vixen is outputting channel data in what seems very much like 8ch segments. If this is true, could I grab the data as it comes into the buffer and then output a byte at a time to the lights. This would then only need to be triggered when the controller received more data.

The Stamp will do nicely. You're correct, the generic serial driver outputs one byte per channel. The value of each byte contains the intensity of the channel. Since you're not dimming, you can just ignore the actual value. If it's 0, it's off otherwise it's on. Here's a good thread covering interfacing w/Arduino via the generic serial driver. It should port to the BASIC Stamp without much trouble.

http://doityourselfchristmas.com/forums/showthread.php?p=129693#post129693


Reply
Posts: 789
(@chilloutdocdoc)
Prominent Member
Joined: 18 years ago

CheapOLight, I understand a tight budget! This is my second year decorating first was my senior year of high school, had to take last year off due to some last minute issues with college, but this year, planning to light up again! Don't let your blinky get in the way of your school and you'll do an amazing job!

A little more information about that arduino code.

It sets up the hardware serial routine, sets the correct pins as outputs, it then enters loop() which loops continiously. Within that loop it's pretty much what it says. If 7 or more bytes of serial are available, loop through reading 7 bytes into an array. Copy this array to the PWM hardware setup of the Arduino.


Reply
Posts: 18
Topic starter
(@cheapolights)
Eminent Member
Joined: 17 years ago

I have written some basic code to parse the incoming data from the serial buffer, but I have hit a snag in porting some of the code in this thread. I do not understand the lines that check the buffer to ensure that all data has been recieved. I believe that I should check each variable in the array to see if it contains the right amount of data but I am unsure of how to do this. Any suggestions?

I am attempting to input the data one byte at a time and store it in an array. The data has to be dealt with as it arrives as the Basic Stamp lacks a serial buffer. Bellow is the code I have so far; can anyone spot bugs that would cause random stuff to happen?

' {$STAMP BS2}
' {$PBASIC 2.5}

'--------------------------------------------constants-------------------------------------------
baud CON 84
link CON 16
chan VAR Byte(8)
chanid VAR Byte
'--------------------------------------program initialization------------------------------------

DO
FOR chanid = 1 TO 8
SERIN link, baud, [chan(chanid)]
NEXT

FOR chanid=1 TO 8
IF chan(chanid)>0 THEN HIGH chan(chanid)
NEXT
LOOP


Reply
Page 1 / 2
Share: