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

Do not understand what to do with pin A0 #1

Closed
nkkromhof opened this issue Nov 16, 2017 · 2 comments
Closed

Do not understand what to do with pin A0 #1

nkkromhof opened this issue Nov 16, 2017 · 2 comments

Comments

@nkkromhof
Copy link

Hi mahowik,

I'm planning to build a BalancingWii robot with your code but I don't quite understand the wiring instructions...

What exactly do you mean by:
A0 - V_BATPIN: after the resistor divisor we should get [0V;5V]->[0;1023] on analogue V_BATPIN with R1=33k and R2=51k, i.e. (+12v)51k(A0 pin)33k(GND)

What am I supposed to do with A0, what does it get connected to?

Thanks in advance,
Niek

@mahowik
Copy link
Owner

mahowik commented Nov 16, 2017

V_BATPIN it's to control battery voltage level. It's not mandatory.

@nkkromhof
Copy link
Author

Ahh okay, I will continue without it for now then, thanks for the quick answer and thanks for your work on this.

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

No branches or pull requests

2 participants