Results 1 to 8 of 8

Thread: Microcontroller project in exchange for CNC godies

  1. #1
    Registered DennisCNC's Avatar
    Join Date
    Aug 2005
    Location
    Clearwater, FL US
    Posts
    819
    Downloads
    0
    Uploads
    0

    Thumbs up Microcontroller project in exchange for CNC godies

    If some one is interested in exchanging your micro development skills for cnc related items let me know. I have a project that I need to finish up but not enough brain to make it happen. It can be a PIC or Atmel. Here is a quick overview, track two encoders X Y, and send the position numbers through a USB keyboard emulator IC to the PC when a external button is pushed. I have the emulator IC working nice but can't figure out a way to track the encoders. The encoders will be 500 line max and around ~20kHz speed or less.
    I was experimenting with a CubLoc micro.

    Let me know!
    Dennis


  2. #2
    Registered
    Join Date
    Mar 2004
    Location
    USA
    Posts
    556
    Downloads
    0
    Uploads
    0
    I'm reading this because I'm a PIC coder. My first thought is ... why not use the electronics from a mouse, which works pretty similarly?


  3. #3
    Registered
    Join Date
    Jul 2005
    Location
    UK
    Posts
    447
    Downloads
    0
    Uploads
    0
    a few questions:

    Would you mind just using a pic with usb, as it saves the hassle of the converter?

    do you really want this to behave as a HID keyboard? What i mean is are you using this with your own software? if so could you just use a virtual serial port instead?

    What frequency do you need to be able to read from the encoder? (how fast is the max supported shaft speed). The reason i ask is the easiest way to do this would be doing the decoding in software, but obviously you are not going to be able to read as high a frequency as dedicated hardware decoders.


  4. #4
    Registered
    Join Date
    Jul 2005
    Location
    UK
    Posts
    447
    Downloads
    0
    Uploads
    0
    PS:

    If your not producing lots of this device it might turn out cheaper to take something like this, wire the encoders and button on, and save doing a pcb alltogether:

    http://www.sparkfun.com/commerce/pro...roducts_id=762

    I dont know about the bitwacker stuff, but they come with a usb bootloader, so can just load different firmware on over usb. I have a couple laying around somewhere, use them for small run projects.


  • #5
    Registered DennisCNC's Avatar
    Join Date
    Aug 2005
    Location
    Clearwater, FL US
    Posts
    819
    Downloads
    0
    Uploads
    0
    That is how I started with this project, try to use a mouse but I need the position numbers entered in to CAD to plot points.
    I only need one for now.
    Dennis


  • #6
    Registered
    Join Date
    Aug 2006
    Location
    USA
    Posts
    2,644
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by DennisCNC View Post
    That is how I started with this project, try to use a mouse but I need the position numbers entered in to CAD to plot points.
    I only need one for now.

    DennisCNC;

    If you could wait a little I could help you with the design, I am in Miami, but will be out of town for 4 weeks.

    Regards,

    Kreutz


  • #7
    Registered
    Join Date
    Jul 2005
    Location
    UK
    Posts
    447
    Downloads
    0
    Uploads
    0
    well there are a few ways of doing that:

    one would be to connect a second mouse, then write some software to read specifically the second mouse position, and calculate the absolute offset, then put the resulting numbers in clipboard, or fake key presses locally.

    Another would be to use a second hand graphics tablet of ebay, some are pretty cheap if it suits the task.

    it would help if you mentioned what you are trying to measure, and what accuracy you need


  • #8
    Registered
    Join Date
    Jul 2005
    Location
    UK
    Posts
    447
    Downloads
    0
    Uploads
    0
    ok, was bored earlier so pieced together a little app to test this out. Basically what it does is measure relative movement only on the second mouse, ignoring what the first mouse is doing.

    When you click the second mouse button, it creates a string with the two numbers in it and copies the string to clipboard. To put into cad you then just ctrl-v. Its a trival proof of concept, but it works.

    It can measure distances greater then your monitors width, but there is one issue, the program needs focus to read mouse movement. That said it isnt a problem as long as you only move mouse 2 with the program in focus.

    Your welcome to the code if your interested, let me know.


  • Similar Threads

    1. exchange
      By eSilviu in forum Open Source Controller Boards
      Replies: 0
      Last Post: 06-10-2007, 08:46 AM
    2. MicroController/DSP based Motion interface
      By Haz in forum General Electronics Discussion
      Replies: 3
      Last Post: 03-22-2007, 04:54 PM
    3. Low cost Microcontroller development Board and Programmer , Breakout Boards
      By ahmedrehan in forum Product and Manufacturer Announcements
      Replies: 5
      Last Post: 11-23-2006, 04:34 PM
    4. Discrete transistors and AVR microcontroller
      By DukerX in forum Open Source Controller Boards
      Replies: 26
      Last Post: 03-04-2006, 08:30 AM
    5. Model exchange
      By duluthboat in forum Rhino 3D
      Replies: 0
      Last Post: 06-13-2004, 04:16 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.