DIY Smartphone LoRa Connection
25 days ago | Blogs | by: pulsartronic


This project will help you create a connection between your phone and a LoRa module using the USB port and an Arduino Lilypad USB. There is an example chat app for point to point communication, and, you can modify it to make even a TTN sensor out of a smartphone. You can find all hardware elements here, or listed above.

You can chose between these two Atmega32U4 3.3v 8MHz models, although the black one seems to be a little bit better, the blue one stops working sometimes with my black phone ... It is important to use OTG cable adapters. Choose one PCB depending on what side you want to solder your chips. Since it is going to be in touch with your phone, I make use of a sandpaper and transparent tape to make it smoother and protect it from short circuits

Now you have to setup the Arduino IDE, note that you can use any other framework you like. It is not difficult but you have to do one or two things in order to compile the project. Code is hosted in,it is open source, feel free to contribute, reporting bugs or making suggestions would be great :) Change the default values if needed, they are in hexadecimal, I hope you can handle them, upload it to your board and configure it using the android app.

You can use that one, compile one yourself or download it from Google Play Store. It could be possible to connect your browser directly to the USB port using the Web Serial API, but at this time it is not mature enough and it does not work with phone browsers, that's why you have to use an Android app to access your USB port, it maybe changes in the future. The example chat program sends and receives encrypted messages using AES-256-CBC, the key depends on what room is configured under settings, use some secret room name for privacy, the same have to be configured in every device you want to chat with ... It is pretty easy...

25 days ago | Blogs | by: pulsartronic

Last tutorials

Arduino Port Register Control
433MHz Relay Control
Digital Electronic LOAD

PCBWAY PCB service

PCBWAY PCB service