Difference: IoTWithAtmelAVRArduino (3 vs. 4)

Revision 42019-05-16 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="AFNOGWorkshop2019"

Using the Atmel AVR Arduino as IoT node

Introduction

Line: 16 to 16
  arduinoSDK.png
Changed:
<
<
Problems when using the AVR Arduino is the missing network interface which must be added as a shield and, at least for the Nano and the Uno, its very limited resources in RAM space (2 kBytes only).
>
>
Problems when using the AVR Arduino are the missing network interface which must be added as a shield and, at least for the Nano and the Uno, its very limited resources in RAM space (2 kBytes only).
 

The network interface

When trying to use the Arduino as an IoT node on Cayenne for the first time, I used the Arduino Ethernet shield as network interface. This worked without problems and the code generated in Cayenne worked out of the box. However, when trying to use the board during a workshop in a hotel there is a fair chance that only WiFi will be available for network access.

Line: 48 to 48
 Another problem with the WiFi is the fact that the communication between the CPU card and the shield uses Tx0 and Rx0, which are also used upload and flashing and for the debug monitor. In order to upload code to the Arduino flash the connection to the WiFi shield must therefore be cut. This is done with the 2 left most switches on the 4 dip switch block (switch set to off position). Unfortunately you do not have access to these switches if the multi-function board is plugged on top of the WiFi shield.

I therefore used the ESP01 with its level converter connected to Tx0 and Rx0 and powered with a separate 3.3V power supply. When flashing new code I have to switch this power supply off and therefore disable the ESP01. The power is switched back on once flashing has finished.

Added:
>
>

The C++ code connecting the multi-function board to Cayenne

The code controlling the devices on the multi-function board as well as the programs making the devices visible on Cayenne can be found on

https://github.com/uraich/multifunctionCayenne

  -- Uli Raich - 2019-05-10
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback