How to power a Prop for a week. Simple Battery BU
T Chap
Posts: 4,223
I have a Prop board that homes a motor on power up and initializes the Rotary Encoder obj to zero. In cases of power outage or any number of reasons the main board could reset(error lockup, power outage, etc) I want to create a method to avoid rehoming if it has already been homed. So I'm thinking of adding a second Prop that has a battery and it can survive running at 80Meg for around a week. The concept is that the main board can offload the encoder position to the second Prop either at some frequency and on errors so that when the main board boots up, it can check the other Prop and receive that last known encoder position. I have 5V and 3v3 on the main board. There is space for batteries ( several D size or 9V types) but not a large 6V battery. I'd like this to be maintenance free for life(10years+). Any suggestions?
Edit. This is flawed from the start. If there is no power the motors can be moved and the encoder pos is lost. This would require the encoder to be powered and constantly tracking any changes. Maybe that’s an option. Run the encoder power from the second prop board from the battery/regulator at 5v. Parallel the encoder AB to the main board. On boot up the main board can read the encoder position active in the second board and update the position.
Edit. This is flawed from the start. If there is no power the motors can be moved and the encoder pos is lost. This would require the encoder to be powered and constantly tracking any changes. Maybe that’s an option. Run the encoder power from the second prop board from the battery/regulator at 5v. Parallel the encoder AB to the main board. On boot up the main board can read the encoder position active in the second board and update the position.
Comments
That leads to the key question of how much power does the encoder need, and can you power-save it somehow ?
What is the highest expected count-rate, in the power-save mode ?
Optical encoders can need significant power, to drive the LED side of things, but some allow pulsed LED operation.
Check out these capacitive encoders.
The ideal solution would be a BiSS C encoder. They store their own position count and can upload it to the host controller on power up. I think SSI encoders can do the same.
https://www.cui.com/catalog/motion/rotary-encoders.
These guys have energy harvesting models.
https://www.posital.com/en/products/kit-encoders/kit-encoders.php
Edit. For this AGM type why bother adding a bms chipset and instead just find a device ready to plug in. First I should study what the pros and cons of lipo v AGM.
12v May she more sense as there will be power all the way down to 5v. Using 6v will have less working depth.
I had the LS7366 up and running in no time at all.
I used the Click module:
https://www.mikroe.com/blog/counter-click-released
LS7366 datasheet attached.
Nothing changes regarding the encoder....Instead of bringing A, B, Index to 2 Props (one of which is battery backed), you bring the encoder signals to a dedicated counter that has the battery-backed supply. This counter is interfaced to the volatile Prop via SPI. So instead of having the Prop decode the quadrature signals, using the encoder object, you fetch the preserved count via an SPI object.
The powered up Prop will need to re-establish communication with the counter chip (7366) that didn't power down and this is my only question mark.
Yeah, exactly. What you read is the position and you just keep on reading it. Don't bother with the encoder object at all. Furthermore, the LS7366 has digital filtering and can preload the counter (if required) on the occurrence of the Index pulse. Keeping the LS7366 alive requires negligible power but obviously the encoder needs to be kept powered up.
I also retrofit machinery fitted with existing encoders and I have been considering this battery-backed alternative to absolute encoders for quite some time.
The SPI object gives you position but keep the LS7366 alive and you don't have to look at a separate Prop to restore your position following a Prop reset.
Paying for extrusions instead of amperage? I opt for more wire and cooling fans.
Oh sure, some elect to open the e-stop loop and others disable the servo drive. Most drives feature separate FWD and REV enables which is a nice way to go because if you hit say, the FWD limit, you are still able to power the axis in the opposite direction.
I think that what T Chap is referring to, though, is the problem of losing power at the point where the machine's axes are either overlapping or buried in a workpiece. Once the power is restored, the control system has no idea where the axes are and blindly commanding them to retract and search for their respective home positions might cause a collision.
There's usually a very expensive-sounding loud bang before someone gets around to hitting the e-stop button 😁
Yup it's the downtime that's the killer.