This tutorial is from the Medium One site and republished with their permission. Medium One is a great company that is really helping to build up a community of people learning about IOT. Thanks Medium One.
This assumes you have the S3A7 IoT Enabler Kit.
This tutorial will show how to connect GPIO signals on the S3A7 IoT Enabler Kit to the Renesas IoT Sandbox, by modifying the Smart Chef demo and using the M1 Synergy Cloud Driver. The Cloud Driver allows applications to specify I/O details once, then drive the I/O through python code in the Sandbox.
The following methods will be shown:
- Interrupt GPIO input
- Cloud-driven GPIO input
- Cloud-driven GPIO output
GPIO signals on PMOD D (J10) will be used, but the same concepts apply in general. The M1 Synergy Cloud Driver GPIO features are currently only supported on the S3A7 IoT Enabler Kit for the following pins:
- PMOD D (J10) pin 1
- PMOD D (J10) pin 7 – interrupt pin
- PMOD D (J10) pin 8
- PMOD D (J10) pin 9
- PMOD D (J10) pin 10
Other PMOD D pins and other PMOD ports are in-use already by the application and peripherals. When an interrupt is received on the interrupt input pin, an event will be sent to the Renesas IoT Sandbox. Other GPIO inputs and GPIO outputs can be controlled by commands sent from the Renesas IoT Sandbox.
HERE IS WHAT YOU NEED TO GET STARTED:
- S3A7 IoT Fast Prototyping Kit
- USB Cable (to power the board)
Renesas e2 studio software Version: 5.2.0.020
- SmartChefDemo zip file (contact Renesas for link)
- M1 Synergy Cloud Driver Library zip file – download
- To build a simple LED toggling circuit, you will need a breadboard, switch, LED light, resistor and a few wires
Understanding of Renesas e2 studio
Understanding SMART CHEF DEMO WITH S3A7 FAST IOT PROTOTYPING KIT – QUICK START GUIDE
Activation of your S3A7 Smart Chef kit