STOP and KILL functions implementation
4Alex
Posts: 119
Good morning all,
I am seeking some learned advices on the best way(s) to implement two functions: STOP and KILL. The STOP function would bring the propeller to a complete halt, preferably with very subsequent power consumption. The only way to make the propeller working again would be cycling the power switch OFF and then ON again. The second function KILL would delete the eeprom's firmware and then bring the propeller to a complete stop. These two functions are intended as safety measures for robotic devices in my home automation project in case something goes completely wrong.
At this point, I implement the STOP by calling an eternal loop but this is not a stopped propeller and power consumption is consequent. I implemented the KILL by rewriting the lower part of the eeprom with 0's and then rebooted the propeller, but perhaps there's a better (and faster) way to do this.
Thanks in advance for any suggestions.
Cheers,
Alex
I am seeking some learned advices on the best way(s) to implement two functions: STOP and KILL. The STOP function would bring the propeller to a complete halt, preferably with very subsequent power consumption. The only way to make the propeller working again would be cycling the power switch OFF and then ON again. The second function KILL would delete the eeprom's firmware and then bring the propeller to a complete stop. These two functions are intended as safety measures for robotic devices in my home automation project in case something goes completely wrong.
At this point, I implement the STOP by calling an eternal loop but this is not a stopped propeller and power consumption is consequent. I implemented the KILL by rewriting the lower part of the eeprom with 0's and then rebooted the propeller, but perhaps there's a better (and faster) way to do this.
Thanks in advance for any suggestions.
Cheers,
Alex
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Toys are microcontroled.
Robots are microcontroled.
I am microcontroled.
If it's not Parallax then don't even bother. :-)
·
Mini-Din/PS2 connectors are for sale! 5 for $1! PM me if you wish to make an order.
Cheap·shipping unless specified!··········150 left!!··
When you see that something is going wrong (how do you know?), you'd better shut off the power / disconnect the power to motors.
If you do that with self-holding relays, it even won't switch back on again.
I hope you know how emergency-stop switches have to be wired.
Nick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never use force, just go for a bigger hammer!
The DIY Digital-Readout for mills, lathes etc.:
YADRO
@ microcontroled: no, it's not even a robot, just a kind of SCADA. Its fun but I have to try hard not to burn down the house! The only thing shooting would be me (from time to time) and in the general direction of my electronics...
@ Nick: thanks for your concerns: I can assure you that I have a pretty good idea on how to wire an emergency switch! My problem is not about a propeller going berserk (propellers are perfect, right?), but it's rather the electromechanicals (motors and pumps) that I monitor with limit switches and sensors. Sometimes you get an unforeseen glitch, a broken belt, gear, pipe, and I want an option to stop or kill that thing completely if certain far-out-of-condition are met. Mainly because it's meant to be autonomous, and I can't watch the home system some weekends. At the cottage, the power sometimes flickers which resets (and restart) the propellers (and also all the clocks in the house!) so this is why I'd like to have a kill function in case anything goes seriously wrong. That way I could see what was the problem when I come back home and not suffer any kind of damages due to resetting. Eventually, I'll put a LiPo battery backup at each point where a propeller runs, thus filtering any flickers, but I'm not at this stage right now.
Hope this clarifies things. Many thanks to all.
Cheers,
Alex
Then it's fine! A few people don't know that.
> and I want an option to stop or kill that thing completely if certain far-out-of-condition are met.
Then it's still an emergency-stop chain. And the propeller (with an relays) is just one link in it. If you want to know what was the cause, write it to EEPROM and then pull the trigger ...
Upon next boot, inspect that location, display it, confirm erase and go on with normal operation.
Edit:
And Propellers *can* go jerks! You only need suitable glitches on the power supply. Don't ask how I know.
Nick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never use force, just go for a bigger hammer!
The DIY Digital-Readout for mills, lathes etc.:
YADRO