Skip to content

Commit

Permalink
add IR sensor double led to troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccand committed Nov 29, 2024
1 parent 6f8a3f6 commit 062bd0a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/source/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,29 @@ If this doesn't work, it's probably because your code has a frequently repeating

If you still cannot get the Arduino to connect, it could be a problem on your computer. Try changing the port you're using to connect to the Arduino.

IR sensor has both LEDs lit regardless of sensor state
------------------------------------------------------

We've noticed a problem with some of the boards where the right IR sensor has both LEDs on, regardless of whether the sensor is in front of a white or black surface:

.. image:: images/ir_2_lights_on.jpeg
:height: 80
:alt: IR sensor with 2 lights on

If you're noticing this, add

.. code-block:: python
from machine import Pin
to your import statements and add the line

.. code-block:: python
Pin(28, Pin.OUT).on()
after your imports and before `robot = NanoBot()`.

Strange problems with code which was just working
-------------------------------------------------

Expand Down
Binary file added docs/source/images/ir_2_lights_on.jpeg
Loading
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 062bd0a

Please sign in to comment.