Tagged: Scratch
- This topic has 61 replies, 6 voices, and was last updated 8 years, 3 months ago by
Simon.
-
AuthorPosts
-
June 18, 2015 at 7:23 am #2406
Simon
ModeratorHere 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 #2410drkempton
ParticipantHi 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 #2412Simon
ModeratorScratch 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 #2414drkempton
ParticipantYep, 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 #2416drkempton
ParticipantOk, 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 #2417Simon
ModeratorShould be available later on tonight 🙂
June 19, 2015 at 7:10 pm #2419Simon
ModeratorDigital inputs now available as sensor values – re-download the updated handler
ScratchCrumbleDev.exe
SimonJune 19, 2015 at 9:14 pm #2421drkempton
ParticipantHi Simon,
Works for a while then tends to crash. See screen grab attached.
However well done – looks very promising!
David.
Attachments:
June 19, 2015 at 9:17 pm #2423Simon
ModeratorDo you have a copy of the Scratch script you were running at the time please?
Simon
June 19, 2015 at 10:05 pm #2424drkempton
ParticipantHi 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 #2425drkempton
ParticipantBTW I found that I had to use “HI” rather than “True” to make the sensor input work.
June 20, 2015 at 6:56 am #2426Simon
ModeratorI 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 #2458drkempton
ParticipantHi Simon,
Did you get any further with debugging the crash problem?
Regards,
David.
July 3, 2015 at 5:38 pm #2460Simon
ModeratorSorry 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 #2464Simon
ModeratorTry the latest release – I’ve had it running overnight without failure – lets see what happens at your end
-
AuthorPosts
- You must be logged in to reply to this topic.