-
Notifications
You must be signed in to change notification settings - Fork 507
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
Wiring diagram #13
Comments
The voltage divider is used to measure the battery voltage. The battery has a voltage of 9.6-12.6V. But the ADC of the Arduino can only measure a voltage of up to 5V. For example, you can use a 20k and 10k resistor and then set the multiplier in the app to 3. One end of the 20k resistor is connected to Vin and the other to the Arduino pin A7 and one end of the 10k resistor. The other end of the 10k resistor is connected to GND. More info here. We use the NewPing library for the Ultrasonic sensor. It supports single pin operation and automatically toggles this pin to be an input and output depending if the echo signal is sent or it is waiting for the trigger signal to be received. You can also connect it to two pins as in other tutorials if you prefer. Just make sure to keep it event-driven as in the code, otherwise the ultrasonic sensor will block the rest of the code. |
Got it. So voltage divider is about arduino power supply. |
Hm, I reread instructions again and looks like this voltage divider isn't for power supply, sorry. |
Yes, it is to check the battery voltage and it is optional. |
Closing due to inactivity. |
I'm sorry but my request still open. Maybe in future you can add picture with the wiring diagram? |
I have added a wiring diagram. Does this answer your questions? If not feel free to reopen the issue or open another one. |
Cool, thank you! Sorry, I missed your commit. |
May you provide wiring diagram for the robot?
I'm little bit confused with point 17 in the build instructions:
What is the voltage divider, why we need it and how we can connect it to the robot.
Other question about point 14:
Why we need connect echo and trigger pins together in one arduino port? Other samples told us to use two ports for this...
P.S. Thank you for your project!
The text was updated successfully, but these errors were encountered: