Arduino and Raspberry Together


#41

Is the pi resetting when it loses connection? Power supplies have been an issue in the past for similar problems. If not we can troubleshoot some network settings. Have a run through this post as well Troubleshooting Pi Showing Up as Offline in Dashboard


#42

The Pi itself is not having connection issues. It is being recognized and read. The Arduino Uno that is using the Pi for Cayenne access is the one having trouble communicating via serial-USB port. I took it home this weekend to trouble shoot and found that when on my home wifi network there is no issue. Can you recommend what I should look into?

On a side note, after about 20 minutes of good, fluid readings while connected at home, the widgets for my Arduino froze. It was still being recognized by Cayenne, but was no longer updating the values assigned to the sensors.


#43

Hello newbie here who is trying to install a dht22 to monitor humidity … I was wondering with this method would I be able to view both the raspberry pi and arduino on the same caynee dash board ? Also is the dht sensor visable in the iOS app ?


#44

Sorry to bother Total newbie at it again , here is the error i am getting while trying to add the sketch to my arduino

Here are the error messages i have adeed the cayenne libary per instructions is there anything else and updated with my token.

Arduino: 1.8.3 (Windows 10), Board: “Arduino/Genuino Uno”

C:\Users\le93060\Documents\Arduino\sketch_aug16a\sketch_aug16a.ino:1:27: fatal error: CayenneSerial.n: No such file or directory

#include <CayenneSerial.n>

                       ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


#45

Hello mate,
In the first line you have #include <CayenneSerial.n> and it should be #include <CayenneSerial.h>

Regards :wink:


#46

Yes, it is possible.
You can add as much devices as you want on the same dashboard. First ensure that they are connected to the Cayenne and sensors are sending data as you expect. Then you can create a new project and drag and drop devices and sensors that you want to display. This is indeed a cool function! See the picture bellow, for creating a new project:


#47

@joaoduarte_89 @ognqn.chikov Thank you Very much it took the sketch when I copied exactly what @akers.kenneth66 posted and changed my key. I installed the cayenne library, but how and where do I place the code for this? Also, how do I run the command on the PI for cayenne-ser.sh" , do I use sudo apt git ? I am very new to this and have only been able to Succfussly add a relay and one wire temp sensor. My goal is to get my relays and ds18b20 working as well as my DHT22 all on one cayenne dash board exactly like @ognqn.chikov . I purchased my Arduino to help with this project since i did not want to use the mattq feature. I am sorry for so many questions.


#48

You can read this comment, and follow the same procedure:


#49

I am working of that post but do not understand how to run the script . I have included a snap shot of my directory for you and also the error I am getting while trying to run the script … I am positive i am doing something wrong and help is greatly appreciated


#50

Looks like you don’t have the script to run it. You can download it from here https://github.com/myDevicesIoT/Cayenne-Arduino-Library/tree/master/extras/scripts


#51

Thank you Adam , would I use git clone and then the URL ?


#52

Yes, that will work. Or you can right click it and save link as if you want to do it from a browser.


#53

Thank you adam i am trying to do this with putty . Buti got the following error


#54

Hello,
Try to manually copy it. I was also trying with github but with no success. I used a VNC and make a copy/paste via the graphic user interface.


#55

Try this command:

wget https://github.com/myDevicesIoT/Cayenne-Arduino-Library/blob/master/extras/scripts/cayenne-ser.sh


#56

Adam ,

Thank you again for your help , it did download the file to my pi . but when trying to run the file it says access denied . i have attached the following screen shots . do i need to include sudo in my command ?


#57

chmod +x cayenne-ser.sh should fix the permissions problem


#58

You might also need to run it with sudo after running the command @adam gave you (which makes it executable in the first place). Definitely let me know if you have any trouble as I’m pretty experienced with troubleshooting the USB Serial script.


#59

This is what I got when I tried, please find the attached photo.


#60

Looks correct to me, now you just run it like normal. sudo ./cayenne-ser.sh