Components and supplies
Arduino MKR IoT Bundle
Apps and platforms
Telegram
Project description
Code
Downloadable files
Complete wiring
Complete wiring
Complete wiring
Complete wiring
Comments
Only logged in users can leave comments
Arduino_Genuino
2 years ago
Hello! Thanks for your comment. We fixed the issue with the Telegram example (by making the Watchdog library optional and not included in the example sketch ). Although we don't understand your issue with the headers, can you elaborate please?
Anonymous user
2 years ago
I bought the iot bundle and i cant figure out the secret tab . Can you Please help me , EB
Arduino_Genuino
2 years ago
Hello ! The secret tab is a feature designed for the Arduino Web Editor, it allows you to safely store sensitive information like WiFi password or API keys. It is a tab that cannot be shared so to prevent you from sharing passwords by mistake. You can find an extensive explanation here. https://create.arduino.cc/projecthub/Arduino_Genuino/store-your-sensitive-data-safely-when-sharing-a-sketch-e7d0f0
alexau
2 years ago
Great project, only issue I ran into was the resistor. Intro says use 5M, schematic says 10M, and the color of the resistor in the picture (red red brown gold) is a 220. 10M worked for me (brown black blue gold) but 5M would have probably worked too i'm guessing. Took me some troubleshooting to figure out the resistor was the problem and that the color was actually a 220 but was a good practical crash course in learning what the colors on resistors mean. Thank you for this project, it was fun to learn practical application of what Telegram and a sensor can do together!
Anonymous user
2 years ago
Hey I'm using the MKR IoT BUNDLE kit I've gotten the first few steps completed but connecting to the wifi doesn't seem to be working when I test out the >example>TelegramBot > EchoBot. does anyone know what the issue may be that I'm having? I've already tried entering my ssid, password and my BotToken in their respectful positions with and without quotation marks as well. I can send pictures if it would make it easier.
Anonymous user
2 years ago
When trying to update the firmware, I'm getting the message "Error when erasing flash memory". I've updated my Arduino software and at the recommendation of this thread: https://github.com/arduino-libraries/WiFi101-FirmwareUpdater-Plugin/issues/13 added setPins, but it still isn't working. Has anyone else had/solved this issue? Thanks!
Anonymous user
2 years ago
I bought the iot bundle and I have an issue with the "I love your pillow" example. Following this page, at this moment "You just created a bot that echoes all your messages" I have this error verifying echobot: "Arduino: 1.8.10 (Mac OS X), Board: "Arduino MKR1000" In file included from /Users/gianluca/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/samd21/include/samd21.h:69:0, from /Users/gianluca/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/samd.h:105, from /Users/gianluca/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/sam.h:540, from /Users/gianluca/Library/Arduino15/packages/arduino/hardware/samd/1.8.4/cores/arduino/Arduino.h:48, from /Users/gianluca/Documents/Arduino/libraries/WiFi101/src/utility/WiFiSocket.h:28, from /Users/gianluca/Documents/Arduino/libraries/WiFi101/src/WiFi.cpp:36: /Users/gianluca/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/samd21/include/samd21g18a.h:226:0: warning: "LITTLE_ENDIAN" redefined #define LITTLE_ENDIAN 1 In file included from /Users/gianluca/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include/sys/types.h:67:0, from /Users/gianluca/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include/time.h:28, from /Users/gianluca/Documents/Arduino/libraries/WiFi101/src/WiFi.cpp:28: /Users/gianluca/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include/machine/endian.h:17:0: note: this is the location of the previous definition #define LITTLE_ENDIAN _LITTLE_ENDIAN /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:39:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6 StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:87:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6 StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:102:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6 StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp: In member function 'message TelegramBot::getUpdates()': /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:39:20: error: expected primary-expression before '<' token StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer; ^ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:39:37: error: 'jsonBuffer' was not declared in this scope StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer; ^~~~~~~~~~ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:39:37: note: suggested alternative: 'JsonBuffer' StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer; ^~~~~~~~~~ JsonBuffer /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:44:12: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6130_000001::ObjectRef}' has no member named 'success' if(root.success()){ ^~~~~~~ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp: In member function 'String TelegramBot::sendMessage(String, String)': /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:87:19: error: expected primary-expression before '<' token StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer; ^ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:87:36: error: 'jsonBuffer' was not declared in this scope StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer; ^~~~~~~~~~ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:87:36: note: suggested alternative: 'JsonBuffer' StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer; ^~~~~~~~~~ JsonBuffer /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:93:8: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6130_000001::ObjectRef}' has no member named 'printTo' buff.printTo(msg); ^~~~~~~ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp: In member function 'String TelegramBot::sendMessage(String, String, TelegramKeyboard&, bool, bool)': /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:102:19: error: expected primary-expression before '<' token StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer; ^ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:102:36: error: 'jsonBuffer' was not declared in this scope StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer; ^~~~~~~~~~ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:102:36: note: suggested alternative: 'JsonBuffer' StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer; ^~~~~~~~~~ JsonBuffer /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:107:53: error: cannot bind non-const lvalue reference of type 'ArduinoJson::JsonObject& {aka ArduinoJson6130_000001::ObjectRef&}' to an rvalue of type 'ArduinoJson6130_000001::ObjectRef' JsonObject& reply_markup = buff.createNestedObject("reply_markup"); ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:108:55: error: cannot bind non-const lvalue reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson6130_000001::ArrayRef&}' to an rvalue of type 'ArduinoJson6130_000001::ArrayRef' JsonArray& keyboard = reply_markup.createNestedArray("keyboard"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:111:47: error: cannot bind non-const lvalue reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson6130_000001::ArrayRef&}' to an rvalue of type 'ArduinoJson6130_000001::ArrayRef' JsonArray& row = keyboard.createNestedArray(); ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:117:20: error: expected primary-expression before 'bool' reply_markup.set<bool>("one_time_keyboard", one_time_keyboard); ^~~~ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:118:20: error: expected primary-expression before 'bool' reply_markup.set<bool>("resize_keyboard", resize_keyboard); ^~~~ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:119:20: error: expected primary-expression before 'bool' reply_markup.set<bool>("selective", false); ^~~~ /Users/gianluca/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.cpp:122:8: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6130_000001::ObjectRef}' has no member named 'printTo' buff.printTo(msg); ^~~~~~~ Multiple libraries were found for "SPI.h" Used: /Users/gianluca/Library/Arduino15/packages/arduino/hardware/samd/1.8.4/libraries/SPI Multiple libraries were found for "TelegramBot.h" Used: /Users/gianluca/Documents/Arduino/libraries/TelegramBot Multiple libraries were found for "ArduinoJson.h" Used: /Users/gianluca/Documents/Arduino/libraries/ArduinoJson Multiple libraries were found for "WiFi101.h" Used: /Users/gianluca/Documents/Arduino/libraries/WiFi101 exit status 1 Error compiling for board Arduino MKR1000. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. " Could you help me please?
Anonymous user
2 years ago
;(
Anonymous user
2 years ago
Go to Sketch->Include Library->Manage Libraries...(Ctrl+Shift+I), Find ArduinoJson, install Version: 5.13.4, Versions greater than 5 don't have printTo function.
Anonymous user
2 years ago
Is it possible that the project no longer works? I cannot make the communication with the Telegram Bot work. There is no error, but I do not receive any messages. Anybody else have this problem?
Anonymous user
2 years ago
Hi, thanks for this detailed guide! A note in case someone is having problem creating the EchoBot, try https://api.telegram.org/ as the Telegram domain (instead of api.telegram.org).
Myo_Myint_Naing
2 years ago
Firmwareupdater code worked. I tried the Echobot Code and Love you pillow code. It says "Error compiling for board Arduino MKR1000". I tried uploading a blank code and it worked. I also tried downgrading Arduinojson library to 5.13.5 from latest version. It didn't work as well. Should I reinstall the IDE? or the libraries? What might be the error here?
Anonymous user
2 years ago
thanks for information
Anonymous user
2 years ago
@ Myo_Myint_Naing I am having the same problem, have you got to solve it? Anyone can assist please?
aitorga
2 years ago
I had the same problem, I installed 5.13.4 version and it works.
Anonymous user
2 years ago
I ordered the iOT starter kit which came with the MKR1000 with headers and 5 suggested projects, this was the first one. This tutorial is without headers so I couldn't continue with it. Also the extra libraries you need to get the echo sketch to work are further down the tutorial . I figured out which libraries were missing but then discovered lower down on the page that they were mentioned.