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

Wiring diagram #13

Closed
Tmin10 opened this issue Sep 1, 2020 · 8 comments
Closed

Wiring diagram #13

Tmin10 opened this issue Sep 1, 2020 · 8 comments

Comments

@Tmin10
Copy link

Tmin10 commented Sep 1, 2020

May you provide wiring diagram for the robot?

I'm little bit confused with point 17 in the build instructions:

  • (Optional) Connect the voltage divider to pin A7 of the Arduino

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!

@thias15
Copy link
Collaborator

thias15 commented Sep 1, 2020

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.
Voltage Divider

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.

@Tmin10
Copy link
Author

Tmin10 commented Sep 1, 2020

Got it. So voltage divider is about arduino power supply.
Maybe it's better to use some DC-DC convertor since we losing part of the energy as heating on resistors.
Something like: https://www.aliexpress.com/item/33004374185.html

@Tmin10
Copy link
Author

Tmin10 commented Sep 1, 2020

Hm, I reread instructions again and looks like this voltage divider isn't for power supply, sorry.
Is it for battery charge level checking? I confused because there is no resistors in the bill of materials...

@thias15
Copy link
Collaborator

thias15 commented Sep 2, 2020

Yes, it is to check the battery voltage and it is optional.

@thias15
Copy link
Collaborator

thias15 commented Sep 4, 2020

Closing due to inactivity.

@thias15 thias15 closed this as completed Sep 4, 2020
@Tmin10
Copy link
Author

Tmin10 commented Sep 4, 2020

I'm sorry but my request still open. Maybe in future you can add picture with the wiring diagram?
In other issue I found question about wiring motors. It could help with robot assembly for others.

@thias15
Copy link
Collaborator

thias15 commented Sep 4, 2020

I have added a wiring diagram. Does this answer your questions? If not feel free to reopen the issue or open another one.

@Tmin10
Copy link
Author

Tmin10 commented Sep 4, 2020

Cool, thank you! Sorry, I missed your commit.

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