GithubHelp home page GithubHelp logo

Comments (37)

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Ah welcome back! Thank you. You could not have come at a more useful time. I just received my Raspberry Pi Zero W in the mail.. I only have a little less than two weeks left to get this thing working and I'm beginning to worry.
Is there a certain version of Raspbian software that you install? I am trying to install the software, but Im having issues with my W showing the display..it continues to blink over and over but doesn't work, even though it works on my RBP 4.
I'm in the middle of the process right now of trying to do a headless version...but... Putty.exe doesnt seem to be able to find my device. I also installed Bonjour Printing as well to help with this.

Any help that you can offer to help me get this going would be much appreciated.

Thank you Mike!

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Okay, update - I am have the pi zero w installed with the latest version of the OS. Im going to go through the tutorial again and see what happens. I will keep you posted on my progress.

In theory... the SD card from my 4 should be able to work on the zero no problem, right? It's all the same operating system and settings?

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Okay I have an update for you. When I switched the SD cards out to the one that i had setup on my RBP 4; it actually booted on startup! I couldnt get it to do this on the RBP4.

I am now running it on a monitor; the small lcd screen I was using seemed to no longer work. I went through the entire installation on a new card all over again for my Pi Zero. Unfortunately, It seems that I am having the exact issues as I had before on the RBP 4. The servo seems unresponsive... a couple things ran through my mind:

  1. Since I am using only a mic for input and a speaker for audio output, do I need to have a trigger/LED setup?

  2. How exactly do you run the control panel? Perhaps I am not doing it correctly. In the manual it says "run control panel". I tried a few things, but this issue may be user error as I was blindly going at it lol.

  3. Aside from the USB sound card (with speaker and mic), power, keyboard and mouse.... the only thing I have hooked up is the servo to its respective pin layouts. 5v+ and ground; pin 18 for the data wire.

Have you got the zero up running headless? I usually make the IP assignment permanent on my router, so that I always know what IP address my various PI's have. Right now, I'm troubleshooting using a Pi 4 (because there's additional functionality I'm working on that won't all run on a Zero W). I'm running Raspbian 10 (buster). I believe I've been running the same version on the Pi Zero W. Concerning autostart, it looks like I had a typo in the manual and that it also appears that the proper place to put it has changed to /etc/systemd/system rather than /lib/systemd/system. (I had dropped the "d" in the manual, my apologies). Otherwise it's the same, and see https://www.raspberrypi.org/documentation/linux/usage/systemd.md for more info. With this, I'll await further feedback and/or questions from you.

On Sun, Jul 25, 2021, 1:13 PM AndrewDanko @.***> wrote: Ah welcome back! Thank you. You could not have come at a more useful time. I just received my Raspberry Pi Zero W in the mail.. I only have a little less than two weeks left to get this thing working and I'm beginning to worry. Is there a certain version of Raspbian software that you install? I am trying to install the software, but Im having issues with my W showing the display..it continues to blink over and over but doesn't work, even though it works on my RBP 4. I'm in the middle of the process right now of trying to do a headless version...but... Putty.exe doesnt seem to be able to find my device. I also installed Bonjour Printing as well to help with this. Any help that you can offer to help me get this going would be much appreciated. Thank you Mike! — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#6 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHXZ3UH4XQUA4FBPS546G3TZRA33ANCNFSM5ARUJIYQ .

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Also.... when it said "install chatter pi files" into the directory...all I did was create a new folder that says "chatterpi"
then drag and dropped the ambient and vocals folders, audio.py, bandpassFilter.py, config.ini, config.py, controlPanel.py, main.py, maxVol.py, and tracks.py

Also, just trying to troubleshoot.... I changed the permissions to be executed from "Nobody" to "Anyone"

Is there something Im missing?

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Okay great. I will try that now... Also it seemed that I wasnt running the controlPanel.py correctly (I am brand new to pi/programming but thankfully your guide is well written)

When I DID try to run the code; I got this error:
pi@raspberrypi:~/chatterpi $ python3 controlPanel.py
Traceback (most recent call last):
File "controlPanel.py", line 140, in
configuration = ConfigManager(window)
File "controlPanel.py", line 19, in init
shutil.copy2(configpath, oldpath)
File "/usr/lib/python3.7/shutil.py", line 263, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.7/shutil.py", line 121, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'oldconfig.ini'
pi@raspberrypi ~/chatterpi $

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Okay I made all of the recommended changes:

  1. all file permissions and chatterpi folder are set to be executed by "anyone".

  2. I added the "()" parenthesies on line 37 in the config.py

  3. I changed the prop_trigger = "START"; also delayed the prop to = "1" and for the eyes, and trigger out I set to "OFF"

....Although nothing has changed, it does feel like I am getting closer... I will upload the string of prompts I get when I try to run the main.py

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Prompts when I run ChatterPi:

pi@raspberrypi:~/chatterpi $ python3 main.py
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.front.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=6,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0}
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm.c:8424:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8424:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8424:(snd_pcm_recover) underrun occurred

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

