arduino / arduino-alvik-mpy

Alvik Robot library
Mozilla Public License 2.0
9 stars 2 forks source link

0.2.0 #9

Closed gbr1 closed 9 months ago

gbr1 commented 9 months ago

Release notes 0.2.0

Now all methods, set and get data in centimeters, you can change units by passing the unit parameters,

Available units are (first is default):

Fixs:




New methods available:

Introducing color calibration, how to

Generally default parameters could give you issues, so it is suggested to calibrate your sensor. You need a white surface and a black surface.

Connect your robot to Labs for Micropython and type in REPL terminal:

>>> from arduino_alvik import ArduinoAlvik

>>> alvik = ArduinoAlvik()

>>> alvik.begin()

Now place your robot on the white surface and type:

>>> alvik.color_calibration('white')

Now place your robot on the black surface and type:

>>> alvik.color_calibration('black')

Press reset on Lab for Micropython.

You can now test using read_color_sensor.py in examples folder.

colors are tested on paper painted using acrilic marker pens, such as UNIPOSCA, or paper printed with an inkjet printer