Go Down

Topic: Can I replace the MKR1000 with the MKR1010? (Read 978 times) previous topic - next topic

Katie6

Jan 19, 2020, 07:55 pm Last Edit: Jan 19, 2020, 07:56 pm by Katie6
Hi there,

I'd like to get my husband the components to build the following domotic greenhouse project for his birthday as it combines two hobbies of his.

https://create.arduino.cc/projecthub/cormaz/domotic-greenhouse-71573f?f=1

This project calls for the MK1000, but I'm wondering if I could get the newer MK1010 instead without needing to amend the code? Is it backward compatible with MK1000 code?

Many thanks for your help

Katie

pert

You do need to amend the code to use it with the MKR WiFi 1010. On the code for the master, it's quite easy. Just change this line:
Code: [Select]
#include <WiFi101.h>
to:
Code: [Select]
#include <WiFiNINA.h>

On the code for the slave, it's a bit more complicated. The author of the tutorial used an Arduino Uno for the slave. The Uno has EEPROM memory, and thus has an EEPROM library that is used. However, the MKR WiFi 1010 does not have EEPROM memory, and so can't use the EEPROM library. There is an alternate library that uses the flash memory of the MKR WiFi 1010 to allow functionality (non-volatile data storage) similar to EEPROM:
https://github.com/cmaglie/FlashStorage
but it will require multiple lines of the slave code to be modified to use that library. We are happy to help you or your husband out with that.

Katie6

#2
Jan 20, 2020, 10:00 am Last Edit: Jan 20, 2020, 10:01 am by Katie6
Thank you so much pert! That was a really useful reply to get a sense of the complexity. I think where possible I will buy the recommended components and if we get good at Arduino and want to upgrade it, I will be back here for some help!

Thank you so much again :-)

pert

You're welcome. I'm glad if I was able to be of assistance. It sounds like your husband is going to have a very nice birthday present!

Go Up