Yes, Cayenne on Arduino. The same Cayenne we've covered in the past can also be installed on, among many others, an Arduino board. Today we'll be covering the installation process.
Hardware
First, you'll need compatible hardware. The two basic things you need are the micro-controller itself and a network interface card. We used an Arduino Uno (rev. 3) and a SeeedStudio Ethernet Shield (v1.1). Cayenne is compatible with a wide range of other network cards and Arduino boards as well; check their site for full compatibility list. You also of course need a network to connect to, either wireless or wired, and a power source. If you plug into a computer, you can use the serial monitor to view debugging information.
Follow the prompts to select your board and network card(A SeeedStudio ethernet shield is equivalent with a W5100)
Open Arduino IDE
Install Cayenne Library
Go to Sketch=>Include Library=>Manage Libraries
Search for Cayenne and install
Copy and paste the code from Cayenne into Arduino IDE
Compile and upload (this can take some time)
Optional: Serial debug
If you're Arduino is connected to a serial port, you can open the serial monitor and view the board's status
Log into Cayenne and start using your Arduino!
After successful installation, you may receive an email confirming the device was setup:
Conclusion
Now with Cayenne on your Arduino board, simply set it up anywhere with internet and power to be able to remotely and autonomously toggle pins on and off. Just be aware that depending on your network card, certain pins on the Arduino may be unusable, such as pins 13, 12, and 11 in our setup. Stay tuned to CodePy for more tech tutorials!
Raspbian Jessie uses a different network manager than most other Linux systems and previous versions of Raspbian. Most users will have no use for a static IP, but it is necessary in some environments. There is a lot of confusion online, but this method has been tested to work with the newest edition of Raspbian as of August 8th, 2016. Also please note, depending on what you need a static IP for, it may be easier to go into your router(or other DHCP server) and specify an IP for your device there. First, open /etc/dhcpcd.conf with your favorite text editor(We'll use nano). Run the command: sudo nano /etc/dhcpcd.conf Add this to the end: interface eth0 static ip_address=192.168.1.7/24 static routers=192.168.1.1 static domain_name_servers=8.8.8.8 Use Ctrl+X to save and exit Replace ip_address with an IP of your choice, routers with the IP of your router or gateway, and domain_name_server with the IP of a DNS server. If you're on Wi-Fi, change "eth0" to...
Welcome to CodePy DIY Computing! Now this isn't just a blog to promote CodePy products and give nifty little tips(Although we'll do that too) but we want to show you all the other projects we work on. So please enjoy our tutorials and remember to visit us at our website!
Comments
Post a Comment