• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Whenever you search in PBworks or on the Web, Dokkio Sidebar (from the makers of PBworks) will run the same search in your Drive, Dropbox, OneDrive, Gmail, Slack, and browsed web pages. Now you can find what you're looking for wherever it lives. Try Dokkio Sidebar for free.


Environmental Study

Page history last edited by mike 10 years, 7 months ago




Unabridged Video:



The meat of the Android code is these two lines:


         if ((time == DAY) && (prevTime == NIGHT))

             new Sound(mContext).play("/sdcard/rooster.mp3");


And then here's the digital ratchet filter used to cleanup the unfiltered light sensor output:


                    if ( (sensorVal < 50) && (ratchetCounter > ratchetMin))



                    if (ratchetCounter == ratchetMin)

                        time = NIGHT;


                    if ((sensorVal > 400) && (ratchetCounter < ratchetMax))



                    if (ratchetCounter == ratchetMax)

                        time = DAY;


                    if ((time == DAY) && (prevTime == NIGHT))

                        new Sound(mContext).play("/sdcard/rooster.mp3");


         prevTime = time;



2x Arduino

1x AT&T Cell Modem

1x Wireless Router

1x BeagleBoard with Android Ambrosia

1x BeagleTouch

1x AMBI Light Sensor

1x Humidity & Temperature Sensor

1x Pelican Case

2x Deep Cycle Marine Batteries

2x 12V Solar Panels


Recommended tools:



Recommended Helpers:

Chris Ladden

Matt Mehling

Justin Huynh

Mike Gionfriddo

Rith Ong


Wiring Diagram:

Coming soon


Block Diagram:

Coming soon


More Pictures:

Coming Soon

Comments (0)

You don't have permission to comment on this page.