Fish Feeding Themselves

download Fish Feeding Themselves

of 13

Transcript of Fish Feeding Themselves

  • 7/25/2019 Fish Feeding Themselves

    1/13

    http://www.instructables.com/id/Fish-feeding-themselves/

    technology workshop living food play outside

    Fish feeding themselvesby RoboPandaPDXon March 23, 2015

    Table of Contents

    Fish feeding themselves ........................................................................................................

    Intro: Fish feeding themselves .................................................................................................

    Step 1: How it operates ......................................................................................................

    Step 2: Components ........................................................................................................

    File Downloads ...........................................................................................................

    Step 3: Schematic .......................................................................................................... 1

    Step 4: Code .............................................................................................................. 1

    File Downloads ........................................................................................................... 1

    Step 5: Contact ............................................................................................................ 1

    Related Instructables ........................................................................................................ 1

    Advertisements ............................................................................................................... 1

    Comments ................................................................................................................ 1

    http://www.instructables.com/member/RoboPandaPDX/?utm_source=pdf&utm_campaign=titlehttp://www.instructables.com/tag/type-id/category-outside/http://www.instructables.com/tag/type-id/category-play/http://www.instructables.com/tag/type-id/category-food/http://www.instructables.com/tag/type-id/category-living/http://www.instructables.com/tag/type-id/category-workshop/http://www.instructables.com/tag/type-id/category-technology/
  • 7/25/2019 Fish Feeding Themselves

    2/13

    http://www.instructables.com/id/Fish-feeding-themselves/

    Author:RoboPandaPDX RoboPandaPDX

    I like to invent, create and problem solve. I joke alot and love sharing knowledge and good times with others. Connecting with people is really the best way live life.

    Intro: Fish feeding themselvesThe object of this invention is to train fish to feed themselves. I tend to be forgetful, and days tend to bleed into each other. So I forget to feed the fish or think I havealready done it. I needed a machine that could feed them on a regular schedule. So as I thought about timers and buttons and whatnot. I realized that it would be borito just have a machine dole out food on a regular basis. What if it was interactive. What if I created a machine to train fish to feed themselves. I wanted to let the fishprove their intelligence. I wanted the fish to have a goal, get excited and then succeed and feel a sense of accomplishment. LOL okay maybe i went a little to far on thone.

    Step 1:How it operatesWhen the the light is on the fish know that the feeder bar is active. The fish then hit the familair lure like feeder bar. the copper wire the bare is made of closes the circwith the metal bell housing. The Arduino sees that the switch is closed and tells the RGB led to turn off, then directs the servo to go to a pre-programmed position thatpush the feeder cap to deliver 1 unit of fish food. The Serial LCD screen beeps and audible sound and displays how many times the switch has been closed in the formhits. The Minutes and seconds are displayed on the screen to show how long the program has been running. The open logger stores the hit count and the minutes andseconds of the hit for data analysis later on. Once this is all done then the light is turned back on to let the fish know they can hit the feeder bar again.

    http://www.robopandapdx.com/http://member/RoboPandaPDX/http://member/RoboPandaPDX/
  • 7/25/2019 Fish Feeding Themselves

    3/13

    http://www.instructables.com/id/Fish-feeding-themselves/

    Step 2:ComponentsTo interact with the fish and make the feed themselves I will

    need:

    1. Feeder bar (home made)

    2. Microcontroller Arduino Uno

    3. ws2812 RGB Led

    4. Servo (strong enough to push the button on the feeder)

    5. Container of food (wallmart)

    6. Some random erector set pieces

    7. Wall wort to power everything 9-12v with 1A or more capability

    8. Data logger for easy data collection (SparkFun OpenLogger)

    9. Fish (gold)

    10. Micro SD card, i used a 4GB card just fine

    11. Serial LCD Screen (from radioshack)

    12. Time, lots of Time. LOL

    13. Adafruit_NeoPixel you can download it here at Github ( https://github.com/adafruit/Adafruit_NeoPixel)

    https://github.com/adafruit/Adafruit_NeoPixel
  • 7/25/2019 Fish Feeding Themselves

    4/13

    http://www.instructables.com/id/Fish-feeding-themselves/

    Image Notes1. The stand is just for the dry dok build. the device is taped to the fish tank andthe base is removed when fully installed.

  • 7/25/2019 Fish Feeding Themselves

    5/13

    http://www.instructables.com/id/Fish-feeding-themselves/

    Image Notes1. sorry for the wire nest

  • 7/25/2019 Fish Feeding Themselves

    6/13

    http://www.instructables.com/id/Fish-feeding-themselves/

  • 7/25/2019 Fish Feeding Themselves

    7/13

    http://www.instructables.com/id/Fish-feeding-themselves/

    Image Notes1. fully installed and running

  • 7/25/2019 Fish Feeding Themselves

    8/13

    http://www.instructables.com/id/Fish-feeding-themselves/

    Image Notes

  • 7/25/2019 Fish Feeding Themselves

    9/13

    http://www.instructables.com/id/Fish-feeding-themselves/

    1. WS2812 RGD addressable. I used the neo_pixel library from adafruit

    Image Notes1. i used a green color due to its supposed to be the least useful color spectrumin growing plants. also green for go just felt right. :)

    Image Notes1. I used 4 different types of goldfish. Surprisingly the normal regular oldgoldfish. figured it out first.

    File Downloads

    Adafruit_NeoPixel.cpp(39 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Adafruit_NeoPixel.cpp']

    Adafruit_NeoPixel.h(2 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Adafruit_NeoPixel.h']

    COPYING(39 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'COPYING']

    buttoncycler.ino(4 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'buttoncycler.ino']

    simple.ino(1 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'simple.ino']

    strandtest.ino(3 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'strandtest.ino']

    keywords.txt(652 bytes)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'keywords.txt']

    http://www.instructables.com/files/orig/F1Q/YOBQ/I7KBE15K/F1QYOBQI7KBE15K.properties?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FTE/V86Q/I7KBE14L/FTEV86QI7KBE14L.txt?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FTE/V86Q/I7KBE14L/FTEV86QI7KBE14L.txt?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FTE/V86Q/I7KBE14L/FTEV86QI7KBE14L.txt?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FTE/V86Q/I7KBE14L/FTEV86QI7KBE14L.txt?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FCH/9OE6/I7KBE14D/FCH9OE6I7KBE14D.ino?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FCH/9OE6/I7KBE14D/FCH9OE6I7KBE14D.ino?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FCH/9OE6/I7KBE14D/FCH9OE6I7KBE14D.ino?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FCH/9OE6/I7KBE14D/FCH9OE6I7KBE14D.ino?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/F4K/OEBP/I7KBE14C/F4KOEBPI7KBE14C.ino?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/F4K/OEBP/I7KBE14C/F4KOEBPI7KBE14C.ino?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/F4K/OEBP/I7KBE14C/F4KOEBPI7KBE14C.ino?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/F4K/OEBP/I7KBE14C/F4KOEBPI7KBE14C.ino?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FEE/W61R/I7KBE14B/FEEW61RI7KBE14B.ino?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FEE/W61R/I7KBE14B/FEEW61RI7KBE14B.ino?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FEE/W61R/I7KBE14B/FEEW61RI7KBE14B.ino?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FEE/W61R/I7KBE14B/FEEW61RI7KBE14B.ino?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FGG/BNGB/I7KBE12M/FGGBNGBI7KBE12M.null?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FGG/BNGB/I7KBE12M/FGGBNGBI7KBE12M.null?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FGG/BNGB/I7KBE12M/FGGBNGBI7KBE12M.null?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FGG/BNGB/I7KBE12M/FGGBNGBI7KBE12M.null?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FWV/FE30/I7KBE114/FWVFE30I7KBE114.h?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FWV/FE30/I7KBE114/FWVFE30I7KBE114.h?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FWV/FE30/I7KBE114/FWVFE30I7KBE114.h?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FWV/FE30/I7KBE114/FWVFE30I7KBE114.h?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FQS/5MWB/I7KBE113/FQS5MWBI7KBE113.cpp?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FQS/5MWB/I7KBE113/FQS5MWBI7KBE113.cpp?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FQS/5MWB/I7KBE113/FQS5MWBI7KBE113.cpp?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FQS/5MWB/I7KBE113/FQS5MWBI7KBE113.cpp?utm_source=pdf&utm_campaign=files
  • 7/25/2019 Fish Feeding Themselves

    10/13

    http://www.instructables.com/id/Fish-feeding-themselves/

    library.properties(337 bytes)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'library.properties']

    README.md(787 bytes)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'README.md']

    Step 3:SchematicI just did not have the time to draw this out on fritz, so i went old school. I also added the prices i paid for each item. just to give you an idea of the cost of the project.

    Key/Legend

    Signal Lines:The green lines are all signal wires that hook up to the digital pins. I did not use any analog pins in this build.

    Positive Lines:The red lines are the 5v and 3.3v lines. The Openlog calls for 3.3v so i used the Arduino 3.3 pin to supply the power. The WS2812 calls for 5v, but carun on 3.3v however by doing that I am pushing more ampage through the WS2812. Since I am only using one rgb light at half power, it is fine. If I were to use more th1 light i would recommend using the 5v line. I will change this on the next Rev. you always want to stick to the power requirements of the hardware as suggested by thmanufacturer.

    The Switch:okay so the switch that i used in the diagram, is all over the internet. It is the basic pricipal of an open and closed circuit. At the time of this writing, exactlmonths after the build was completed. I cant for the l ife of figure out why i attached it to the reset pin. LOL. but it all works so that's good enough for prototyping right nI would encourage you to just look into this and make your own switch because i don't think i drew it clearly. I took lots of pics though. have fun! :)

    Servo:the servo is working off the power from the Arduino. so it is not that powerful. I used some 3 in 1 oil to make the button slide easier. the next gen it will have itsown power supply of 6 volts and all the amps it can handle.

    Arduino Uno:the Uno I am using has the MC chip that i can program, and then remove to install in a project permanently. When i finally get done with the science sidof this project. The feeder will be programmed to come on every few hours for 5 minutes to let the fish hit the feeder bar as many times as they can.

    SparkFun Open Log:Is absolutely amazing. What a great logger! so easy to use. no fuss no muss. right out of the box it starts logging to a txt file that it creates on th

    sd card. It is programmable in all sorts of ways to better help with data collection. As I become more familiar with the logger i am sure i will be able to streamline my coto get the data i want in the format i need. without any intervention from me in the post processing stages.

    Bell housing:the reason i used a fishing lure type of device was from a story I once heard. I had heard a story about fish hatchery fish. The small fish in the big openpools have a little lure type of device that when they hit it in the water it drops down pellets. This teaches the fish to hit lures when they are released into lakes andstreams. LOL. kind of funny to hear that the fishing game is rigged, or maybe its just a story. Either way, i decided to take this approach. It was extremely successful!

    Okay i think that covers all the issues and thoughts i had while going through the hardware portion of the build.

    http://www.instructables.com/files/orig/FLO/9J2G/I7KBE15N/FLO9J2GI7KBE15N.md?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FLO/9J2G/I7KBE15N/FLO9J2GI7KBE15N.md?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FLO/9J2G/I7KBE15N/FLO9J2GI7KBE15N.md?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FLO/9J2G/I7KBE15N/FLO9J2GI7KBE15N.md?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/F1Q/YOBQ/I7KBE15K/F1QYOBQI7KBE15K.properties?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/F1Q/YOBQ/I7KBE15K/F1QYOBQI7KBE15K.properties?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/F1Q/YOBQ/I7KBE15K/F1QYOBQI7KBE15K.properties?utm_source=pdf&utm_campaign=files
  • 7/25/2019 Fish Feeding Themselves

    11/13

    http://www.instructables.com/id/Fish-feeding-themselves/

    Step 4:Code

    File Downloads

    fish_tank_feeder.ino(5 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'fish_tank_feeder.ino']

    http://www.instructables.com/files/orig/FVE/MK5Q/I7KBDORH/FVEMK5QI7KBDORH.ino?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FVE/MK5Q/I7KBDORH/FVEMK5QI7KBDORH.ino?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FVE/MK5Q/I7KBDORH/FVEMK5QI7KBDORH.ino?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FVE/MK5Q/I7KBDORH/FVEMK5QI7KBDORH.ino?utm_source=pdf&utm_campaign=files
  • 7/25/2019 Fish Feeding Themselves

    12/13

    http://www.instructables.com/id/Fish-feeding-themselves/

    Step 5:ContactFind me on:

    Robopandapdx.com

    facebook:Robopandapdx

    twitter: @RoboPandaPDX

    youtube: Robopandapdx

    https://www.youtube.com/channel/UCkA0zZJAopUZBNX56...

    email: [email protected]

    Upgrades coming soon:

    Error detection in case the food does not drop.

    Real time clock

    better data collection

    seperate power source for servo

    Related Instructables

    Indoor

    Thermometerwith both LCDand "Analog"Readout with

    NeoPixelsby

    NextFab

    CNC NeoPixel

    Jewelrybymarkk7

    Carved pumpkin

    with NeoPixeleyesby

    techiebot

    Infinity Mirror

    Tableby LouVTR

    Smart

    Thermometerby

    Aidan25

    Pokeball

    Speakersbymkarvonen

    http://www.instructables.com/member/mkarvonen/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Pokeball-Speakers/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Pokeball-Speakers/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Pokeball-Speakers/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/Aidan25/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Smart-Thermometer/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Smart-Thermometer/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Smart-Thermometer/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/Lou%20VTR/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/Lou%20VTR/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Infinity-Mirror-Table/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Infinity-Mirror-Table/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Infinity-Mirror-Table/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/techiebot/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Carved-pumpkin-with-NeoPixel-eyes/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Carved-pumpkin-with-NeoPixel-eyes/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Carved-pumpkin-with-NeoPixel-eyes/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Carved-pumpkin-with-NeoPixel-eyes/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/markk7/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/CNC-NeoPixel-Jewelry/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/CNC-NeoPixel-Jewelry/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/CNC-NeoPixel-Jewelry/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/NextFab/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Indoor-Thermometer-with-both-LCD-and-Analog-Readou/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Indoor-Thermometer-with-both-LCD-and-Analog-Readou/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Indoor-Thermometer-with-both-LCD-and-Analog-Readou/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Indoor-Thermometer-with-both-LCD-and-Analog-Readou/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Indoor-Thermometer-with-both-LCD-and-Analog-Readou/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Indoor-Thermometer-with-both-LCD-and-Analog-Readou/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Indoor-Thermometer-with-both-LCD-and-Analog-Readou/?utm_source=pdf&utm_campaign=relatedhttps://www.youtube.com/channel/UCkA0zZJAopUZBNX56qh-cRQ
  • 7/25/2019 Fish Feeding Themselves

    13/13

    vertisemets

    Comments