If we can get this working, I will buy you a damn cake haha.

I dont have any motion from the servo at all. The ambient noise will play sometimes. I have a self powered speaker that my pi is connected to...but i actually don't need thsi because I bought a nice little voice changer that will take care of all the sound..If i can get the servo to move while speaking, that will be a massive win.

okay I will change the config.ini and keep you updated. By the way... .when I added the "()" in the config.py... i did it without quotation marks...and indented first with the "TAB" key, was this correct?

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Good news, after editing the () I was able to type in the command to get the control panel, and I was able to pul lit up. Now I notice that when I run chatterpi...the ambient audio doesn't start immediately...not sure if this is progress, or not? lol

What should the Prop delay be set to? 0 or 1?

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Okay, i am also going to recharge on some dinner haha. Thank you so much for being patient and guiding me through this.
I am going to reinstall the original files from the Master.zip again incase I messed with anything...when I start chatter pi now...the ambient audio doesnt play anymore even when it is set to "on"

I had added the () in the config.py on line 37, and not the control.
I'm going to make sure that after I replace the files to the original, that I make the correct changes in the right folders just incase i got something mixed up.

Quick reminder for myself

  • edit the () in CONTROL.py

  • set the buffer size to 4096 in CONFIG.py
  • Also change prop_trigger= START
  • Source = MICROPHONE
  • Check Permissions in chatterpi to "ANYONE" if unsuccessful

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Okay update... I didnt replace the files yet, but I realized my "Source =" was still set to FILES
I ran it aain and now the light on the soundcard seems to blink, and there is a light feedback noise moving in synch with the red soundcard light. This...may be a good sign? Sounds like a really quiet steam train picking up speed.

Okay I am going to actuall ywalk away this time and eat dinner haha

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Good Morning,

So after a fresh start I overwrote all of the chatterpi files and made all of the necessary corrections as seen above...unfortunately...no dice :(

I realized the ambient sound isn't playing because I went from PIR to START which is good. Ive reset it up several times over. I checked my servo to make sure it works. My mic works on other devices... I'm completely at a loss here.

Some observations:
*After replacing all of the original files and changing the settings to match your suggestions, the 'train' noise has stopped.

*I hear no audio come out of the speaker when I talk through the mic. However I can hear the speaker 'click' when I plug in the aux cord that is connected to the sound card

*The servo moves for a second when I first connect it to the pi, or when I turn the pi on...so it's getting juice.

*I have tried styles 0-2, nothing seems change

Here are the prompts that I get when I try to run chatterpi after making those necessary changes. Good thign is that it does create the "oldconfig" folder, and the pychache


pi@raspberrypi~/chatterpi $ python3 main.py
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.front.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=6,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0}
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
pi@raspberrypi:~/chatterpi $

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Okay, you are a lifesaver. I have been searching all over google because I suspected the issue was coming from the mic...I saw some had similar issues on a forum from years ago such as this one:
https://www.raspberrypi.org/forums/viewtopic.php?p=314611#p314611
Tried looking for directions to test the mic on google, but none have been as simple and easy to explain as yours....so THANK YOU for being so kind and patient. Even though I am trouble shooting this and overcoming a learning curve; it has been enjoyable. You may have opened up a new hobby for me!

