LowPowerLab Forum

Hardware support => Moteino => Topic started by: hismaimai2000 on September 22, 2018, 05:04:28 AM

Title: General Tutorial?
Post by: hismaimai2000 on September 22, 2018, 05:04:28 AM
I just got two Moteinos. As arduinos, they work flawlessly, but is there any sort of "general tutorial" out there to familiarize myself with the different functions, such as radio.sendWithRetry? I'm trying to measure sensor values with one moteino, and transfer those values to the other moteino.
Title: Re: General Tutorial?
Post by: LukaQ on September 22, 2018, 02:10:17 PM
Well one will be gateway, converter to serial for PC or rPi or something else. The other will be sender. You have to join two sketches together, the one that is something like Struct_send and other will be your temperature sensor sketch (analog or DS18b20)

I have made several test sketches, ranging from BME/BMP280, DS18B20, SI7021, MCP9808, ADT7420, lux and UV sensors

I think you should open up WeatherNode, remove everything that is: temp sensor, batt voltage reading, most of the loop, most of the variables.  This will be your starting point for just about any random project. Then you add some useful code, like reading some temperature. Cross reference how values are sent in WeatherNode sketch and do the same with yours.

I'll add you random number +OLED sketch, which you use with gateway or PiGateway (can't remember) on the other side.
I mean you just have to open all different sketches up, check what is common and get your hand dirty and try, cost you nothing but time
Title: Re: General Tutorial?
Post by: Felix on September 24, 2018, 03:00:38 PM
There is no line by line tutorial but there are a bunch of examples to illustrate the use of the moteinos+radio modules with different LPL hardware:
https://github.com/LowPowerLab/RFM69/tree/master/Examples

You can use the Gateway or PiGateway to receive data from most other examples. The PiGateway is used with the IoT Gateway (https://lowpowerlab.com/gateway).

Many others in this forum and on the web, RFM69 radio modules have become pretty popular.