Elvis Wolcott
Published © GPL3+

Arduino Easter Suprise

As a rabbit person, Easter is my favorite holiday, but plain old Easter baskets can get old.

EasyFull instructions provided1 hour493
Arduino Easter Suprise

Things used in this project

Hardware components

Arduino MKR1000
Arduino MKR1000
×1
DC motor (generic)
A continuous rotation servo or stepper is a fine substitue, you have to adjust your code accordingly
×1

Software apps and online services

Arduino IDE
Arduino IDE
Cayenne
myDevices Cayenne

Story

Read more

Code

Arduino Code

Arduino
Run this!
//Copied from Benny Estes's project
/*
Cayenne MKR1000 Example

This sketch connects to the Cayenne server using an Arduino/Genuino MKR1000 and runs the main communication loop.

The Cayenne Library is required to run this sketch. If you have not already done so you can install it from the Arduino IDE Library Manager.

Steps:
1. Install the Arduino SAMD Boards from the Arduino Boards Manager if you have not done so already.
2. Install the WiFi101 library (https://github.com/arduino-libraries/WiFi101) from the Arduino Library Manager if you have not done so already.
3. Select the Arduino/Genuino MKR1000 board and the correct port in the Arduino IDE.
4. Set the token variable to match the Arduino token from the Dashboard.
5. Set the network name and password.
6. Compile and upload this sketch.

For Cayenne Dashboard widgets using digital or analog pins this sketch will automatically
send data on those pins to the Cayenne server. If the widgets use Virtual Pins, data
should be sent to those pins using virtualWrites. Examples for sending and receiving
Virtual Pin data are under the Basics folder.
*/

//#define CAYENNE_DEBUG         // Uncomment to show debug messages
#define CAYENNE_PRINT Serial  // Comment this out to disable prints and save space
#include <CayenneMKR1000.h>

// Cayenne authentication token. This should be obtained from the Cayenne Dashboard.
char token[] = "AuthenticationToken";
// Your network name and password.
char ssid[] = "NetworkSSID";
char password[] = "NetworkPassword";

void setup()
{
	Serial.begin(9600);
	Cayenne.begin(token, ssid, password);
}

void loop()
{
	Cayenne.run();
}

Cayenne Library

Download this to your IDE

Credits

Elvis Wolcott

Elvis Wolcott

31 projects • 79 followers
Self-taught app developer and hardware developer, interested in using VUI to improve accessibility
Thanks to Benny Estes.

Comments