I tested the mic and it definitely seems to be an issue with the input. What I found:

*The light stays lit, but does not blink.

*When I hit record and played it back, it didn't capture my voice. It sounded like it picked up on background ambience of my fan blowing? Or it could have just been that feedback sound when your speaker is trying to play something. Either way, no voice was captured.

*When I right click the speaker icon in the top right... it does list "USB Audio Device" for input, but it only shows it as listed. I later realized I should be seeing an adjustable slider for mic sensitivity, right?

This is the soundcard that I have purchased:
https://www.adafruit.com/product/1475
I noticed they said they have only tested it with "Raspbian Wheezy & Jessi." It mentioned a tutorial....but I couldn't find one online, and it didn't come with anything.


Incase you still wanted to look at the config here it is!
[SERVO]
servo_min = 1050
servo_max = 1250
min_angle = 90
max_angle = 0

[CONTROLLER]
style = 1
threshold = 2500
level1 = 1500
level2 = 2500
level3 = 3500
filtered_level1 = 1000
filtered_level2 = 2500
filtered_level3 = 4000

[AUDIO]
buffer_size = 4096
source = MICROPHONE
output_channels = BOTH
mic_time = 30
ambient = ON

[PROP]
prop_trigger = START
delay = 10
eyes = ON
trigger_out = ON

[PINS]
jaw_pin = 18
pir_pin = 23
eyes_pin = 25
trigger_out_pin = 16

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Quick Update; I followed this tutorial, https://pimylifeup.com/raspberrypi-microphone/ and turned turned the mic gain up to 100 using the alsamixer. The light blinks now as soon as it starts recording, but still no audio playback of what I am trying to record

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Hm yeah, I have tried both the gui and the alsamixer command. With alsamixer I did set my mic up to about mid way, and adjusted the capture to midway. Original setting was pretty low. I was hoping that would fix it, but unfortunately It didn't seem to do anything. The settings on the UI for input and output are both set to USB device. The output of the sound card seems to be working fine.. input seems to be not working...could this be a bad sound card? If not, they have a crazy definition for plug-and-play lol

When you right click the GUI on the pi...and select "device profiles" what does yours say? Mine is "Analog Stereo Output + Analog Mono Input"

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

I tried two mics so far. I'll try another and see what happens. Im installing audacity now. Good news is that Im familiar with audacity. Didnt know I can get it on pi, so that is pretty nice.

Also, test.wav is being created :). It's only mild white noise when I turn the volume all the way up.
pi@raspberrypi:~ $ lsusb -t
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 2: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 3: Dev 6, If 0, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 3: Dev 6, If 1, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 3: Dev 6, If 2, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 3: Dev 6, If 3, Class=Human Interface Device, Driver=usbhid, 12M
pi@raspberrypi:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@raspberrypi:~ $

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Installed Audacity and tried it out on all 3 mics, same outcome: just mild white noise

I won't touch anything without your go-ahead, but could this possibly help?...
https://learn.adafruit.com/usb-audio-cards-with-a-raspberry-pi/updating-alsa-config

By the way...does anything else need to be enabled other than "serial console" under the top left in the GUI menu... > Under Raspberry Pi Configuration > Interfaces Tab?

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Well.... I did just stumble onto this:
https://www.raspberrypi.org/blog/new-raspberry-pi-os-release-december-2020/

could Pulsa be the issue? The comments seem to have some useful info...but I didnt quite udnerstand it.

Can you tell me the exact Raspberry Pi OS version that you use for your Pi Zero W when you use Chatter Pi?

I'm going ot try and install whatever you have and see if that will fix it. Thank you for all of your help :)

I'm out of ideas, I'm afraid. If you can figure out your mic input problems I'm happy to help with any ChatterPi issues, but I don't know why you're having sound input issues.

