Node with RFM95 and Arduino Pro Mini (Atmega168)

Hi there,
has anyone ever used a Pro Mini with the Atmega168 chip as a LoRa node? If yes, could you please point me to some code?

I have searched countless hours now, but the only thing that ever pops up is for the Atmega328.

Thanks!

Wel the reason that you donā€™t find code for the ATmega168 is because of the footprint of the RFM95 library. It just wonā€™t fit in a 16K microcontroller. You will need at least a Atmega328 microcontroler when you want to use the RFM95 with TTN.

Okay so is there any kind of wiring diagram for an Arduino Nano and the RFM95?

Also, if it does not work with 16K microcontrollers, how are people managing to create ATtiny nodes? Isnā€™t that the same thing?

Thanks for your help!

For that there are variouse options, but most use a special library like in this project : https://github.com/ClemensRiederer/TinyLoRa-BME280_v1.1 . That project also includes the wirering for the TINY85.

But remember these implementations donā€™t use a port of the LMIC library.

2 Likes

Okay thanks.
So a save bet would be to get an Arduino Pro Mini with the Atmega328 and the RFM95, correct?

4 Likes

And take the 3.3V version, not the 5V version of the Arduino Pro Mini 328p.

3 Likes

Alright. I have searched for some examples, but most of them have different wiring. Is there a good ā€œgo-toā€ example with a wiring scheme and some example code (just something sending a lora messag every 5 seconds or so)?

This would really help me since I need something I KNOW works, to test if my LoRa setup as a whole works. Right now it is more a guessing game of ā€œDid I do something wrong hardware wise, or do I need to change the softwareā€.

Hello.

Not for Atmega168 but for Atmega 328p 3,3V

Have a look: https://www.thethingsnetwork.org/labs/story/build-the-cheapest-possible-node-yourself

Greets

look at this
Iā€˜m using it for several nodes

Hm seems a little expensive if I have all the Arduino stuff here already.

Hi,
As I have Arduino Pro Mini and purchased a few RFM95w modules, Iā€™m creating a schematic and PCB based on this: https://www.thethingsnetwork.org/labs/story/build-the-cheapest-possible-node-yourself

Iā€™m not there yet. My intention is to create a PCB that you can etch at home, via the ā€œtoner transfer methodā€ you print on a laserprinter, on a glossy printerpaper, and use an iron to transer to copper PCB, and then etch

I will keep you notified when Iā€™m ready to share

1 Like

Hello,

Iā€™ve made an ATtiny84 with RFM95w module and BME280 environment sensor. Total code size: 7212 bytes, data: 139 bytes.
Maybe you can use this as starting point for your ATmega168.

2 Likes