Results 1 to 5 of 5

Thread: Foam Dart Turret PC Control

  1. Foam Dart Turret PC Control

    Anyone has some sample how to pull the trigger on the foam dart kit via USB?

    There's plenty of Arbotix demo code to control servos and send packets, but I'm not seeing much on the Geekduino/arduino kit.

    Basically I want to pull http://learn.robotgeek.com/getting-s....html#wireAuto from PC, w/o a push button

    It'll be mounted on this http://www.trossenrobotics.com/robot...ision-tracking

    I'm interested in any some sample that shows:

    • How to craft the com packet to send via USB, what's the protocol info?
    • How to listen for this on the Arduino board and run the routine.
    • How to listen for debug code on the PC side
    • How to find the correct port connected to the bot?


    Also it seems like the kit is using proprietary software, which's why I'm having difficulties checking out source code. I wished there's a git repo showing:
    • How to cycle through targets?
    • How to dynamically train new target recognition?
    • How to crop the target as jpg/bmp for additional processing?


    I'd be happy to know if the above is even doable.


    Thanks in advance

  2. #2

    Re: Foam Dart Turret PC Control

    Do you know how to use Serial.available() and Serial.read() to check for data from the host computer?
    What language are you using on the host computer? Do you know how to open and talk to a serial port on the host computer?
    Once you know these two things, it should be simple to wire those two bits together with the code to actually actuate the trigger when the right command is received from the host serial port.

  3. Re: Foam Dart Turret PC Control

    Prefer C# but will do Java, python as a last resort.

    I never communicated directly on serial port yet, but don't think it'll be a problem. What message should I send? Where's the spec for the protocol to talk to the board? It sounds easy, I just hadn't done it, so need hand holding. This is also not HTTP, with 10 Zillion different examples how to send one on the net..

    Would like to know how to specify the id to move and the angle. Or is this a case of make one up?

    Thanks for the quick response.
    Last edited by MadBot; 06-08-2017 at 03:45 PM.

  4. #4

    Re: Foam Dart Turret PC Control

    What message should I send? Where's the spec for the protocol to talk to the board?
    I don't know if the board has a built-in protocol. It looks to me like an Arduino compatible board, where you run your own sketch. Thus, the Serial object will receive whatever bytes you send from your computer.

    Thus, you would change the code in the sketch that says "if the button is held down, then trigger the trigger" to instead say something like:

    Code:
      if (Serial.available() && (Serial.read() == 'x')) {
        trigger the trigger
      }
    Your PC would then send the character "x" to trigger.

  5. Re: Foam Dart Turret PC Control

    I think I got you. Was hoping I can somehow keep to higher level programming model. Thanks for the help!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to make beautiful, smooth cut of curved shapes made of EVA foam?
    By Snoopy in forum Mechanics / Construction
    Replies: 2
    Last Post: 12-11-2015, 06:07 PM
  2. 3D printed turret
    By byi in forum Mech Warfare
    Replies: 17
    Last Post: 02-07-2013, 03:18 PM
  3. my airsoft turret
    By jiokl in forum Project Showcase
    Replies: 0
    Last Post: 03-11-2012, 10:07 PM
  4. Project Turret
    By Stobs in forum Project Showcase
    Replies: 31
    Last Post: 06-03-2011, 04:46 PM
  5. Contest Entry Sentient Turret
    By ekoos7 in forum Project Showcase
    Replies: 18
    Last Post: 12-12-2007, 12:54 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
  •