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

#1 2010-02-18 10:04:23

lobeskwokacc
Scratcher
Registered: 2010-02-18
Posts: 8

please help me, urgent~~

Hi everybody

actually I'm doing a project about data output from scratch, would anyone can tell me how can I do that if i using
[blocks] <<  <and>  >> [/block]
then scratch  will send the data "FF FF" to serial port?

please help ....

Offline

 

#2 2010-02-18 10:39:15

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: please help me, urgent~~

Please don't post your topic in more than one Forum.  Thanks.

As for your question...Scratch does have the ability to communicate with other processes using TCP/IP sockets as described in this topic

http://scratch.mit.edu/forums/viewtopic.php?id=9458

I am not aware of any way to have Scratch use the serial port - other than the LEGO WeDo blocks.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2010-02-18 10:46:52

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Offline

 

#4 2010-02-18 10:53:56

lobeskwokacc
Scratcher
Registered: 2010-02-18
Posts: 8

Re: please help me, urgent~~

Thanks, please delete my other post....

but ... I only need send the message through serial port, would you mind suggest other method to do that? I won't process it by TCP/IP sockets

Offline

 

#5 2010-02-19 14:16:08

chalkmarrow
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: please help me, urgent~~

The good news is, there's a nice program called "serproxy" that basically shuttles commands between a TCP port (e.g., the 42001 Scratch port), and the serial port. You can find it listed here.

http://www.arduino.cc/playground/Interfacing/SerialNet

The bad news is, Scratch sends out whole strings (like "broadcast hi"), rather than simple serial data.

Offline

 

Board footer