Jump to content

Reef Pi


pcw
 Share

Recommended Posts

  • SRC Member

I've been wanting to start a reef related project that I'll be able to learn things about in another area. So what I picked, is to start on the reef pi project (you can Google more about this too). I'm completely new to programming and know next to nothing about electronics and circuitry beyond the basic stuff taught in schools. Hopefully, I can get some guidance from members here too.

What this project is about, is to create an aquarium controller (with whatever bells and whistles you want) using the Raspberry Pi. I've chosen the Raspberry Pi Zero W to start off with since that is relatively inexpensive and that is what most guides use. Plus, having a wireless function definitely helps, although the Zero W is only connected via 2.4 GHz.

Just sharing what I've done here so please use your own discretion in deciding whether you want to attempt this or not. Below is a summary of what I've learnt from other guides, of which I am grateful for those creators for having explained the steps. To the more experienced reefers, please let me know if I left out anything. Many thanks in advance.

Equipment

For this first post, I'll just share what I've started off with so far.

Raspberry Pi Zero W

929088614_photo_2020-05-16_19-01-23(2).thumb.jpg.925f69253b41c49fa108822ae1c697f8.jpg

Others

a. MicroSD card (I'm using a 16GB card, but the minimum recommended capacity is 8GB)

b. MicroSD card reader

c. GPIO pin strips 

d. DC power adaptor (5.1V, 2.5A output) (not in picture)

e. A computer to connect to the Pi

photo_2020-05-16_19-01-23.thumb.jpg.9e32205555d6dd0ccc61e8691026be32.jpg

Setting up the Pi

1. Connect your MicroSD card to your computer. Download the Raspberry Pi Imager (search this on Google) and choose the correct OS that your computer is running on. Follow the steps to write the OS on your MicroSD card.

2. Download two files for the Pi set-up off the internet (wpa_supplicant.conf and ssh). Copy these files onto your MicroSD card.

3. Open the copy of "wpa_supplicant.conf" on your MicroSD card and key in the network details you want to connect to, replacing "your_wifi_network_name" and "your_wifi_network_password". Save the file. Remember that you have to connect to a 2.4GHz network for the Zero W.

568540260_ScreenShot2020-05-16at7_18_04PM.png.debf630f14ff87bc5f267635e6a7874e.png

4. Eject the MicroSD and plug it into your Pi.

5. Plug your Pi into your power source and it should automatically connect to your network.

6. Now you'll need to connect your computer to the network that you connected your Pi to. Once you're connected, open the Command Prompt (Windows) or Terminal (Mac) and run the line "ping raspberrypi.local". You should see Command Prompt or Terminal giving you data about your Pi's connection. To stop the command, enter ^C.

7. Connect your computer to your Pi by running "ssh pi@raspberrypi.local". You'll be prompted with a password. By default, the password is "raspberry". Please remember to change this later. Once you've entered the password correctly, you'll be connected to your Pi via the 2.4GHz network.

8. Enable SSH. To do so, run "sudo raspi-config" on Terminal. Select "5 Interfacing Options", "P2 SSH" and enable SSH.

284960902_ScreenShot2020-05-16at7_38_19PM.thumb.png.83ec04f511e39844e7389a80b1bd5f08.png

869736988_ScreenShot2020-05-16at7_39_31PM.thumb.png.27b1f967051404ac94632f4a441ab7ff.png

9. Reboot your Pi.

10. Connect to your Pi again (you may have to restart Terminal) and run the following: "sudo apt-get update -y", "sudo apt-get upgrade -y", "sudo systemctl start systemd-timesyncd", "sudo systemctl enable systemd-timesyncd"

11. Edit config.txt by running "sudo nano /boot/config.txt". Scroll to the bottom and type "dtoverlay=pwm-2chan". Reboot your Pi.

12. Run "sudo raspi-config". Select "5 Interfacing Options" and "P7 1-Wire". Enable one-wire interface. While you're at it, you can disable SPI too.

1296382766_ScreenShot2020-05-16at7_47_12PM.thumb.png.93ba05f609eeea3846f7a799bac12cad.png

13. Reboot your Pi and install reef pi. Do a Google search to find the latest code to use to download the latest version of reef pi. Remember to select the correct code you're using because these are written specific to different versions of the Raspberry Pi.

14. Connect to your Pi again, and run "ping raspberrypi.local". Copy the IP address of your Pi and enter it into your browser. This will take you to the login page for reef pi. The default username and password are both "reef-pi". Key those in, and sign in.

Next

I've already set up my Pi as detailed above. I've recently placed orders for the other things I would need for:

a. 8 channel relay

b. PH meter

c. Temperature meter

These are the first three things I'll be trying to do, but for now I'm still waiting for parts to arrive.

 

  • Like 5
Link to comment
Share on other sites

  • 2 weeks later...
  • SRC Member

First batch of items finally arrived. Unfortunately, it appears that the seller left out the switch and fuse cover for the AC-01 plug. Still patiently waiting for the other items to arrive.

photo_2020-05-31_19-02-12.thumb.jpg.d7c931a9e1dad91467ee28e0a6087402.jpg

Link to comment
Share on other sites

  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...