|
Post by spetersen on Dec 7, 2019 16:50:59 GMT
Sounds like your power problem is solved. Awesome! Does the code append the file, or overwrite the file with a single value?
|
|
ScotK
Full Member
Posts: 113
|
Post by ScotK on Dec 7, 2019 17:49:20 GMT
The double >> is append. Single > is overwrite.
|
|
|
Post by spetersen on Dec 8, 2019 1:27:42 GMT
If I make a file jb.sh with that code in it, and run it, would that work to test it?
|
|
ScotK
Full Member
Posts: 113
|
Post by ScotK on Dec 8, 2019 12:20:04 GMT
Yes it would.
|
|
ScotK
Full Member
Posts: 113
|
Post by ScotK on Dec 8, 2019 14:31:35 GMT
|
|
|
Post by spetersen on Dec 8, 2019 14:54:56 GMT
I like that amp! The solderless terminals are a nice touch. A message is missing, or deleted, is the original shell code now modified? Try a pair of headphones if the Pi supports it. I think the Pi defaults to HDMI audio unless the command.txt ? file is modified, I know you probably already know this, but just in case.
|
|
ScotK
Full Member
Posts: 113
|
Post by ScotK on Dec 8, 2019 16:32:59 GMT
I modified the original post to add the missing line. I was using my phone to test the amp, so it's definitely dead.
|
|
|
Post by spetersen on Dec 11, 2019 1:11:49 GMT
I tried it, and I had problems, I had errors on many different lines, but it gave me an idea to try curses in Python , as soon as I get time, I will try it that way. I need to get up early, so I have to go to bed. Thanks!
|
|
ScotK
Full Member
Posts: 113
|
Post by ScotK on Dec 12, 2019 14:29:20 GMT
Tested, this worked for me when putting it into its own file:
#!/bin/bash
QUEUEFILE="/home/pi/songlist" touch "${QUEUEFILE}" while true ; do echo "Select song number, q to quit:" read SONGNUMBER case ${SONGNUMBER} in q|Q) break ;; *) echo "${SONGNUMBER}" >> "${QUEUEFILE}" ;; esac done
|
|
|
Post by spetersen on Dec 12, 2019 23:52:49 GMT
After a little hickup,(CR LF in the copy) it works fine, Thanks!
|
|
ScotK
Full Member
Posts: 113
|
Post by ScotK on Dec 16, 2019 1:14:01 GMT
I updated the schematic to show the optoisolator and all the hookups for it. Getting closer! Attachments:
|
|
ScotK
Full Member
Posts: 113
|
Post by ScotK on Dec 16, 2019 1:55:15 GMT
Just figured out I messed up one of the connections on the optoisolator. So I updated the schematic again. Attachments:
|
|
|
Post by spetersen on Dec 16, 2019 8:36:20 GMT
This is what you need.
Attachments:
|
|
ScotK
Full Member
Posts: 113
|
Post by ScotK on Dec 16, 2019 22:17:44 GMT
Can you explain why? I went back and looked, I think I had it wrong in my diagram so I'm posting another one. Again. I'll get it right one of these times. Attachments:
|
|
ScotK
Full Member
Posts: 113
|
Post by ScotK on Dec 16, 2019 22:20:14 GMT
OK, so a bit of an issue. I have the amp mounted and I believe it's working. By setting the multimeter to hz I can see the oscillations that should be the music coming out of the amp. But I get nothing from the speakers. Not even a buzz, whisper, etc. Are they too high of voltage/impedence/whatever for the amp to drive them? I don't know much about speakers other than they make sound.
|
|