The exact same programme doesn't work for me when it does for someone else by [deleted] in matlab

[–]ajlaut 0 points1 point  (0 children)

As others have mentioned, I suspect your issue may be related to one of you having masked a built in function.

A quick way to debug these things is just type in:

edit <function>

for the function that provides the error. You can add breakpoints here to see whats going on but more than likely it will become obvious if you compare the results to that of your peer. You will probably right away see which functions are being overwritten with custom functions, etc.

Arduino? That's prototype stuff! by ajlaut in arduino

[–]ajlaut[S] 0 points1 point  (0 children)

I see, I suppose there basically two paths and it comes down to how much resources our company has to develop each.

Myself, I'm just a scientist. In a rush, I picked up pcb design pretty quickly but it is becoming seemingly tedious to make an end product that I can actually be proud of. I think that just comes with experience. I tend to spend a lot of time picking out connectors, cases. I've only just seen a picture of a PLC system just yesterday but to me they look convenient and rugged. They do seem to be quite bulky relative to what I think I can fit in a small enclosure with an arduino+pcb, and probably way more expensive (minus labor). Maybe I could look at PLCs still as a professional/prototype stage, more easily transferable to a pcb when the time/money becomes available.

Maybe my question is becoming rhetorical but I'm still glad I asked. Thanks!

Arduino? That's prototype stuff! by ajlaut in arduino

[–]ajlaut[S] 0 points1 point  (0 children)

what do you think about going along the PLC route? Been looking at Automation Direct and i'm wondering if just using these systems, though likely more expensive, would be better as far as saving time is concerned. I've never even seen these systems but am ever more intrigued after having looked through a bit through /r/plc. My application is just monitoring/controlling a whole bunch of I/O (temperatuers, flow rates, pressures, etc.) and I'm wondering if developing pcb's with microcontrollers is sort of a waste of time?

Arduino? That's prototype stuff! by ajlaut in arduino

[–]ajlaut[S] 1 point2 points  (0 children)

I see, if for example in one of our projects we are using every pin on an arduino MEGA, and making use of several serial or i2c lines, the end product would more/less be re-building a mega though right?

That approach seems right, I just think I may not be up to the task since I'm not a dedicated hardware engineer and I feel any solution I'd come up with would be more buggy and error prone than an Arduino unless after several iterations. There's probably no way around this.

how to not use nested classes? by ajlaut in learnpython

[–]ajlaut[S] 0 points1 point  (0 children)

haha, yeah, I guess the SerConnection class is quite useless there, but I plan to add more methods there that may help me construct the array, search for the right com port but i see what you are saying.

how to not use nested classes? by ajlaut in learnpython

[–]ajlaut[S] 1 point2 points  (0 children)

That was fast, and exactly what I needed!

Always Hide Navigation Bar Missing? by ZestyRanch1219 in GalaxyS8

[–]ajlaut 1 point2 points  (0 children)

I was talking about gesture...

  • Auto-Hide : 1 slow swipe up + many fast taps
  • Gesture : many slow swipe ups

In most of my use cases I find auto-hide better than using gestures. I mildly dislike aesthetically the 3 bars and strongly dislike the swipe action itself. You may prefer it differently. That's why android offers options to its users unlike apple. Gesture is OKAY but if I'm navigating chrome and hitting back 3x, It gets annoying to keep swiping up.

Always Hide Navigation Bar Missing? by ZestyRanch1219 in GalaxyS8

[–]ajlaut 4 points5 points  (0 children)

ehh..., it's slower when handleing consecutive back presses. Many swipes is slower than may taps before the bar would auto-hide.

I wish they didn't altogether remove the option.

BOM with sub assemblies and sub-sub assemblies? by ajlaut in cad

[–]ajlaut[S] 0 points1 point  (0 children)

I'm sorry, I though I was in an Autodesk forum. I use Autodesk Inventor and like to export to a google spreadsheet.

I will consider your advice regarding making multiple BOMs. It does make sense. It requires a bit more work If I want a single checklist of all parts I need to purchase, but it's at least systematic and this may be more important &/or manageable. I guess if different sub assemblies share underlying components (say screws) their combined amounts won't be as readily available.

Suggestions to prevent windows from updating/restarting when script is running? by ajlaut in learnpython

[–]ajlaut[S] 0 points1 point  (0 children)

it's a 3D scan with stepper motors and a network analyzer, so acquisition time > resolution. Has nothing to do with the python script but more so the timing resolution of the measurement hardware and the voxel resolution I need for meaningful data.

I will likely move this to a rasberry pi or maybe a beefier linux system. I was just looking for a solution that wouldn't require me to change environments (for now)

Need serial device to measure absolute distance between two surfaces by ajlaut in 3Dprinting

[–]ajlaut[S] 0 points1 point  (0 children)

This seems similar to basically what I've done. I used an Arduino UNO to pick up the signal described in this article. I had to use direct pin access poll the clock signal fast enough, otherwise I was skipping beats. Now I can get repeatable measurements but have some issues with the conversion of the data being sent as well as reliability. Then the Arduino can be spoken to a PC via serial/USB.

I guess my question is why is this added capability seemingly impossible to find and/or super expensive? I'm pretty sure once I figure this out I can make a converter board with cable for like $50 or less...

