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

  • Stop wasting time looking for files and revisions! Dokkio, a new product from the PBworks team, integrates and organizes your Drive, Dropbox, Box, Slack and Gmail files. Sign up for free.

View
 

Environmental Study

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

Picture:

 

 

Unabridged Video:

 

Code:

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))

                        ratchetCounter--;

 

                    if (ratchetCounter == ratchetMin)

                        time = NIGHT;

 

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

                        ratchetCounter++;

 

                    if (ratchetCounter == ratchetMax)

                        time = DAY;

 

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

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

 

         prevTime = time;

 

Ingredients:

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:

Shovel

 

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.