Question arduino or raspberry pi?

alfiee

Commendable
Jul 23, 2018
84
1
1,535
0
Hi, I'm a programmer that barely knows anything about stuff like this.

I have a project which is a motion sensor that detects when a door opens (when it detects motion) it will send that data to my pc or to a server and a LED will light on.
What would be best for this? arduino or raspberry pi? I already know python which I understand pi's use but im open to learning other language

One thing I thought of was for a raspberry pi to act as a server and the motion detector so I could store it on the pi and access the server from my pc / laptop but would is this a good idea / possible?
Is there also a specific motion sensor I have to get?
 

OldSurferDude

Prominent
May 18, 2019
76
11
565
9
An Arduino (C++) connected to your computer's USB port would be cheapest (USD$3) and easiest. A program running on the PC to accept the data could be GoBetwino (standalone) or Processing (java). But you'd have to leave your PC running.

An RPi would work well, see: https://opensource.com/article/20/11/motion-detection-raspberry-pi This was the first thing that came up when I googled "Raspberry Pi motion sensor" The take-away here is that you can easily find answers without having to wait for opinionate responses.
 
Mar 1, 2021
2
0
10
0
Both platforms have their own uniqueness. Raspberry pi gets the best hardware kit award and Arduino is the biggest tech learning platform. If you are a beginner then start with Arduino, because it's library is easily available and it's very easy to learn then move to Pi.
 
Mar 2, 2021
17
0
10
0
Hi, I'm a programmer that barely knows anything about stuff like this.

I have a project which is a motion sensor that detects when a door opens (when it detects motion) it will send that data to my pc or to a server and a LED will light on.
What would be best for this? arduino or raspberry pi? I already know python which I understand pi's use but im open to learning other language

One thing I thought of was for a raspberry pi to act as a server and the motion detector so I could store it on the pi and access the server from my pc / laptop but would is this a good idea / possible?
Is there also a specific motion sensor I have to get?
Raspberry pi would be an overkill for such a simple project.
The Raspberry Pi is a low cost, credit-card sized computer.
The Arduino is a microcontroller board.

Your project doesn't require a entire computer, a microcontroller can do the job. Moreover Arduino is way cheaper than a Raspberry Pi board. You can use a WiFi Module with the Arduino board to create an HTML server. Take a look here. If you want to store long term data you can use an SD Card Module to save your data and provide them to your server.
 

GianYagami

Prominent
Mar 11, 2020
35
1
535
0
It depends what kind of data that u send and types of area network u used. But I'd suggest u get an esp32 over than arduino because it has built in wifi module.
 

ASK THE COMMUNITY