This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-04-15 13:56:04

AddZero
Scratcher
Registered: 2007-08-11
Posts: 100+

Analog input into scratch, wiimote/joystick, emulating sensorboard?

Hi, I'm working on wiimote controller input to answer johnnydean1's question and am making progress.
The current way I'm getting analog input: glovePIE is converting a analog tilt value to key tapping... then scratch is converting the keyboard taps into a tilt variable; but the result is jerky.

So, is there a direct way to get analog input into scratch?
Is there a way to fake scratch into using a joystick or other analog control, thinking it's the senorboard?  so we could use the tilt, slider or resistance blocks?

(but I realize this wouldn't work online, so I'll try to use mouse input... but I went with the tapping idea so that the mouse could still be used, and possibly use multiple tilt sensors...nunchuck... multiple wiimotes, (ooh, I have an idea) it would be nice if there was a better way.)

Last edited by AddZero (2010-04-15 16:01:00)


http://scratch.mit.edu/static/icons/buddy/524717_med.png?t=2010-06-15+09%3A48%3A36

Offline

 

#2 2010-04-15 14:19:51

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

AddZero wrote:

Hi, I'm working on wiimote controler input and am making good progress.
But to get analog input, glovePIE is converting a analog tilt value to key tapping... then scratch is converting the keyboard taps into a tilt variable; but the result is jerky.

So, is there a direct way to get anaolg input into scratch?
Is there a way to fake scratch into using a joystick or other analog control, thinking it's the senorboard?  so we could use the tilt, slider or resistance blocks?

(but I realize this wouldn't work online, so I'll try to use mouse input... but I went with the tapping idea so that the mouse could still be used, and possibly use multiple tilt sensors...nunchuck... multiple wiimotes, (ooh, I have an idea) it would be nice if there was a better way.)

Maybe built in suport insted of having to use GlovePIE would be the best solution, but thats not likely to come anytime soon (I dare you Scratch Team to work it into 2.0) So i geuss its down to the Scratchers to work it out, like we always to eventualy.

So what is this Tapping/mouse input stuff your talking about?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#3 2010-04-15 14:45:08

AddZero
Scratcher
Registered: 2007-08-11
Posts: 100+

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

markyparky56 wrote:

Maybe built in suport insted of having to use GlovePIE would be the best solution, but thats not likely to come anytime soon (I dare you Scratch Team to work it into 2.0) So i geuss its down to the Scratchers to work it out, like we always to eventualy.

I don't think squeak has wiimote support...
but glovePIE can make the wiimote into a joystick.

Squeak can get joystick input, so someone COULD make (joystick x) (joystick y} blocks for scratch... but it would mean people would have to use hacked scratch, I want something that works easier than that...  I have another idea I'm working on. (get glove pie to convert multiple analog signals (tilt, nunchuck control stick) to mouse positions... that scratch converts back. )


markyparky56 wrote:

So what is this Tapping/mouse input stuff your talking about?

As I explained, that's a workaround, it's how I made it work for now.  instead of having a variable that can report -90 to 90 degrees directly to scratch.  I'm making glovePIE tap the a and d keys more and less depending on the angle,  my scratch program converts the tapping into an angle.  but the result is jerky, so I want to get the number directly.  so if there was an easy way to get joystick control into scratch we'd be set.

Last edited by AddZero (2010-04-15 14:57:15)


http://scratch.mit.edu/static/icons/buddy/524717_med.png?t=2010-06-15+09%3A48%3A36

Offline

 

#4 2010-04-15 15:28:38

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

Cool get the idea from me?


You can now reach me on Twitter @johnnydean1_

Offline

 

#5 2010-04-15 15:34:11

AddZero
Scratcher
Registered: 2007-08-11
Posts: 100+

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

johnnydean1 wrote:

Cool get the idea from me?

yeah, you started it!  I just put your name up there.
I answered your "is it possible to make the wiimote work with scratch?" question
and now I'm trying to answer your "can you use the tilt sensor block with wiimote?" question.  they're good tough questions...

Last edited by AddZero (2010-04-15 16:35:23)


http://scratch.mit.edu/static/icons/buddy/524717_med.png?t=2010-06-15+09%3A48%3A36

Offline

 

#6 2010-04-15 17:40:56

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

Thx lol


You can now reach me on Twitter @johnnydean1_

Offline

 

#7 2010-04-16 03:29:31

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

Ok how about connecting a scratch board and a Wii Remote and getting it to code it for you?


