• Version 2.0

    JT09/12/2020 at 01:51 0 comments

    The CircuitPython_CLUE_Cutebot (CCC) library has had it first major overhaul. The code has been condensed and made more efficient. 

    VERSION 2.0 changes:

    • The modified Adafruit_CLUE library has been absorbed into the Cutebot library.
    • The Cutebot library has been transformed into a single python class rather than a group of functions.
    • Sensor functions names have been changed to conform with other similar libraries by Adafruit.  For example:
      cutebot.getSonar() 
      is now
      cutebot.sonar
    • The i2c connection is established from within the cutebot class.
    • Most of the step-by-step comments have been removed.
    • Code has been condensed and improved where possible.

  • Obstacle Avoidance

    JT09/04/2020 at 18:26 0 comments

    Use the Elecfreaks cutebot's ultrasound distance sensor and the Adafruit CLUE's proximity sensor to avoid objects. The cutebot's neopixels display the current action state.

    Neopixel ColorSensorAction
    greenUltrasoundgoing forward
    yellowUltrasoundavoiding an object between 20 to 50 centimeters away 
    redUltrasoundavoiding an object 20 centimeters or less away 
    blueProximityavoiding an object seen by the proximity sensor

    -

    You can find the code for this demo in the "Example" folder of the CircuitPython_CLUE_Cutebot repository.

    Github Repository: https://github.com/jisforjt/CircuitPython_CLUE_Cutebot

  • Making the Adafruit CLUE multi-functional!

    JT08/13/2020 at 18:31 0 comments

    I added a nifty startup menu to make the Adafruit CLUE multi-functional. You no longer bounded to one program or need to rename your files to code or main to run them. Simply drag and drop your files into your CIRCUITPY drive and this menu program does the rest.

  • Reduced Memory Allocation

    JT08/12/2020 at 17:38 0 comments

    I compiled the Python files to reduce their memory allocation. The precompiled files are a quarter to a third the size of the originals Python files. This could cause problems when using the CircuitPython_CLUE_Menu GitHub repository.

  • First steps!

    JT08/07/2020 at 21:14 0 comments

    The first version is up and ready! The biggest problem was, CircuitPython doesn't have an easy way to change the i2c clock speed without causing a bunch of problems. ElecFreaks' Cutebot is designed to use a 100KHz i2c clock speed while the Adafruit CLUE is designed to use a 400KHz i2c clock speed. Luckily the CLUE's i2c sensors work just fine at the slower speed. The work around was creating a new clue library that requested the lower clock speed and then shared it with the cutebot library. When importing the clue library, you have to import it through the cutebot library.

    import cutebot
    from cutebot import clue