by ghostpepper · 5y ago · 0 comments
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.
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.
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.
Is he next to the malfunctioning robot?
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.
It’s weird how even ordinary things can be dangerously loud.
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.
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.
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.
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.
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
What does this mean?
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.
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.
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.
Tesla Autopilot developers should read this.
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.
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.
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.
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...
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.
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.