Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Distance Sensor- variables #6718
    MrShaunL
    Participant

    (And just because – here is the robot himself 🙂 A friend says he looks like a prototype Wall-E 🙂

    Attachments:
    You must be logged in to view attached files.
    in reply to: Distance Sensor- variables #6717
    MrShaunL
    Participant

    It drops straight to zero, whenever both motors are running.

    The Sensor is already connected directly to the battery pack, as per the recommended wiring.

    I think my probably solution (if I want to keep using the lego motors) is to attach a second (possibly smaller) battery pack just to the sensor.

    When I get these for my class I will be using the motors from your site, mot lego,so hopefully that will avoid the issue entirely.

    in reply to: Distance Sensor- variables #6702
    MrShaunL
    Participant

    I’m having an issue with the distance sensor too.

    My issue is that when I try to run 2 motors simultaneously, the distance sensor reading drops down to 0. So my program to make the buggy turn when it gets close to a wall triggers a turn constantly.

    I know my wiring is correct and my code is correct, as I have tested everything. Disconnecting power to one of the motors gives me accurate distance sensor readings but as soon as both are running, the distance sensor fails again.

    It might be that my motors are drawing too much power (I’m using modern medium sized lego technic motors at the moment ) – when I can obtain some other motors I may try again.

    At the moment a crude work-around is to have the buggy stop and re-check the distance whilst stationary, but it makes for very juddery progress…

Viewing 3 posts - 1 through 3 (of 3 total)