I am making my baby-steps using raspberrypi. I am stuck in something.
I am building a device that combine arduinà with raspberrypi. There are some sensors connected to arduino and others to Raspa (mainly related to my budget).
Let's say that I use temperature sensor+LED with arduino and camera with raspberrypi. My question is, How can I make the main program so when it's under 0 the led is blinking and if it's above, it shoots a picture every-hour.
The question here is not asking how to write the program, but more where can I write it. Should I write raspberrypi as a main program to ask arduino (via PySerial), or should I use arduino and send commands from arduino to raspberrypi. What is the main program that should be running 24hr in the sensor.
Eg: When using arduino alone, uploading a sketch on arduino makes the program running 24hr. How this logic work when we combine arduino with raspberrypi.