June 18, 2015 at 7:23 am #2406
Here is the testing release of ScratchCrumble (windows only)
Load Scratch 1.4 – open sensing blocks and right click on last block – enable remote sensor connections
Run ScratchCrumbleDev and make sure you get a connection indicated
As a default condition, A,B,C and D are set as digital inputs (value of Hi or LO)
As soon as you use one as an output, it can’t be used as an input unless you restart the handler
To see the inputs, choose A,B,C or D from 2nd last sensing block – tick box to make value visible on stage
In Scratch, use broadcasts to control Crumble
e.g broadcast All Off
broadcast set A HI
broadcast set B LO
broadcast set motor 1 100
sets motor 1 to maximum
broadcast set motor 2 -50
sets motor 2 half-speed in reverse
Any feedback welcome 🙂June 18, 2015 at 7:59 pm #2410
Tried it out on my Win 7 laptop. Worked a treat. Well done.
Does your ScratchCrumbleDev prog load any software on to the Crumble? I am guessing that it might do.
Any plans to drive the motor ports?
David.June 18, 2015 at 9:43 pm #2412
Scratch controls the Crumble by sending commands over the USB one at a time – so no Crumble program is created.
the plan is to eventually compile the Scratch program into a Crumble program (as long as the Scratch program doesn’t use features that the Crumble doesn’t understand of course)
It already does motors – I jsut forget to say 🙂June 19, 2015 at 2:27 pm #2414
Yep, got that working too. Even deduced that to reverse the motor direction you can use a minus sign.
Have you got the A B C D inputs working yet? That would be brilliant!
David.June 19, 2015 at 2:36 pm #2416
Ok, I should have read your first post in this new sub forum. Sorry. But look forward to when you do get the inputs working. 🙂
David.June 19, 2015 at 6:28 pm #2417
Should be available later on tonight 🙂
June 19, 2015 at 7:10 pm #2419June 19, 2015 at 9:14 pm #2421
Works for a while then tends to crash. See screen grab attached.
However well done – looks very promising!
Attachments:You must be logged in to view attached files.June 19, 2015 at 9:17 pm #2423
Do you have a copy of the Scratch script you were running at the time please?
SimonJune 19, 2015 at 10:05 pm #2424
It was the same as your example with the Motor1 except that I was using input A.
David.June 19, 2015 at 10:08 pm #2425
BTW I found that I had to use “HI” rather than “True” to make the sensor input work.June 20, 2015 at 6:56 am #2426
I left mine running overnight and it crashed at sometime as well running a different script (BTW D doesn’t work properly in current version)
I changed to using HI / LO for current Crumble syntax compatibility .July 3, 2015 at 1:12 pm #2458
Did you get any further with debugging the crash problem?
David.July 3, 2015 at 5:38 pm #2460
Sorry no (Home DIY took over my life for a week)
I’ll see waht I can dtermine over the weekend (and add some more features if I can)
SmonJuly 5, 2015 at 7:44 am #2464
You must be logged in to reply to this topic.