On Mon, Jul 26, 2021, 3:20 PM AndrewDanko @.***> wrote: Installed Audacity and tried it out on all 3 mics, same outcome: just mild white noise — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#6 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHXZ3UQ7KA2VE2HQFTGTKLTZWYODANCNFSM5ARUJIYQ .

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

GUESS WHAT??!!!

I did a clean install of Buster, andddddd.... nothing... So I was about to call it quits..and I tried yet another mic.. and THEN... IT WORKED...

In my search I noticed that PulseAudio seems to be a headache...and even more stranger...every single issue I have seen on forums, comment sections, etc about the mic not working as a record function...is always from this year or the tail end of December 2020 when PulseAudio came to light. I'd hang onto that versio nif you have it running...seems like a lot of people were getting frustrated with this.

I am now working on getting ChatterPi all set back up.... the first test I just did...didn't seem to trigger the servo. My config.ini is the same that I sent you before. Im going to keep messing with it and see if I can get it going.

I'll keep you posted on what I find out...hopefully the perspective of a very determined noobie will help future people wanting to to set up your project.

Update

I have switched cards out to the recent version of the OS that I was using earlier...and this microphone/headset seems to be working as well. What is strange is that my other microphones * do* work...just not on pi. I looked at both audio jacks to compare my working one and non-working ones...and i did notice the working one has 2 "bands" around the aux jack versus 3 bands that my other mic jacks have.

Unfortunately... I still can't get chatter pi to work :(. I am starting to think this isn't a ChatterPi issue, but a Raspberry software issue or USB sound card issue.
I ordered a new sound card off Amazon, it should be here Wednesday. Hopefully this will solve the issue...otherwise Im running out of options. I was hoping to dedicate this pi zero to my project once I get it figured out. Fingers crossed that can still happen.

I had to dig out that Pi and check. It's running version 10 (buster), version 10.4 to be precise, with linux kernel 4.19. So from your note and this table, it seems to predate the move to Pulse. I've no idea if that could be a problem or not. I'm running 10.9 on my Pi 4, which should have Pulse, and the mic works on it. On Mon, Jul 26, 2021 at 4:01 PM AndrewDanko @.> wrote:

Well.... I did just stumble onto this: https://www.raspberrypi.org/blog/new-raspberry-pi-os-release-december-2020/ could Pulsa be the issue? The comments seem to have some useful info...but I didnt quite udnerstand it. Can you tell me the exact Raspberry Pi OS that you use for your Pi Zero W when you use Chatter Pi? I'm going ot try and install whatever you have and see if that will fix it. Thank you for all of your help :) I'm out of ideas, I'm afraid. If you can figure out your mic input problems I'm happy to help with any ChatterPi issues, but I don't know why you're having sound input issues. … <#m_-4296220365122487326_> On Mon, Jul 26, 2021, 3:20 PM AndrewDanko @.
> wrote: Installed Audacity and tried it out on all 3 mics, same outcome: just mild white noise — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#6 (comment) <#6 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHXZ3UQ7KA2VE2HQFTGTKLTZWYODANCNFSM5ARUJIYQ . — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#6 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHXZ3QD5PROPSR6AB5SKY3TZW5LPANCNFSM5ARUJIYQ .

from chatterpi.

AndrewDanko avatar AndrewDanko commented on August 15, 2024

Just wanted to mention one other thing as it may be significant. The servo Im using is this one...
https://www.adafruit.com/product/2307
If you read the bold areas...could that make a difference? It said somethign about 5v logic?... I have everything pinned to the 5V side?
Update
I swapped out the servos...that didnt seem to do anything. I also tried using the timer/files options in config to see if it could get the servo to move, but it wont. Mic still works.

I do notice that when I try to run it as start/microphone in config..the last two Alsa errors are
_"ALSA lib pcm_usb_stream.c:486:(snd_pcm_usb_stream_open) Invalid type for card"

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

from chatterpi.

ViennaMike avatar ViennaMike commented on August 15, 2024

Closing as ChatterPi software issues addressed with the exception of the buffer underrun issue, which is covered as issue #4.

from chatterpi.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.