Home 2018 Forums Crumble Scratch ScratchCrumble testing release

Tagged: 

Viewing 15 posts - 1 through 15 (of 62 total)
  • Author
    Posts
  • #2406
    Simon
    Moderator

    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 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 🙂

    #2410
    drkempton
    Participant

    Hi 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.

    #2412
    Simon
    Moderator

    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 🙂

    Motor syntax

    #2414
    drkempton
    Participant

    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.

    #2416
    drkempton
    Participant

    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. 🙂

    Thanks,

    David.

    #2417
    Simon
    Moderator

    Should be available later on tonight 🙂
    Inputs

    #2419
    Simon
    Moderator

    Digital inputs now available as sensor values – re-download the updated handler
    ScratchCrumbleDev.exe
    Simon

    #2421
    drkempton
    Participant

    Hi Simon,

    Works for a while then tends to crash. See screen grab attached.

    However well done – looks very promising!

    David.

    #2423
    Simon
    Moderator

    Do you have a copy of the Scratch script you were running at the time please?

    Simon

    #2424
    drkempton
    Participant

    Hi Simon,

    It was the same as your example with the Motor1 except that I was using input A.

    David.

    #2425
    drkempton
    Participant

    BTW I found that I had to use “HI” rather than “True” to make the sensor input work.

    #2426
    Simon
    Moderator

    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 .

    #2458
    drkempton
    Participant

    Hi Simon,

    Did you get any further with debugging the crash problem?

    Regards,

    David.

    #2460
    Simon
    Moderator

    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)

    Smon

    #2464
    Simon
    Moderator

    Try the latest release – I’ve had it running overnight without failure – lets see what happens at your end

    ScratchCrumbleDev

Viewing 15 posts - 1 through 15 (of 62 total)
  • You must be logged in to reply to this topic.