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

start/stop button tricky at very low batt voltage #539

Open
iso14000 opened this issue Jan 31, 2025 · 0 comments
Open

start/stop button tricky at very low batt voltage #539

iso14000 opened this issue Jan 31, 2025 · 0 comments
Labels
question Further information is requested

Comments

@iso14000
Copy link

Variant

TRANSPOTTER

Control type

None

Control mode

None

Description

Hi

not sure, but I would like to clarify a point :
after initialisastion stuff, we have the following :
// Loop until button is released while(HAL_GPIO_ReadPin(BUTTON_PORT, BUTTON_PIN)) { HAL_Delay(10); }

meaning of cours , software is stuck until start button is released ...
BUTTON_PORT stands for PORT A and BUtTON_PIN for Pin 0X2 meaning PA1

right...

on the schematic , this pin is connected to AIN_V_BATT , meaning it could be used for Vbatt analog monitoring

voltage divider is made around R3 and R1, so scale factor is 2/32 0.0625 , so to reach a high level, let's say 2V (roughtly for 3.3V IO voltage) the battery voltage should be above 2V/0.0625 =>32V ....

so if by accident, like I did, you remove all battery safety cut of for testing purpose, when power voltage goes down to 32V, you will be forgiven to switch off the system....

gasp! I think will change R3 slightly......

@iso14000 iso14000 added the question Further information is requested label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant