Skip to content

Request for day/night sound functionality.  #42

Closed

Description

@arcticrobot

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.

Activity

  1. arcticrobot commented on Nov 2, 2017

    @arcticrobot
    Author
    1. Run the audio through 3.5mm jack.
  2. theyosh commented on Nov 2, 2017

    @theyosh
    Owner

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

  3. theyosh commented on Nov 7, 2017

    @theyosh
    Owner

    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

  4. theyosh commented on Nov 10, 2017

    @theyosh
    Owner

    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 :(

  5. theyosh commented on Nov 12, 2017

    @theyosh
    Owner

    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.

  6. added a commit that references this issue on Nov 14, 2017
    75769a0
  7. arcticrobot commented on Nov 14, 2017

    @arcticrobot
    Author
  8. theyosh commented on Nov 14, 2017

    @theyosh
    Owner

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

  9. arcticrobot commented on Nov 15, 2017

    @arcticrobot
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions