The monster Ryan has created….

New Home Forum Random or Off Topic The monster Ryan has created….

This topic contains 41 replies, has 7 voices, and was last updated by  Kelly D 3 months, 3 weeks ago.

Viewing 30 posts - 1 through 30 (of 42 total)
  • Author
    Posts
  • #98665

    Kelly D
    Participant

    Working with the V1 toys has made me so confident with these little computers that I’m now playing with this (though can’t yet say I know what to do with each part…..).

    2BF8948D-F4FB-435D-81D2-723274A42B43

    #98671

    Ryan
    Keymaster

    Awesome.

    I have a few boxes of random stuff, and I am always getting more!

    1 user thanked author for this post.
    #98672

    Kelly D
    Participant

    Question for those “in the know” on CNC Shield…..

    The instructions say if I want to use default endstops to jumper as shown on the left. But my shield doesn’t have three pins. Do I jumper the two (so that I can use endstops and not shred my camera slider by trying to run off the end)? I assume that this is an older version shield that doesn’t have the active high option.

    BC05D0CB-1480-46E0-99CD-BCF4A66E9445
    FB63E79A-34D7-4F30-B6BE-0DA3F2CD6F17

    #98676

    Kelly D
    Participant

    Since you’ve come into my life Ryan I went from just two DF Beetles for a super simple little project I was working on to two miniRambos (three if you count the Ender – if that’s what’s in there), a Rambo, two Pi’s and now three Unos. And you know when we “met”……..

    But I say all that with gratitude!

    (And I’ve caught wind that I could put a Pi or an Arduino into service on our sailboat for GPS and nav use….)

    #98682

    Jeffeb3
    Participant

    (And I’ve caught wind that I could put a Pi or an Arduino into service on our sailboat for GPS and nav use….)

    Have you seen the solar powered robots that use a pi and navigated across the pacific ocean?

    Do I jumper the two (so that I can use endstops and not shred my camera slider by trying to run off the end)? I assume that this is an older version shield that doesn’t have the active high option.

    Don’t jumper the ones labelled estop. That would stop it. Don’t worry about active high. Your camera slider will be fine with active low. In software, you can change whether a short to ground or an open means triggered. So you can still wire the endstops NC or NO. FWIW, Marlin boards don’t support active high (not sure why you would want that).

    Also, you should adjust the current on the drivers to be low, to save energy. But will also mean you won’t be shredding anything. It will just be noisy if you mess it up. I would start with less than 0.4V. As a reference, the MPCNC RAMPS gets set at 0.7V.

    1 user thanked author for this post.
    #98698

    Kelly D
    Participant

    I need to dig through my box of power bricks and see if I can find a suitable power supply but will definitely set the pots. Had some flashing issues sadly. I’ll dig into it as best I can. May need to go to the Arduino forum. Most of the errors seemed to be surrounding ‘setPulsesPerSecond’ was not declared in this scope. Does that mean anything to general CNC?

    #98736

    Jeffeb3
    Participant

    Don’t go by quantity. Always look at the first error. Often, the first problem causes others. Something like, File not found, could easily cause missing functions.

    Feel free to post the stuff here and I will help if I can.

    #98742

    Kelly D
    Participant

    I feel like I should read this through again before posting. I only see like six lines at a time in Arduino and now seeing it all laid out looks like a lot of repeat stuff in here. I’m just picking the kids up and then it’s ballet time. I’ll look at this while the dancers dance 🙂

    I’m using an Arduino Uno with CNC shield 3.0 and 8825 Stepper Drivers. Other than the board selection I’ve made in Arduino though I don’t think this is hardware related…I’m just trying to verify the sketch and getting the error below.

    /var/folders/2d/0b58mqnx2ybfqvbnj50b57yr0000gn/T/arduino_modified_sketch_626896/DFMoco.pde: In function ‘void setup()’:
    DFMoco:573:31: error: ‘setPulsesPerSecond’ was not declared in this scope
    setPulsesPerSecond(i, 5000);
    ^
    DFMoco:647:20: error: ‘sendMessage’ was not declared in this scope
    sendMessage(MSG_HI, 0);
    ^
    /var/folders/2d/0b58mqnx2ybfqvbnj50b57yr0000gn/T/arduino_modified_sketch_626896/DFMoco.pde: In function ‘void loop()’:
    DFMoco:873:29: error: ‘updateMotorVelocities’ was not declared in this scope
    updateMotorVelocities();
    ^
    DFMoco:875:26: error: ‘processSerialCommand’ was not declared in this scope
    processSerialCommand();
    ^
    DFMoco:887:23: error: ‘nextMessage’ was not declared in this scope
    nextMessage();
    ^
    DFMoco:901:28: error: ‘sendMessage’ was not declared in this scope
    sendMessage(MSG_MP, i);
    ^
    /var/folders/2d/0b58mqnx2ybfqvbnj50b57yr0000gn/T/arduino_modified_sketch_626896/DFMoco.pde: In function ‘void updateMotorVelocities()’:
    DFMoco:922:14: error: ‘hardStop’ was not declared in this scope
    hardStop();
    ^
    /var/folders/2d/0b58mqnx2ybfqvbnj50b57yr0000gn/T/arduino_modified_sketch_626896/DFMoco.pde: In function ‘void setupMotorMove(int, int32_t)’:
    DFMoco:1005:50: error: ‘calculatePointToPoint’ was not declared in this scope
    calculatePointToPoint(motorIndex, destination);
    ^
    /var/folders/2d/0b58mqnx2ybfqvbnj50b57yr0000gn/T/arduino_modified_sketch_626896/DFMoco.pde: In function ‘void hardStop()’:
    DFMoco:1017:16: error: ‘stopMotor’ was not declared in this scope
    stopMotor(i);
    ^
    /var/folders/2d/0b58mqnx2ybfqvbnj50b57yr0000gn/T/arduino_modified_sketch_626896/DFMoco.pde: In function ‘void processGoPosition(int, int32_t)’:
    DFMoco:1078:31: error: ‘sendMessage’ was not declared in this scope
    sendMessage(MSG_MM, motorIndex);
    ^
    DFMoco:1082:31: error: ‘sendMessage’ was not declared in this scope
    sendMessage(MSG_MP, motorIndex);
    ^
    /var/folders/2d/0b58mqnx2ybfqvbnj50b57yr0000gn/T/arduino_modified_sketch_626896/DFMoco.pde: In function ‘void processSerialCommand()’:
    DFMoco:1306:28: error: ‘sendMessage’ was not declared in this scope
    sendMessage(MSG_HI, 0);
    ^
    DFMoco:1404:142: error: ‘setupBlur’ was not declared in this scope
    setupBlur(motor, userCmd.args[0], userCmd.args[1], userCmd.args[offset + 1], userCmd.args[offset + 2], userCmd.args[offset + 3]);
    ^
    DFMoco:1445:62: error: ‘jogMotor’ was not declared in this scope
    if (jogMotor(motor, userCmd.args[1], &destination))
    ^
    DFMoco:1460:45: error: ‘inchMotor’ was not declared in this scope
    inchMotor(motor, userCmd.args[1]);
    ^
    /var/folders/2d/0b58mqnx2ybfqvbnj50b57yr0000gn/T/arduino_modified_sketch_626896/DFMoco.pde: In function ‘void sendMessage(byte, byte)’:
    DFMoco:1497:19: error: ‘nextMessage’ was not declared in this scope
    nextMessage();
    ^
    exit status 1
    ‘setPulsesPerSecond’ was not declared in this scope

    #98744

    Bill
    Participant

    Can you give us a quick diff between your code and Ryan’s normal build?

    #98746

    Jeffeb3
    Participant

    This is grbl, not Marlin, right?

    Are you following these steps?

    https://github.com/gnea/grbl/wiki/Compiling-Grbl

    Grbl is a little weird in that you load it as a library and then the sketch you load is really lightweight. IIRC, I loaded the library and then selected an included example, but that’s about a year ago now.

    1 user thanked author for this post.
    #98747

    Kelly D
    Participant

    Ryan’s works. This one doesn’t? Hahaha. For me anyway.

    The only differences I know are that the the sketch isn’t a Zip or anything I was familiar with. It was a .pc-something file type? Or .pd-something? I’ll check when I get back to me desk. I also don’t see any tabs for configuration like I’m accustomed to seeing with Ryan’s stuff. Which is what struck me when pasting the errors here…..it appears to be referencing a directory structure which I cannot see on my hard drive.

    This has worked for many others according to the Arduino forum thread. This error I’m getting hasn’t been mentioned elsewhere – I’m just special. Or missing something obvious I should know.

    #98748

    Kelly D
    Participant

    This is grbl, not Marlin, right?

    Are you following these steps?

    https://github.com/gnea/grbl/wiki/Compiling-Grbl

    Grbl is a little weird in that you load it as a library and then the sketch you load is really lightweight. IIRC, I loaded the library and then selected an included example, but that’s about a year ago now.

    Nope! Thanks! I was doing it the V1 way. I’ll dig into that this eve.

    #98750

    Kelly D
    Participant

    It’s a .pde file.

    Reading through the grbl info now….look at me learning again/still/some more! : )

     

    grbl kept wanting to auto-correct to grill…..now I need to BBQ something……..

    #98755

    Jeffeb3
    Participant

    Where did you get the .pde? You might just need the grbl library first.

    #98757

    Kelly D
    Participant

    The software ships with it. (That had me quite perplexed. I looked all over online for it not realizing that I had it on my hard drive all these years). It’s attached if you want to have a look at it.

    Attachments:
    1. DFMoco.zip
    #98760

    Jeffeb3
    Participant

    Oh, that’s not grbl. Don’t follow those instructions I sent. This looks like it’s another thing (maybe specifically for cameras?).

    #98761

    Jeffeb3
    Participant

    That file opened fine for me in the arduino IDE, and I didn’t need to install any libraries to compile it (I don’t have an uno handy to try uploading it).

    #98762

    Kelly D
    Participant

    You mean it just automatically verified? No errors?

    #98765

    Jeffeb3
    Participant

    You mean it just automatically verified? No errors?

    Yep. I opened arduino, file -> open, choose DFMoco.pde, then I chose the arduino Genuino/Uno for the board (is that right?) and it verified.

    You could try unzipping it again. The function you’re missing is in that file.

    You could also try renaming it to .ino.

    #98768

    Kelly D
    Participant

    I suspect the issue then are the few (seemingly) minor changes the forum advised needed to be made to the sketch. One was to enable a pin and the second was to define the step and dir pins.

    It’s here: http://forum.arduino.cc/index.php?topic=503861.45

    To save you the reading – Post #5 (page 1) outlines the changes that need to be made (the link it references is sadly dead).

    In post #10 (page 1) the user has uploaded the modified sketch which I then restarted with based on the advice found in post #39 (page 3), making the changes required. I’m at my desk right now (Arduino is on my laptop upstairs). I’m going to go up and try just compiling the sketch from post 10 without any change as well as the original form the Mfr.

     

    #98771

    Kelly D
    Participant

    Wait Jeffe…..I need to try something. I had upgraded the software a couple weeks ago but never actually installed the latest version. I just did that and found they have replaced the .pde with an INO file (attached). I’m going to go try it. And then I’ll have to figure out how to make the same changes if the steppers don’t step.

    Doesn’t explain why the supplied sketch form the Arduino forum wasn’t working but still…..

    Gimme 10.

    Attachments:
    1. DFMocoVers4.zip
    #98773

    Kelly D
    Participant

    Verified OK. Flashed OK. But I’m not certain it’s gonna work straight up like that. But I’ll give it a whirl! I need to find a power supply first and set the pots. Then I’ll plug in a stepper. I think I have time to dig into it tonight.

    Maybe you would know right from the get go based on what was supposed to be done to the .pde version whether I’m going to need to do the same to this INO version. I’m going to go in and see if the same lines of code exist actually…..

    [Edit]

    Looks like it’s the same so I’m going to go ahead and try making those changes.

    #98775

    Jeffeb3
    Participant

    I can check it later, maybe tomorrow. I’m AFK now.

    #98777

    Kelly D
    Participant

    I made the edits and it compiled and uploaded. I’l play with the pots and try the steppers hopefully tonight. Thanks for the support!

    #98787

    Kelly D
    Participant

    Just reading through “next steps”. Am I right that I can just use a USB cable and a USB power block (the ones you plug into the wall to charge your phones/iPads etc) to power the Arduino. And then I need a second power supply with a good amp output rating (enough to cover the max stepper motor load – 4 Nema 17’s…same as the V1 Machine’s steppers) and with an output voltage of 12-36 volts?

    #98788

    Ryan
    Keymaster

    12-36V 2A or better, no big deal, same as the one we use.

    1 user thanked author for this post.
    #98789

    Mike @Pix2Proto
    Participant

    I used one of these board with grbl on it — that is correct for power, but the USB will need to be connected to a computer, not just a power block since the computer signal is needed to control the board.  Hope that helps!

    1 user thanked author for this post.
    #98790

    Kelly D
    Participant

    Ha! Thanks. I just came back to the laptop from the big box of eWaste under the stairs (power bricks, old routers etc) and thought “Wait a second…..I need the USB plugged into the computer so it’s going to get power anyway!”

    I did happen to find a 110V Input > 5v output at 2.5A complete with a plug that would fit the plug on the Uno but I need to verify the polarity if I were to consider using that. I’ll see if it self-powers through the computer first. I DID find a 12v @ 3A output brick. I’ll use that to get things set but it looks like I might want to invest in a new power supply like on the printers.

    And the wife chastises me for keeping this stuff around…….

    #98791

    Jeffeb3
    Participant

    And the wife chastises me for keeping this stuff around…….

    For goodness sake. Don’t let her see all that stuff! This is the main advantage of being the one who vleans out the basement.

    3 users thanked author for this post.
    #98796

    Kelly D
    Participant

    I put all that stuff in front so she doesn’t see the kite collection under there. I was a bit of a chronic in my old days…although this very thread could be evidence of a pattern in my life…

    If anyone ever asks you say “Kelly who? Nope. Can’t say that rings a bell.”

Viewing 30 posts - 1 through 30 (of 42 total)

You must be logged in to reply to this topic.