Interfacing sx1276 with arduino uno

Based on this post, “The reason is that LoRa Chip is an SPI-based chip with a 3.3V logic level. To get the 3.3V logic level, we need to use the Arduino board having 3.3V logic. This logic is provided by Arduino Pro Mini Board.”

The problem is I’m using Arduino Uno instead of Arduino Pro Mini Board. Is there a way for me to interface sx1276 with Arduino Uno? Like using level converter?

This would probably do what you need.

1 Like

the UNO uses 5V logic the LoRa SX1276 module 3.3V logic - it would be wise to use a level converter as recommended by @van_der_decken or the LoRa module may be damaged

a better alternative would be to move to a microcontroller which use 3.3V logic, e.g. ESP32, Arduino Due, ESP8266, etc

do you plan to connect to LoRaWAN (mcci-lorawan-lmic-library ) or use a local LoRa peer-to-peer network (library LoRa.h)

1 Like

thank u!! i plan to use the mcci-lorawan-lmic-library :))

thank you!! i actually searched other level converters online and i can’t decide which of these should i buy

  1. https://shp.ee/5xff9tz
  2. https://shp.ee/ahuk94k

the sx1276, sensor, and relay have already been connected to the arduino uno. is it really better if i just change the microcontroller?

does the sx1276, sensor, and relay work and uplink data to the TTN?

the relay and sensor are both working, except for the sx1276

if you run a sx1276 test program does it find the device or give an error message

If your ordering stuff, do consider getting a 3.3V Pro Mini, its much easier to connect up a LoRa module to it. You would need a USB to serial converter for programming.

A UNO, or Pro Mini, might be OK for a demo project, but they are power hungry Arduinos and not really suited to long term battery use, which tends to be the requirement for practical TTN nodes.

1 Like

when i compile and upload it to arduino, it says “failure”

Please post the full error message and tell us where its occuring.

hi! i saw this comment: Interfacing 3v logic (LoRa RFM95 Transceiver) with 5v logic (Arduino Pro Mini) - #6 by wvmarle

from this post: Interfacing 3v logic (LoRa RFM95 Transceiver) with 5v logic (Arduino Pro Mini)

Continuing the discussion from Interfacing 3v logic (LoRa RFM95 Transceiver) with 5v logic (Arduino Pro Mini):

“If you really want to interface with 5V, that's not too hard, but a standard bidirectional level shifter will NOT work, for the simple reason that they're too slow for SPI signals.”

is it okay to still use bidirectional level shifter?

using the MCCI LoRaWAN LMIC Library on a LoRa Module SX1276 connected to Arduio Pro Mini 3.3V on startup it displays on the serial monitor
edit: uplink/downlink display

MCCI_LoRaWAN_LMIC Starting
CFG_eu868
Packet queued
315224: EV_JOINING
487076: EV_TXSTART
808824: EV_JOINED
netid: 19
devaddr: uuuuuu
AppSKey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
NwkSKey: zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
810446: EV_TXSTART
1192818: EV_TXCOMPLETE (includes waiting for RX windows)
4943967: EV_TXSTART
Packet queued
5326346: EV_TXCOMPLETE (includes waiting for RX windows)
9077332: EV_TXSTART
Packet queued
9397267: EV_TXCOMPLETE (includes waiting for RX windows)
Received 4 bytes of payload
 0x1 0x2 0x3 0x4

what does your system display?

hi! i changed my aruino uno to pro mini and this was displayed on the serial monitor
image

the pro Mini is communicating over SPI with the LoRa Module and it has initislised it OK
it then attempts to join the TTN network and fails

using the TTN V3 server have you created an application and end device
image

and entered the AppEUI DevEUI and AppKey values in your program ?

I assume you have a local TTN gateway ?
if you have access to the gateway log you should see the join request
image

if you look at the TTN Application Device live data you should see the join request
image

and if works the join accept

what does the TTN server show you?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.