584,798 active members*
4,388 visitors online*
Register for free
Login
IndustryArena Forum > OpenSource CNC Design Center > Arduino > Arduino distance detector
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2018
    Posts
    87

    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

  2. #2
    Join Date
    May 2004
    Posts
    210

    Re: Arduino distance detector

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

  3. #3
    Join Date
    Mar 2015
    Posts
    409

    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.

Similar Threads

  1. Single Gas Detector
    By rashishetty in forum PTC Pro/Manufacture
    Replies: 0
    Last Post: 04-12-2019, 10:42 AM
  2. Looking for Current Detector LE 00 and Voltage Dete
    By jeck in forum Servo Motors / Drives
    Replies: 0
    Last Post: 08-03-2015, 03:41 AM
  3. Overcurrent Detector
    By M.RISHIKESH in forum CNC Machine Related Electronics
    Replies: 3
    Last Post: 07-31-2013, 03:01 PM

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
  •