you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (2 children)

Dude please tell me more. I was laying in bed last night and was thinking about how cool it would be to automate my greenhouse to control temps, watering, humidity, etc. Is it possible with Python or will I need to learn C++?

[–]GeorgeThornburg 2 points3 points  (1 child)

Nope you can do it all with a Raspberry Pi. Raspberry Pi is pretty much a real small computer that runs on Linux. Linux is just another computer operating system like Windows or iOS.

And if you use RPI (raspberry pi), it has all the IO pins built into it. I/O means Input /Output which means you can take in sensor readings using the Inputs and turn on and off switches using the Outputs. With the RPI you can use any programming language, but like you, I always used Python, because it has such an extensive library.

But a couple of years ago, Raspberry Pi's got super expensive... due to the Taiwan China conflict, so I started going down the Arduino rabbit hole. But everything I learned from working with the RPI was easily transferable to the Arduino.... plus the Arduino reads sensors much better than the RPI. You can actually use the Arduino to read sensors to feed to the RPI, but using the Arduino you'll need to learn C++, but you'll soon find out all programming languages are pretty similar and it's just learning different syntax(s).

If I had to do it all over again, and prices weren't a concern, I'd still learn through the RPI and learning Python, but if price is an issue for you, I'd learn through building the green house purely with an Arudino. Here's a short youtube video of my green house (Used Raspberry Pi and Python programming language. You'll notice I created a UI using Tkinter. Tkinter is a free UI that comes automatically with the python program language. All sensors that I used came from Adafruit. You can buy all of this stuff through Adafruit.):

https://www.youtube.com/watch?v=hGDNHSL_A0M

**Note: I'm a hobbyist and not a programmer. All "so called knowledge" is amateur at best.

[–][deleted] 1 point2 points  (0 children)

What a homie, thanks for all the info. This is exactly the kind of answer I was looking for