You can now reach me on Twitter @johnnydean1_

Offline

 

#8 2010-04-16 06:11:39

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

AddZero wrote:

Squeak can get joystick input, so someone COULD make (joystick x) (joystick y} blocks for scratch... but it would mean people would have to use hacked scratch, I want something that works easier than that...  I have another idea I'm working on. (get glove pie to convert multiple analog signals (tilt, nunchuck control stick) to mouse positions... that scratch converts back. )

But thats for linux. But its a start...


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#9 2010-04-16 09:41:58

msherman
Scratcher
Registered: 2010-04-16
Posts: 1

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

This summer at the Scratch@MIT conference I'll be presenting a new scratchboard that has a 3-axis accelerometer. We're using them in the labs at UMass Lowell right now, and are doing all sorts of motion sensing projects.

Just a heads-up. :-)

http://www.cs.uml.edu/ecg/index.php/IchiBoard/

Offline

 

#10 2010-04-16 09:52:05

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

msherman wrote:

This summer at the Scratch@MIT conference I'll be presenting a new scratchboard that has a 3-axis accelerometer. We're using them in the labs at UMass Lowell right now, and are doing all sorts of motion sensing projects.

Just a heads-up. :-)

http://www.cs.uml.edu/ecg/index.php/IchiBoard/

Cool! Looks confusing but cool.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#11 2010-04-16 11:23:18

AddZero
Scratcher
Registered: 2007-08-11
Posts: 100+

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

markyparky56 wrote:

But thats for linux. But its a start...

I didn't give a good link showing that squeak can take joystick input, here's a better one.

msherman wrote:

This summer at the Scratch@MIT conference I'll be presenting a new scratchboard that has a 3-axis accelerometer. We're using them in the labs at UMass Lowell right now, and are doing all sorts of motion sensing projects.

Just a heads-up. :-)

http://www.cs.uml.edu/ecg/index.php/IchiBoard/

That looks awesome, thanks for sharing!

(if we modified a sensorboard driver to take wiimote input we'd be set, but that wouldn't work online...  I'll try out the mouse moving method.)

Last edited by AddZero (2010-04-16 11:48:46)


http://scratch.mit.edu/static/icons/buddy/524717_med.png?t=2010-06-15+09%3A48%3A36

Offline

 

#12 2010-04-16 11:30:19

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

Can you please modify the driver, and then work on way 2 ( the mouse) so then be could atleast have it working.


You can now reach me on Twitter @johnnydean1_

Offline

 

#13 2010-04-16 11:32:20

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

AddZero wrote:

markyparky56 wrote:

But thats for linux. But its a start...

I didn't give a good link showing that squeak can take joystick input, here's a better one.

Thats much better, but what ar they using in that? I know its squeak, but they're talking about supplies flaps and stuff. Is there a squeak editor or something? Because scratch's squeak definetly doesn't have that.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#14 2010-04-16 12:04:05

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

markyparky56 wrote:

AddZero wrote:

markyparky56 wrote:

But thats for linux. But its a start...

I didn't give a good link showing that squeak can take joystick input, here's a better one.

Thats much better, but what ar they using in that? I know its squeak, but they're talking about supplies flaps and stuff. Is there a squeak editor or something? Because scratch's squeak definetly doesn't have that.

That's using the official squeak from squeak.org


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#15 2010-04-16 12:12:35

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

Sperry wrote:

markyparky56 wrote:

AddZero wrote:


I didn't give a good link showing that squeak can take joystick input, here's a better one.

Thats much better, but what ar they using in that? I know its squeak, but they're talking about supplies flaps and stuff. Is there a squeak editor or something? Because scratch's squeak definetly doesn't have that.

That's using the official squeak from squeak.org

Ok, iv got what i need for that tutorial... lets see how it works... i dont see how this will help with scratch though, its just how do you dismantle an image file... thats a question...


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#16 2010-07-14 00:23:51

tcb
Scratcher
Registered: 2008-03-25
Posts: 100+

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

search Wii2Scratch on the forums...  smile . Made by a guy I know


http://goo.gl/eCQLihttp://goo.gl/sK54shttp://goo.gl/jC0dehttp://goo.gl/yhGLQhttp://goo.gl/wqvsQ

Offline

 

#17 2010-07-14 07:44:21

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Analog input into scratch, wiimote/joystick, emulating sensorboard?

↑ = Necropost? I like this topic, but its about 2 months+ old.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

Board footer