# Whole project with raspberry and particle? (Just a newbie)

**URL:** https://community.particle.io/t/whole-project-with-raspberry-and-particle-just-a-newbie/43093
**Category:** Raspberry Pi
**Created:** [July 19, 2018, 3:17pm UTC](https://community.particle.io/t/whole-project-with-raspberry-and-particle-just-a-newbie/43093 "2018-07-19T15:17:37Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![carlos.echeverria.st](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@carlos.echeverria.st](https://community.particle.io/u/carlos.echeverria.st)
#### Post date: [July 19, 2018, 3:17pm UTC](https://community.particle.io/t/whole-project-with-raspberry-and-particle-just-a-newbie/43093/1 "2018-07-19T15:17:37Z")

</div>

Hello, I’m new here and I have a few questions to get started because I want to start working on a new project but first of all, I’m doing some research. I want to make this questions to know what I’m dealing with and to be sure that this is what I want, I would really appreciate some help from you guys.

1.- How big can a project get using particle and raspberry pi?  
I mean can I launch big project’s or is more oriented on running just short scripts?

2.- Can I code a project in my raspberry, as usual, using python and let’s say some task is completed and after that can I trigger an event here on the particle cloud that takes other actions when this occurs?  
I mean can I subscribe here on the particle cloud to an event that is going to happen when the Pi is running some code that I wrote in python?

---

<div class="post-metadata">

### Author: ![ninjatill](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ninjatill/32/17370_2.png) [@ninjatill](https://community.particle.io/u/ninjatill)
#### Post date: [July 19, 2018, 4:01pm UTC](https://community.particle.io/t/whole-project-with-raspberry-and-particle-just-a-newbie/43093/2 "2018-07-19T16:01:05Z")

</div>

When using a Particle device and a Rasperry Pi, any project limitations are probably only in your imagination. There are some limitations that you may run into on the Particle devices (Photon, Electron) mostly due to limited memory and flash space. However, if you are using a RasberryPi in conjunction with a Particle device, then a lot of those memory limitations go away since you can do the heavy processing tasks on the RasberryPi and then send publish/subscribe events to the Particle devices when needed. While I do not have a RPI to play with, I do believe you can trigger just about anything on a Particle device from the RPI. The RPI can also be added as a Particle device and connect to the Particle cloud by loading the Particle Agent.

You may want to check these documents:  
[https://docs.particle.io/faq/raspberry-pi/general/electron/](https://docs.particle.io/faq/raspberry-pi/general/electron/)  
[https://docs.particle.io/reference/particle-agent/](https://docs.particle.io/reference/particle-agent/)

Here are some other topics that deal with Python and Particle:

> [@Understanding google cloud app engine and pub/sub to datastore](https://community.particle.io/t/understanding-google-cloud-app-engine-and-pub-sub-to-datastore/39867/3):
>
> Thank you for your answer. I prepared app.yaml: runtime: python env: flex entrypoint: python Oratio.py runtime\_config: python\_version: 3 manual\_scaling: instances: 1 but when I try to run gcloud app deploy I see error: from google.cloud import pubsub ModuleNotFoundError: No module named ‘google’. When I input : “pip show google-cloud” I see version and even libraries Name: google-cloud Version: 0.32.0 Location: /usr/local/lib/python2.7/dist-packages Requires: google-cloud-logging…

> [@Subscribe to spark events using python](https://community.particle.io/t/subscribe-to-spark-events-using-python/9134/3):
>
> Using python 2.7: from sseclient import SSEClient import requests, json messages = SSEClient('https://api.spark.io/v1/events/{EVENT FILTER}?access\_token={ACCESS TOKEN}') for msg in messages: event = str(msg.event).encode('utf-8') data = str(msg.data).encode('utf-8') print event print data dataJson = json.loads(data)

---

<div class="post-metadata">

### Author: ![nrobinson2000](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/nrobinson2000/32/15624_2.png) [@nrobinson2000](https://community.particle.io/u/nrobinson2000)
#### Post date: [July 20, 2018, 3:31am UTC](https://community.particle.io/t/whole-project-with-raspberry-and-particle-just-a-newbie/43093/3 "2018-07-20T03:31:20Z")

</div>

Also to add to this @carlos.echeverria.st, you can use [Process Control](https://docs.particle.io/reference/firmware/raspberry-pi/#process-control) to run shell commands and run scripts from within Particle firmware on the Raspberry Pi.

---

<div class="post-metadata">

### Author: ![carlos.echeverria.st](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@carlos.echeverria.st](https://community.particle.io/u/carlos.echeverria.st)
#### Post date: [July 20, 2018, 3:47am UTC](https://community.particle.io/t/whole-project-with-raspberry-and-particle-just-a-newbie/43093/4 "2018-07-20T03:47:51Z")

</div>

Thanks alot for your reply I would keep in mind this and look at this other posts

---

<div class="post-metadata">

### Author: ![carlos.echeverria.st](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@carlos.echeverria.st](https://community.particle.io/u/carlos.echeverria.st)
#### Post date: [July 20, 2018, 3:49am UTC](https://community.particle.io/t/whole-project-with-raspberry-and-particle-just-a-newbie/43093/5 "2018-07-20T03:49:58Z")

</div>

Let me tell you what I understand , you are saying that from my particle code in the cloud I can run python scripts in the pi using shell ?? Using process control???

---

<div class="post-metadata">

### Author: ![nrobinson2000](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/nrobinson2000/32/15624_2.png) [@nrobinson2000](https://community.particle.io/u/nrobinson2000)
#### Post date: [July 20, 2018, 5:14am UTC](https://community.particle.io/t/whole-project-with-raspberry-and-particle-just-a-newbie/43093/6 "2018-07-20T05:14:44Z")

</div>

Yes you can.

---

<div class="post-metadata">

### Author: ![carlos.echeverria.st](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@carlos.echeverria.st](https://community.particle.io/u/carlos.echeverria.st)
#### Post date: [July 20, 2018, 1:16pm UTC](https://community.particle.io/t/whole-project-with-raspberry-and-particle-just-a-newbie/43093/7 "2018-07-20T13:16:37Z")

</div>

You really helped me out , thank you so much !!! Can you give me some blog or channel were to look at or should I look at the posts in here ?

---

<div class="post-metadata">

### Author: ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)
#### Post date: [July 20, 2018, 5:26pm UTC](https://community.particle.io/t/whole-project-with-raspberry-and-particle-just-a-newbie/43093/8 "2018-07-20T17:26:06Z")

</div>

> [@carlos.echeverria.st](#):
>
> you are saying that from my particle code in the cloud I can run python scripts in the pi using shell ??

I might misunderstand this sentence, but what do you mean by _"my particle code in the cloud"_?  
Your Particle code is running on the device, not in the cloud.

---

<div class="post-metadata">

### Author: ![carlos.echeverria.st](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@carlos.echeverria.st](https://community.particle.io/u/carlos.echeverria.st)
#### Post date: [July 22, 2018, 1:09am UTC](https://community.particle.io/t/whole-project-with-raspberry-and-particle-just-a-newbie/43093/9 "2018-07-22T01:09:55Z")

</div>

Sorry, I don’t know how to explain my self clearly, but I’m going to try.

I was trying to say that if I can run python scripts in the pi after calling them from some other script that came from the cloud.

Thanks!

---

<div class="post-metadata">

### Author: ![Joe](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/joe/32/16963_2.png) [@Joe](https://community.particle.io/u/Joe)
#### Post date: [December 11, 2019, 9:11pm UTC](https://community.particle.io/t/whole-project-with-raspberry-and-particle-just-a-newbie/43093/10 "2019-12-11T21:11:08Z")

</div>


