Giter VIP home page Giter VIP logo

Comments (6)

DHaylock avatar DHaylock commented on September 2, 2024

Hi @ImanolGo,

I haven't tried unfortunately.

This may be wrong but, you could work around multiple units by creating two fcservers changing the port address. Then in the oF app create two ofxOPC objects assign them with different port numbers then pass the color information out that way.

I know that you can assign the units start address. So the first unit starts at 0 to 512, then you can set the second unit to start at 513 to 1024. All you would do is increase the length of Channels x 2.

Its line 24 of ofOPC.cpp from

uint16_t data_length = 8 * 64 * sizeof(OPCPacket_SPCData_t);

to

uint16_t data_length = 16 * 64 * sizeof(OPCPacket_SPCData_t);

I'll have a look round see what i can do.

Best

from ofxopc.

DHaylock avatar DHaylock commented on September 2, 2024

https://github.com/scanlime/fadecandy/blob/master/doc/fc_server_config.md

This might help

from ofxopc.

ImanolGo avatar ImanolGo commented on September 2, 2024

Hi @DHaylock

I finally left

uint16_t data_length = 8 * 64 * sizeof(OPCPacket_SPCData_t);

But had a signed a different OPC channel for each FadeCandy.

OPC_SPC_packet->header.channel = channel;

Then on the server side I configured it like,

{
"listen": [ "127.0.0.1", 7890 ],
"verbose": true,
"color": { "gamma": 2.5, "whitepoint": [ 1, 1, 1 ] },
"devices": [
{
"type": "fadecandy",
"serial": "XXXXXXXX1",
"map": [ [ 1, 0, 0, 512 ] ]
},
{
"type": "fadecandy",
"serial": "XXXXXXXX2",
"map": [ [ 2, 0, 0, 512 ] ]
}
]
}

And "voila", that worked perfectly for me.

Theoretically that should work for up to 256 different Fadecandys, which a fairly big amount of them.

Thanks,

Imanol

from ofxopc.

DHaylock avatar DHaylock commented on September 2, 2024

Thats fantastic, I know its a bit cheeky but would be interested to see what you do with it? I'll add to the readme later this week

from ofxopc.

ImanolGo avatar ImanolGo commented on September 2, 2024

Sure, no problem.

It will be a light sculpture made with 11 fadecandys and 85 independent neopixel rings. Unfortunately, it's not built yet. I'm just implementing the software and testing the prototype.

from ofxopc.

ImanolGo avatar ImanolGo commented on September 2, 2024

If you are curious, here is the full software that I implemented:

https://github.com/ImanolGo/HaloLight

from ofxopc.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.