Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu won't reappear after calculator is power-cycled #17

Open
vladkorotnev opened this issue May 22, 2018 · 2 comments
Open

Menu won't reappear after calculator is power-cycled #17

vladkorotnev opened this issue May 22, 2018 · 2 comments
Assignees
Labels
fw firmware related hw hardware related

Comments

@vladkorotnev
Copy link
Owner

The Arduino currently doesn't have any means to detect when the calculator is off to switch back to the menu disk image.

We somehow need to detect the voltage dropping from 5 to 3.3 volts and make it into a digital signal to reset the arduino or gracefully finish all the write operations and remount the pdp driver image.

@vladkorotnev vladkorotnev added hw hardware related fw firmware related labels May 22, 2018
@vladkorotnev
Copy link
Owner Author

I wonder if the atmega consumes much current while reset is low, so if we could use that voltage drop signal to keep the atmega in reset mode while the calculator is off.

@piotr433
Copy link
Collaborator

piotr433 commented May 23, 2018

The microcontroller draws current when it is in the reset state (ca. 7mA measured on my ATMEGA328 board), so it would drain calculator batteries.

I propose powering the microcontroller through the following circuit built with junk box parts:
sch1
It disconnects the power when the input voltage drops below 3.5V. Loaded with a 330 ohm resistor it turns fully on at the input voltage greater than 4.2V. The threshold voltage is a sum of:
base-emitter voltage drop * (100k + 10k) / 100k = 0.75V
red LED voltage drop = 1.56V
green LED voltage drop = 1.73V
A transistor with a high current gain is preferred (I have used a BC558C).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fw firmware related hw hardware related
Projects
None yet
Development

No branches or pull requests

2 participants