Forum Replies Created

Viewing 15 posts - 1 through 15 (of 42 total)
  • Author
    Posts
  • in reply to: Distance Sensor- variables #4209
    Mike
    Participant

    Have you tried something like this?

    (I assume you know how to connect the sensor)

    🙂

    Attachments:
    in reply to: Making the Ultrasonic Range Finder to work with Crumb;e #4207
    Mike
    Participant

    Hi James,

    I cant see the attached images for some reason.

    If your sensor is the standard HC-SR04 then all you need to do is to connect GND to ground, VCC to +ve, and Trigger and Echo to two of the I/O pads A, B. C or D. You will need a battery to power the sensor as well.

    Then use the Input/Output block to get a value from the sensor, setting T(rigger) and E(cho) to the correct I/O pads.

    If you save the value into a variable then you should see it change as you wave things in front of the sensor. The number is approximately the distance in cm.

    Good luck

    Mike

    Attachments:
    in reply to: M3 or M4 sized holes? #3570
    Mike
    Participant

    Hey! That was quick 🙂

    So I shouldn’t have to force M4 bolts through the holes? Sounds good.

    Hope you guys are keeping well!

    Mike

    in reply to: Oh Crumbs #3569
    Mike
    Participant

    Hi Sarag,

    I think ‘T’ means ‘connect this to the Trigger pin of your HC-SR04’, and ‘E’ means ‘connect to the Echo pin’.

    🙂

    in reply to: Help for Newbie #3563
    Mike
    Participant

    Hmm. Could you lay out all the pieces very clearly and post a good photo? Sounds like a puzzle!

    There are some kits available indirectly from resellers, so it may not have come from Redfern, even if a crumble is present.

    in reply to: Crumblebot Line Follow with Sparkles #3562
    Mike
    Participant

    Sorry. Can’t see your programs. Did you post them?

    Sounds like you need a main loop that runs all the time (no waiting).

    in reply to: Help for Newbie #3542
    Mike
    Participant

    Where did it come from? Did they not include instructions? 🙁

    in reply to: Programming a buggy to follow a set route #3540
    Mike
    Participant

    Add rubber to improve traction. I’ve used those wide rubber bands to good effect!

    Try one wheel forward and the other backwards at the same time.

    Post photo so we can see the issue, maybe. 🙂

    in reply to: Crumble Costellations #3539
    Mike
    Participant

    No. But it sounds brilliant. I can envisage an amazing interactive display!

    Let us know how it goes?

    in reply to: Timer #3538
    Mike
    Participant

    Don’t put the crumble in the car. Have it connected to two ‘gates’ one at the top and one at the bottom of the slope. This will be far more accurate than using a stopwatch and they can focus on the car build for speed or whatever.

    If you really want it in the car, go super cute and make the car trace out the shape of the number (like a turtle) after it stops timing 🙂

    in reply to: Multi-threading – like Scratch #3086
    Mike
    Participant

    Thanks Joseph,

    Event blocks would be a great alternative.

    I don’t really use the Crumble tethered very much – one of the best things about it is that it works independently for autonomous vehicles etc.

    +1 for events being higher up the development list!

    Best

    Mike

    in reply to: Servo not working? #2842
    Mike
    Participant

    Gosh Darnit – it was a defective battery! All working now!

    Thank you for a FAB new update and super quick support!

    🙂

    in reply to: Servo not working? #2841
    Mike
    Participant

    Code is same as yours – that you tweeted. Just checking rest of circuit…

    in reply to: Proximity and PIR Crumb sensors seem temperamental #2838
    Mike
    Participant

    Also, don’t PIR sensors have a bit of ‘settling in ‘ time when they first get power? Where they kinda assess the general situation to set a baseline for future ‘noise’?

    in reply to: Making noises? #2833
    Mike
    Participant

    I’ve had success by ripping the ‘speaker’ out of a pair of old headphones, connecting it to C and Ground, and running the attached code to generate tones. I haven’t managed to get it to run any faster, so this is the smallest step-between-tones I can achieve.

    Note that if you run it disconnected, powered by battery, the tones get higher and smoother. I think because the crumble is not polling the computer while it runs?

    Also see attached a ‘squeak’ sound! 🙂

Viewing 15 posts - 1 through 15 (of 42 total)