Either suggested technique will work fine.
Posts made by Danal
-
RE: DuetLapse available for Alpha testing
-
RE: DuetLapse available for Alpha testing
Sort of.
You can
- sudo apt-get install samba
- sudo smbpasswd -a pi
- sudo nano /etc/samba/smb.conf # and change 'read only = yes' to no. It is fairly far down in the file.
Then, on your windows machine,use a UNC like '\192.168.7.101\pi' in windows explorer, or an editor, or whatever. This is not a pure SAMBA "net share" in that there is no drive mapping. In my opinion, it actually works better...
-
RE: DuetLapse available for Alpha testing
Any port. If you haven't run DuetLapse again, and have not rebooted, all the stills are in the /tmp directory. You can look at them individually, and/or re-assemble them into a video.
-
RE: The Spice Must Flow sand table gets servomotors
SCARA. The actual Sisyphus uses a sort of "bar on top of a rotary shaft" that certainly seems to work. I may convert over (back?) to that. But the SCARA seems to produce good patterns if you get it to "home" EXACTLY to the center (as defined by its own arms). And the opticals seem to make that work.
I haven't looked at Sandify in a few months; I'll give them some fresh attention.
The pic of the mechanism is pretty bad, I was apparently trying to get the board. It may help to know the "elbow" of the SCARA is pointed almost at us, at the right edge of the pic. The wrist and hand are visible with magnets in the background.
Also, the rim LEDs need to be "Higher". (Proto...). Yada Yada.
-
RE: DuetLapse available for Alpha testing
@luckyflyer said in DuetLapse available for Alpha testing:
@Danal I've got the numpy required error on my Duet pi, you said in a previous post that "I've updated the script to show the required commands, if numpy is not found." I'm on your Duetlapse github wiki, usage section. I don't see any commands for if numpy not found. Where do I find them?
Also I've loaded everything onto a standalone pi and everything works except there is no video. I'm using a microsoft usb camera that works with motion eyes, I have the script set for usb camera. I read where someone else had this problem but was unable to follow what they did to correct, cuz I'm a noob with linux, would you please walk me through what I need to do to get video?
I'm not going to use the stand alone pi if I can get the Duet pi working but ask because I figure if its not working on the stand alone pi then it won't work on the Duet pi.
Tiaahri's commands should work.
I was referring to having the script tell you that, instead of half a page of stack trace and a "numpy not found". I'll check and see if I did that or not...
-
RE: DuetLapse available for Alpha testing
@arhi said in DuetLapse available for Alpha testing:
@Danal no idea, I'm mostly the "ssh to a dev machine and work in console", gui is not my thing. I use "visual studio code" only barely (learning go and rust) and that's it. For ESP32 I use basic arduino IDE, did not use it so far for anything serious, ESP8266 I did some "bigger" projects back in the day and with their whole SDK I used xtensa from them and made Makefiles manually, so easy to call gcc or g++ depending on the c/cpp extension. I had platformio setup on previous computer that went out in flames half a year ago and never redid the setup on the new one as I didn't find it very nice. Something about VSC is not sitting with me properly and PlatformIO was taking it too far. I'm the old style Makefile / autoconf and VIM ... recently we moved to cmake but I still did not use cmake for any of my own projects and the cmake structure of mysql is maintained by someone else
Yeah, I have a lot of resonance with that. Nonetheless, breakpoints on the embedded board and hover the mouse over a variable (when paused) to see its value... that makes me put up with a lot from the IDE.
You'll both appreciate this: I'm all over that very lower right magic dot...
-
RE: How to repair a PanelDue 5i? (Accidentally spilled IPA over it)
If it might have had resin, give it a REALLY GOOD wash with pure IPA, then put it in a warm spot for a long time...
-
RE: The Spice Must Flow sand table gets servomotors
Clicky would work well... I'd exactly copied the person with the hall effect stops. They are just a little to loosey goosey for exact centering of a SCARA.
Also, I don't have glass on mine yet, so take this with some limits... I am using "Hamster Bathing Sand". Seems to work very well. Amazon. It might stick less (or more, who knows). Thanks for the exact speeds, I'm still experimenting.
-
RE: DuetLapse available for Alpha testing
@arhi said in DuetLapse available for Alpha testing:
I do system service programming 10 hours a day in c/c++
Then I have a really off the wall question for you:
Do you know how to FORCE "Visual Studio Code" (Note: not Visual Studio) with PlatformIO installed running the Espressif32/ESPIDF platform, force it to compile a mixed source module project with C compiler for .c and .h files and C++ compiler for .cpp and .hpp files? I can handle the 'extern' and such for the cross-calling, so the linker is happy, no problem. I just need it to use the right #$% compiler.
I thought the whole "use the right compiler by file extension" thing was automatic, and it seemed like it has worked before in VSC. However, at the moment, I have a project that throws tons of errors in the .cpp files, because it is treating them as .c.
Like I said, off the wall, because it is a VERY narrow question: VSC (not VS), PlatformIO and Espressif32/ESPIDF...
-
RE: DuetLapse available for Alpha testing
@arhi said in DuetLapse available for Alpha testing:
I actually expected that I'll easily find a video player that will do just that, allow 2 tracks to be played pip style or one next to another or something like that, but most players don't even support multi track video and best I could find is "easy switching" with ALT+V on the potplayer. I generate first both videos as mk4 and then use ffmpeg to copy them into single mkv with two tracks. Will investigate further, maybe there is better way. So far I like that I don't have to use raspistill and that the fs.. can do both rpi camera and usb camera, and I want to be able to capture both and that works somehow ok. Now I need to see how to make a best output from the two sets of images
I was thinking more of an editor, so there is nothing at "my end". Just a regular vid, with side-by-side or p-n-p.
Speaking of which, I don't have any players installed on this machine, and I haven't been able to look at that mkv quite yet.
-
RE: DuetLapse available for Alpha testing
@arhi said in DuetLapse available for Alpha testing:
@Danal I managed to get used to "no ;" somehow with go but this whitespace structuring is really annoying ... irrelevant ... enough ppl bitching about it online on programming forums no need to spill it here, I just mentioned 'cause probably things I did can/should be done differently (properly - in the spirit of language).
I am doing a BUNCH of Python, regular old C, C++, and C# right now (different projects). Subtleties of syntax difference are driving me crazy. (As well as C string/pointer stuff, which I'd forgotten how bad that really is/was).
It is really funny how your mind works. I am really good about no ";" in Python, and yes ";" in the various C flavors... except... on printf statements. The syntax checking editor gets me every time. I just can't make my mind do it.
And, I really, really, really, like the indentation based structure of Python. It is 1/2 the reason I use it instead of PERL. To each his own...
-
RE: The Spice Must Flow sand table gets servomotors
@mrehorstdmd said in The Spice Must Flow sand table gets servomotors:
I installed iHSV42-40-07-24 servomotors in my corexy sand table and have been running some tests. It's set for 10k acceleration, 2k speed, and IRIC 20k jerk. Peak speeds hit 2k, but of course, most of it is less than that because of all the direction changes.
I ran more tests at higher speed, jerk and acceleration settings, but the motors keep pulling the 200W supply voltage down causing the controller to reset. I need a bigger power supply!
I haven't tweaked any of the motor parameters in the integrated drivers yet- just running with factory defaults.
At some point I'll install these motors in UMMD and run some print tests.
I'm surprised it doesn't throw the ball at those speeds. I've built a proto, that took about a year to have working pretty well, and am deciding when to build the "fine furniture" part...
Optical Endstops seemed to be one of the BIG keys to getting this basic design to work well.
-
RE: layer change detection - ideamaker
@zapta said in layer change detection - ideamaker:
@Danal, does the layer detection of the duet relies the file preamble from the slicer? E.g. this
https://github.com/Duet3D/RepRapFirmware/blob/dev/src/Storage/FileInfoParser.cpp#L538
BTW, theoretically you can have in the timelapse program an additional trigger by z.
Yes, I read the whole thing as:
- It has to find a tag (a comment) that tells it the layer height.
- It scans the last few K of the G-Code for max Z
- It divides to derive total layers
- During the actual print, it also divides to decide what layer is current.
The thing that gets thrown off the most seems to be (2).
And... that's my reading, I could be off in detail. I've looked at it several times and I'm reasonable certain that is how it works... but we all know that code can do things we are looking right at... and not understanding.
-
RE: DuetLapse available for Alpha testing
Python is pretty easy in some ways.
A pic-n-pic video "editor" would make a very cool result.
-
RE: Better result with autocalibration ?
Sounds like a good technique.
You can manually change those settings... Before you do that, I'd run several S6 or S8 autcalibrates with the rod length set to 291.6, and see what you get.
-
RE: layer change detection - ideamaker
DuetLapse depends on the firmware finding the layer tags.
The firmware is looking for some specific strings prior to starting a print, and then calculates the "current" layer from Z, with appropriate handling for the fact that layer 0 is often different.
The most common reason for all of that not working is having a G1 (or G0) in the end G-code that contains a Z value that throws off the scan & calculate. What do the last two dozen or so lines in the file look like? And/or what does DWC show for total height?
-
RE: YAP - Yet Another Pendant
Status 23 May 2020.
Bogged down in the Oled.
ESP32 can be programmed a number of different ways "Arduino" compatible libraries via the Arduino IDE; Arduino libraries via PlatformIO, several Python variants, and its native (from the manufacturer) platform/framework Espressif32/ESP-IDF. For "reasons", I'm pursing that last one, the native set up. However... for years there have been TON of LCD and OLED libraries out there for the Arduino, and these are very quick and easy to lightly refactor for the ESP32 Arduino-ish setups. Therefore, nobody has produced any LCD or OLED libraries for the 'native' ESP-IDF framework.
Being somewhat hard-headed, I'm in the process of adapting one of the libraries (specifically LovyanGFX) so that it is pure native ESP-IDF. What a meticulous pain in the kiester this is turning out to be...
So, anyway, summary status: Lots of pieces working, need to be integrated into a whole, and bogged down on the OLED to the point I may push through; or I may change course.
-
RE: PanelDue for CNC
It is open source... somebody needs to step up.
OR run an alternative Web interface on a small tablet. Same answer, somebody needs to create a CNC friendly version.
-
RE: YAP - Yet Another Pendant
Status as of 22 May 2020.
- Pendant wheel is working, very solidly, implemented entirely with interrupts.
- Queuing/accumulation of the wheel (to "elastic buffer" between wireless and wheel) is working.
- XYZ4 switch is working
- Wireless connection to a RRF2 printer is working.
- 1/10/100 switch working.
- The above allows me to move a print-head around, wirelessly. As mentioned above, works better than I thought it would...
- E-Stop coming soon.
- Wired connection is not started (other than, I've kept the pins free).
- OLED is physically attached, and runs test/demo software. It is pretty far from being integrated with the other code (turns out there are NO libraries for LCD/Oled that work on Esspressif/ESP-IDF platform/framework
Not (yet) on Github. Probably a few days yet. Ask if you want it sooner.
-
RE: CNC style Pendant
I ordered a pendant just BEFORE Dave wrote his Arudino code. Which is great! Freed me up to take it in a slightly different direction:
YAP is a wireless (WiFi Network) or wired (PanelDue port) pendant based on the ESP32 (about $5 in the US). Also, the ambition is to have a small OLED display with XYZ showing.
Progress reports will be in the other thread.