Forum Replies Created
-
AuthorPosts
-
StompParticipant
Everything sorted now but as I hate searching for answers and coming to a thread that looks promising and just stops here are some issues and solutions I found.
The code not compiling error is caused by using current PlatformIO and espressiv32 versions.. use 2.1 and it all works fine
TMC2208 drivers need a -ve signal to be enabled and +ve to be disabled.. you can change it in the code as I said above but I found out its easier just changing the config file that you can edit in the webUI /cnc.html – where it says stepEnLev”:0 change the 0 to 1 or the other way around, put MM across the output pin to confirm its enabling and disabling motors.
I found I was getting a strange “tick” from the bottom arm stepper driver/motor.. i checked it and it was receiving a voltage pulse across the STEP pin, I guessed that it was something to do with the WIFILED part of code below it as it says hwpin 14 for the output of the LED. I couldnt see any LED there anyway so I // the code from below the file manager pin assignment code including the LED strip part as im using a seperate d1mini flashed with wled and addressable 2801 leds instead of the on board PWM fet. This got rid of the tick as far as I can tell.. so if your bot finishes drawing and starts on a random line using one arm this is the problem. If you hold the stepper motor you can feel the ticking.
I hope this helps someone down the line what a fun project thank you very much i might post my finished photos once I do the woodworking part of it.
PS im no coder but would be great to use one board to drive both the bot and wled.. I have no idea where to start implementing this but if anyone ever does can you please bump this thread so I know.
Cheers
AdamStompParticipantYaay! so figured it out.. as said above re load earlier version of platformIO AND previous version of espressiv 32 platform
Now literally every SD card i was trying works.. yay.. at least I backed up all my crap off all these cards which is something i guess.
Still 3 frustrating days stuck at home with kids and with covid fighting this thing are over finally.. now onto cutting the table on my cncI also found in MotorEnabler.h the _stepEnLev = true; which im guessing makes the enable pad for the motors have 3.3v which means anyone running 2208 drivers will have an issue where they cant connect to the board.. i assume this is because there is some short no idea really but i know that those drivers need ground on the enable pin to work.. i ended up cutting the trace and grounding it previously to enable motors but I think this line in the code change to false might fix this motor issue maybe. I might try it at some point and will report back if its right.
StompParticipantI did solder up an sd card just like you said.. ive also tried multiple sd card and micro SD card adapters.
I have a very good microscope so its not a problem tracing that pin.. everything is wired as it should beStompParticipant{“robotType”:”SandTableScaraMatt”,”cmdsAtStart”:””,”webui”:”sand”,”evaluators”:{“thrContinue”:0},”robotGeom”:{“model”:”SingleArmScara”,”homing”:{“homingSeq”:”FR3;A+20000N;B-20000;#;A+20000n;B-20000;#;A-600;B+600;#;B-20000N;#;B20000n;#;B-500;#;A=h;B=h;$”,”maxHomingSecs”:120},”blockDistanceMM”:1,”allowOutOfBounds”:0,”stepEnablePin”:”12″,”stepEnLev”:0,”stepDisableSecs”:10,”axis0″:{“maxSpeed”:3,”maxAcc”:10,”maxRPM”:5,”stepsPerRot”:12000,”unitsPerRot”:628.318,”maxVal”:190,”stepPin”:”14″,”dirnPin”:”32″,”endStop0″:{“sensePin”:”36″,”actLvl”:0,”inputType”:”INPUT_PULLUP”}},”axis1″:{“maxSpeed”:3,”maxAcc”:10,”stepsPerRot”:12000,”unitsPerRot”:628.318,”maxRPM”:10,”maxVal”:190,”stepPin”:”33″,”dirnPin”:”15″,”endStop0″:{“sensePin”:”39″,”actLvl”:0,”inputType”:”INPUT_PULLUP”}}},”fileManager”:{“spiffsEnabled”:1,”spiffsFormatIfCorrupt”:1,”sdEnabled”:1,”sdMOSI”:”18″,”sdMISO”:”19″,”sdCLK”:”5″,”sdCS”:”21″},”wifiLed”:{“hwPin”:”14″,”onLevel”:0,”onMs”:200,”shortOffMs”:200,”longOffMs”:750},”ledStrip”:{“ledPin”:”4″,”sensorPin”:”34″}}
Ive used multiple ways for it to see the SD card.. currently its using the adafruit feather as a piggyback board so not really any way to screw that up.. i cut the small copper pad connection and soldered the wire on the back…
I dont know how it all works but is it possible to send a compiled image that I can just flash to the board?
Or is anyone in/near Australia that can send me a working SD card if I paypal them some beer money?
CheersStompParticipantI soldered up an sd card like you said too and still nothing. Im hoping they are all just bad SD cards and the one I ordered works otherwise I dont know what to do.. its very frustrating
StompParticipantNope still problems with this “random” piece of code and library errors.. once i change it to a previous version it works but I get a ESP_ERR_INVALID_STATE in terminal regarding SD card.. if its in or not makes no difference
StompParticipantYeah not compiling this is what happened last time..
Cannot find a directory called “include” and conflict type for “random” whatever that means..src/WorkManager/Evaluators/tinyexpr.c:121:15: error: conflicting types for ‘random’
static double random() { return rand() / ((double)RAND_MAX); };
Compiling .pio\build\featheresp32\src\WorkManager\WorkManager.cpp.o
^~~~~Compiling .pio\build\featheresp32\src\main.cpp.o
~
In file included from src/WorkManager/Evaluators/tinyexpr.c:38:
c:\users\stomp\.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\sys-include\stdlib.h:270:6: note: previous declaration of ‘random’ was here
long random (void);
^~~~~~
*** [.pio\build\featheresp32\src\WorkManager\Evaluators\tinyexpr.c.o] Error 1
============================================================================================================================ [FAILED] Took 38.64 seconds ============================================================================================================================StompParticipantThank you for that Ill try it today.
If anyone comes across this post and wants to run 2208 drivers they need a ground on the enable pin not +ve.. cut the trace and ground it they work great and so quiet its bliss -
AuthorPosts