[ANSWERED] Isadora, Arduino, and Magnetic speed sensor
-
Hi Everyone
I need desperately some help.
I have a Crossfit machine, I would like to use the magnet speed sensor to trigger Isadora to show a video only when someone is using the machine.
I connect the sensor to the Arduino board, which is then connected to a Mac via USB cable.
now my questions are:
1 will Isadora allow showing the video even if, for example, someone uses the machine for a long time??2 can the video be played in the background when someone is not using the machine?
3 which actor do I have to use? (my guess is serial in watcher)
4 and finally does anyone know some code for the Arduino board that could help me?
Thanks to anyone that could help.......I would really be grateful
-
@andrea-vassallo said:
1 will Isadora allow showing the video even if, for example, someone uses the machine for a long time??
2 can the video be played in the background when someone is not using the machine?1. Yes, you just have to setup the logic for your file to work that way.
2. Yes,just have the condition that triggers showing the video control the intensity of the Projector actor that your Movie Player actor is going to and enable looping on your Movie Player actor. That way the video will constantly be playing, but will only be visible when the specific conditions you require are met.
-
I would suggest the simplest solution here is to use the Isadora Arduino Firmata actor...
Here is a step-by-step guide to set up an Arduino with the standard Firmata sketch to use with Isadora -
Standard Firmata instructions.
here is a screen grab of a patch using an gyro sensor connected to an Arduino board and the Isadora Firmata..
Best Wishes
Russell
-
thank you very much for your help.
i still have a problem.
call me dumbed but I cannot find the firmata actor in isadora....i have been searching online how to but I cannot find the way.
would you be kind to clarify this for me??thank you
-
We're working on getting it up on the Add-Ons Page, but for now it's available on the forum: https://community.troikatronix.com/topic/7176/arduino-firmata-actor?_=1660042790757
Best wishes,
Woland
-
@woland thank you
I found it and follow the very clear tutoria.
I installed the plug-in (I checked into help/open plug-in folder, and the plug-in is there) but when I double click on Isadora main screen and I search for firmata or Arduino, the plug-in does not appear.
do you have any advice?
i restarted Isadora and nothing
-
Hi,
You might check that it is in the correct IsadoraPlugins_x64 folder on your system...
Best Wishes
Russell
-
@bonemap thank you for your help
i am going crazy:(
it is in there
I really do not know what else to try -
What version of Mac OS are you using? Have you tried restarting the computer?
Best Wishes
Russell
-
@bonemap thank you for you patient
just restarted the mac and nothing.
I run Monterey 12.3.1
just now I also went into Isadora preferences/plug-ins and change the freeframe plugin directory without success (i went back to the default setting in case I was messing up something else )
-
-
@andrea-vassallo said:
I run Monterey 12.3.1
Are you on an M1 Mac? If so, you might need to run Isadora in Rosetta. Maybe the Arduino code is not M1-compatible, I don't know. (I'm in a meeting but can test this later on my M1 test machine.)
-
unfortunately no:( -
@woland Yes i am running isadaro on M1 system....perhaps is that
thank you -
@woland you are a starrrrrrrrrrrrrrrrrr
i am now running Isadora with rosetta and the plug in appeared..........very happy for now:)
-
hi guys
you have saved my day :)
I do not want to abuse your patient....but I have another issue.
now my speed sensor is connected to the Arduino and Isadora reads the values.
when the cross-fit machine is not in use the values displayed on the Arduino-Firmata-Watcher are constantly changing.
If I activate the machine the value stops only when the magnet is aligned with the sensor, therefore it goes off once every revolution.
how do I tell the projector to switch off when the values keep changing and to switch on only when the isadora detects several consecutive passages of the magnet in front of the sensor?
As you can probably imagine by now I am a novice to all of this.
i really hope you have an answer
thank you for all your knowledge
P.S. i did try to use many different actors but without success
-
Have you tried with the value changed actor? It is difficult to find a solution without the inputs values and to know how they change
best
Jean-François
-
Thanks for clarifying that and it is good to know. Perhaps the Arduino solution will revert back to serial actors if the Firmata actor does not migrate to ARM.
best wishesRussell
-
@jfg hi and thank you for your answer
the values change constantly from a min of 107 to a max of 304 when the machine is not moving.when the sensor passes by the magnet data goes off and the value becomes 0
see 2 photos
I did try value change actor but nothing
do you think there is a way to say if value goes off twice switch on projector, otherwise stay off?
-
@andrea-vassallo said:
<p>do you think there is a way to say if value goes off twice switch on projector, otherwise stay off?</p>
Logical calculator. Basically, if 1 and 1 then = 1
And you can connect the output to and off/on toggle actor.