ScotK
Full Member
Posts: 113
|
Post by ScotK on Feb 8, 2020 21:22:57 GMT
Been a while since I uploaded a schematic. Attachments:
|
|
|
Post by spetersen on Feb 9, 2020 1:31:24 GMT
Nice! I like how you were able to squeeze everything inside, without having to put the transformer in the coin box. Do you hear any strange background noises during the quiet parts of the music? I get a little in mine.
|
|
|
Post by Ron Rich on Feb 9, 2020 4:09:07 GMT
Hey Scott OIL the turntable motor-- Itz dry and the bearing is squeaking !
|
|
|
Post by spetersen on Feb 9, 2020 4:13:44 GMT
I think you are correct as usual! I believe that may have been an issue with my mother's SS160 years ago......., either that or a bad stylus...
|
|
|
Post by Ron Rich on Feb 9, 2020 14:01:42 GMT
Hi Scott, Like I have written many times-- I am not always correct--but I'm never rong !! If you are still hearing that "noise" look for a poor, or non existent shield, in the audio portion. Ron Rich
|
|
ScotK
Full Member
Posts: 113
|
Post by ScotK on Feb 9, 2020 15:31:02 GMT
When idle or playing there's no noise other than what should be there. My amp is hooked directly to the speakers instead of going through the volume controls, that may be one difference between ours. Not sure if that could cause any noise?
|
|
|
Post by Ron Rich on Feb 9, 2020 17:22:16 GMT
Scot, Yep-- if the shielding is poor somewhere along the line, AM, "ham", radio often "interferes" with it. Ron Rich
|
|
|
Post by spetersen on Feb 9, 2020 17:57:48 GMT
I will revisit the shielding, and possibly add a resistor to ground to lower the output impedance , and see if that helps. Our Pi's are pretty different, yours already has a phone jack for audio out, which may also help with the noise. Scott K, you may wish to try a windows media remote, it works well under Ubuntu, as a keyboard input. The receiver is usb. i read a post on getting Bluetooth up on the Pi, and it seems like you will have to write a script for that, it seems t be somewhat involved, if I can find the post, I will link it.
|
|
ScotK
Full Member
Posts: 113
|
Post by ScotK on Feb 10, 2020 4:34:27 GMT
I was also considering writing a web control panel for the wallbox and using a browser to control it because TV remotes won't have the letters. The windows media remote is a good thought, I might use that. Have to think about it a bit and decide which way I want to go.
I have bluetooth installed and running on my Pi. It sees the speaker and will pair with it but after it's paired it won't connect for audio play. I don't understand by why, unless like I said it's the bluetooth on the Pi that's the problem. I read that Broadcomm bluetooth modules can be problematic.
|
|
|
Post by spetersen on Feb 10, 2020 4:43:28 GMT
From what I read, it works ok from the desktop, maybe try the hardware that way for a test. Another thought is that alsa may need to be configured for Bluetooth as an output device.
A link to some Bluetooth info:
Cool remote adapter
|
|
|
Post by spetersen on Feb 12, 2020 4:41:18 GMT
I was also considering writing a web control panel for the wallbox and using a browser to control it because TV remotes won't have the letters. The windows media remote is a good thought, I might use that. Have to think about it a bit and decide which way I want to go. I have bluetooth installed and running on my Pi. It sees the speaker and will pair with it but after it's paired it won't connect for audio play. I don't understand by why, unless like I said it's the bluetooth on the Pi that's the problem. I read that Broadcomm bluetooth modules can be problematic. The web portion of this controller looks like it would be ideal www.youtube.com/watch?v=6l2vZ3UDlp4
|
|
ScotK
Full Member
Posts: 113
|
Post by ScotK on Feb 18, 2020 3:20:10 GMT
I've had some time at home the past few days, got fairly sick with a heavy cold that made its way into my ears and lungs. Now that I'm recovering it's giving me something of an opportunity to have more than 1-2 hours here and there to work on the wallbox before starting back to my day job. I pivoted away from the bluetooth frustration for now and started working on the web control panel and the volume buttons. I'll come back to bluetooth later, I wanted to make the most of the unexpected time.
I had to work with Pimoroni support (which is only available as a chat session, BTW, kind of frustrating) because the voltage readings I've been getting back from the board have been all over the place, so the volume buttons were very unreliable. Turns out they have multi-concurrency issues with their libraries, it's a known issue. Switched all my python programs except the volume button program to using RPI.GPIO instead of Pimoroni's library and now it's working well. Voltage swings reported by the board went from +/- 5v to +/- .1 volt. I'm only looking for differences of more than 1 volt, so that's more than reliable enough to use to set the volume. I can officially check that one off the list as done. Volume is working great now in software.
The web control panel is kind of tricky because the regular disk is read-only for longevity, and the USB drive is fairly slow too. I can't use a regular database due to the read-only disk, so I'm using SQLITE as the backend. It's kind of like a command line MS-Access equivalent for Linux, if you guys know MS-Access. Basically it's file based and easy to work with, and allows most of the regular SQL query forms. The same things I need for this. I wrote a control panel using bash shell as a CGI. It works well so far. I have a process that backs up the running copy from ramdisk whenever it changes and stores it on the USB drive. Then at system start I need to restore a copy from USB, so I have another process that does that. End result is it works at high speed and will be viable long term over many restarts. The website is very plain right now but it's functional. The music folders are two levels deep. Artist--Album--song.mp3. Then that gets indexed into the database and made available in the web interface. In the web interface then I set what song or songs I want for each keyboard combination. Now I don't have to move/delete/whatever when I want to change the selections on the keyboard. I just set the new song in the web interface and print out a new slip for the physical catalog and I'm done. I have a 128 gig USB drive, I'll probably wind up with hundreds, maybe even thousands of songs on it. Only 160 selections on the keyboard still, but all available on the web interface. I could also assign a whole album to A1 if I wanted. Just change the selection, smooth as butter. I'll have to get my wife to help me make the web design less spartan, she used to do some amateur web design years ago.
|
|
|
Post by spetersen on Feb 18, 2020 3:43:00 GMT
Sounds interesting, When you have the web interface done, post a snapshot, I would like to see it.
|
|
ScotK
Full Member
Posts: 113
|
Post by ScotK on Feb 26, 2020 22:43:23 GMT
Quick update.... I started down the road of creating my own interface. I spent a few days on it and didn't have much done, and wasn't really happy with what I did have... I'm not a coder by any stretch. Ultimately I decided that would be too much effort for too little of a return and I would be better off if I could find something that was open source that I could use. After quite a bit of research I found Rompr. It is based mostly off HTML and uses a simple SQLITE database as a backend, so it takes minimal resources. It uses MPD server (basically think of MPD as a remotely controllable iPod) as the backend and Rompr acts as a controller for the MPD server. It only took me about 6 hours to get MPD and Rompr up and running from download to finish, and it gives it quite a nice set of features. Volume control, playback controls, song queueing, playlists, and much more, all from the web. I also got bluetooth working to a Bose desktop speaker, so hooking it to the stereo should be easy now. Rompr even gives me the option to pick the sound output in the web interface, so I can turn bluetooth and/or the internal speakers on/off from there. Very cool! I also put the hood back on for a while so I could test the lights. Had to tinker with them for a while due to some loose wiring in the hood but it's working again. Not sure why they'd be wired in series but that's why both were not working on mine, one wasn't making a good connection so it killed them both. I'll post some pics soon! Todo: Try and get it to default to bluetooth somehow when it comes on. Get the keyboard to tie into MPD, so it submits the song to MPD to play, which ties the web and keyboard together. Finish loading music and title strips so I can finally close the case! Replace the speakers with modern, better sounding ones. (Maybe? Not sure yet but I like the idea) The finish line is finally in sight!
|
|
|
Post by spetersen on Feb 27, 2020 1:09:35 GMT
Does this need an internet connection to run? It sounds pretty cool, thanks for the update!
|
|