Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

simple cheap optical encoder: second mouse?

Discuss graphics hardware, computer hardware, and input/output devices to use with TouchDesigner

simple cheap optical encoder: second mouse?

Postby cod65 » Wed Jul 16, 2014 2:39 pm

trying to think of a quick way to make a simple optical encoder. I was thinking : why not a second mouse ?
I'm trying a software called pluralinput and it allows a second independent cursor, maybe buggy. But so far I cant think of a way for the mousein CHOP to see it/distinguish it from the system cursor.

anybody who has contemplated this I would aprec. your experience
<.o'>
cod65
 
Posts: 555
Joined: Mon May 10, 2010 2:55 pm

Re: simple cheap optical encoder: second mouse?

Postby cod65 » Wed Jul 16, 2014 4:02 pm

I've installed Logitech's accompanying Setpoint software and I have 2 cordless mice with a pretty high degree of independent settings. But I've not seen any way to get touch to distinguish between the two mice, like a device ID or such. I'm also not seeing any channel data in the mousein CHOP for 'monitor' , which I imagine I might be useful to 'loop' position data.

Previously I dabbled with an old Powermate from griffin, which is that big silver 50$ encoder knob which can be programmed to output most anything. I have the original version, which is probably problematic. I may go to Best Buy or such and spring for a newer one. theoretically I could program it to output left/right arrow keys. that might be the way to go if this first plan gets ugly.

Mainly trying to avoid having to go the arduino/optical encoder route to just get one positional/rotary sensor into touch, thought this might be a 'lightweight' way to do it.

another approach is to have the second mouse report the unused middle wheel button down values, but I'm not seeing this channel data as available.
<.o'>
cod65
 
Posts: 555
Joined: Mon May 10, 2010 2:55 pm

Re: simple cheap optical encoder: second mouse?

Postby enthewhite » Thu Dec 28, 2017 7:39 pm

Hey cod65, interested to know what you ended up using for this project. I've been considering the same things lately.
User avatar
enthewhite
 
Posts: 252
Joined: Sat Sep 03, 2011 9:19 pm
Location: Portland, OR

Re: simple cheap optical encoder: second mouse?

Postby cod65 » Fri Dec 29, 2017 12:11 am

I cant remeber the details of why I gave up on this route .In retrospect arduinos are cheap,and you can get an encoder for 30-40$. I wish I could take back the time I spent trying to 're-invent wheels' to save money :).
But its been a few yrs since thought about this.Maybe a mouse is hackable as an encoder itself. they are cheap (free). not sure what you'd get it you cut the connector off and exposed the wires, but that should be something an arduino can process.
<.o'>
cod65
 
Posts: 555
Joined: Mon May 10, 2010 2:55 pm

Re: simple cheap optical encoder: second mouse?

Postby enthewhite » Fri Dec 29, 2017 12:43 am

My studio mate came up with one solution, which is to connect any number of mice to a raspberry pi, which spits out a stream of x and y values per mouse via osc or some other network protocol. I'm also looking at arduino or teensy solutions. Found this https://www.tindie.com/products/jkickli ... on-sensor/
User avatar
enthewhite
 
Posts: 252
Joined: Sat Sep 03, 2011 9:19 pm
Location: Portland, OR

Re: simple cheap optical encoder: second mouse?

Postby hunt.casey » Tue Mar 20, 2018 8:45 pm

Hey folks,

This thread caught my attention for a couple reasons :

1. As a beginner looking to drive TD with hardware, I ended up playing with a MakeyMakey to make a basic input controller. The problem became that since MakeyMakey is functionally indistinguishable from keyboard and mouse, input options were limited without wonking the UI.

(ie. one of the inputs is Spacebar, which for me even in perform mode, paused the timeline. and if you use the 'mouse left click' input too quickly, TD tries to drop new OP's in designer mode. a little clumsy... etc. )

It seems this is just a fact of life limitation. Unless some else knows otherwise...


2. We're wanting to build custom wireless tactile interfaces to drive TD. Then I saw this :

enthewhite wrote:... one solution, which is to connect ... to a raspberry pi, which spits out a stream of ... values ... via osc or some other network protocol. I'm also looking at arduino...


Exactly what we were thinking. Only getting a Raspberry Pi to output the OSC data seems to be not a simple thing whatsoever, and there's very limited information on how to get something like that up and running. (https://learn.adafruit.com/raspberry-pi ... m-hardware - For a relative beginner, this might as well be rocket science.)


My questions would be, did your mates manifest this solution? Was it simpler/more complex than I'm imagining? Is it possible to get Arduino data into Touch wirelessly? Anything pointers would be appreciated.

Thanks for sharing everyone!

-Casey


PS. @enthewhite - the slot canyon installation over at Meow Wolf looks rad. Nice stuff! I'm dying to get over there someday!!!
hunt.casey
 
Posts: 30
Joined: Sat Feb 03, 2018 10:35 pm

Re: simple cheap optical encoder: second mouse?

Postby raganmd » Tue Mar 20, 2018 8:55 pm

Casey -

All things are possible... just depends on your tolerance for additional work.

Wired DMX solutions that are easy to get going quickly could be done with a Livid Brain Jr.
http://shop.lividinstruments.com/brain-jr/

This little puppy will happily take an analogue signal and cover to DMX, which you can receive very easily in Touch.

Richard has a nice tut for folks looking to build custom DMX solutions with arduino up here:
http://visualesque.org/2017/11/04/build ... hdesigner/

If you're looking for fast, and easy with minimal programming effort you might consider finding an old iPod touch or android device on ebay, then use TouchOSC. That will send OSC messages wirelessly and should only set you back $5 for the app.

https://hexler.net/software/touchosc
raganmd
 
Posts: 1381
Joined: Thu Mar 28, 2013 5:21 am
Location: San Francisco, CA

Re: simple cheap optical encoder: second mouse?

Postby hunt.casey » Sat Mar 24, 2018 10:54 pm

Matt,

Thanks for sharing these resources. The Brain hardware looks like a great potential option, and the build tutorial is cool.

I've indeed used TouchOSC, which as a non-programmer, was awesome to have access to that kind of data within TD with almost no setup. We might have to rethink the scope of our endeavor! Appreciate the pointers.

-Casey
hunt.casey
 
Posts: 30
Joined: Sat Feb 03, 2018 10:35 pm

Re: simple cheap optical encoder: second mouse?

Postby lidphi » Sun Mar 25, 2018 1:01 am

I have had great results with U-Hid. very easy to set up as a second mouse. I've used it's with several different Optical encoders, and even with hall effect sensors. Set up is always a breeze.
http://www.u-hid.com/home/index.php
lidphi
 
Posts: 15
Joined: Sun Jan 31, 2016 9:42 pm

Re: simple cheap optical encoder: second mouse?

Postby enthewhite » Tue Apr 03, 2018 12:26 pm

Nice to know there is a midway point between diy micro controllers and non-hackable midi controllers! Although I'm sure learning how to make arduinos work isn't as difficult as I have made it out to be in my head.

Casey, my studio mate did get the data from multiple mice into a raspberry pi and out over the wifi relatively quickly and easily, but he is a wizard with that stuff, and I am not :(
User avatar
enthewhite
 
Posts: 252
Joined: Sat Sep 03, 2011 9:19 pm
Location: Portland, OR

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 4 guests