cmcgrath5035

Forum Replies Created

Viewing 15 posts - 616 through 630 (of 1,771 total)
  • Author
    Posts
  • in reply to: TinyG Motor/LED Cutout #10122
    cmcgrath5035
    Moderator

    I don’t think there is a good diagnosis for the root cause of EEPROM corruption. There have been instances when it appears that the CP parameter wizard was causing some corruption, but for others it worked fine.
    When in doubt, use CoolTerm or the CP Serial console, one parameter at a time.

    It could be dependent on the ‘horsepower’ (cycle time) for the SPJS client, a cpu that runs faster throws tasks at tinyG faster, perhaps finding a hidden glitch.

    Some Gcode generators have spawned movement math errors(bugs) in tinyG, but your problem sounds different

    in reply to: TinyG Motor/LED Cutout #10119
    cmcgrath5035
    Moderator

    A couple more background questions to add to Zootalaws:
    note-> Assume my questions relate to your adventures on PC.
    I have no direct experience with MAC and we don’t see much MAC commentary on which to base suggestions.

    What version of SPJS are you running?
    Are you running SPJS on your PC or on a RasPi?
    Has the Synthetos tinyG-Updater (PC version) worked for you in the past?
    Has the SPJS FW updater worked for you in the past?

    Why do I ask?
    Some folks have had issues with one or both of these FW update methods, some often never resolved.

    The methodology used by tinyG-Updater and by the SPJS updater are virtually identical
    Step 1 – Connect to tinyG
    Step 2 – Send $boot=1 to enter bootloader mode
    Step 3 – Disconnect from tinyG
    Step 4 – spawn an avrdude session which connects to tinyG bootloader, manages the download and does the verification. When ‘verification’ fails, that message is from avrdude.
    Comment – You will see that Steps 1 – 4 are really the same as the manual procedures documented in the Wiki pages.

    In your initial information, you say ” Chilipeppr has not been as responsive connecting TinyG…” which might be a hint to FW load problems.
    My experience, chasing similar failures, has been that the updater and SPJS FW apps don’t handle failure to initially connect real well, frequently a download does not really happen and a verification failure gets reported, but nothing ever really happened but you are left thinking it was a verification failure.

    Also keep in mind that all this is VERY platform and version specific. SPJS uses avrdude binaries that are compiled for PC, MAC, Linux(x86), Linux(ARM)[RasPi], etc. Not all versions are well tested. tinyG-Updater and SPJS application were both released just before Win10 was released, so we could be chasing issues with on-going updates to Win10, if that is what “PC” means to you.

    Put aside FW update for the time being – that needs to be resolved for sure but core FW corruption is less likely than FW parameter corruption, those parameters are stored in EEPROM(on the controller). Parameters include those you normally tweak (the $$ list) as well as internals that are used by FW.

    What caught my eye reading your initial description is your “is not illuminated (as it was before), or dimly lit …..” comment.
    The motor LEDs are rather simplistic – one LED per motor is logically connected to one of the two motor winding drives. When motors are in motion, windings are always toggling and you see flashing bright leds.
    If motors are at rest but energized, sometimes only one winding is required to ‘hold’ current position. There is a 50/50 chance that the LED is connected to that winding, so sometimes the LED for a particular motor is not lit but the motor is still held, until motor timeout.
    Since the motor LEDs are really on/off, the explanation for a ‘dim’ LED could be too-narrow drive pulses to the LED.
    Also, since direction of rotation is controlled by the relative phases of the two windings, if (one or both) winding pulse trains were too narrow to be effective, direction control might be lost – a symptom you have.

    Narrow drive pulses could be caused by EEPROM corruption.
    Best way to fix that is to ‘factory reset’ tinyG to the initial parameter set installed with your last code download.

    Method:
    Step 1: Connect to tinyG
    Step 2: Create a $$ parameter dump and save it to a file on PC.
    Step 2.5: Post a copy of your $$ dump to a cloud drive and provide a URL if you want, it might show some corruption (unusual values) but might not if it is ‘internals’ corruption
    Step 3: From the Chilipeppr console window, send a $defa=1 command. This will reset you parameter set to something undoubtedly not correct for your machine.
    Step 3.5: I usually reboot (push the button) at this point, might not be necessary
    Step 4: From the SPJS console (or CoolTerm, etc), re-enter your machine parameters one at a time.

    This is a rather invasive procedure, but sometimes the only way to regain sanity. A FW download would have the same effect, but for the moment that is not working for you either.

    Feel free to ask further questions if I have made some incorrect assumptions.

    • This reply was modified 7 years, 11 months ago by cmcgrath5035.
    in reply to: Text Verbosity and other commands #10115
    cmcgrath5035
    Moderator

    When I first read your issue above, I immediately though you might have auto-echo turned on in TerraTerm. But of course that would echo characters you send “to” tinyG, not responses “from” tinyG.
    I have no familiarity with TerraTerm.
    Might it be writing, due to some setting, to StdOut and StdError (or equivalent)?
    Good luck in your search.

    in reply to: TinyG Fan max current #10114
    cmcgrath5035
    Moderator

    The fan voltage is provided by a 7812 Voltage regulator on tinyG. The input to VR is Vmot, usually 24V.
    The 7812 is rated at 1A, but that rating is depended on thermal environment.
    The 7812 used the tinyG ground plane as a heat dissipator, sharing that with the heat slugs in each of the motor drivers.

    So at 0.5A draw, the 7812 will be dumping 6Watts of heat into the tinyG, which will warm things up. For sure, one of those fans should be dedicated to providing excellent airflow for the tinyG board itself.

    If you are a heavy duty user(NEMA 23s or larger, long jobs, etc.) I’d suggest you seek out another solution. Perhaps a dedicated Vmot to 12V dc-Dc converter rather than a linear regulator, or perhaps a dedicated 12V wall wart for your fans. Or 24V fans (somewhat more expensive). Or perhaps supplemental heatsinking for the tinyG board.

    in reply to: Looking for bootloader commands to update FW #10110
    cmcgrath5035
    Moderator

    I would suggest you take a close look at how Chilipeppr implements the FW download function.

    It actually runs in the SPJS environment.
    The FW download process firsts sts tinyG into bootloader mode using $boot=1, then disconnects the USB port and calls a configured version of avrdude.
    Chilipepper has avrdude binaries for Winx, Linux and Mac.

    Your challenge might be finding an avrdude compiled to run on your Mega2560

    tinyG-Updater, found here

    does essentially the sam

    in reply to: Text Verbosity and other commands #10099
    cmcgrath5035
    Moderator

    The double response prompt is odd – never seen that. You might want to try CoolTerm (the defacto favorite of the Synthetos developers) and/or the Chilipeppr Command line interface. If they display similar double prompt, something is indeed weird
    I’ll assume you are running tinyG FW 440.20?

    in reply to: anybody using chilipeppr on chrome os? #10090
    cmcgrath5035
    Moderator

    RP2 with wireless (wifi) connect makes a Superb SPJS host.
    You could, of course, try running Chilipepper web app (the GUI) on your Chromebook and communicate with your RP2 running SPJS to connect to tinyG

    in reply to: g2core+Due: Setup for Mach3 compatible PWM #10089
    cmcgrath5035
    Moderator

    Have a look at

    Also look at

    I am not at all familiar with Mach3 interface, but have run tinyG up to 5kHz

    Hint – #define P1_CW_PHASE_LO 0.13 says at LO(low) end of the PWM linear interpolation curve, set Phase (I call it duty cycle) to 13%.

    The doc above should help.

    in reply to: 2nd TinyG and X limit switch input and SpON not working?! #10088
    cmcgrath5035
    Moderator

    is there any possibility to use the 4th axis and its limits instead and somehow change the programming to make A axis the new X?
    Cheers

    I actually pondered that last night, but I don’t see how to make it work, easily at least. Your could make the A axis behave like a linear axis, but then you would have to translate Gcode that has “X” commands into Gcode with A commands. Messy.
    You could of course run without limit switch, but you would have no homing function either.

    Have you tested any of the other I/O ports, such as coolant or Spindle Direction, just to gauge the extent of damage?
    And to pile on the bad news (sorry), Electrostatic Discharge (ESD) and inductive overvoltage spikes often result in cracks in the oxide layer of the silicon device. Those cracks can then grow over time, due to oxidation of the underlying silicon. So it might work today, but not tomorrow.

    in reply to: anybody using chilipeppr on chrome os? #10083
    cmcgrath5035
    Moderator

    I don’t recall seeing anyone trying this and have no direct experience.
    Chrome browser, on Winx, Linux and MACOS has always been the defacto preferred browser for the GUI. Firefox usually works well as well as Safari, Win IE not so much.
    The critical issue could be compatibility with the serial port json server – SPJS. It is compiled for X86 machines running Windows, Linux and MAC as well as RasPi running on ARM.
    Do you have a Chromebook you propose to use, or is your target X86?
    If I recall correctly, a target for ChromeOS was Web interface for highly portable, lower power machines.
    SPJS handles all the low level heavy duty I/O, can be marginal on overly ‘thin’ clients. For example, SPJS was too much load for a RasPi !, but runs well on the more recent RasPi 2.

    You might query here:

    in reply to: TinyG2 pinout diagram questions #10081
    cmcgrath5035
    Moderator

    I have not looked at recent G2 Core builds, but doubt that the default pin assignments have changed.

    The Motate pin reassignment layer in G2 is very powerful but comes with side effects. As you can imagine, folks seeking help here in the forum might forget to mention that they a recompiled with different I/O and it could take a lot of cycles to figure that out!

    I believe it safe to assume that mainstream G2 builds remain targeted to DUE with a Gshield as an introductory test platform. But a lot of folks are using G2 in various applications, so you may find custom builds with very different characteristics.

    in reply to: 2nd TinyG and X limit switch input and SpON not working?! #10079
    cmcgrath5035
    Moderator

    Mitch

    The relay was connected with the coil attached to SpOn and ground- linking the 12V+ and – spliced into the fan output which was set to 12V.

    I read this to say you were attempting to use the relay to switch 12V on and off under SpOn control. Can I assume that was for test purposes? The current available from the fan regulator on tinyG will not be adequate to actually run a spindle.

    The challenge with inductive spikes is that they affect circuits rather randomly, similar to ESD damage. It is possible that an inductive spike damaged the silicon chip in the area of of the SpOn output gate which possibly could have affected near by gates, perhaps the X limit inputs. That comment is about adjacent on the die, not necessarily on the pin-out (lead frame).

    Based on the evidence so far in the thread, it seems as if the SpOn output port is no longer functional. I don’t know of any good options to recover it. Perhaps someone else has some ideas

    in reply to: tinyG flashing SpDir led #10072
    cmcgrath5035
    Moderator

    crchisholm-
    Zootalaws has runout well covered

    You spindle likely starts

    spindle starts up automatically when I power up the tinyG (hopefully I will be able have it not do that when I know more)

    because $p1pof = 0.1, the default value. Set that parameter to $p1pof = 0.0, then spindle should follow M3 and M5 commands and be OFF on boot up.

    in reply to: tinyG flashing SpDir led #10063
    cmcgrath5035
    Moderator

    crchisholm – When your are ready to tackle Spindle Speed control, give this doc a look

    This presumes you have a PWM based controller.
    If you have a voltage based controller, they are not directly supported but several workarounds have been implemented by users.

    in reply to: 2nd TinyG and X limit switch input and SpON not working?! #10062
    cmcgrath5035
    Moderator

    Mitch – For reference if you have not seen them, schematics are here:

    3V is derived from Vmot by regulator U7. The 3.3V available on pins 1 and 2 of J13 (the limit switch I/O strip) is the same 3.3 V that powers the Atmel device and all the leds.
    From your description, it sounds like tinyG is still communicating with your control computer, but SpOn not working.
    Are other LEDs on?

    Do you still have 3.3V on J13 pins 1 and 2?

    How did you connect your 3volt relay?
    If you connected it from the SpOn port to ground, I doubt the relay would operate, the port pins individually can’t handle much output current(to operate the relay). Solutions include adding an off board 3V logic buffer device or use the SpOn lead to operate a Solid State relay. SSRs use opto isolators on the input stage.

Viewing 15 posts - 616 through 630 (of 1,771 total)