CircuitPython nRF52840 LCD Displays Tutorial

Поделиться
HTML-код
  • Опубликовано: 3 апр 2019
  • This tutorial demonstrates how to use character LCD and color TFT displays on the nRF52840 with CircuitPython. It explores the DisplayIO library and using Bluetooth low energy to interact with LCD displays from a mobile phone.
    All the code, schematics, notes and updates are available on my website:
    www.rototron.info/circuitpyth...
    This is the 3rd video in my CircuitPython tutorial. Here's a link to the full playlist:
    • nRF52 CircuitPython Tu...
  • НаукаНаука

Комментарии • 28

  • @patpliley5535
    @patpliley5535 Год назад

    I am new to Circuitpython and can use all the help I can get. thank you for a very good show of the kind of things circuitpython can do with displays, this is new territory for me. I have only written direct responce programs that work with some thing or responds to an action. I want to use sensors that give feed back and some thing I can graft.

  • @colanuss4985
    @colanuss4985 5 лет назад +2

    This is such high quality content. Thank you for putting in so much effort!

  • @SethGlover
    @SethGlover 2 года назад +1

    This is extremely well done. Thanks for taking the time to create this tutorial.

  • @wm6h
    @wm6h 5 лет назад +1

    CircuitPython + BLE(server) wow! Didn’t know that was even possible. Thanks for the high quality videos.

  • @tcpipchip
    @tcpipchip 5 лет назад +1

    Sir, do you authorize to translate and port you example to other NRF52840 modules ? I

    • @rdagger
      @rdagger  5 лет назад +1

      yes

    • @tcpipchip
      @tcpipchip 5 лет назад +1

      @@rdagger Thank you so much!

  • @krackpack1
    @krackpack1 4 года назад

    can you post the modified library for the st7735 i got the same ones but i cant figure out how to recompile the library after i change the values you did and theres not any good tutorials on how to do it

    • @rdagger
      @rdagger  4 года назад

      There is no need to compile. Download the library from: github.com/adafruit/Adafruit_CircuitPython_ST7735/blob/master/adafruit_st7735.py
      It's a Python file so you can edit it with any text editor. Python source code is automatically compiled into Python byte code by the interpreter.

    • @krackpack1
      @krackpack1 4 года назад

      thank you so much because of your videos i have made so much progress. I was about to give up on this lcd working and i thought well i give it one more search on youtube and i found your videos. Lifesaver thanks again

    • @krackpack1
      @krackpack1 4 года назад

      rdagger68 still having problems with the screen you show on your website that says kmr-1.8 spi the screen shows a picture put its supper distorted you ever seen that issue

    • @rdagger
      @rdagger  4 года назад

      What is your web browser (please include version #)? Are you using a computer or a phone?

    • @krackpack1
      @krackpack1 4 года назад

      rdagger68 i’m on a phone right now but i’m doing my circuit python stuff on my pc and i use firefox and i have chrome

  • @samuelmillan-norman8014
    @samuelmillan-norman8014 3 года назад

    Is there a compatibility between the a LCD display and OLED display?

    • @samuelmillan-norman8014
      @samuelmillan-norman8014 3 года назад

      If so which libraries should I use?

    • @rdagger
      @rdagger  3 года назад +1

      @@samuelmillan-norman8014 Most 16x2 LCD displays use the same HD44780 controller and therefore use the same library. On the other hand, there are many controllers for OLED displays such as SSD1306, SSD1309, SSD1351, etc. You need to use the library specific to the controller on your OLED.

    • @samuelmillan-norman8014
      @samuelmillan-norman8014 3 года назад

      @@rdagger Thanks for the fast respond.

  • @xt1200z1
    @xt1200z1 3 года назад

    Spent hours trying to get I2C to work on the nRF52840, then checked arduino, NO I2C examples, so guess I'm not the only one that cannot figure it out. Even people using the Nordic SDK cannot get to work very easy. Did give 2 pins that worked, .07 and .08, but those do not exist on my dongle???? Help!!!

    • @rdagger
      @rdagger  3 года назад

      Here's an example of how you would use I2C in CircuitPython on the nRF52840 dongle to connect with an INA219:
      from board import P1_00, P0_22
      from busio import I2C
      from adafruit_ina219 import ADCResolution, BusVoltageRange, INA219
      i2c_bus = I2C(P1_00, P0_22)
      # SCL = P1_00, SDA = P0_22
      ina219 = INA219(i2c_bus)

    • @xt1200z1
      @xt1200z1 3 года назад

      @@rdagger Still not able to get the LCD using I2C adaptor to work, ble doesn't work either, probably because the LCD and I2C code is not working. May try a SSD1306 I2C instead. Do all the libraries being used need to be on the Dongle? Thanks for looking into this issue.

    • @rdagger
      @rdagger  3 года назад

      @@xt1200z1 All the libraries that you are using in your code that are not built-in to CircuitPython need to be on the dongle. Please note that the nRF52840 dongle has very limited memory. You may be running out of resources. I recommend the Adafruit Feather nRF52840 Express. It has an additional 2 MB of QSPI flash. The best way to debug you code is to test each part separately. First make sure you can get I2C working without other libraries. Then get the BLE working by itself. Afterwards you can combine them.
      Also note that this video is 2 years old and Adafruit has made extensive changes to the BLE library in the interim. Please see me website for updated code. It’s possible that the BLE library has become too bloated to run on the dongle.

    • @xt1200z1
      @xt1200z1 3 года назад

      @@rdagger Really thanks for the fast reply. It was always a new exercise while waiting for the TSDZ2-wireless-OTA stuff to get finished. Thus the reason I have the dongles to play with. Even Nordic advises to purchase the DK board for development then transfer to the dongle as it is a lot harder to debug.
      I had an old ESP32 that I killed but it was able to run your nRF52-ESP32-SPI, well at least the esp32 part, the circuit python has stopped me cold. Plus all the pins had to be changed from the feather to the dongle, pinouts are no where close. You do really nice work with the code and videos! Cheers

    • @xt1200z1
      @xt1200z1 3 года назад

      @@rdagger Went ahead and ordered the feather express. Would really like to get the accelerometer on the nRF52840 dongle working for my dual axis solar tracker, use geophysical rather than tracking the sun.,
      Too bad there is no way to access external libraries from the dongle, maybe need a SD drive attached.