|
Post by petespine on May 23, 2020 10:57:42 GMT -5
Hi -- I'm very new to proffie programming. Can anyone tell me if there's a decent way to do deep sleep on the v2.2?
|
|
|
Post by profezzorn on May 23, 2020 12:29:37 GMT -5
Depends on what you mean by deep sleep. ProffieOS doesn't have the same kind of deep sleep that some other boards do. However, in standby mode, proffieboards draw very little power, so the standby time is ~6 months or so.
|
|
|
Post by petespine on May 24, 2020 9:43:12 GMT -5
Yes I guess standby is what I'm looking for then. How would I go about implementing it?
|
|
|
Post by silantstrike on May 24, 2020 10:52:08 GMT -5
Yes I guess standby is what I'm looking for then. How would I go about implementing it? It kind of just happens by itself. however (and especially if you have accents), you will want to look into the idle time off
You add something like this to the top of your config file. This will shut down power to the accents (basically anything on LED pads 1-6), after 5 minutes. Change 5 to 10 for 10 minutes
#define IDLE_OFF_TIME 60 * 5 * 1000
<style></style>
|
|
|
Post by petespine on May 25, 2020 0:26:15 GMT -5
That is exactly what I was looking for. Thank you!!
|
|
|
Post by petespine on May 25, 2020 0:28:22 GMT -5
Yes I guess standby is what I'm looking for then. How would I go about implementing it? It kind of just happens by itself. however (and especially if you have accents), you will want to look into the idle time off
You add something like this to the top of your config file. This will shut down power to the accents (basically anything on LED pads 1-6), after 5 minutes. Change 5 to 10 for 10 minutes
#define IDLE_OFF_TIME 60 * 5 * 1000
<style></style> Any idea how long the battery will last in this idle state?
|
|
|
Post by profezzorn on May 25, 2020 1:49:07 GMT -5
It kind of just happens by itself. however (and especially if you have accents), you will want to look into the idle time off
You add something like this to the top of your config file. This will shut down power to the accents (basically anything on LED pads 1-6), after 5 minutes. Change 5 to 10 for 10 minutes
#define IDLE_OFF_TIME 60 * 5 * 1000
<style></style> Any idea how long the battery will last in this idle state? Should be about 6 months. Depends on your battery and SD card though.
|
|
|
Post by 4strom3ch on May 25, 2020 4:21:03 GMT -5
Any idea how long the battery will last in this idle state? Should be about 6 months. Depends on your battery and SD card though. Interesting... what about the SD affects it? I wasn't aware this was a factor.
|
|
|
Post by profezzorn on May 25, 2020 4:30:05 GMT -5
Should be about 6 months. Depends on your battery and SD card though. Interesting... what about the SD affects it? I wasn't aware this was a factor. Currently, the SD still has power when the board is in standby mode. Even though it's not being used, the SD card may draw a small amount of power. How much, depends on the SD card.
|
|
|
Post by grif on Apr 11, 2021 19:40:49 GMT -5
Did a google search bout this and it brought me back here lol. Thank you for this info. Sleep is a big deal for me:)
|
|
|
Post by cloudfeather on Apr 12, 2021 7:16:09 GMT -5
This idle time is also contingent on everything being wired properly. If you have a single LED ground going to GND or Neg, then it's not going to turn off all the way. Still very little drain, but it shortens the shelf life.
|
|
|
Post by grif on Apr 12, 2021 8:55:35 GMT -5
This idle time is also contingent on everything being wired properly. If you have a single LED ground going to GND or Neg, then it's not going to turn off all the way. Still very little drain, but it shortens the shelf life. Thanks for that extra info.
|
|
|
Post by crazy3000 on Dec 5, 2021 20:48:15 GMT -5
Hey guys,
Apologies to open back up an old thread, but just stumbled upon this and it's very useful! I've just completed my first from scratch Proffie build. I've reprogrammed plenty of LGT Proffie hilts but this is my first build so I've had to approach it different and learn a bunch of new stuff.
Long story short, the above has helped massively as I have a crystal chamber in this build and now it shuts off when idle sleep kicks in. However, I wired in an activation switch with an LED in it. Annoyingly, I wired it in to the battery positive link so as long as my kill switch isn't applied, the LED on the switch is constantly powered along with the switch itself.
For me it's no biggie, as I can just flip the kill switch to turn off the saber completely. However, you guys wouldn't happen to know how much a constantly on LED activation switch would drain a 18650 3000mAh battery would you in case I forget to turn it off or want to leave it on display with a glowing switch?
Thanks!
|
|
|
Post by profezzorn on Dec 5, 2021 21:50:41 GMT -5
It depends a lot on what kind of LED is in in the switch. It could be anything from 1mA to 20mA, but my guess would be something like 5mA, which by itself would drain a 3000mA battery in 3000/5 = 600h = 25 days.
|
|
|
Post by crazy3000 on Dec 6, 2021 12:47:24 GMT -5
Ah, got it! I just checked the listing for the one I bought and it says...
Orange: Forward Voltage: 2.1V Runs at 20mA.
So if 5mA would be roughly 25 days, I assume 20mA would be more like 6/7 days?
|
|
|
Post by profezzorn on Dec 6, 2021 13:05:02 GMT -5
Ah, got it! I just checked the listing for the one I bought and it says... Orange: Forward Voltage: 2.1V Runs at 20mA. So if 5mA would be roughly 25 days, I assume 20mA would be more like 6/7 days? Yep. (Assuming you run it at 20mA, you could use a bigger resistor to reduce the current.)
|
|
|
Post by crazy3000 on Dec 6, 2021 18:16:33 GMT -5
Oh that's a good point! I do think I had to put a resistor in, an 82ohm one to be exact. I'm not good at all with calculations (I used a resistor calculator to come with with the need for 82ohm), any idea what that would have dropped it to?
|
|
|
Post by profezzorn on Dec 6, 2021 19:25:48 GMT -5
Well, let's see: 82 ohm * 0.020 A = 1.64 V 1.64 V + 2.1 V = 3.74 V
So, I would say that you're running it at 20mA (slightly more when the battery is full, slightly less when the battery is near empty.)
|
|
|
Post by crazy3000 on Dec 6, 2021 21:41:09 GMT -5
Thank you! All makes sense. Will leave it on when I'm messing with it then flip the killswitch when I'm done and it should be manageable  thanks again for your help and the incredible work!
|
|
|
Post by primed on Dec 16, 2021 1:05:21 GMT -5
Hey everyone this is my first time with proffie, I just ordered a proffie sabertrio. If the av switch is illuminated but I edit the config for illumination to be black. Will the illuminated switch still drain battery? Or will it be considered as off?
|
|
|
Post by nosloppy on Dec 16, 2021 3:29:51 GMT -5
Hey everyone this is my first time with proffie, I just ordered a proffie sabertrio. If the av switch is illuminated but I edit the config for illumination to be black. Will the illuminated switch still drain battery? Or will it be considered as off? If the switch LED is actually wired to an LED pad, then you can program it to be on/off with the blade, (color when off = black) so yes that's just as much off as the main blade. If it's wired direct to power or the 3.3v pad as some seem to be out there, then no, you can't do it in software without rewiring first. Hope that helps.
|
|
|
Post by primed on Jan 11, 2022 14:13:40 GMT -5
So I just bought a proffie from Sabertrio and saw that they have an idle mode in there S3 config. However, I'm hearing on YouTube videos that it only last a couple of days. Does anyone have a proffie Sabertrio? How long does your battery life last?
|
|
|
Post by saber831 on Jan 17, 2022 19:19:28 GMT -5
Depends on what you mean by deep sleep. ProffieOS doesn't have the same kind of deep sleep that some other boards do. However, in standby mode, proffieboards draw very little power, so the standby time is ~6 months or so. So I updated from 5.9 to 6.3 and changed nothing in the config file or saber setup. NeoPixel Blade inserted, No Accent LEDS In 5.9, I would have the battery inserted and it would sit on the wall or months with no issues in 6.3, the battery drains in a week now... What could have changed in the code that results in this new behavior? Is there a new Deep Sleep option I need for 6.3?
|
|
|
Post by nosloppy on Jan 19, 2022 0:29:48 GMT -5
Depends on what you mean by deep sleep. ProffieOS doesn't have the same kind of deep sleep that some other boards do. However, in standby mode, proffieboards draw very little power, so the standby time is ~6 months or so. So I updated from 5.9 to 6.3 and changed nothing in the config file or saber setup. NeoPixel Blade inserted, No Accent LEDS In 5.9, I would have the battery inserted and it would sit on the wall or months with no issues in 6.3, the battery drains in a week now... What could have changed in the code that results in this new behavior? Is there a new Deep Sleep option I need for 6.3? Not sure if the Plugin version 3.6.0 would make a difference, but that's a prerequisite to OS6 I believe. Oh wait, I answered this on Facebook lol
|
|
|
Post by profezzorn on Jan 19, 2022 1:59:09 GMT -5
Depends on what you mean by deep sleep. ProffieOS doesn't have the same kind of deep sleep that some other boards do. However, in standby mode, proffieboards draw very little power, so the standby time is ~6 months or so. So I updated from 5.9 to 6.3 and changed nothing in the config file or saber setup. NeoPixel Blade inserted, No Accent LEDS In 5.9, I would have the battery inserted and it would sit on the wall or months with no issues in 6.3, the battery drains in a week now... What could have changed in the code that results in this new behavior? Is there a new Deep Sleep option I need for 6.3? In 6.3, are you using the same config as before, or have you upgraded to new styles, edit mode and other interesting features? Ideally it should of course work either way, but it makes it a lot easier to find the problem if the same config file was used....
|
|
|
Post by saber831 on Jan 19, 2022 12:08:43 GMT -5
So I updated from 5.9 to 6.3 and changed nothing in the config file or saber setup. NeoPixel Blade inserted, No Accent LEDS In 5.9, I would have the battery inserted and it would sit on the wall or months with no issues in 6.3, the battery drains in a week now... What could have changed in the code that results in this new behavior? Is there a new Deep Sleep option I need for 6.3? In 6.3, are you using the same config as before, or have you upgraded to new styles, edit mode and other interesting features? Ideally it should of course work either way, but it makes it a lot easier to find the problem if the same config file was used.... Looking at the config, the only thing added is this "#define FETT263_BM_CLASH_DETECT 6" but the other parameters are the same in the config. No new blade styles. #ifdef CONFIG_TOP #include "proffieboard_v2_config.h" #define NUM_BLADES 1 #define NUM_BUTTONS 2 #define VOLUME 1800 const unsigned int maxLedsPerStrip = 144; #define CLASH_THRESHOLD_G 3.8 #define ENABLE_AUDIO #define ENABLE_MOTION #define ENABLE_WS2811 #define ENABLE_SD #define ENABLE_SSD1306 #define COLOR_CHANGE_DIRECT #define DISABLE_DIAGNOSTIC_COMMANDS #define SAVE_PRESET #define FETT263_BATTLE_MODE_START_ON #define FETT263_BM_CLASH_DETECT 6 #define FETT263_LOCKUP_DELAY 200 #define FETT263_SWING_ON #define FETT263_SWING_ON_SPEED 525 #define FETT263_TWIST_OFF #endif
|
|
|
Post by profezzorn on Jan 21, 2022 14:58:00 GMT -5
FETT263 added a LOT of new stuff to his prop though, it's possible that the problem is in there. Also, it would be helpful if you could post your entire config file. I'm hoping that this weekend I will have some time to test the idle power draw and see if I can replicate this problem.
|
|
|
Post by profezzorn on Jan 23, 2022 18:12:51 GMT -5
So I did some testing. Not with your config file since I don't have the whole thing, but with the sample config file from FET263s site. In general, I had no problems with it, and it did quite well in power testing. I should point out that the sample config file has these two defines:
#define MOTION_TIMEOUT 60 * 15 * 1000 #define IDLE_OFF_TIME 5 * 60 * 1000
After 15 minutes and 30 seconds, the power draw dropped down to "normal" standby levels of around 0.5mA.
|
|
|
Post by saber831 on Jan 23, 2022 20:30:05 GMT -5
So I did some testing. Not with your config file since I don't have the whole thing, but with the sample config file from FET263s site. In general, I had no problems with it, and it did quite well in power testing. I should point out that the sample config file has these two defines: #define MOTION_TIMEOUT 60 * 15 * 1000 #define IDLE_OFF_TIME 5 * 60 * 1000 After 15 minutes and 30 seconds, the power draw dropped down to "normal" standby levels of around 0.5mA. I will add those and see if it fixes the issue. Thanks!
|
|
|
Post by saber831 on Feb 2, 2022 12:00:02 GMT -5
So I did some testing. Not with your config file since I don't have the whole thing, but with the sample config file from FET263s site. In general, I had no problems with it, and it did quite well in power testing. I should point out that the sample config file has these two defines: #define MOTION_TIMEOUT 60 * 15 * 1000 #define IDLE_OFF_TIME 5 * 60 * 1000 After 15 minutes and 30 seconds, the power draw dropped down to "normal" standby levels of around 0.5mA. Here is my config, running 6.3.
#ifdef CONFIG_TOP #include "proffieboard_v2_config.h" #define NUM_BLADES 1 #define NUM_BUTTONS 2 #define VOLUME 1800 const unsigned int maxLedsPerStrip = 144; #define CLASH_THRESHOLD_G 3.8 #define ENABLE_AUDIO #define ENABLE_MOTION #define ENABLE_WS2811 #define ENABLE_SD #define ENABLE_SSD1306 #define COLOR_CHANGE_DIRECT #define DISABLE_DIAGNOSTIC_COMMANDS #define SAVE_PRESET #define MOTION_TIMEOUT 60 * 15 * 1000 #define IDLE_OFF_TIME 5 * 60 * 1000 #define FETT263_BATTLE_MODE_START_ON #define FETT263_BM_CLASH_DETECT 6 #define FETT263_LOCKUP_DELAY 200 #define FETT263_SWING_ON #define FETT263_SWING_ON_SPEED 525 #define FETT263_TWIST_OFF #endif #ifdef CONFIG_PROP #include "../props/saber_fett263_buttons.h" #endif #ifdef CONFIG_PRESETS Preset presets[] = { { "Mace", "tracks/Duel.wav", StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Rgb<95,0,210>>,RotateColorsX<Variation,Rgb<48,0,105>>>,LockupTrL<Layers<AlphaL<AudioFlickerL<Rgb<255,150,0>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AlphaL<Moccasin,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,TransitionEffect<Rgb<255,150,0>,Moccasin,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrFade<400>>,TrConcat<TrInstant,White,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,ResponsiveStabL<Red,TrWipeIn<600>,TrWipe<600>>,ResponsiveBlastWaveL<Yellow,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>,Int<400>>,ResponsiveBlastWaveL<TransitionEffect<Rgb<255,150,0>,Moccasin,TrInstant,TrFade<100>,EFFECT_CLASH>,Int<300>,Int<100>,Int<300>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,EFFECT_CLASH>,TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<White>,TrFade<800>>,EFFECT_IGNITION>,LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,Red,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipeX<Scale<BladeAngle<>,Int<500>,Int<400>>>,TrWipeInX<Scale<BladeAngle<>,Int<950>,Int<850>>>,Black>>>(), "purple"}, { "powerlevel", "", &style_charging, "Battery\nLevel"} }; BladeConfig blades[] = { { 0, WS281XBladePtr<123, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) }, }; #endif #ifdef CONFIG_BUTTONS Button PowerButton(BUTTON_POWER, powerButtonPin, "pow"); Button AuxButton(BUTTON_AUX, auxPin, "aux"); #endif
No Kill Key or Any Accent LEDs Blade Inserted Battery drains within a week on 6.3 vs weeks on 5.9
|
|