Skip to content

Commit

Permalink
add motor calibration
Browse files Browse the repository at this point in the history
  • Loading branch information
SunFounder committed Sep 21, 2022
1 parent 188a1a6 commit 4745795
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions docs/source/get_started/example_motor_calibrate.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Motor Calibration
=================

Because of assembly methods and other reasons, your motor may still need a calibration direction. Otherwise, when the car moves forward, it may turn left, turn right, or even go backwards. Please follow the following steps to complete the calibration.

**How to do?**

#. Select Correct Interpreter. Plug the Pico into your computer with a micro USB cable and select the "MicroPython (Raspberry Pi Pico).COMXX" interpreter in the bottom right corner.

.. image:: img/sec_inter.png


#. Go to the ``pico_4wd_car/examples`` path and double click on ``move_forward.py`` to open it. 这是一个非常简单的示例,它会让小车往前走。

.. image:: img/move_forward.png

#. Observe whether the wheels of the car are driving forward and marked the wrong motor.

#. Open the ``pico_4wd.py`` file that was uploaded to the pico before, modify the wrong motor's ``dir`` to reverse the value and save it.

.. image:: img/rdp_dir.png

#. Run again ``move_Forward.py``, if the car is driving correctly, the calibration is completed.
3 changes: 2 additions & 1 deletion docs/source/get_started/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ The flowcharts in each examples and the |link_api_car| documentation can help yo

.. toctree::
:maxdepth: 1


example_motor_calibrate
example_donot_push_me
example_line_track
example_follow_hand
Expand Down
Binary file added docs/source/img/move_forward.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/img/rdp_dir.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4745795

Please sign in to comment.