News for hackers. Stuff that matters.
Re:Have you ever hurt yourself from your own code? by ghostpepper on Wednesday May 26, 2021 @08:33PM (#27297937)
A few years ago, I ordered the cheapest six-axis robotic arm from ebay for about $100 that came with basically no software or motor-driver boards, so I did it all from scratch with a PCA9685 board, a basic kernel driver and some very hacky scripts from user space.

One day I had some friends over for a glass of wine, and wanted to show off my creation. I invited them into my "lab" and placed my wine glass down on the desk so I could type a few commands with both hands.

My rudimentary software had some motion smoothing once it was up and running, but upon initialization, if the arm was significantly displaced from where it had been when it was turned off, the PWM board would instruct the motor to immediately "be" in a position that required the arm to travel clear across the desk in effectively as little time as possible.

In this case, where it had been previously happened to be where my wine glass was now, and the flimsy aluminum at high speed was enough to shear the stem from the glass and explode the bulb. Luckily the wine didn't get in any sensitive electronics, but I learned a valuable lesson about the difference between messing around with hardware vs software.

Re:Have you ever hurt yourself from your own code? by isatty on Wednesday May 26, 2021 @09:55PM (#27298482)
I used to do robotics, I can tell you that the fact that it was the cheapest or the most hacky does not matter in the least. Everything can and will go wrong, even the priciest and well documented part.

I used to have multiple clamps around the controller, message bus, the firmware and also a physical barrier, and yet would not feel safe with my fingers or person around moving parts.

Re:Have you ever hurt yourself from your own code? by monocasa on Thursday May 27, 2021 @01:00PM (#27305258)
Used to work in robotics. The QA folk were obviously very much sticklers for the full process of enabling the hardware interlocks before getting near the moving bits. One time a manager got mad at them for taking so long going through the full interlock process while repeating a failure mode. He therefore went up to the machine saying "look, it failed so it's stopped, that's how the code works!" At that point our beta version of our CI requisitioned that bot (as the interlock wasn't the only process corner that the manager was trying to cut the bot wasn't marked as reserved in the CI system), it started initializing and broke his arm.

I'm just glad that ultimately he was the only one who faced physical consequences for his poor choices. And thankful that the consequences weren't that bad at the end of the day; a broken arm is way better than a cracked open skull.

Re:Have you ever hurt yourself from your own code? by ta988 on Thursday May 27, 2021 @08:49PM (#27310512)
I worked for a car company. We had robots for mounting parts. Big robotic arm several tons of pressure possible. I was part of the maintenance team, we get an alert for a robot malfunctionning. Coming in the area we see screwdrivers cleverly placed in all the safeties. And a guy trying to tweak the robot that was slowly moving...
Re:Have you ever hurt yourself from your own code? by faeyanpiraat on Friday May 28, 2021 @02:19AM (#27312297)
Could you please elaborate? I don’t fully understand what’s going on with the tweaking?

Is he next to the malfunctioning robot?

Re:Have you ever hurt yourself from your own code? by ta988 on Friday May 28, 2021 @09:21AM (#27315015)
He was next to the robot (like his hip touching it) trying to do we never knew what with his hands on the robot. And the robot was moving of course all securities were disabled and it was in a kind of. debug/manual mode) He was also just an operator from the next stage of production, so he was not supposed to be here at all. We checked everything and ran the calibration and validation procedures and they went through so maybe he did repair it in the end.
Re:Have you ever hurt yourself from your own code? by hutzlibu on Friday May 28, 2021 @02:29AM (#27312343)
I think the malfunctioning was the guy shutting down safety meassures intentionally with screwdrivers?

In other words, some person did something very stupid, while thinking he is clever.

Re:Have you ever hurt yourself from your own code? by ta988 on Friday May 28, 2021 @09:22AM (#27315024)
Not just that, going next to it with securities off.
Re:Have you ever hurt yourself from your own code? by neilv on Thursday May 27, 2021 @05:08PM (#27308575)
I hope that the arm healed well, and that, after the painful demonstration, everyone in the organization was fully onboard with workplace safety protocol.
Re:Have you ever hurt yourself from your own code? by monocasa on Thursday May 27, 2021 @08:13PM (#27310250)
Yeah, the arm healed great, and whole situation (plus the subsequent "N Days Since a Limb Mangled" sign) contributed greatly to the manager's humility and respect for safety.
Re:Have you ever hurt yourself from your own code? by Digit-Al on Friday May 28, 2021 @08:14AM (#27314442)
> plus the subsequent "N Days Since a Limb Mangled" sign

That made me actually lol.

Re:Have you ever hurt yourself from your own code? by CoastalCoder on Thursday May 27, 2021 @07:30PM (#27309900)
Oddly enough, I'm right now watching Shake Hands with Danger[0].

[0] https://www.rifftrax.com/shake-hands-with-danger

Re:Have you ever hurt yourself from your own code? by Doxin on Friday May 28, 2021 @02:55AM (#27312474)
I don't work in robotics so I might be entirely off-base here, but surely the interlock process would consist of hitting an E-stop somewhere? What was this process that took long enough for said manager to get annoyed with?
Re:Have you ever hurt yourself from your own code? by jdiez17 on Friday May 28, 2021 @07:54AM (#27314277)
You usually only hit the E-stop when the robot is moving in a way that could be dangerous. Safety interlocks are intended to minimize the probability of such a dangerous situation. The robot won't move unless all of the interlocks are outputting a "go ahead" signal. The most common interlock is a (switch/laser/hall effect sensor/whatever) that detects the door to the robot cell is closed.
Re:Have you ever hurt yourself from your own code? by Doxin on Monday May 31, 2021 @03:14AM (#27341173)
Well yes I know that much, but surely having an e-stop pressed will stop the robot from moving, same as any of the other interlocks? And opening/closing a door or the like doesn't seem like something that takes a long time either...
Re:Have you ever hurt yourself from your own code? by monocasa on Friday May 28, 2021 @10:55AM (#27316078)
That cut power and the robot needed to fully recalibrate afterwards which took time while iterating trying to replicate a defect.
Re:Have you ever hurt yourself from your own code? by Aeolun on Friday May 28, 2021 @03:49AM (#27312758)
I assume you still need it to move, not be entirely turned off?
Re:Have you ever hurt yourself from your own code? by CoastalCoder on Thursday May 27, 2021 @07:32PM (#27309914)
Out of curiosity, what was that manager's attitude towards safety afterwards?

I would assume he'd be the poster-child for following safety protocols after that. But I'm still learning a lot about human nature.

Re:Have you ever hurt yourself from your own code? by monocasa on Thursday May 27, 2021 @08:16PM (#27310282)
A lot of the toxic pressure that pushed the manager in that direction still existed, but a light hearted floppy arm joke served well to remind everyone relevant of the state space of outcomes.
Re:Have you ever hurt yourself from your own code? by AlotOfReading on Wednesday May 26, 2021 @10:30PM (#27298680)
Yep. When I have to work with robots, it's from a distance and with as much safety equipment as possible. I've seen too many physical, hardware, and software failures to risk anything I care about. Hearing protection is also important. A hundred pounds or more of metal slamming into itself at high speed makes a deafening sound.
Re:Have you ever hurt yourself from your own code? by _pmf_ on Thursday May 27, 2021 @08:53AM (#27302465)
Every hardware demonstration is like the board room scene from Robocop: https://www.youtube.com/watch?v=ZFvqDaFpXeM
Re:Have you ever hurt yourself from your own code? by faeyanpiraat on Friday May 28, 2021 @02:23AM (#27312320)
I’ve read a story somewhere, that someone trying to fix something in the toilet had to be in a position close to the toilet, then the lid accidentally fallen shut and the guy had his hearing damaged because the toilet bowl somehow concentrated the noise in one point where his head was.

It’s weird how even ordinary things can be dangerously loud.

Re:Have you ever hurt yourself from your own code? by softblush on Saturday May 29, 2021 @03:34PM (#27327689)
Re:Have you ever hurt yourself from your own code? by azalemeth on Friday May 28, 2021 @08:55AM (#27314806)
When I was a graduate student making something in the machine shop, another user of this (excellent) departmental facility had just spent most of the day setting up his CNC milling job on the oldest, shittiest (and therefore least-time-pressured) 3-axis mill in the building. Whilst I was manually turning something on the lathe about 15 m away, he shut the door and pressed the 'go' button.

There was an absolutely almighty BANG, of the 'an explosion has just occurred' variety that made me very glad I wasn't actually cutting metal at that precise point in time. His g-code had an off-by-one error (I think) and it had dutifully picked up a ~20 cm HUGE flycutter, spun it at the speed of of a ~5 mm bull nose cutter, and driven it directly down into a piece of aluminium. The flycutter had broken and effectively welded itself to the aluminium, which had sheared down the middle, spun out, and hit the protective guards that completely encompass the machine. The person driving it (either a postdoc or graduate student) was maybe 40 cm away and saw this ~2 kg piece of metal bounce off a thick reinforced poylcarbonate guard directly at the level of his head.

Safety equipment saves lives.

Re:Have you ever hurt yourself from your own code? by Gravityloss on Thursday May 27, 2021 @03:40AM (#27300399)
Some small metal pressing machines for example have two buttons, one on each side of the machine. You have to push them both for the machine to operate. This means your hands can't be squished.

Or a dental x-ray machine has the final "run" button in the hallway so the nurse taking x-rays must go there to do it, so they don't get repeated exposure.

Re:Have you ever hurt yourself from your own code? by msrenee on Thursday May 27, 2021 @07:09AM (#27301519)
There's lots of safety mechanisms like this in manufacturing. I've also seen "light curtains" which are essentially 2 bars on either side of a hazard. If anything crosses that plane, the machine stops automatically. There are also pressure pads. For one type, you have to be standing on for the machine to operate so that you are in a safe location when it starts. For the other, the pad covers the danger area and the machine will not operate if there's any weight detected. Trying to think of any others I've run into. It's actually pretty interesting stuff. You've got to keep in mind that the operator is liable to be in a hurry, tired, stupid, or any combination thereof.
Re:Have you ever hurt yourself from your own code? by akiselev on Thursday May 27, 2021 @12:41PM (#27305069)
Another awesome safety system is the SawStop which uses the conductivity of skin to monitor for contact against the blade in a tablesaw. If it detects contact a small explosive charge goes off, instantly sending a block of aluminum into the path of the blade, stopping it dead. Even a serious accident like leaning with an elbow against a moving blade is likely to result in little more than the scratch from hitting a stationary sharp object rather than decapitation.

Sadly the inventor couldn't convince the tablesaw manufacturers to use his invention for cost and/or liability reasons so he had to make his own. Their tablesaws themselves are relatively expensive but cost per accident is $100 for the charge plus whatever the blade costs, so basically $200 to prevent serious injury or death.

Re:Have you ever hurt yourself from your own code? by ArchOversight on Thursday May 27, 2021 @01:16PM (#27305494)
The biggest problem with the saw stop is that wood when it is even slightly moist can set it off.

So on a worksite if you are using lumber that hasn't had adequate time to dry the saw stop would trip even without any limbs being in danger.

Each time it would destroy itself, you would have to take the saw apart and change it which would cause a work stoppage.

What irks me the most is that the SawStop owner tried to create legislation that would have required companies to use his product.

Re:Have you ever hurt yourself from your own code? by akiselev on Thursday May 27, 2021 @02:20PM (#27306308)
Do you know what moisture level sets it off? I didn't even think about that - it's easy to take Southern California's weather for granted. Here it's either pretty much ready from the lumberyard or you got it right off the mill's truck so it has to sit for a few days/weeks.

The lobbying is off putting, yes, but at least his greedy self-interest would do some actual good instead of extracting evermore capital from everyone. Powertools inhabit this uncanny valley of dangerous equipment where they're cheap and accessible enough to the average joe (compared to CNC machining centers or forklifts or whatever) yet powerful enough to do some real damage. My understanding is that the primary reason the major manufacturers didn't want the SawStop wasn't cost but the fear that it would expose them to more liability by making the tools seem less dangerous. I really wish it achieves mass adoption so that the price drops even further.

Re:Have you ever hurt yourself from your own code? by VLM on Thursday May 27, 2021 @03:00PM (#27306776)
Thankfully the patents are starting to expire in 2024. Nothing holds pack progress quite like the patent system.

The problem with causing $300 of destruction and lost work time vs possibly saving a limb is there's no fine woodworking operation or framing carpentry operation that requires a table saw. Technically if you feel unsafe working with a table saw you can do absolutely everything very slowly and tediously with a router or router table or bandsaw, or manual tools like a chisel and hammer. Anyone concerned about safety doesn't use a saw stop, they use an entirely different technology than a table saw. If you make a table saw too safe or too expensive to actually use, people will simply use something else. The death toll may or may not be lower...

From a marketing perspective, the people most likely to buy a saw stop because they're scared of table saws will save a lot of money by not buying either sawstop or table saw, and they'll cut dado slots using a hand held router (more dangerous in a different way) or break down plywood using a tracksaw (unholy expensive and many crushed foot injuries) or cut beveled edges on a router table or zillions of alternatives. Meanwhile the people who don't care about safety because they're not drinking on the job or they actually use the substantial amount of safety gear that makes a table saw perfectly safe OR they only do operations on the table saw that are inherently safe by nature (as opposed to relatively low risk operations, and some very high risk operations that people do anyway), will continue to save a lot of money by the combo of not being dumb and not buying sawstop. Finally the real dumb woodworkers who get drunk and get hurt or simply don't care, will continue to not care and not buy sawstop and will not live too much longer in a world either with sawstop or without table saws anyway, so its not like the world will net improve, the Darwin award winners will continue to win Darwin awards. So sawstop is a VERY hard sell.

A similar problem is well manufactured table saws are safer than homemade table saws. The concept of "put a round blade on a motor" is too simple to legislate out of existence. So making table saws illegal wouldn't eliminate table saws it would just mean the homemade ones will make table saws, on average, more dangerous.

Arguably, radial arm saws are more dangerous than table saws and "the marketplace" effectively eliminated those decades ago, so its not like the marketplace dislikes safety or whatever.

Re:Have you ever hurt yourself from your own code? by gknoy on Thursday May 27, 2021 @03:13PM (#27306922)

  > Meanwhile the people who don't care about safety because
  > they're [never doing unsafe things]
This sounds an awful lot like suggesting that skilled users of firearms don't care at all about safety because no one's going to deliberately do stupid stuff. It seems farcical to me. Just as with firearm safety rules, they're there to protect people from the rare moments when we are inadvertently NOT careful. History has shown that people DO do stupid stuff because they were thinking about something else, or were tired, or distracted -- hence why every firearm is treated as loaded, even if you unloaded it, and why weapon safeties exist.

For table saws, having a sawstop helps prevent situations that you don't have fill control over from having bad consequences. Of course you'd still use all the same safety measures you normally would without one.

Re:Have you ever hurt yourself from your own code? by VLM on Friday May 28, 2021 @08:20AM (#27314494)
Most firearms accidents happen during normal operations like carrying, cleaning, disassembly, and so on. In comparison table saws are extremely versatile and can do many operations some of which categorically prevent entire classes of accidents. For example I have a commercially made box cutting jig with various shields and guards and its not physically possible to stick my fingers in the blade during operation. If as you claim my mind drifted and I did stupid stuff, by physical design of the operation its impossible to hurt myself.

There's another class of accident involving equipment. Some people do not store firearms with trigger locks or unloaded in safes or whatever. Likewise there's an analogy with table saws where I don't rip small boards without a nice featherboard, riving knife, and some really nice plastic pushsticks. If as you claim my mind drifted, this time by use of tools it would still be physically impossible to hurt myself.

There is a class of inherently dangerous operations where no safety tools exist but the table saw is so versatile and flexible people can successfully do the operation... most of the time. My point is instead of spending more money to build a "better" tablesaw to do something dumb, simply invest the money in a COTS bandsaw or track saw or jigsaw hole cutting jig or chainsaw or planer or whatever crazy risky thing there's a better, faster, safer tool. You can do dangerous things with a table saw but there's always a better safer faster way to do it with a different tool. Taking away money by making the required table saw more expensive just means the woodworker will not be able to afford the superior even safer tool for the job.

Re:Have you ever hurt yourself from your own code? by akiselev on Friday May 28, 2021 @03:55PM (#27319744)
Ha! You described me to a 't' and all that makes sense. As a programmer I didn't want to risk my fingers even with a SawStop cabinet so I invested the money in a Festool tracksaw and Domino instead. No crushed foot injuries yet but man I wish I had a tablesaw to cut thin pieces from stock that aren't wide enough to fully support the track.
Re:Have you ever hurt yourself from your own code? by ajford on Thursday May 27, 2021 @05:53PM (#27309041)
Or they went about developing their own systems. Bosch made their own system that didn't involve slamming a brake into the blade, but SawStop decided to throw some money around and get an injunction against it.

All the evidence I've found is super cloudy, but early reports indicated Bosch's variant predated SawStop's release.

Luckily SawStop's patents expire in a few years so hopefully we'll see other safety mechanisms similar to SawStop without the downsides and greed.

Re:Have you ever hurt yourself from your own code? by sharedfrog on Thursday May 27, 2021 @08:25PM (#27310347)
According to this video[1], moisture setting it off is a myth.

[1] https://www.youtube.com/watch?v=NV6Jhw0hhBI (at ~3 min)

Re:Have you ever hurt yourself from your own code? by ArchOversight on Thursday May 27, 2021 @03:20PM (#27307002)
I have no idea on the moisture levels that cause it to be set off, I just remember reading/watching a video about it because at first it seemed like technology that SHOULD be widely used and implemented. When I first learned about it I thought it was a great idea.
Re:Have you ever hurt yourself from your own code? by ta988 on Thursday May 27, 2021 @08:55PM (#27310555)
I've seen it save a hand. I also noticed quite a few triggers, but it saved a hand so that was worth it.
Re:Have you ever hurt yourself from your own code? by ta988 on Thursday May 27, 2021 @08:54PM (#27310544)
It is not all moist wood. It depends on the specie, type of cuts, etc. Thats capacitive sensing so it depends on a lot of parameters.
Re:Have you ever hurt yourself from your own code? by lcuff on Thursday May 27, 2021 @04:18PM (#27307821)
Current saw stop units do have an over-ride switch so that if you know you're going to cut questionable wood, you can disable the safety mechanism for a series of cuts. (The safety mechanism comes back on if you power the table saw off, then back on.) But of course you don't know advance for sure if the piece of wood in hand will trigger the safety mechanism or not.

Not everybody's cup of tea, but our ability to be 'present' is highly variable, both person-to-person, and one person over time. I'm a somewhat daydreamy sort of person, so I work to bring focus when I'm using power tools. As a hobbyist I walk out of my shop when I get tired, emotional, or otherwise distracted, but that's not an option for everyone.

Re:Have you ever hurt yourself from your own code? by yetihehe on Friday May 28, 2021 @06:59AM (#27313890)
"Check mode" with stopped saw and light/buzzer instead of brake would be pretty good for such cases (unless wood has some internal moisture).
Re:Have you ever hurt yourself from your own code? by sharedfrog on Thursday May 27, 2021 @08:23PM (#27310334)
> The biggest problem with the saw stop is that wood when it is even slightly moist can set it off.

Is there any proof of this? From my understanding, that's a myth. Demonstrated here at about 3:00 https://www.youtube.com/watch?v=NV6Jhw0hhBI

Re:Have you ever hurt yourself from your own code? by myself248 on Thursday May 27, 2021 @10:36PM (#27311152)
The one at our *kerspace has tripped numerous times on damp wood, laser-cut wood, shiny laminates that didn't register as metallic but apparently it was a full moon that day or something, etc.

It's also saved a few legit fingers, so it's still a net win, but you've got to have pretty deep pockets to cover all the false trips.

Re:Have you ever hurt yourself from your own code? by sharedfrog on Friday May 28, 2021 @02:35AM (#27312378)
I see, thanks!
Re:Have you ever hurt yourself from your own code? by ta988 on Thursday May 27, 2021 @08:52PM (#27310533)
It is true, laser cut wood and burnt wood in general also sets it off. However on all saw stop saws I've used you can disable the safety when you have to cut those materials.
Re:Have you ever hurt yourself from your own code? by bradknowles on Saturday May 29, 2021 @07:51PM (#27329304)
Also, cutting anything that is metal or metal-coated, or otherwise conductive in any way.

You’d be surprised at the number of materials you might want to cut on a table saw that are unexpectedly conductive.

Re:Have you ever hurt yourself from your own code? by CoastalCoder on Thursday May 27, 2021 @07:37PM (#27309960)
One thing I'm still unsure of regarding table saws: is there really much risk of injury if you follow all of the typically recommended safety practices?

Every tablesaw injury I remember hearing about involved the operator failing to follow some of those guidelines.

Re:Have you ever hurt yourself from your own code? by confidantlake on Thursday May 27, 2021 @08:34PM (#27310418)
If you do everything right there is not much risk. But I have never met a human who does everything right 100% of the time.
Re:Have you ever hurt yourself from your own code? by ta988 on Thursday May 27, 2021 @08:57PM (#27310566)
You can't avoid rare events like a wood piece breaking and things like that. I'm much more worried of angle grinder for example.
Re:Have you ever hurt yourself from your own code? by zentiggr on Friday May 28, 2021 @10:52AM (#27316026)
This goes back to the basic point of safety work: Even the best trained, most attentive and careful operator can get into dangerous situations. There's no way to anticipate the moment that their attention might wander or some external circumstance might just force the situation.
Re:Have you ever hurt yourself from your own code? by ecpottinger on Thursday May 27, 2021 @06:16PM (#27309250)
Is there anyway to do it magnetically using inducted currents? I doubt you can stop the saw that way, but you should be able slow the blade down so it does not do as much damage.
Re:Have you ever hurt yourself from your own code? by adrianN on Friday May 28, 2021 @08:23AM (#27314517)
A tablesaw goes through a finger as if it is nothing. Fingers can move at speeds of dozens of centimeters per second. So anything that takes longer a dozen microseconds to stop the blade will not be good enough to let you keep your finger.
Re:Have you ever hurt yourself from your own code? by gxs on Thursday May 27, 2021 @11:01AM (#27303940)
Another one is machinery where you have to "enter" the machine to do maintenance. Think industrial ovens.

You're supposed to turn off the circuit breaker and lock it with your own personal lock that only you have the key to. That way no one can turn it on even if they wanted to.

I've heard no one, under any circumstances is allowed to take the lock off. If the person leaves after their shift and forgets to take it off for example, they have to come back in the middle of the night so to speak and take it off.

Re:Have you ever hurt yourself from your own code? by msrenee on Thursday May 27, 2021 @04:00PM (#27307512)
As someone else mentioned, that's a lockout-tagout procedure. Very common when doing any kind of maintenance on a machine. You isolate the power sources and place a personal lock on it to which only you have the key. It usually has your name and an ID number written on it. The lock cannot be removed by anyone else. If you, for instance, forget to take your lock off and go home, it's a very long process where they have to get someone high enough up the chain to get in contact with you and either get you to come back or confirm that you're safely a long way away from the machine before they can cut the lock off. This makes your management very unhappy and most places that I've worked will write you up for leaving while the equipment is still locked out if maintenance is finished and it's safe to operate.

It's not only electricity that needs to be isolated and locked out. A lot of machines use air pressure to operate moving parts, so in that case you'd have to isolate all electrical sources as well as the air. The machines I usually mess with require 2 locks. Some of the machines I've seen can require 6 or more locks to be fully locked out and safe to work on.

Re:Have you ever hurt yourself from your own code? by zentiggr on Friday May 28, 2021 @10:59AM (#27316152)
When I served on a submarine, tagout procedures were followed to the letter.

A typical maintenance period might require 100 or so separate tagouts, each of which could require anywhere from one to dozens of tags. Each duty watch was required to show up early enough to go through the entire tagout book and at least know the gist of what was in progress.

Finding a loose tag was an automatic all hands all work stoppage, until it was tracked down and resolved. No questions, even if your work was in a different compartment, or had no logical connection to what he tag was for.

Each new tagout request had to be signed off on by at least three people, sometimes all the way up to the captain and not just a foreman or supervisor but one or more shop heads.

Seawater system tagouts on a floating sub were serious business.

Re:Have you ever hurt yourself from your own code? by mdturnerphys on Thursday May 27, 2021 @01:07PM (#27305342)
Not just equipment you have to enter. This is used in situations with "stored energy" or other systems that need to be turned off or otherwise disabled for safe maintenance. There are multi-lock hasps that can be used if multiple people have overlapping needs to lock out the system, and other devices such as valve handles covers, etc., that help with locking out components don't have a built-in place for a lock.
Re:Have you ever hurt yourself from your own code? by agency on Thursday May 27, 2021 @11:34AM (#27304315)
I think this is called lock out tag out

https://en.m.wikipedia.org/wiki/Lockout–tagout

Re:Have you ever hurt yourself from your own code? by bananapear on Thursday May 27, 2021 @01:26PM (#27305628)
Re:Have you ever hurt yourself from your own code? by ta988 on Thursday May 27, 2021 @09:03PM (#27310609)
Re:Have you ever hurt yourself from your own code? by ta988 on Thursday May 27, 2021 @09:01PM (#27310596)
These make the worst horror stories I've read from various safety organizations. Tanks with gases (nitrogen is particularly sneaky), ovens, radioactive sources... If you want to learn about industrial risks based on real stories watch the CBS videos https://m.youtube.com/watch?v=f2ItJe2Incs
Re:Have you ever hurt yourself from your own code? by mustacheemperor on Thursday May 27, 2021 @05:43PM (#27308935)
>one type, you have to be standing on for the machine to operate so that you are in a safe location when it starts

Of course, the weakness of a system like this being if middle management is demanding unachievable timelines and/or people in the shop are willing to cut corners, someone can leave a box of heavy stuff on the pressure pad to "save time." Absolutely right that all these systems need to be resilient to operator tiredness etc

Re:Have you ever hurt yourself from your own code? by allo37 on Thursday May 27, 2021 @12:12PM (#27304724)
If you want to manually operate an industrial robot via its controller, you usually have to squeeze a "deadman" switch or else the robot will engage its brakes. What's neat is that the deadman switch is a 3-position switch: They discovered that when people panic they either let go or squeeze harder, so both actions stop the robot.
Re:Have you ever hurt yourself from your own code? by cafard on Thursday May 27, 2021 @10:46AM (#27303774)
A shirt-tail relative worked on a metal press in the one-button days. It cost him part of a finger or two.
Re:Have you ever hurt yourself from your own code? by myself248 on Thursday May 27, 2021 @10:37PM (#27311161)
> A shirt-tail relative

What does this mean?

Re:Have you ever hurt yourself from your own code? by zerocrates on Friday May 28, 2021 @03:02AM (#27312521)
It's another way of saying a distant relative.
Re:Have you ever hurt yourself from your own code? by andi999 on Friday May 28, 2021 @03:08AM (#27312546)
I know a guy who taped on of the buttons to work faster for the bonus.
Re:Have you ever hurt yourself from your own code? by inter_netuser on Wednesday May 26, 2021 @11:09PM (#27298923)
Not quite robotics, but some of our servers kept powercycling , had to plug in the physical terminal.

It was close to lunch, so I kept eating.

The finale was a jar of mayo spilled into the guts of a 50k server. Best mayo I ever had.

Re:Have you ever hurt yourself from your own code? by metafunctor on Thursday May 27, 2021 @02:41AM (#27300110)
What kind of server room allows you to bring food?
Re:Have you ever hurt yourself from your own code? by defen on Thursday May 27, 2021 @03:52AM (#27300446)
OP said a jar of mayonnaise spilled into the server, not food.
Re:Have you ever hurt yourself from your own code? by mekkkkkk on Thursday May 27, 2021 @05:17AM (#27300859)
Which makes it even more confusing. Were they preparing a sandwich on top of the server? Did they eat mayonnaise straight from the jar? The condiment plot thickens.
Re:Have you ever hurt yourself from your own code? by montroser on Thursday May 27, 2021 @06:00AM (#27301070)
And more mystery: Where I'm from, mayonnaise is viscous enough that it doesn't _spill_ out of anything...
Re:Have you ever hurt yourself from your own code? by johnchristopher on Thursday May 27, 2021 @07:09AM (#27301516)
Oh, I have to introduce you to some of our finest subway sandwiches prepared by students that have no clue how to make sandwiches that don't spill all their innards as soon as they leave their hands.
Re:Have you ever hurt yourself from your own code? by atatatat on Thursday May 27, 2021 @08:16PM (#27310278)
Why not choose a sub shop that serves other foodstuffs besides turkey and soy disguised as a bunch of other shit?
Re:Have you ever hurt yourself from your own code? by johnchristopher on Thursday May 27, 2021 @08:45PM (#27310477)
What does that have to do with mayonnaise ?

Anyway, try out a Point Chaud. Same overflowing sandwiches.

I once bought one, I walked out the shop and 45 meters later the sandwich literally went through the paper bag and fell down on the ground.

Re:Have you ever hurt yourself from your own code? by sneak on Thursday May 27, 2021 @10:20AM (#27303468)
One that employs people who think eating mayo out of a jar on a ledge next to an expensive server is a reasonable way to work?
Re:Have you ever hurt yourself from your own code? by nexuist on Thursday May 27, 2021 @02:52AM (#27300170)
I mean, there's a reason why pain is involved in this story.
Re:Have you ever hurt yourself from your own code? by 0xdeadbeefbabe on Thursday May 27, 2021 @10:57AM (#27303909)
The kind in you would find in a scene from hacker news.
Re:Have you ever hurt yourself from your own code? by hurflmurfl on Thursday May 27, 2021 @03:04AM (#27300225)
Is mayo mayonnaise? Do people eat mayonnaise by jars?
Re:Have you ever hurt yourself from your own code? by TeMPOraL on Thursday May 27, 2021 @10:06AM (#27303292)
The first one yes. The last one could've been Mayo clinic.
Re:Have you ever hurt yourself from your own code? by CoastalCoder on Thursday May 27, 2021 @07:39PM (#27309984)
If the movie Undercover Brother is to be believed, then yes. Typically on a slice of Wonder Bread.
Re:Have you ever hurt yourself from your own code? by andrewmcwatters on Thursday May 27, 2021 @02:04AM (#27299886)
Best mayo it ever had, too.
Re:Have you ever hurt yourself from your own code? by lloeki on Thursday May 27, 2021 @04:27AM (#27300604)
> messing around with hardware vs software.

Back when I was doing some hands-on practical training in electric engineering school, we had to design a control circuit on some breadboard, the kind that in high school would lit a couple of leds, and maybe make a light fade, but here it was driving a big-ass train engine boxed in a 1.5m x 1.5m x 3m steel cage, right next to the bench where we pieced the control device together, barely arms length away.

While conceptually the same, "theory" vs "practice" and "command" vs "power" suddenly takes a whole new meaning where you're suddenly pushing several orders of magnitude more power than a puny 9V battery could. The buzzing of a hundred amps ready to flow inches away was chillingly ominous. You get a strange urge to triple check, quad check even, design and calculations before flicking the switch.

As we all successfully started up our bench, the rumbling of a dozen of these bare protomachines revving up in a hangar was eerie. The thought of them sucking in such an amount of overall power from the grid dizzying. I rarely get cold-sweat and goose bumps, but this was one of these days.

Re:Have you ever hurt yourself from your own code? by lathiat on Thursday May 27, 2021 @12:11AM (#27299315)
The "Stuff Made Here" youtube channel was dealing with this recently when making a chainsaw robot. As you can imagine, it was kindof important. He ended up with a combination of a flashing "armed" light and an e-stop switch.

https://www.youtube.com/watch?v=ix68oRfI5Gw&t=732s (12m12s)

Re:Have you ever hurt yourself from your own code? by cmenge on Thursday May 27, 2021 @07:17AM (#27301596)
Something similar happened to me when I remote-controlled a buddy's computer. This was I guess in the early 2000s when disc drives were still a thing. Opening the drive knocked over a glass of wine and caused quite a mess... Noone hurt, but also spilled wine.
Re:Have you ever hurt yourself from your own code? by Agentlien on Friday May 28, 2021 @07:12AM (#27313981)
At my first job we once developed our own controllers with haptic feedback for our surgical training simulation. It was amazing how realistic the feel was.

The motors were quite powerful and there were a few close calls which really made you think.

It used to twitch violently as it was calibrating on initializing. Once, it reset and did that while testing. Luckily the person holding it managed to get his hands out of the handles on time.

Another tim the tip of one instrument had broken off and during initialization there was an error in the force applied in the direction along the shaft. It flew out like a rocket.

Re:Have you ever hurt yourself from your own code? by 0xfaded on Thursday May 27, 2021 @03:29AM (#27300357)
We had a scary and quite overspec'd arm acquired cheaply in the early history of a startup. We we're able to control it via the serial interface, but similarly to you we had no documentation and everything had been reverse engineered. The thing was surrounded by e-stops.
Re:Have you ever hurt yourself from your own code? by xnx on Thursday May 27, 2021 @02:36PM (#27306487)
> I learned a valuable lesson about the difference between messing around with hardware vs software.

Tesla Autopilot developers should read this.

Re:Have you ever hurt yourself from your own code? by its_nikita on Wednesday May 26, 2021 @08:46PM (#27298044)
That's a good story. Yeah I feel like there must be soo many more opportunities to physically damage/harm something from robotics than software alone.
Re:Have you ever hurt yourself from your own code? by rohansingh on Wednesday May 26, 2021 @11:25PM (#27299039)
Heh, you don't even need proper robotics.

Back in 2002, I was getting a package with a brand new Pocket PC (smartphone without the phone, running Windows). And I really wanted to know when it was delivered, but the UPS guy would regularly leave packages on the porch without ringing the bell or anything.

This was before you could get delivery alerts or anything like that. But I had a spare laptop with an integrated webcam (wow!), and I'd figured out how to make it run actions on motion detection.

My plan was to point the laptop at the door, and eject the CD drive when it detected motion. The tray of the drive would push a water bottle off the table. That would land on a seesaw, which would launch a deck of cards in a hard plastic case at the door and make a very loud noise.

It's unclear why I couldn't just play a really sound on the speakers instead. Anyway, I tested the program by standing in front of the laptop and waving my hand.

It worked perfectly! The CD tray ejected, and I watched as the water bottle slowly rolled off the table. It dropped onto the seesaw...... and instantly launched a hard plastic deck at my face and got me right between the eyes.

Never again have I been in so much pain and also so excited about my code working perfectly at the exact same time.

Re:Have you ever hurt yourself from your own code? by faceplanted on Thursday May 27, 2021 @05:14AM (#27300831)
This made me actually laugh out loud, it feels like some of the things I came up with as a teenager wanting to do robotics and automation but having no money or way to purchase things online, water bottles were actually a good way of powering things like opening curtains by dropping them on a string.

Also I like that even after you came up with "knock something off the table" you felt you needed a seesaw catapult thing and didn't just knock something off that could make the actual sound like a cake tin or bell or something.

Re:Have you ever hurt yourself from your own code? by rohansingh on Thursday May 27, 2021 @10:04AM (#27303266)
> Also I like that even after you came up with "knock something off the table" you felt you needed a seesaw catapult thing and didn't just knock something off that could make the actual sound like a cake tin or bell or something.

It totally doesn't make any sense! I think I might have been fascinated with the idea of Rube Goldberg machines or something at the time. Or maybe I thought I could build a "security system" with it? Also it was summer and I was a bored teenager.

Re:Have you ever hurt yourself from your own code? by LeifCarrotson on Wednesday May 26, 2021 @10:24PM (#27298643)
Anything with an actuator, really. I'm a controls engineer, we work with all kinds of hazards and it's my responsibility to run the risk assessment that makes sure no minimum-wage operator gets harmed because of our machine. People are the squishiest, weakest, most sensitive part of just about any shop, so there's a lot of risks to assess!

One key observation, though, when working with code is that the machine becomes so close to predictable that it's more dangerous than if it were unpredictable. A cordless handheld drill is hardly a tool that most people would call 'hazardous'. You turn the trigger, the thing rotates, grab the chuck and you can likely stall it. But that much energy in something driven by code is extremely dangerous, it's waiting for any of who knows how many conditions to take off, a common one is that putting your hands in/on something that seems to be not moving can 'make' a sensor and the machine will take off.

There are definitely two kinds of safety domains, one applies to manually operated tools where the operator of, say, a knife is responsible for their own safety - if they cut themselves, they're at fault, not the knifemaker. There's another kind of safety engineering where if the machine takes off 'by itself' while an operator is in the way it's the machine designer's fault for not stopping that from happening, the operator can't be expected to know what's going on.

The latter should become more common as computers continue to permeate everything we use - that cordless drill is no longer controlled by the operator with a trigger switch that connects power to a DC motor, it's a brushless motor driver with an analog input sensing the position of the trigger and the EMF of the motor, and the charge state of the batteries, and who knows what else. Bump a sensor and it might take off, you don't know why it does what it does.

I'll continue to make my automated cells as safe as I can, but don't trust code that's not so simple you can be confident of how it works.

Re:Have you ever hurt yourself from your own code? by dharmab on Wednesday May 26, 2021 @11:52PM (#27299203)
> A cordless handheld drill is hardly a tool that most people would call 'hazardous'. You turn the trigger, the thing rotates, grab the chuck and you can likely stall it. But that much energy in something driven by code is extremely dangerous, it's waiting for any of who knows how many conditions to take off, a common one is that putting your hands in/on something that seems to be not moving can 'make' a sensor and the machine will take off.

A friend needed a valve cover gasket changed on his Honda, and his wife needed to use the car for her Uber runs that night. He came over and instead of our usual hand tools I put a socket adapter on my 20V drill to speed up disassembly. I handed the drill to him and told him "start on the lowest torque setting, and move up in small steps."

I turned around to grab more tools from the toolbox. A minute later, I heard a loud noise. I turned to see the car's windshield cracked and a shocked look on my friend's face.

My friend was used to his renter's power drill. He hadn't anticipated how much torque a modern contractor's drill outputs and set the torque to the maximum setting. On the third valve cover bolt, the drill had caught on the bolt head and spun my friend around, smashing the battery into the windshield.

There's a piece of paper taped to me toolbox called "List of things <friend's name> may not attempt unsupervised." It gained a couple of entries that day...

Re:Have you ever hurt yourself from your own code? by speakspokespok on Thursday May 27, 2021 @07:31AM (#27301720)
Recently I did what’s called the ‘big 3’ upgrade on my car’s wiring. You replace the oem wiring from your alternator, etc. with 1/0 gauge cable, thus allowing substantially more power through. This is for speakers. I made my own cables and was in the process of upsizing one of the battery lugs by drilling the hole bigger on a drill press. I was just holding the wire steady with my left hand while pulling the drill handle down with my right. The drill bit caught and spun the cable around, including somehow my hand in it, winding my hand up in the cable very tight against the still spinning drill. It’s a small drill press and didn’t have enough torque to keep spinning, but had the drill been stronger I’d have at least broken my hand if not worse. As it was my hand was swollen and scratched pretty good. When you make your living typing this really makes you think.
Re:Have you ever hurt yourself from your own code? by myself248 on Thursday May 27, 2021 @10:45PM (#27311192)
Having had this happen a few times, I'm pretty obsessive about workholding now. It's a shame that a good drill-press vise can cost almost as much as the drill press itself, because it's really important for safety.

You should image-search the term "radial drill" sometime. ;)

Re:Have you ever hurt yourself from your own code? by LeifCarrotson on Tuesday June 01, 2021 @10:50AM (#27355249)
Where are you finding these $30 drill presses?

$21: https://www.amazon.com/Irwin-Tools-Drill-Press-226340/dp/B00...

$25: https://www.harborfreight.com/4-inch-jaw-capacity-drill-pres...

You don't need a high-dollar Kurt milling vise for a drill press, and you only need to constrain the part in one degree of freedom (rotation about Z axis). Just put a single fastener in your table and drop the slots in that vise over it. Gravity and quill pressure hold it in Z, the table holds it flat against rotation about X and Y, and you want it to have the ability to slide a bit in X and Y to let the drill find the center of your punch/pilot hole. If the drill catches, the torque will push against the stud and it can't move.

Re:Have you ever hurt yourself from your own code? by barrkel on Thursday May 27, 2021 @04:12AM (#27300540)
An impact driver (rattle gun) is much better for speeding up disassembly than a drill. They also don't apply anything like the same feeling of torque to the operator's wrist.

A lower power (e.g. 300Nm max) battery driver is great for when you have to undo lots of lower sized bolts, while it would be a little bit underpowered for wheel nuts or motorcycle fork retaining bolts.

Re:Have you ever hurt yourself from your own code? by TheSpiceIsLife on Thursday May 27, 2021 @05:52AM (#27301019)
Dear Lord please do not put 300Nm on your wheel nuts.

They're supposed to tentioned correctly with a torque wrench, usually between about 110 and 120Nm.

Edit to add a reference, just random from a search: https://www.barum-tyres.com/car/expert-advice/safety-driving...

Re:Have you ever hurt yourself from your own code? by namibj on Thursday May 27, 2021 @07:10AM (#27301536)
I think parent was referring to taking wheels off, not torquing the nuts.

And for that purpose, it does seem appropriate.

Re:Have you ever hurt yourself from your own code? by TheSpiceIsLife on Thursday May 27, 2021 @03:12PM (#27306910)
On second reading I see you may be right.

However my point still stands, somewhat: if 300Nm is insufficient to undo your wheelnuts, they're way too tight.

Re:Have you ever hurt yourself from your own code? by barrkel on Thursday May 27, 2021 @08:46PM (#27310481)
You should be introduced to Italian single-sided-swingarm nuts. For example, my MV Agusta Brutale required 220 to 240Nm tightening. It would come loose with my battery-powered 300NM rattle gun, but only after a while. (Fantastic bike but I no longer own it. I'd rent another though.)

Ducati single-sided swingarm nuts can be similar, but I have not yet owned a Ducati.

Re:Have you ever hurt yourself from your own code? by dharmab on Thursday May 27, 2021 @05:45PM (#27308956)
Let me forward this advice to Mercedes AMG Petronas: https://www.youtube.com/watch?v=UUyUA91ILsE
Re:Have you ever hurt yourself from your own code? by barrkel on Thursday May 27, 2021 @08:47PM (#27310494)
To be absolutely clear I'm talking about disassembly. I'd never use a rattle gun to tighten anything.
Re:Have you ever hurt yourself from your own code? by dharmab on Thursday May 27, 2021 @11:19AM (#27304153)
This is true. I didn't have a hammer drill at the time that would accept a socket adapter so we made do with the drill.
Re:Have you ever hurt yourself from your own code? by whatshisface on Thursday May 27, 2021 @12:26AM (#27299395)
Why would a drill be engineered to put out more torque than a human holding the handle could be expected to counterbalance?
Re:Have you ever hurt yourself from your own code? by ehnto on Thursday May 27, 2021 @01:28AM (#27299710)
They probably could have, had they been ready for it. Not everyone is the same weight and strength either so it could just be that it was out of their physical capabilities.

That is often the difference between home and tradesman tools. A tradesman can reasonably be expected to handle a bit more responsibility from their tools than the home handyman.

Re:Have you ever hurt yourself from your own code? by function_seven on Thursday May 27, 2021 @01:17AM (#27299644)
I imagine he was leaning over the engine bay, maybe holding the drill in one hand. So in that specific scenario, the tool was more powerful than he could control.

But that same drill might be asked to bore a large hole in a piece of wood, and the user would anticipate the amount of leverage they need to control it. Two hands, arms close to body, etc.

Re:Have you ever hurt yourself from your own code? by dharmab on Thursday May 27, 2021 @12:28AM (#27299410)
For drilling holes in soft materials like drywall and wood, or even softer metals like aluminum. I recently used that drill to drill into a motorcycle engine to remove a stuck rotor cover.

Relevant old article: http://www.team.net/mjb/hawg.html

Re:Have you ever hurt yourself from your own code? by Snoozus on Thursday May 27, 2021 @05:52AM (#27301023)
Price, there are some fancy battery powered drills that detect the jerk via an accelerometer and reduce the power, but most drills don't have that. for example: https://www.boschtools.com/ca/en/more/news-and-extras/knowle...

For a continuous drilling operation the torque is totally fine, the problem is abrupt changes in torque because of something catching. On drills without this feature that's what the torque limiting clutch is for.

Re:Have you ever hurt yourself from your own code? by mauvehaus on Thursday May 27, 2021 @09:31AM (#27302838)
Dunno about Bosch's implementation, but the Milwaukee one sucks. The drill/impact driver would strip the screw head, jerk your wrist, and then cut the power. I'd much rather have a mechanical clutch than than that one.

We actually had an older drill with the mechanical clutch with a stripped high gear that we kept around for driving screws instead of tossing because the new one was so bad.

Re:Have you ever hurt yourself from your own code? by duskwuff on Thursday May 27, 2021 @12:39AM (#27299473)
Powerful electric drills will often come with an extra handle on the side (or a mounting point for one) so that you can brace them with both hands. It's up to the user to set an appropriate torque limit if they're only using one hand.
Re:Have you ever hurt yourself from your own code? by maccard on Thursday May 27, 2021 @08:50AM (#27302433)
Using the analogies above, a drill like that could put the trigger on the awkward handle, forcing the operator to use it
Re:Have you ever hurt yourself from your own code? by dharmab on Thursday May 27, 2021 @11:22AM (#27304182)
The second handle sometimes needs to be removed to fit into a narrow space. In that case, you set a torque limit and operate the drill with one hand.
Re:Have you ever hurt yourself from your own code? by maccard on Friday May 28, 2021 @05:56AM (#27313498)
That's fair; Maybe you need to hold two triggers, and the torque limit is reduced if you're only operating in "one hand mode"?
Re:Have you ever hurt yourself from your own code? by hoppla on Thursday May 27, 2021 @05:26AM (#27300896)
When I drill 30cm holes in fiberglass or wood, I place my leg next to the handle. That have saved my wrist many times as the tool bites to the material and send the drill in a circular motion.
Re:Have you ever hurt yourself from your own code? by robocat on Thursday May 27, 2021 @06:50AM (#27301371)
An electrician I know broke his wrist with a high torque electric drill - be careful!
Re:Have you ever hurt yourself from your own code? by jccooper on Thursday May 27, 2021 @12:05PM (#27304635)
The amount of torque you can handle with the drill horizontal and close to the body is rather different than vertical and leaning over an engine bay.
Re:Have you ever hurt yourself from your own code? by prox on Thursday May 27, 2021 @01:24AM (#27299688)
One of the reasons I love to dable in the game Space Engineers is that you get to experiment with simulated physical equipment. Things often go wrong and boom (or Klang in SE parlance) and you often die or hurt yourself. You seen learn to program in steps for safety.
Re:Have you ever hurt yourself from your own code? by Mauricebranagh on Thursday May 27, 2021 @12:11PM (#27304714)
I remember in college (mech ENG BTECH) I had a coursemate who's day job was a programmer on the CNC side.

She mentioned that this had happened to a v high end CNC machine the cutting tool after a power cut went straight to the home position very $$$$$$$

At my place we had a computer controlled wave tank and as the guy I shared an office with said you could program the ram to go full travel in zero time which would have flooded the lab.