Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scratch3 Alphamini extension and enabling other features #57

Open
geraicerdas opened this issue Sep 4, 2022 · 9 comments
Open

Scratch3 Alphamini extension and enabling other features #57

geraicerdas opened this issue Sep 4, 2022 · 9 comments

Comments

@geraicerdas
Copy link

Hi,

You have done a really awesome job. FYI I've been playing Alpha Mini with python mini-sdk and tried the official Scratch programming for alphamini called uCode. But I really excited with your huge works.

I'm planning to add some other Alpha mini features.

  • make a drop down list for blocks code : behavior, actions, and expressions. As you know this three features are built-in and can't be modified. IMO it would be great if the App let user choose (ex: the behavior name) rather than entering the code name defined by UBTECH.
  • adding playing a sound block. Both locally and online.
  • adding speech recognition block
  • adding IR sensor block
  • adding touch sensor block
  • and other feature that mentioned in the mini-sdk

So I'm looking for scratch extension for alphamini. Would you help me with that?

Thank you

@wwj718
Copy link
Contributor

wwj718 commented Sep 5, 2022

Hi geraicerdas,

image

You can achieve these goals with these two blocks, which allow you to get any of the capabilities of Python sdk.

If you would like to do more, you'll even be able to introduce most of Python's capabilities into the Scratch page without rebuilding Scratch. This means that the end user can do it too.

https://adapter.codelab.club/extension_guide/extension_python_kernel/#_5

@geraicerdas
Copy link
Author

Hi,

Thank you for your reply. I got your viewpoint. You methods also minimize the development efforts.

  • make a drop down list for blocks code : behavior, actions, and expressions. As you know this three features are built-in and can't be modified. IMO it would be great if the App let user choose (ex: the behavior name) rather than entering the code name defined by UBTECH.

Yes, getActionList block is quite helpful. Currently we just print out the the action list from the alphamini developer so my kids can easily read the list and choose the action. But it seems the getActionList just returning the list of behavior, action and expression only, not all of the capability of alphamini sdk. CMIIW

alphamini_broadcast_return

So my next question is, could you assist me how to achieve the rest of the goals with the existing extensions and nodes?

  • adding playing a sound block. Both local mp3 file and online.
  • adding speech recognition block
  • adding IR sensor block. My mistake, it is already available in the existing extension
  • adding touch sensor block
  • and other feature that mentioned in the mini-sdk

For instance in the alphamini sdk demo provided by marklogg, there is a test_sound.py which is can make alphamini playing a cloud mp3 file. Is there any ways to make the alphamini can do this ability?

play_audio_online

@wwj718
Copy link
Contributor

wwj718 commented Sep 6, 2022

hi geraicerdas,

We have no plans for more extensions to continue enhancing the Scratch3 Alphamini extension for now, we are trying to provide some generic blocks for users to introduce more capabilities from Python to Scratch , but the usability may not be good enough. The way to improve the usability is to write more code at the UI level, but that need a lot of work and our small team doesn't have more energy to do that at the moment, so sorry. The official UBTECH team might have more motivation to do that, you could contact them, good luck!

@geraicerdas
Copy link
Author

Hello,

It is possible to get .js alphamini extension, so I can help you to improve this extension?
Thanks

@wwj718
Copy link
Contributor

wwj718 commented Sep 8, 2022

Sure, I'll clean the code and put it on Github

@wwj718
Copy link
Contributor

wwj718 commented Sep 8, 2022

@geraicerdas
Copy link
Author

Hi,

Thank so much for making the code available for public. I will try to modifying this extension, and will let you know the result.

@geraicerdas
Copy link
Author

Hi @wwj718

Here is my few mod update.
I've succesfully added a dropdown list for block behavior, action, and sound.
added play a sound block. Both local and online
added play wikipedia block
added translate block

I've tested with my alpha mini robot, and it works great. Some features are still work in progress.

new_alphamini_extension3

new_alphamini_extension4

Please have a look my mod in case you/anyone want to update or want to makes another version.
Scratch3_alphamini updated by geraicerdas

Thanks again for your amazing works, especially for making the sources available for public

@wwj718
Copy link
Contributor

wwj718 commented Sep 12, 2022

Great work ! Thank you for sharing !
We will benefit from your work, and I expect we will soon merge these updates into our online platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants