cine

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Sunday, 9 December 2012

Electronics - Aquaponics - Aquaponics manager

Posted on 21:33 by Unknown
I'm trying again.

I'm making a digital demand feeder, and I have a few other ideas I'd like to try as well.

I'm using a PICAXE 20M2 chip, And I've managed to get as far as this...

Clicking on the image should make it larger.

If anyone is willing, can you please check my layout to make sure I limit how many chips I toast before I actually start toasting them.

This is the serial data connection from the stereo plug to the chip.

The overlay is what it should look like, the rest is my interpretation.



For people that don't know this stuff, the serial data connection is the bit that makes it possible for me to send information from my computer to the chip.

I write code  (computer programming stuff) on my computer on some software provided free by the PICAXE company. When I'm happy with my code I send it to the computer chip (the grey thing that's centre right with all the legs) via a cable that has a USB plug on one end, and a stereo headphone jack on the other. The headphone jack plugs into my project, and the USB end plugs into my computer.

Once you connect the power supply, the chip starts running it's program, and that program typically loops around forever, waiting for external inputs from things like switches, variations in connected voltages, or fish bumping levers.

When the chip detects inputs, it can react according to the code you have written, and produce outputs. (like when your computer displays a box with buttons marked "OK" and "Cancel" , That box is an output, if you click one of the buttons, that becomes an input.

So the code might look something like this...




read this line over and over, unless the fish pushes the lever,  then run the rest of the code

       power up the feeder motor for 3 seconds

       count to a few billion to wait a while so the fish dont get too much feed

go back to the first line



That's roughly what code looks like, but unfortunately computers don't understand English very well, so you have to use very structured language, and code words to make it all work. I wont go into that here.

Here's another bit that connects the lever that the fish will push when they want food...

This time the overlay shows the circuit diagram of a switch and it's connection to the chip.

I'll use a momentary contact switch that is only on when there is pressure on the switch, and reverts to it's natural state - off, when there is no pressure on the switch.

I'll attach a lever that extends down into the fish tank so the fish can press it.




When the fish press the lever they send an input to the chip that sets the code in motion. The code does some calculations and checks to make sure the fish aren't being too greedy, and if all is well, the chip turns the motor on for a few seconds.

The motor section looks like this (I think)...

One form of the chips input and output abilities, is to set the pins "high" or "low". That being high voltage (up to 5 volts) and low voltage down to not very much.

The chip can also receive high and low voltages as inputs.

So we design the circuit so that flipping the switch changes the input from either high to low, or low to high, and then write code that uses the different state to start some other bit of code. The other bit of code might change a different pin from low to high, and trigger the motor.


That code might look something like this...



keep looping this line until the pin the switch is connected to changes from low to high, then...

       check that the fish haven't had too many feeds so far today      

        if they have had too many feeds go back to the first line, otherwise keep going to the next line

       set the pin to which the motor is connected to high, to send power to the motor.

       add one to the number of feeds so far today

Go back to the start




The computer you are sitting at is essentially just a really, really, really complicated version of that.

The chip I'm using works faster than my first desktop computer, and only costs a few dollars.



Please give some feedback on the design if you are familiar with this electronics caper, as I'm still a bit vague on all this stuff. My greatest problems are around interpreting a circuit diagram onto the breadboard with special regard to shared nodes, where say in that last picture all three components meet at that one point. When I place components on the board, they rarely fall in the same layout due to space restrictions etc. Even the fact that the strip board often creates the need for zig zags rather than straight lines. ie three components in a straight line might need to be stepped with each component and wire on a different horizontal line. This can really mess with my head at times. Another problem I have is with missing track cuts that cause shorts.

I also have many other problems with stuff.

I'm not sure I believe in electricity.


So please help me through this part if you can.  There's a comments section under this post, or you can get involved here at Backyard Aquaponics. The project is all open source, and the details of the code, the electronics, and the PVC construction will all be freely available on this blog and at that link.




120 Things in 20 years re-bites off more than it can chew with  an electronic, aquaponics manager.






Email ThisBlogThis!Share to XShare to Facebook
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Thinking - TV police chases
    It's bound to happen sooner or later that a villain being pursued on foot will slowly gain distance on the police officer in pursuit and...
  • Bread - Knot roll
    I made this, and quite like the look of it. It's a small, knot, slightly sweet(ish) dinner roll. It's my first knot roll. 120 Things...
  • Aquaponics - External Tomato growing in fishtank
    I've been away for a few days. It was nice. One of the best things about aquaponics, is the fact that it takes care of itself. I came ho...
  • Bread - "Lame" or bread slashing thing
    A "lame" ( pronounced in the first part of this ), or "bread slashing thing" is a razor blade on a stick. It's reall...
  • Aquaponics - Carrot haul
    I pulled up the last of my aquaponics carrot patch and was pleasantly surprised by the result. I suspect I could have planted them a lot clo...
  • Thinking - Latin
    Why is it, that anyone using... Latin... speak... gains a stack of extra argument points in any discussion about nature, but gains nothing i...
  • Solar photovoltaic panels - My first little solar panel and a tiny motor
    I received the 6 in 1 solar toy that I bought a few days ago. And this is the bit I really wanted to play with. It's a tiny electric mot...
  • PVC - PVC as a thermoplastic
    It turns out, PVC isn't just my favourite product to work with, it's also a thermoplastic. Who knew? I should have remembered the th...
  • Photography - Time lapse camera
    Someone nice gave me a new camera today. Thanks someone nice. It does time lapse photography. You set it to take a shot every 30 seconds or ...
  • Photography - Camera hacking
    I've bought a new camera! But more importantly for right now, my old camera didn't focus any more, so I thought I might pull it to b...

Categories

  • aeration
  • air lift
  • air pump
  • air stone
  • AK-47
  • alf alfa
  • algae
  • Amegilla cingulata
  • ammonia
  • Animation
  • ant
  • Aquaponics
  • Artificial pollination
  • Auqaponics
  • Australian native bees
  • automatic fish feeder
  • Automatic solids removal
  • baby carrots
  • baby spinach
  • bacon
  • bait
  • ball bearings
  • balloon
  • balloon power piston
  • barramundi
  • bay leaves
  • BBQ
  • beans
  • bee
  • bell siphon
  • blow dart
  • blow gun
  • Blue banded bee
  • Bread
  • breadboard
  • brining
  • Briquette
  • Build
  • burner
  • buzz pollination
  • cam
  • camera
  • camp stove
  • cannon
  • canon
  • Canon 20D
  • Canon Powershot
  • cantaloupe
  • cap
  • capsicum
  • carrots
  • caterpillar
  • celery
  • CHDK
  • cherry tomatoes
  • chicken
  • chicken breast
  • Chicken Burger - no onion
  • Circuit schematic
  • Clay balls
  • Cold smoker
  • communication
  • computer
  • constant flood
  • constant flood growbeds
  • cooling
  • Coorong
  • copper
  • Cordage
  • Cos lettuce
  • Cowrie
  • coz lettuce
  • crack
  • Crank shaft
  • cucumber
  • curved space
  • customs
  • dark matter
  • dart
  • dart gun
  • Dead man's switch
  • deep water culture
  • deer scarer
  • Delicious
  • demand feeder
  • demand fish feeder
  • depth of field
  • dinner rolls
  • diorama
  • Direct composter
  • disease
  • Displacer
  • dissolved oxygen
  • DIY
  • DO
  • dolphins
  • dough
  • drama
  • drip control
  • driving
  • duckweed
  • economy
  • education
  • Eh?
  • electricity
  • electronics
  • Engine
  • Entomology
  • environmental
  • Epic adventurer
  • Ethanol
  • Ethanol potato cooker
  • expanded media
  • experiment
  • FAIL
  • failsafe
  • Feast
  • filtration
  • Fire
  • Fire starters
  • fish
  • fish death
  • fish feed
  • fish feeder
  • fish feeding
  • fish food
  • fish stocking
  • fish stocking density
  • fish tank
  • fish tank window
  • fishing
  • fishing float
  • flow control
  • fly fishing
  • focus stacking
  • fog
  • Fraudster
  • Frenched Luxury Cut Ribs
  • futurism
  • gecko
  • gods
  • gold standard
  • gold stars
  • google
  • gravity
  • Green tomato chutney
  • grow bed
  • grow beds
  • grow house
  • growbed
  • growth rate
  • hack
  • haloumi
  • hand pollination
  • Handmade fishing lures
  • harvest
  • heat
  • heat stress
  • Helioponics
  • Heliostat
  • hickory
  • history
  • Hollywood
  • home made cheese
  • Home made preserves
  • hot smoker
  • House fly
  • hydroton
  • I hate feeling sick
  • IBC
  • idea
  • image stabilizing
  • inlet
  • Internal combustion engine
  • invention
  • inverter
  • iPhone
  • Iraq
  • jalapeƱos
  • kids
  • Kill switch
  • knife
  • knot roll
  • ladybug
  • Lame
  • Lathes
  • Latin
  • lens
  • lettuce
  • lever
  • light
  • linear
  • loop siphon
  • low energy systems
  • Luc Cut Ribs
  • Lux Cut
  • Luxury Cut
  • Luxury Cut Ribs
  • macro
  • maggot farm
  • maggots
  • magnet
  • Making smoked foods
  • Medang
  • media
  • media screen
  • media washing
  • methanol
  • mineral deficiencies
  • mini-growhouse
  • mirror
  • MIT
  • Mold making
  • mortality
  • moth
  • motor
  • mould
  • Movie watcher and critic
  • multimeter
  • Mum
  • Murray river
  • Musca domestica
  • Muzak
  • natural fibre string
  • Nebuliser
  • New grow bed
  • New system
  • NFT
  • Nice
  • nitrites
  • Nobel prize
  • NTF
  • nubuliser
  • nutrient
  • nutrition
  • open source
  • outlet
  • over unity
  • overflow
  • Overflow pipes
  • Palm fibre twine
  • Papua New Guinea
  • perpetual motion
  • personal audio themes
  • Pest control
  • photo stacking
  • Photography
  • Photography tip
  • Photography. macro
  • PICAXE
  • Plagiarist
  • plan
  • planting density
  • pollination
  • poly pipe
  • population
  • potato
  • power head
  • power piston
  • power supply
  • powerhead
  • prediction
  • Projectiles
  • prototyping plastic
  • pump
  • PVC
  • radial flow filter
  • Radish
  • recipe
  • repair
  • resistors
  • ribs
  • robots
  • rock melon
  • rocket
  • roots
  • rope
  • Sanyo Xacti
  • science
  • scoria
  • scoring
  • seed raising
  • seedlings
  • seeds
  • sheath
  • shell grit
  • shell grit seed raising trial
  • silver perch
  • silverbeet
  • silvers
  • slashing
  • SLO
  • Slow motion
  • slugs
  • Smoke
  • Smoke cured food
  • snot
  • software
  • solar
  • solar energy
  • Solar hot water
  • Solar photovoltaic panels
  • solar powered boat
  • Solar voltaics
  • Soldering iron
  • solids lifting overflow
  • solids removal
  • Sour Dough
  • Species
  • spinach
  • spirit stove
  • spouter
  • sprouts
  • Star Trek
  • starbuck
  • starbucks
  • Stirling Engines
  • Stockholm Syndrome
  • stove
  • strawberries
  • strawberry
  • strawberry runners
  • strawberry towers
  • string
  • success
  • sun dried tomatoes
  • surgery
  • Sweet Remano Peppers
  • Sweet Romano peppers (capsicum)
  • swirl filter
  • switch
  • system expansion
  • test
  • The invention engine
  • The Solar Toyosphere
  • the universe
  • Thermal mass
  • thermoplastic
  • think twice act once
  • Thinking
  • Thinking. electronics
  • time lapse
  • time travel
  • Tin can
  • Tin can smoker
  • tiny electric motor
  • tip
  • tomato
  • tomatoes
  • trout
  • trout fry
  • Turbine engine
  • UHF
  • UV stable
  • venturi
  • Vermiculture
  • video
  • wasp
  • water temperature
  • wild rocket
  • winch
  • wood smoke
  • words
  • worm farm
  • worms
  • Yarrawonga Weir
  • yeast
  • zero head

Blog Archive

  • ►  2014 (27)
    • ►  July (2)
    • ►  June (1)
    • ►  May (1)
    • ►  April (7)
    • ►  March (9)
    • ►  February (6)
    • ►  January (1)
  • ►  2013 (88)
    • ►  November (2)
    • ►  October (5)
    • ►  September (5)
    • ►  August (2)
    • ►  July (7)
    • ►  June (12)
    • ►  May (9)
    • ►  April (10)
    • ►  March (12)
    • ►  February (9)
    • ►  January (15)
  • ▼  2012 (167)
    • ▼  December (11)
      • Photography - My first time lapse
      • Thinking - Three
      • Electronics - Reasonable success milestone
      • Thinking - End of the world
      • Electronics - Aquaponics - Motor woes
      • Electronics - Aquaponics - Demand feeder 2 breadboard
      • Electronics - Aquaponics - Demand feeder version 2...
      • Thinking - Electronics - Education
      • Electronics - Aquaponics - Aquaponics manager
      • Photography - Time lapse camera
      • The beer traps killed quite a few slugs, but it's ...
    • ►  November (8)
    • ►  October (20)
    • ►  September (9)
    • ►  August (10)
    • ►  July (9)
    • ►  June (11)
    • ►  May (20)
    • ►  April (14)
    • ►  March (15)
    • ►  February (19)
    • ►  January (21)
  • ►  2011 (18)
    • ►  December (18)
Powered by Blogger.

About Me

Unknown
View my complete profile