Show Posts
Pages: [1]
1  Using Arduino / Networking, Protocols, and Devices / Re: looking for Visca protocol code or library! on: August 25, 2011, 08:57:55 pm
I'd also be very interested in this. I got a level shifter. Now just need a library to do the work. I'd be interested in helping out but also have a fairly limited knowledge of writing libraries for arduino.
2  Forum 2005-2010 (read only) / Troubleshooting / ethernet shield fried on: November 14, 2009, 07:34:33 pm
Today while I was using my Arduino ethernet shield i was pluggin in a wire and it got loose on me. It fell on several of the pins on the wiznet chip causing some shorts. Now the chip doesn't connect anymore to my arduino. I'm guessing that the wiznet chip is fried. I know it's surface mount, but would it be very difficult to fix? Would there be a company that could do this for me (I'm in Australia)? The chip is only around $5 and it seems a shame to spend another $45. Any help would be greatly appreciated.
3  Forum 2005-2010 (read only) / Syntax & Programs / Re: Calling a function using a variable on: February 01, 2010, 06:02:33 am
Great I'll give it a try. Thanks heaps!
4  Forum 2005-2010 (read only) / Syntax & Programs / Re: Calling a function using a variable on: February 01, 2010, 05:52:43 am
Sorry about the previous post I removed. Realised I'd be better off explaining it a bit more. Thanks.
5  Forum 2005-2010 (read only) / Syntax & Programs / Re: Calling a function using a variable on: February 01, 2010, 05:51:41 am
Hmm sounds like it may work. This is what I got so far:

void loop() {
  //Is an OSC message available?
  if ( osc.available() ) {
    //this will be our variable that we want to call as a function. Possible values may be 'set' 'flash' 'tap' etc
    char *var = recMes.getAddress(1);
    //this is the value that we need to pass to the function
    float value = (float)recMes.getArgFloat(0);

   //How do I call the right function here????

void set(float value){
//do something

void flash(float value){
//do something

void tap(float value){
//do something

Sorry still a little new to some of these concepts. Thanks again!
6  Forum 2005-2010 (read only) / Syntax & Programs / Calling a function using a variable on: February 01, 2010, 05:22:38 am
My code currently receives a OSC value into a variable and I'd like to call a function using that variable. For example, the osc message looks like this:

and a value of say 0.5

The variable is set to the second part of the address 'set'. I now want to call the set() function and pass on the value of 0.5. How would I do this? I thought about using case switch, but it won't allow you to switch on a string type variable. Is there any way to do this?
7  Forum 2005-2010 (read only) / Interfacing / Re: OSC DMX on: November 25, 2010, 01:41:58 am
And one other thing.
Make sure you set the alpha channel in the arduino code.
     //Set DMX channel 4 to full brightness
     DmxSimple.write(4, 255);
     Ethernet.begin(serverMac ,serverIp);

Just add three more channels to your starting channel to get the alpha. In my previous example this would be 63.
8  Forum 2005-2010 (read only) / Interfacing / Re: OSC DMX on: November 25, 2010, 01:26:18 am
Hey Steve,
Thanks for bringing this to my attention. In the comment section on the top where it says which values to fill out in iOSC (or whatever osc sending client you use):

slider1    /dmx/ledblu    float          1   0  
slider2    /dmx/ledgrn    float          1   0
slider3    /dmx/ledred    float          1   0

They need to be changed to this (in your OSC client on your iphone):

slider1    /dmx/1    float          1   0  
slider2    /dmx/2    float          1   0
slider3    /dmx/3    float          1   0

I changed this because it allowed an easy way for users to set their DMX channel in the OSC client and made it scalable. So basically the DMX channel is being derived from the OSC message itself. If for example you had an RGB par can set to DMX channel 60 then your address in your OSC client would be:

slider1    /dmx/60    float          1   0  
slider2    /dmx/61    float          1   0
slider3    /dmx/62    float          1   0

Hope that makes a bit of sense. If not let me know. I'll try to get around to updating the code. It's a little sloppy with some unnecessary bits in it.
9  Forum 2005-2010 (read only) / Interfacing / Re: translating strings to hex/dec/bin on: November 15, 2009, 06:22:43 am
anyone have suggestions on how you would convert a decimal to hex?
10  Forum 2005-2010 (read only) / Development / updated OSC library for 0021 on: November 26, 2010, 10:31:31 pm
I've done a little bit of work and updated Recotana's OSC library to work with 0021. I haven't tested it extensively so please let me know how it work out for you.

Download Library:
11  Forum 2005-2010 (read only) / Development / Re: Recotana's OSC Library on: November 26, 2010, 10:32:45 pm
check out:

for an updated OSC library for 0021.
12  Forum 2005-2010 (read only) / Development / Re: Recotana's OSC Library on: November 24, 2010, 06:50:20 pm
Does anyone know of a working OSC library for the latest arduino release (0021)? If not maybe I'll have to figure out how to write one and see what happens.
13  Forum 2005-2010 (read only) / Development / Re: Recotana's OSC Library on: December 13, 2009, 12:25:36 am
Looks like I solved my own problem. Replace lines 700-711 from the original OSCClass.cpp (v1.0.1) with the code below. This will output the osc messages without the forward slashes.

            //Added this in to remove the slashes out of final output
            if(packetCount>3)  {
14  Forum 2005-2010 (read only) / Development / Recotana's OSC Library on: December 08, 2009, 03:33:50 am
I've been playing around with Recotana's OSC library and came across an issue I'm not sure how to solve. Basically the arduino receives an OSC message something like this:


and of course the value.

When I use:


it returns the second value with the forward slash like this:


How would I get the 1 by itself without the forward slash. I've tried the wstring library with no luck. Plus that's probably not the most efficient way to do this. Is there anyone familiar with the library that they'd know how to modify the code so recMes.getAddress(1) outputs without the forward slash? I tried to look through it but it all seems a little foreign to me. Thanks.
15  Forum 2005-2010 (read only) / Development / Modifying recotana's OSC library for 0021 on: November 24, 2010, 09:08:57 pm
I noticed today that Recotana's OSC library doesn't seem to be working with the new Arduino IDE (0021). It seems as though a lot of the functions have changed in the W5100.c file in the Ethernet library. I've been replacing some of the functions with one I know but have got stumped on a few.

Sn_IR(socketNo) is the old function. What do I replace this with?
getSn_IR( socketNo ) also is missing.
IINCHIP_WRITE is another function that has disappeared.

There doesn't seem to be very much commenting in the new W5100 files so I don't really know what everything does. Does anyone out there have any ideas?
Pages: [1]