{"action":"created","issue":{"url":"https://api.github.com/repos/magicshifter/MS3000-Firmware/issues/1","repository_url":"https://api.github.com/repos/magicshifter/MS3000-Firmware","labels_url":"https://api.github.com/repos/magicshifter/MS3000-Firmware/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/magicshifter/MS3000-Firmware/issues/1/comments","events_url":"https://api.github.com/repos/magicshifter/MS3000-Firmware/issues/1/events","html_url":"https://github.com/magicshifter/MS3000-Firmware/issues/1","id":150333323,"number":1,"title":"PowerDown button (readAD) fails if power level is at threshold X","user":{"login":"seclorum","id":232258,"avatar_url":"https://avatars.githubusercontent.com/u/232258?v=3","gravatar_id":"","url":"https://api.github.com/users/seclorum","html_url":"https://github.com/seclorum","followers_url":"https://api.github.com/users/seclorum/followers","following_url":"https://api.github.com/users/seclorum/following{/other_user}","gists_url":"https://api.github.com/users/seclorum/gists{/gist_id}","starred_url":"https://api.github.com/users/seclorum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seclorum/subscriptions","organizations_url":"https://api.github.com/users/seclorum/orgs","repos_url":"https://api.github.com/users/seclorum/repos","events_url":"https://api.github.com/users/seclorum/events{/privacy}","received_events_url":"https://api.github.com/users/seclorum/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magicshifter/MS3000-Firmware/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"wizard23","id":1036516,"avatar_url":"https://avatars.githubusercontent.com/u/1036516?v=3","gravatar_id":"","url":"https://api.github.com/users/wizard23","html_url":"https://github.com/wizard23","followers_url":"https://api.github.com/users/wizard23/followers","following_url":"https://api.github.com/users/wizard23/following{/other_user}","gists_url":"https://api.github.com/users/wizard23/gists{/gist_id}","starred_url":"https://api.github.com/users/wizard23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wizard23/subscriptions","organizations_url":"https://api.github.com/users/wizard23/orgs","repos_url":"https://api.github.com/users/wizard23/repos","events_url":"https://api.github.com/users/wizard23/events{/privacy}","received_events_url":"https://api.github.com/users/wizard23/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-04-22T10:30:17Z","updated_at":"2016-04-25T09:44:54Z","closed_at":null,"body":".. where threshold X is something like 3.x volts (i.e. should be enough voltage to readAD).\r\n\r\nThis has the net effect that the PowerDown button no longer works when it is needed most: when the user should turn off the device.  This creates a current usability issue, so this bug is critical.\r\n\r\nThis usability issue could be addressed by adding a 'low-power' UI mode, which the 'shifter switches to when the power level is 'very low' (e.g. threshold X+0.5%), indicating that the user should plug in the 'shifter for charging.  When the cable is plugged back in, the 'low-power' UI mode is switched out, back to normal mode.  If, after some seconds (e.g. 20), the power is not plugged back in, the low-power UI mode shuts the shifter off automatically.\r\n\r\nAnother fix might be to not use the middle power button for the power down UI event - i.e. switch Power with Button B (button closer to the cable input).  This way, no matter what (assumedly), we can get a power-down button event from the user, even if we are in ultra-low power mode.\r\n\r\nUltra-low-power-UI mode (as described), could be implemented as a simple sub-mode which will blink, then power off the 'shifter, unless power goes back up.  Estimate time to implement: 1 hour.\r\n"},"comment":{"url":"https://api.github.com/repos/magicshifter/MS3000-Firmware/issues/comments/214237760","html_url":"https://github.com/magicshifter/MS3000-Firmware/issues/1#issuecomment-214237760","issue_url":"https://api.github.com/repos/magicshifter/MS3000-Firmware/issues/1","id":214237760,"user":{"login":"seclorum","id":232258,"avatar_url":"https://avatars.githubusercontent.com/u/232258?v=3","gravatar_id":"","url":"https://api.github.com/users/seclorum","html_url":"https://github.com/seclorum","followers_url":"https://api.github.com/users/seclorum/followers","following_url":"https://api.github.com/users/seclorum/following{/other_user}","gists_url":"https://api.github.com/users/seclorum/gists{/gist_id}","starred_url":"https://api.github.com/users/seclorum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seclorum/subscriptions","organizations_url":"https://api.github.com/users/seclorum/orgs","repos_url":"https://api.github.com/users/seclorum/repos","events_url":"https://api.github.com/users/seclorum/events{/privacy}","received_events_url":"https://api.github.com/users/seclorum/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T09:44:54Z","updated_at":"2016-04-25T09:44:54Z","body":"Okay, looked into this a bit more .. Very interesting articles here:\r\n\r\nhttp://www.esp8266-projects.com/2015/03/internal-adc-esp8266.html\r\nhttp://www.esp8266-projects.com/2016/03/esp8266-adc-input-frontend.html\r\n\r\nWe could run their Logger application a couple of the factory-shifter variants that you have discovered might have different values?\r\n"}}