Newbie Arduino distance detector

Results 1 to 3 of 3

Thread: Arduino distance detector

  1. #1
    Activation process Bradnicent's Avatar
    Join Date
    Jul 2018
    Posts
    87
    Downloads
    0
    Uploads
    0

    Default Arduino distance detector

    Hi all I’m new to the arduino world and working on a school project to control a stepper motor with a ultrasonic sensor ,
    The plans is to make the stepper motor rotate cw when a object comes close to the sensor and rotate ccw when the object moves away from the sensor at a certain speed and distance

    I’m using
    Arduino R3
    Nema 23 stepper motor
    TB 6600 Driver
    Ultrasonic sensor

    Can anybody give me a code to start with , I’ll make adjustments to it if need to

    Thanx in advance
    Bradley


    Sent from my iPhone using Tapatalk

    Similar Threads:


  2. #2
    Member
    Join Date
    May 2004
    Location
    usa
    Posts
    210
    Downloads
    0
    Uploads
    0

    Default Re: Arduino distance detector

    Google is your friend. Lots of sample code that is specific to a given sensor out there.



  3. #3
    Member
    Join Date
    Mar 2015
    Location
    Netherlands
    Posts
    409
    Downloads
    1
    Uploads
    0

    Default Re: Arduino distance detector

    Can anybody give me a code to start with
    There is an arduino stepper library (AccelStepper) that could do the job using just one arduino.
    You could use one arduino board running GRBL that controls the stepper and another arduino board that does the rest.
    You could use one arduino board running GRBL that controls the stepper, one board that controls the distance sensor and one C# applications that does the rest. If you make this an Windows 10 UWP application, it can run on a cheap Raspberry Pi 3B and Windows IoT.
    I run my lathe's and rotary table software on a Raspberry Pi 3B, 7" touch screen and an Arduino uno/mega
    For the arduino running GRBL there shields (like Ramps 1.6 for the Arduino Mega) that makes it very easy to connect (small) stepper drivers.



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Arduino distance detector

Arduino distance detector