Flotilla and Scratch?


#1

Hi guys - can we connect flotilla to scratch yet (i.e. set AddOn to Flotilla) or is this also something in the pipeline?

I’m afraid I’m finding rockpool rather unintuitive and limited at the moment (lacking the ability to set variables etc…) and my kids are happy in scratch, but not ready for text based programming in sniff or python yet…


#2

Scratch is definitely on the roadmap and is something we’re discussing with the right people- I don’t have the foggiest clue what sort of timelines might be involved, however. It’s something I’ll start actively pushing once the Flotilla ShipShape update ( which makes everything faster/better/less buggy ) is finished.


#3

OOPs sorry. Having written this I see you mentioned Sniff above and said it wasn’t suitable for your kids.
Do have a look though, because there are very short sample programs detailing how to use each module.

You can use Sniff which is a textual based language very similar to scratch in its commands. Ian Stephenson has developed the interface to Flotilla hub and its modules. I’ve been using it for a couple of weeks now and it is fairly easy to learn and use. See this link http://www.sniff.org.uk/2015/12/sniff-and-flotilla.html
I have been working with Ian testing some of the modules that are not in the current release 24, and I think that all of them are now pretty well complete. He will supply pre-release copies on request. See the discuss section of the Sniff website.
Using them I have written programs to:
control the Flotilla buggy with the joystick.
display lower and uppercase text and numbers on the Matrix.
Control the position of a single lit pixel on the matrix with the joystick
Use the colour module to illuminate the rainbow leds with the colour being observed with a reasonable match when “looking” at red, blue,green, blue and yellow card.
Control Sonic Pi with the touch keypad, also using the slider and dial controls to adjust notes and select the synth used.
display animated patterns on the Matrix and scrolling text messages.
It is very versatlie and far more powerful than using Rockpool.
I’ve tried it with both Pi2 and Mac using the newest version of the firmware in both cases, which allows you to communicate at 115200 instead of 9600 baud.
Today we have finished debugging the number module which will display both integer and real numbers, right justified on the display. (up to 4 digits)


#4

Hi there,

Is there any progress that the nice Flotilla modules will work with scratch?


#5

I’d sure like to give that a try!


#6

flotillascratch Use Pimoroni Flotilla with Scratch 1.4 on the Pi with ScratchPy.

http://www.techagekids.com/2017/02/flotilla-with-scratch-14-on-raspberry-pi.html


#7

I have been trying to get Scratch talking to Flotilla for four days straight. I am at a dead end. I’ve gone though techagegeeks instructions thoroughly. Here’s my error when runnig flotillascratch.py

Traceback (most recent call last):
File “/home/pi/flotillascratch/flotillascratch.py”, line 8, in
s = scratch.Scratch()
File “/usr/local/lib/python2.7/dist-packages/scratch/scratch.py”, line 23, in init
self.connect()
File “/usr/local/lib/python2.7/dist-packages/scratch/scratch.py”, line 210, in connect
raise ScratchError("[Errno %d] %s" % (err, msg))
ScratchError: [Errno 111] Connection refused
i’
ve pretty much focused my effort on Error 111, but I can’ t find any topics onb the subject with regards to Scratch interfacing.

Any ideas?