matthijskooijman / arduino-lmic

:warning: This library is deprecated, see the README for alternatives.
707 stars 649 forks source link

What is the pin map of Arduino uno & sx1272 with LMIC library. #61

Open pluss2 opened 7 years ago

pluss2 commented 7 years ago

I have Arduino Uno & sx1272 chip.

I want to upload raw.ino. But i don't know the way connect arduino uno & sx1272 direct (PIN MAP)

anyone know about arduino uno & sx1272 connect directly ??

Oliv4945 commented 7 years ago

It is written in main readme. Be carrefull to have a level shifter or 3.3v Arduino

pluss2 commented 7 years ago

My code is at link

And i wired like image.(First i wired the upper side of sx1272 pin map, also i wired lower side of sx1272 pin map) kakaotalk_20161230_091315591 kakaotalk_20161230_091316256 Also this is reference of sx1272 chip and this is reference of arduino uno pin map. The Voltage is 2.8V. But, it doesn't work, ASSERT ERROR (i check v = 0).

pluss2 commented 7 years ago

I solve this problem with modify my lmic_pins structure like below. image image

But now i had new error. image This is related with L523.

i just want to P2P communicate so how can i modify the opmode ?

trlafleur commented 7 years ago

IF you want Peer-2-Peer, the LoRaWan (IE: LMiC) stack is NOT what you want... Its designed for node to server communication as used in many iot system.

You should be looking at:

http://www.airspayce.com/mikem/arduino/RadioHead/
pluss2 commented 7 years ago

I really want to communicate node with server. But, lmic library porting is first. so i had to port lmic library at node (arduino uno). Also, lmic library has peer to peer communication(raw.ino). And this is what i do.