Code Monkey home page Code Monkey logo

Comments (8)

thias15 avatar thias15 commented on May 18, 2024

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.

from openbot.

Tmin10 avatar Tmin10 commented on May 18, 2024

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

from openbot.

Tmin10 avatar Tmin10 commented on May 18, 2024

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

from openbot.

thias15 avatar thias15 commented on May 18, 2024

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

from openbot.

thias15 avatar thias15 commented on May 18, 2024

Closing due to inactivity.

from openbot.

Tmin10 avatar Tmin10 commented on May 18, 2024

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.

from openbot.

thias15 avatar thias15 commented on May 18, 2024

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

from openbot.

Tmin10 avatar Tmin10 commented on May 18, 2024

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

from openbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.