Joshua
Junior Member
Posts: 75
|
Post by Joshua on Dec 12, 2017 2:28:53 GMT
Hello all,
Are the sketches compatible with Moteino boards as-is? or does the code and/or libraries need to be changed? I've looked through the forums and found information about the possibility of breaking compatibility on the LCD and how to update the code for wireless programming. However, I cannot find a definitive answer on if the code is good to go for moteino.
Thank you for your time,
Joshua
|
|
|
Post by papa on Dec 12, 2017 18:18:04 GMT
Welcome, Joshua, I believe the multi-choice sketch linked below is either Moteino compatible or close to it. See this thread. It was written from my experience with the Anarduino miniwireless, an Arduino / RFM69 board similar to a Moteino (Moteino & miniwireless have different memories & thus need different memory approaches for wireless programming). The thread was based on what I & others adapted from Moteino approaches. The sketch there has a Moteino option in the defines that I hope will work. I recommend that you read through the whole thread & get the general idea. Then from the thread & from Lowpowerlab.com apply specifically to the Moteino. Besides the sketch, I believe you will need to go to the Moteino forum & there download the Moteino dualOptiboot bootloader that has wireless programming included & upload to your Moteino. You may also need to build & program a wireless programming gateway that is compatible with Moteino. For wireless programming, you'll need the Moteino version of the python script. For the sketch, you need libraries: SPIFlash.h & WirelessHEX69.h. The thread gives sources. This video might help. This post has coding related to using our forum's sketches with Moteino's. Again note that I do not have any experience or reports about using that code. This post has the sketch. Again I've never tried the sketch with a Moteino & no one has reported trying that option. It'd be great if you gave the sketch it a try & reported back your experience & any Moteino changes recommended.
|
|
Joshua
Junior Member
Posts: 75
|
Post by Joshua on Dec 12, 2017 19:48:15 GMT
The answer is, from what I gather, that the sketch will be need to be adapted in order to work with Moteino and a good place to start is adapting the sketch using the information from this post. I'll give a shot and let you know the results. Thank you for the friendly welcome and the fast reply. Joshua
|
|
|
Post by papa on Dec 13, 2017 1:01:20 GMT
Joshua, Instead of your adapting the DIG node code, I believe the sketch in the thread I linked could work for you. You would uncomment the #defines that relate to the functions you want for the node. You would also use the Arduino pins the sketch defines for those functions. The DIG node has a push button & a relay. For both button (uses pin d8) & relay (uses pin d9), UNcomment #define BUTTON. I also hope you realize that all of the RFM69 nodes we document here require a gateway device to communicate with OpenHAB. That is in addition to the wireless programming gateway for over the air programming of the Moteino. For help building a gateway, see posts starting here & the links within those posts. Our sketches have also been adapted to reprogram Sonoff devices, inexpensive DIG type devices (based on ESP8266 processors) that communicate via WiFi & do not need a RFM69 radio or a RFM69 gateway. They also can be programmed over the air. For more on this, see this thread.
|
|