codelab_adapter_extensions
codelab_adapter_extensions copied to clipboard
Scratch3 Alphamini extension and enabling other features
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
Hi geraicerdas,

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
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
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
- [x] ~~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?
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!
Hello,
It is possible to get .js alphamini extension, so I can help you to improve this extension? Thanks
Sure, I'll clean the code and put it on Github
https://github.com/CodeLabClub/scratch3_alphamini @geraicerdas
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.
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.
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
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.