Discuss Scratch

mezvin
New to Scratch
3 posts

Problem to connect Scratch to Arduino

Hi, I try desperately to drive my map Arduino Uno with Scratch but I do not get away. With the Arduino application, I manage to dump my code and turn on a led for example. That's ok. With S4A (Scratch for Arduino) it works too. But I would like to use Scratch 2 official. For that I followed tutorial to use s2aio. I run “s2aio.exe”. He throws himself. I then click on the “Launch s2aio” button and the batch window opens and closes. According to the tutorial that I followed it must remain open. Which is not the case and what causes problem because as soon as I click on “Launch Scratch”, Scratch opens but without being connected to my arduino. I do not have the goblin of my card. I have installed the drivers correctly. If you could help me please.
Thank you.
mezvin
New to Scratch
3 posts

Problem to connect Scratch to Arduino

I can see an error :

ImportError: No module named ‘aiohttp’

I haven't find the solution.
I'm on Windows 10
gioefab
Scratcher
42 posts

Problem to connect Scratch to Arduino

Hi Mezvin,
take a look here:
basically, It's Scratch 2, it's free and it's an offline editor. I use it in classroom to teach coding with arduino uno board and an educational shield.

Fabio
myed2
Scratcher
22 posts

Problem to connect Scratch to Arduino

Hi,
I did something like that, check it:
https://www.youtube.com/watch?v=cqh_jpIchj0
SilverBlueCat
New to Scratch
5 posts

Problem to connect Scratch to Arduino

Thanks both for giving me ideas to start using Scratch 2 to connect with physical world.
SilverBlueCat
New to Scratch
5 posts

Problem to connect Scratch to Arduino

gioefab wrote:

Hi Mezvin,
take a look here:
basically, It's Scratch 2, it's free and it's an offline editor. I use it in classroom to teach coding with arduino uno board and an educational shield.

Fabio
In the mBlock web site. It said it is “Scratch 2.0 branch”. What does it mean? Is it another software package?
gioefab
Scratcher
42 posts

Problem to connect Scratch to Arduino

Hi SilverBlueCat,
MBlock is a “fork” of Scratch 2.0. Basically, it has the same blocks than Scratch 2 plus a new category called “Robots” which allows you to program either Makeblock boards and robots (with a lot of blocks) and also “normal” Arduino boards with less options, but enough to begin to explore phisical world with arduino without the necessity to know C/C++ language.
Hope to be helpful with my english (I'm from Italy)
giulogiu
Scratcher
5 posts

Problem to connect Scratch to Arduino

hy Gioefab, I'm from Italy too. I usually control Arduino through S4A software, based on Scratch too, but I have had some troubles because with Scratch it was easy to create a project and then “Import” it in S4A, while Scratch2 isn't compatible with S4A because of file extension .sb2.
mBlock seems to resolve the problem. Thanks.

Last edited by giulogiu (June 14, 2017 20:32:36)

gioefab
Scratcher
42 posts

Problem to connect Scratch to Arduino

Welcome giulogiu. I love mblock, I can introduce kids to coding with Scratch and then move to Arduino using the same tool. Recently I found this shield that is very well built and it has components that don't require libraries to work… ‘cause makeblock’s board and sensors are incredibly easy to use but very expensive if you want to give a board for each kid in a classroom.
giulogiu
Scratcher
5 posts

Problem to connect Scratch to Arduino

great product gioefab, thanks a lot, I'll get it and try!
mjrovai
Scratcher
1 post

Problem to connect Scratch to Arduino

Hi Guys,
I discovered s2aio a couple of weeks a go and I liked it very much. I just published a tutorial on Instructables about Arduino and Scratch 2.0, based on s2aio HW extension:

https://www.instructables.com/id/Electronic-Playground-With-Arduino-and-Scratch-2/

Thanks
Marcelo
gioefab
Scratcher
42 posts

Problem to connect Scratch to Arduino

mjrovai wrote:

Hi Guys,
I discovered s2aio a couple of weeks a go and I liked it very much. I just published a tutorial on Instructables about Arduino and Scratch 2.0, based on s2aio HW extension:

https://www.instructables.com/id/Electronic-Playground-With-Arduino-and-Scratch-2/

Thanks
Marcelo
Hi Marcelo,
never tried S2aio, I'm reading now your tutorial.. great job!! Surely, I'll try this extension. Thank you.
Fabio

Powered by DjangoBB