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

#1 2011-10-18 21:38:10

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

How do you find out if the sensor board is plugged in on scratch?

How? I was going to use it for a game.


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#2 2012-03-07 03:17:18

lallaway12
Scratcher
Registered: 2012-01-04
Posts: 500+

Re: How do you find out if the sensor board is plugged in on scratch?

windows you should have a simble or a pluged in icon


http://i49.tinypic.com/2re4ied.png

Offline

 

#3 2012-04-13 17:10:39

Nathanator1416J
Scratcher
Registered: 2012-02-21
Posts: 100+

Re: How do you find out if the sensor board is plugged in on scratch?

You could also call it with a serial terminal (like hyperterminal, comes with windows xp and lower) and see if it responds.


http://wiki.scratch.mit.edu/images/Ptp.gif PEPPERTREE  Productions (PtP)
Tourmaline Scientific Research Programs

Offline

 

#4 2012-05-13 13:38:37

Markyparky
Scratcher
Registered: 2008-12-23
Posts: 40

Re: How do you find out if the sensor board is plugged in on scratch?

What he's asking for:

when gf clicked
if <([light V] sensor value) = [0]›
   say [No Picoboard detected!!]
   stop all
end

Last edited by Markyparky (2012-05-13 13:42:19)


[scratchblocks] think [Sir, you have just failed an attempt to create Scratch Blocks.] [/scratchblocks]

Offline

 

#5 2012-05-13 13:43:51

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: How do you find out if the sensor board is plugged in on scratch?

Markyparky wrote:

What he's asking for:

when gf clicked
if <([light V] sensor value) = [0]›
forever
   say [No Picoboard detected!!]
end

Yeah, essentially, he's looking for an error that tells him that the device isn't connected.

Perhaps you could try contacting the Sensor board creators (from MIT) about what squeak code would detect whether the sensor board was connected or not. Then, program it to print the value of the connectivity.


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

Board footer