Tagged: Scratch
This topic contains 61 replies, has 6 voices, and was last updated by Simon 2 years, 7 months ago.
-
AuthorPosts
-
June 18, 2015 at 7:23 am #2406
Here is the testing release of ScratchCrumble (windows only)
ScratchCrumbleDev
Load Scratch 1.4 – open sensing blocks and right click on last block – enable remote sensor connectionsRun 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 handlerTo 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 LObroadcast set motor 1 100
sets motor 1 to maximum
broadcast set motor 2 -50
sets motor 2 half-speed in reverseAny feedback welcome 🙂
June 18, 2015 at 7:59 pm #2410Hi Simon,
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?Regards,
David.
June 18, 2015 at 9:43 pm #2412Scratch 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 #2414Yep, 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 #2416Ok, I should have read your first post in this new sub forum. Sorry. But look forward to when you do get the inputs working. 🙂
Thanks,
David.
June 19, 2015 at 6:28 pm #2417Should be available later on tonight 🙂
June 19, 2015 at 7:10 pm #2419Digital inputs now available as sensor values – re-download the updated handler
ScratchCrumbleDev.exe
Simon-
This reply was modified 2 years, 10 months ago by
Simon.
June 19, 2015 at 9:14 pm #2421Hi Simon,
Works for a while then tends to crash. See screen grab attached.
However well done – looks very promising!
David.
Attachments:
You must be logged in to view attached files.June 19, 2015 at 9:17 pm #2423Do you have a copy of the Scratch script you were running at the time please?
Simon
June 19, 2015 at 10:05 pm #2424Hi Simon,
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 #2425BTW I found that I had to use “HI” rather than “True” to make the sensor input work.
June 20, 2015 at 6:56 am #2426I 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 #2458Hi Simon,
Did you get any further with debugging the crash problem?
Regards,
David.
July 3, 2015 at 5:38 pm #2460Sorry 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)Smon
July 5, 2015 at 7:44 am #2464Try the latest release – I’ve had it running overnight without failure – lets see what happens at your end
-
This reply was modified 2 years, 10 months ago by
-
AuthorPosts
You must be logged in to reply to this topic.