Time for a Thursday Tease… I will be releasing this Wednesday of next week.
The image below is a screen-shot of the Scratch Gateway/Deployment Helper. This program works to identify your board, download all dependent .pe files, and deploy the Scratch for .Net firmware. It also acts as a gateway between the desktop Scratch 2.0 editor environment and your hardware.
In this screen shot, you see two entries because I am using a pre-release BrainPad with two USB ports. I just (minutes ago) received a production BrainPad unit and will be working over the next couple days to support single-interface boards via CDC.
Next week Wednesday, we will have support for BrainPad, Cerbuino Net and Cerbuino Bee (although support for Gadgeteer configuration on the Cerb boards won’t be ready next week). Follow-on releases will support more boards and full Gadgeteer configuration for use within Scratch.
(Note that use of Scratch for .Net does not require installation of Visual Studio or any NETMF SDK, though you do need to install the GHI USB drivers, which are currently only available in the GHI SDK)
@ Reinhard Ostermeier - I understand the mechanics of it (though you stated in more detail than I had), I just don’t want to take on maintaining a distribution of their software, nor do I have permission to broadly redistribute their bits. I’ve mentioned the issue to Gus and Gary and we’ll get something worked out. They’re pretty booked up, but at some point I think they’ll roll up a drivers-only install. It certainly makes sense as I would imagine other folks want to tether boards without the full SDK so this must be an issue for more than just this project. If the whole Scratch for .Net thing catches on, I am sure it will rise in priority.
I have just pushed out a fairly limited version of of this to the web site, specifically for BrainPad. If you a) have a white BrainPad board and b) want to help out by testing and reporting your experiences, please drop me a DM with your email address (or email me at martin@ pervasive.digital) and I will send detailed instructions for the current version.
The core gateway is fairly stable, but I am still working on the various bits of the firmware and the pc-side driver, so those pieces are limited and a bit rugged, but the hard bits are done, and they will improve daily. Once you install the gateway, new firmware, drivers, and Scratch templates will update on your machine automatically.
Support for Cerb boards will come next week, followed by Gadgeteer support in the week or two following.
[Edit: In order to use this currently, you need to wire up a Gadgeteer USB serial adapter to the expansion port, or use a MikroClick USB serial adapter plugged into the expansion port. A future firmware image from GHI will support dual-use on the primary USB port]
Actually, each stack of blocks runs in parallel with every other stack. Your program doesn’t have to be all in one stack. You can communicate between stacks with variables or broadcast messages.
In the template (.s2e file) that I am working on now, I have added “when” blocks (a standard Scratch block type), so you can say things like “When the temp goes above 75”. The result is that you don’t have a straight-line program, but rather lots of event-driven blocks that execute when their ‘when’ clause is satisfied. I have created enough blocks to give you the option of traditional poll-test-act straight-line code or “When”-block event driven code.
So my son Macallum is using the Brainpad to enhance his Scratch “Pokemon randomizer” that pops up random pokemon characters. He is using the temperature sensor to influence if the Pokemon that comes up is an “ice type” or a “fire type” (depending on if there is something cold or hot near the sensor…) or a “dark type” based on the light reaching the light sensor…
I wish there were two or even 3 servos connectors - for robot-arms
And an infrared sensor would have been awesome too (to be able to control scratch programs using a cheap ir remote)
Will it be possible to just use the microUSB port soon (and not the clickboard?) and be able to use any clickboard modules in scratch? (for say, an IR sensor?)
Eventually I may be able to steer him into C#, but all his friends at school do scratch, so this scratch-ability has been awesome with this brainpad