This site introduces some notes to create a robotic tank which organises lighting, filtering, heating, aeration, taking pictures and picture select AI using #RaspberryPi, #JetsonTK1 and #Chainer deep learning framework.

Raspberry Pi - Aquarium LED light control(2)

Program: aquarium LED light schedule. <div> #!/usr/bin/python # -*- coding: utf-8 -*- import RPi.GPIO as GPIO import sys from datetime import datetime as dt def gpio_on(port): print port print "ON" GPIO.output(port, True) def gpio_off(port): print port print "OFF" GPIO.output(port, False) GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(17, GPIO.OUT) # white1 GPIO.setup(23, GPIO.OUT) # blue1 GPIO.setup(22, GPIO.OUT) # red1 tdatetime =
Read More

Raspberry Pi - Aquarium LED light control(1)

Prepare electrical cord and heat shrink tube. Put 3 peaces of electrical cord into a heat shrink tube to create a cable as shown in the picture. A very simple hardware hack for LED light “GEX Clear LED 450 / 600 Series”. Remove all three switches for white LED light, blue one and red one. Solder these
Read More

Raspberry Pi - LED

See if GPIO is already installed. pi@tank45 ~ $ sudo apt-cache –names-only search gpio python-gpiozero – Simple API for controlling devices attached to the GPIO pins. python-gpiozero-doc – Documentation for the gpiozero API python-rpi.gpio – Python GPIO module for Raspberry Pi python3-gpiozero – Simple API for controlling devices attached to the GPIO pins. python3-rpi.gpio –
Read More

Raspberry Pi - temperature sensor

Raspberry Pi 3.3V: to DS18B20+ VDD GPIO4: to DS18B20+ DQ (2.2KΩ pull up) GND: to DS18B20+ GND How to use DS18B20+ 1-wire digital temperature sensor.   Add w1-gpio, w1-therm to /etc/modules. pi@raspberrypi $sudo nano /etc/modules # /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loa$ # at boot time, one
Read More