Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for day/night sound functionality. #42

Closed
arcticrobot opened this issue Nov 2, 2017 · 8 comments
Closed

Request for day/night sound functionality. #42

arcticrobot opened this issue Nov 2, 2017 · 8 comments

Comments

@arcticrobot
Copy link

Animal enrichment is very important and most tropical animals natural habitats are saturated with sounds. Sounds make animals in terrariums more active and inquisitive.

I would like to request the following functionality:

  1. Time of day. Should be adjustable by user preferences. For example: predawn 4-6, dawn 6-9, day 9-18, evening 18-22, night 22-4. Time of day and time frames should be flexible for better tuning.
  2. Sound files of natural animal habitat should be uploaded to Raspberry Pi, playlists created for each part of day and played randomly and indefinitely(until the time frame is up)
  3. Volume adjustment in % (lower for evening/night, louder for day)

I currently have this functionality achieved with Android phone and Tasker app. Sound files are stored in appropriate directories and Tasker plays them according to automation tasks set in app. Please let me know and thank you for your software.

@arcticrobot
Copy link
Author

  1. Run the audio through 3.5mm jack.

@theyosh
Copy link
Owner

theyosh commented Nov 2, 2017

Is it possible to upload some example audio files? Not sure what the file limits are for uploading on Github

@theyosh
Copy link
Owner

theyosh commented Nov 7, 2017

I made a new branch with an audio player with all the above options. Are you able to test this?
Also I added a web based audio player to control the volume of the current audio

@theyosh
Copy link
Owner

theyosh commented Nov 10, 2017

Major setback: http://www.raspberry-projects.com/pi/programming-in-c/pwm/using-the-pwm-pin

It cost my days to figure out why my audio did had problems. Turns out that audio and dimming hardware does not work together on a Pi :(

@theyosh
Copy link
Owner

theyosh commented Nov 12, 2017

Ok, the latest version in the feature/modules_audio branch does fully work now. It is possible to use USB soundcards instead of internal audio card.
So we can combine PWM dimmers and audio all together now.

theyosh added a commit that referenced this issue Nov 14, 2017
@arcticrobot
Copy link
Author

arcticrobot commented Nov 14, 2017 via email

@theyosh
Copy link
Owner

theyosh commented Nov 14, 2017

Actually it can! You need an usb soundcard. That's all.

@arcticrobot
Copy link
Author

arcticrobot commented Nov 15, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants