Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Using the Atmel AVR Arduino as IoT nodeIntroduction | ||||||||
Line: 16 to 16 | ||||||||
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 interfaceWhen 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 CayenneThe 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 |