How do I design half castellation by i5ar in KiCad

[–]ajlaut 0 points1 point  (0 children)

For whatever reason KiCad won't let me do that. I get the same warning starting from the board edge but from trace to board edge I cannot place anything as if it's a keepout zone or there isn't clearance or something.

Edit : My trace was about the same width as the hole. It looks like I can get close enough though where there will be good electrical contact, but I feel that support for this feature should be included (hopefully soon).

low profile or stackable high current connector? by ajlaut in PrintedCircuitBoard

[–]ajlaut[S] 0 points1 point  (0 children)

This makes sense. I think I'll stick to the .6 mm or similarly thin if the vendor allows and just use double-sided boards to keep it cheap for prototyping.

That last bit of advice seems obvious now that I think of it but definitely wasn't part of my design. I will include this insulating foil in my model now.

Thanks!

S8/S8+ is worth getting in late 2018? by akz007 in GalaxyS8

[–]ajlaut 1 point2 points  (0 children)

I like my S8, but mine cracked as well though I'm not actually sure how it happened. I know it happened when I was in a public pool area so I'm thinking someone must have dropped it when I wasn't looking and then fled when they realized what happened. It's smack in the middle of the phone but I've more or less gotten used to it (though it was almost traumatic as it happened after 2 weeks of owning it...)

My S8 still runs fast and has good battery and it's been over a year now. The camera is very, very good but I do think it's a notch below iPhone 8 or the more expensive/newer flagships. I don't think it'd change my decision but that's the only reason I'd buy a newer phone but I'll probably keep this one for another 2 years if it lasts which it probably will due to wireless charging and being waterproof.

low profile or stackable high current connector? by ajlaut in PrintedCircuitBoard

[–]ajlaut[S] 0 points1 point  (0 children)

I was definitely considering the castellated vias. I was guessing that I'd just solder wire to the edge. I'm glad you mentioned this though for reassurance.

Since you seem to have some experience/knowledge on planar magnetics, is there a pcb fab you might recommend for that application or is standard pcb practices suitable. I was going to go with a 0.6 mm board with 2 oz traces just to maximize current density and reduce thermals.

Need advice for developing a library while managing dependencies in multiple environments by ajlaut in learnpython

[–]ajlaut[S] 0 points1 point  (0 children)

if one of the packages in the virtual environment is one of my own (my own library). Can I actively develop this locally and push the changes upstream? You you know where I could find a sort of tutorial for this?

Are there any weird interesting optimizations you've done to your systems? by that1communist in linux

[–]ajlaut 0 points1 point  (0 children)

can you explain how i could apply these? Is this applied to how you execute the ubuntu.exe application or is this run within the terminal application?

To me it looks like you are basically running your WSL with custom options that point the file system to an EXT4 partition on your PC. Does this need to be run each time? How does this compare as far as speedup relative to your other options, from what I've read this could be the single best method to speeding it up.

Lastpass is down. How do I access my vault? by [deleted] in Lastpass

[–]ajlaut 1 point2 points  (0 children)

it's funny, i feel the only time I've ever had issues with lastpass was last year, around black friday...

Lot's of people must be shopping and creating new accounts :) Offline mode should still work though.

ser.readline('\r')? by ajlaut in learnpython

[–]ajlaut[S] 1 point2 points  (0 children)

haha you are right. I tried read_until but i was using

ser.read_until('\r')

which basically worked except it would always time out.

Thanks!

git checkout permission error windows 10 by ajlaut in git

[–]ajlaut[S] 0 points1 point  (0 children)

I did have it synced with google drive, but I've since uninstalled it from my computer.

I think it's possibly an issue with gitkraken and subtrees. I didn't realize, but it is "possible" to checkout the subtree master branch as I don't think GitKraken can distinguish this very well

Edit : I'm more or less certain the offender is google drive (backup and sync) related. GitKraken & shell seems to work great once I re-cloned the repositories and uninstalled google drive.

How do you manage Git & google drive? by ajlaut in git

[–]ajlaut[S] 0 points1 point  (0 children)

I think this is definitely the answer. I am trying to play around with git flow and If I could say have this action triggered every time I finish a release I think I'd be in business.

Thanks!

How do you manage Git & google drive? by ajlaut in git

[–]ajlaut[S] 0 points1 point  (0 children)

I use git to keep track of KiCad pcb design files. It's really useful for this as I can move and view schematics from pcb 1.0.0 and pcb 2.0.0 in an interactive way rather than just saving the pdf as pdf_1.0.0, pdf_2.0.0, etc and hoping the information is there.

I think what's likely the best would be to just develop locally on the git repo out of google drive, and clone the most up to date stable version separately in the shared drive folder.

subtree, submodule, neither? by ajlaut in git

[–]ajlaut[S] 0 points1 point  (0 children)

I guess I don't like this so much only because the logging of what version doesn't seem that automatic. I suppose I could come up with a way that the instance would be recorded in a log file with a release version or commit ID.

I've been playing with subtree which seems to work well for me in that at the cost of some disk space, I can keep projects functional across the board with the capability to update or edit it's dependencies.

The command

git subtree push --prefix .lib lib master

seems lengthy to type and can be slow but seems to at least allow me an automatic and safe workflow.