boards: shields: Add nRF9160 DK overlay for arduino_uno_click shield - #71106
Merged
Conversation
Member
cdwilson
force-pushed
the
cdwilson/arduino-uno-click-nrf9160dk-nrf9160-overlay
branch
from
May 8, 2024 22:06
170ca05 to
99d93bd
Compare
Contributor
Author
FYI, since #71076 was merged, I just rebased this onto |
erwango
requested changes
May 30, 2024
Member
There was a problem hiding this comment.
Name used for this file is confusing as we can easily mixup with boards/nordic/nrf9160dk/nrf9160dk_nrf9160_common.dtsi.
I'd suggest to use something like nrf9160dk_nrf9160_arduino_uno_common.dtsi
The original Arduino Uno provides the same SCL/SDA on two sets of pins, but the nRF9160 DK maps these pins to two different pairs of GPIO. When using the Arduino Uno Click Shield board with the nRF9160 DK, the P0.18/P0.19 pair must be used. Also, the default pin group for the nRF9160 DK includes RTS/CTS HW flow control, but the Arduino Uno Click Shield board does not connect these pins (only TX/RX are connected on the shield). This keeps RX/TX on the same pins, but just removes RTS/CTS from the pin groups. References: - Arduino Uno R3 pinout: https://docs.arduino.cc/resources/pinouts/A000066-full-pinout.pdf - Arduino Uno R3 schematic: https://www.arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf - Arduino UNO click shield schematic: https://download.mikroe.com/documents/add-on-boards/click-shields/arduino-uno/arduino-uno-click-shield-schematic-v101.pdf Signed-off-by: Chris Wilson <chris@cgnd.dev>
cdwilson
force-pushed
the
cdwilson/arduino-uno-click-nrf9160dk-nrf9160-overlay
branch
from
May 30, 2024 20:34
99d93bd to
4fb9f11
Compare
erwango
approved these changes
May 31, 2024
carlescufi
approved these changes
Jun 3, 2024
cdwilson
deleted the
cdwilson/arduino-uno-click-nrf9160dk-nrf9160-overlay
branch
November 1, 2025 23:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The original Arduino Uno provides the same SCL/SDA signals on two sets of pins, but the nRF9160 DK maps these pins to two different pairs of GPIO on the nRF9160 SIP. As a result, when using the Arduino Uno Click Shield board with the nRF9160 DK, the
P0.18/P0.19pair must be used.Also, the default pin group for the nRF9160 DK includes
RTS/CTSHW flow control, but the Arduino Uno Click Shield board does not connect these pins (onlyTX/RXare connected on the shield). This keepsRX/TXon the same pins, but just removesRTS/CTSfrom the pin groups.How I tested this
I don't have any of the in-tree MikroE Click shields to test this with, so I used a MikroE Weather Click board I had on hand.
I added a new shield definition for the Weather Click in #71076 so by merging that PR together with this one:
west build -p -b nrf9160dk/nrf9160/ns samples/sensor/bme280 -- -DSHIELD="arduino_uno_click mikroe_weather_click" west flashReferences
Arduino Uno R3 pinout: https://docs.arduino.cc/resources/pinouts/A000066-full-pinout.pdf
Arduino UNO click shield schematic: https://download.mikroe.com/documents/add-on-boards/click-shields/arduino-uno/arduino-uno-click-shield-schematic-v101.pdf