AVS Forum | Home Theater Discussions And Reviews (https://www.avsforum.com/forum/)
-   Subwoofers, Bass, and Transducers (https://www.avsforum.com/forum/113-subwoofers-bass-transducers/)
-   -   Measure TR - The Viberry (https://www.avsforum.com/forum/113-subwoofers-bass-transducers/3087682-measure-tr-viberry.html)

LastButNotLeast 08-29-2019 08:45 PM

Measure TR - The Viberry
 
3 Attachment(s)
UPDATED WITH HEADLESS (NO KEYBOARD OR MONITOR) INSTRUCTIONS FOR MAC AND WINDOWS.
PLEASE GO DIRECTLY TO POST 61.
https://www.avsforum.com/forum/113-s...l#post58546302
THANK YOU.
Michael


[edited 8/31 for mac users]
[edited 9/5 for headless link]

Since the development of Room EQ Wizard (REW), analysis of a home theater's frequency response (FR) has become routine, and, as a result, great strides have been made in making one's room sound as good as time, effort and finances allow. Though there has always been interest in tactile response (TR), as demonstrated by the abundance of ButtKickers and Crowsons and the like, there has not been a good way to measure it quantitatively. The VibSensor app is a big step in the right direction, but it has its limitations (https://www.avsforum.com/forum/113-s...st-thread.html).
Thanks to the groundbreaking work of our own @3113d00d, such measurements are now available with relative ease and at relatively minor cost. This isn't a "build thread" per se, since the pieces just plug together, and the "programming" is straight-forward, so the process is fairly painless. You do need access to a wireless network.
Mac users should use the Terminal app in the Utilities folder everywhere the PC folks will use PuTTY.
Apologies to Matt for the American English spelling of "Analyzer." ;)

Start with a Raspberry Pi Zero WH for $14.00
https://www.adafruit.com/product/3708
add an HDMI adapter and a USB adapter for setup (you don't need them afterwards) for $2.95 and $2.50
https://www.adafruit.com/product/2819
https://www.adafruit.com/product/1099
[You can try a "headless" setup without the keyboard and monitor]
mac: https://desertbot.io/blog/setup-pi-zero-w-headless-wifi
pc: https://desertbot.io/blog/headless-p...-setup-windows
Sign up for the newsletter and use code "Welcome" to save 10%.

The motion sensor is an MPU-6050. If you don't mind soldering a header to the board, you can find it elsewhere and save some money. If, however, a soldering iron is a lethal weapon in your hands, as it is in mine, get one of these:
https://www.amazon.com/KEYESTUDIO-MP...ateway&sr=8-16
As you might expect, it is probably available for less elsewhere:
https://www.ebay.com/itm/Keyestudio-...-/132763231596

This is the female to female i2c cable that connects the Pi to the 6050. You need four of them (four cables, not four sets of 40, but they're usually sold in bulk packs. If you can find fewer, go for it):
https://www.amazon.com/EDGELEC-Bread...cs&sr=1-3&th=1

If you have a cell phone or tablet, you probably already have a 5V 1A microUSB power supply. If not, adafruit's is overkill (and we do love overkill):
https://www.adafruit.com/product/1995

You need a microSD card of between 8GB and 32GB.
Don't bother with a case.

And you need access to a USB keyboard and HDMI monitor (or the appropriate adapter for VGA or your monitor) for setup. That's it.

Now you can follow Matt's guide. This write-up is just meant to be a Dummies/Reader's Digest/cookbook version of his excellent work originally for vibe, the predecessor of qvibe.
https://vibe.readthedocs.io/en/latest/
If you can, copy/paste any programming that needs to be done. Otherwise, be VERY careful about every space and punctuation mark.

The first step is to format the microSD card. The proper way to do that is with a free utility from the SD Association:
https://www.sdcard.org/downloads/formatter/
Rather than install NOOBS and use NOOBS to install Raspbian, just download the Raspbian zip archive. If you select the "Lite"version, you don't get the GUI, which is helpful for us Dummies:
https://www.raspberrypi.org/downloads/raspbian/
but don't unzip it; use this program to "flash" Raspbian to your microSD card:
https://www.balena.io/etcher/
Both programs are available for the Mac platform.

Insert the microSD card into the Pi. Connect a keyboard and monitor. Connect the power supply LAST; there is no on/off switch on the board.

https://www.avsforum.com/forum/attac...1&d=1567132739


Your Pi will boot into a welcome screen,

https://www.avsforum.com/forum/attac...1&d=1567132739

<just kidding>

https://www.avsforum.com/forum/attac...1&d=1567132739

and a setup wizard will help you with the initial settings and connecting to your network.

Navigate with the tab and arrow keys, select with the space bar. When it asks about black bars around the desktop, it means BIG black bars, so don't change the overscan unless you have a real problem. When you get to the option to update, SAY "SKIP". You'll do that later.

Reboot.

LastButNotLeast 08-29-2019 08:45 PM

4 Attachment(s)
Press <control> to get a drop-down menu. Use arrows to get to Accessories, then to Terminal.
At the prompt ($):
$ sudo raspi-config
You should already have password and network set up.
Option 5: enable both SSH (P2) and I2C (P5)
Option 7: expand card (A1)
<finish> to exit config.

Now update everything from Terminal:
$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo apt autoremove
$ exit

This will take some time, but you should see progress. The screen may go blank. You may decide after several hours that nothing is happening. Just reboot (unplug, plug back in) and start over. Once you get back to the desktop, from the drop-down menu, shutdown.

Disconnect power to the Pi. Disconnect monitor and keyboard, install the MPU.

Holding the Pi with the header on the right, the top left pin is pin1, the top right pin is pin2. Ignore both those pins completely.

https://www.avsforum.com/forum/attac...1&d=1567133940

Pins 3 and 5 are immediately below pin1; pins 4 and 6 are immediately below pin2. The header on the MPU-6050 is clearly marked.

https://www.avsforum.com/forum/attac...1&d=1567133940

pin3 -> SDA
pin4 -> VCC
pin5 -> SCL
pin6 -> GND

Reboot (plug it in).

Get the IP address of your Pi:
Access your router (typically 192.168.1.1)

https://www.avsforum.com/forum/attac...1&d=1567133940

Access the DHCP Client Table

https://www.avsforum.com/forum/attac...1&d=1567133940

Note the address for "raspberrypi." You will need it. A lot.

Install PuTTY on your PC:
https://www.chiark.greenend.org.uk/~...ty/latest.html
On first login, "yes" to update the key.

Mac users will use Terminal to log on:
$ ssh [email protected]

Test the MPU:
$ i2cdetect -y 1

result should look like this:

[email protected]:~/$ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Install the recorder:
Enter these one line at a time and wait for the prompt before entering the next line.

$ sudo apt install python3 python3-venv python3-pip libyaml-dev git
$ mkdir python
$ cd python
$ python3 -m venv qvibe
$ cd qvibe
$ . bin/activate
$ pip install qvibe-recorder

Run the recorder:
$ ./bin/qvibe-recorder

You will get a screen of "Warnings." That's good.

LastButNotLeast 08-29-2019 08:45 PM

3 Attachment(s)
Open your browser and enter the IP of your Pi and port 10002, (http://the IP address of your Pi:10002/api/1/devices).

You should see
DST|[{"name": "mpu6050", "fs": 500.0, "sPB": 125.0, "aOn": true, "aSens": 2.0, "gOn": false, "gSens": 500.0, "tOn": false, "sT": true}]
at the top followed by a bunch of other stuff.

In PuTTY, control-C (may take several) to stop the recorder.

I DO NOT SEE THIS IN QVIBE, SO PLEASE IGNORE FOR NOW:

Edit the configuration file. "nano" is a very basic word processor.

$ cd ~/.vibe
$ nano recorder.yml

Get the IP address of the computer you intend to run the analyzer on:
Click on Network and Internet -> Network and Sharing Center, click on Change adapter settings on the left side. Highlight and right click on Ethernet, go to Status -> Details. The IP address will display. If your computer is connected to a wireless network, click the Wi-Fi icon, instead.

Edit the target: line with the IP address of the computer you intend to run the analyzer on. [target: http://127.0.0.1:8080]

Edit the host: field and provide the IP address of your Pi. [host: raspberrypi]

Exit (control -x), save (Y), don't change the filename.

CONTINUE FROM HERE:

Restart the recorder:
$ cd ~
$ cd python/qvibe
$ ./bin/qvibe-recorder

You now have a Viberry!

Place the sensor at the site to be measured. Where that is and how to attach it will be part of the following discussion. I tuck it in between the back of my chair and the seat. It has been suggested to use beeswax to (temporarily) affix the sensor to other parts of the chair (and its surroundings).

https://www.amazon.com/Beesworks-1oz...gateway&sr=8-2

Download and run the analyzer:
Click blue "Releases" tab to get to the newest release.
https://github.com/3ll3d00d/qvibe-an...ases/tag/0.2.0
Select qvibe-analyserSetup.exe to download and run.
Mac version is qvibe-analyser.app.zip.

It will ask you to add a recorder from the preferences screen:

https://www.avsforum.com/forum/attac...1&d=1567134607

Provide the ip address and port 10002.
Click on "+"
It will then show up on the analyzer page under "Recorders." Click on the icon on the right to start recording and on the one below it to stop.

Click on "Show Data."

The standardized test tone is produced by the generator function of REW:

https://www.avsforum.com/forum/attac...1&d=1567134404

CAUTION -- NOTA BENE -- WARNING

Extended use of this file or use at high volumes WILL DESTROY YOUR EQUIPMENT. Be conservative.
For the one poor soul who doesn't yet have Room EQ Wizard (shame on you), use this:
https://www.dropbox.com/s/tga7ayyvbe...0tone.wav?dl=1

Welcome to uncharted territory.


https://www.avsforum.com/forum/attac...1&d=1567134757

The software allows the use of several Viberries concurrently. The results of such experiments will certainly be enlightening.


The next time you start your Viberry, log in and start the recorder:

$ cd ~
$ cd python/qvibe
$ ./bin/qvibe-recorder


"If you can't measure it, you can't improve it." - Peter Drucker
Now we have a way of measuring it. Let's see what we can do to improve it.
Michael

LastButNotLeast 08-29-2019 09:05 PM

1 Attachment(s)

Nalleh 08-29-2019 11:31 PM

Awsome work, LBNL :)

So just to be clear: even if you have a laptop, you still need a USB keyboard and monitor to set up the Raspberry, right?

I got the parts on the way, so there will probably be a million questions when i start, LOL :)

3ll3d00d 08-30-2019 12:35 AM

Nice write-up.

Minor correction, qvibe-analyser should run on osx and Linux as well, it is not windows only.
@Nalleh it is possible to setup an rpi without a keyboard (or screen), see https://sendgrid.com/blog/complete-g...keyboard-mouse for an example

Nalleh 08-30-2019 01:22 AM

^^Huh??

3ll3d00d 08-30-2019 01:44 AM

Quote:

Originally Posted by Nalleh (Post 58491184)
^^Huh??

weird, there was a space missing between the URL and the next word so the URL had /for appended on the end (which bizarrely then redirected to a completely different site). I have corrected the URL anyway.

Nalleh 08-30-2019 02:06 AM

^^ Yeah, that made a lot more sense, LOL.

EndersShadow 08-30-2019 04:56 AM

Dumb question but if someone wanted one of these but wasn’t smart enough to do all the steps.... what would the cost be to have someone else.... say more experienced put it together and ship it to them be....

Asking for a friend...[emoji6]


Sent from my iPhone using Tapatalk

3ll3d00d 08-30-2019 05:42 AM

Quote:

Originally Posted by EndersShadow (Post 58491468)
Dumb question but if someone wanted one of these but wasn’t smart enough to do all the steps....

is there one bit you think you would struggle with? if it's the software side of it then we could simplify this using https://www.pibakery.org/index.html to create a custom image. It would still require some user intervention (as everyone has a different wireless network and password) but I think that would be it. It would then just be a case of flash sd card + assemble the pi.

LastButNotLeast 08-30-2019 06:14 AM

Quote:

Originally Posted by 3ll3d00d (Post 58491136)
Nice write-up.

Minor correction, qvibe-analyser should run on osx and Linux as well, it is not windows only.
@Nalleh it is possible to setup an rpi without a keyboard (or screen), see https://sendgrid.com/blog/complete-g...keyboard-mouse for an example

Thank you. Very much. Again.

Is there a mac installer I missed? Linux folks don't need my cookbook. ;)

"Plug your Raspberry Pi into your router with an ethernet cable." Zero doesn't have a port. Need to do this:
https://www.instructables.com/id/How...pberry-Pi-Zer/
Will add it to the cookbook when time permits. Got to get Nalleh on board soon. :)

Michael

Nalleh 08-30-2019 06:34 AM

I can tell you one thing: i WILL get lost in these instructions at one point !!

Just a matter of where, LOL.

EndersShadow 08-30-2019 06:38 AM

Quote:

Originally Posted by 3ll3d00d (Post 58491572)
is there one bit you think you would struggle with? if it's the software side of it then we could simplify this using https://www.pibakery.org/index.html to create a custom image. It would still require some user intervention (as everyone has a different wireless network and password) but I think that would be it. It would then just be a case of flash sd card + assemble the pi.

Eh, a bit more of the "dont have that much time to screw with configuring everything" than "not smart enough".

I build a retropi but struggled to get it up and running (which it is now, but I still dont have it all configured fully) so there is some legit hesitation on my part.

That said, a custom image may be the better bet (if you think enough people would use it to warrant the time on the front end to do so).....

The thing looks cool, I'm intrigued by it, I can find my IP address/gateway, etc in my sleep, I just dont have much time (re any) to spend most nights building/configuring said thing (which is a ME problem not a EVERYONE problem). Life's got in the way and when I DO have time, its normally when I can't be that loud so REW is rare if ever done, and when I do get that spare moment I can be loud, I prefer to have something locked, loaded and ready to go... Again these are ME problems......

trhought 08-30-2019 06:42 AM

Quote:

Originally Posted by LastButNotLeast (Post 58490748)
Since the development of Room EQ Wizard (REW), analysis of a home theater's frequency response (FR) has become routine, and, as a result, great strides have been made in making one's room sound as good as time, effort and finances allow. Though there has always been interest in tactile response (TR), as demonstrated by the abundance of ButtKickers and Crowsons and the like, there has not been a good way to measure it quantitatively. The VibSensor app is a big step in the right direction, but it has its limitations (https://www.avsforum.com/forum/113-s...st-thread.html).
Thanks to the groundbreaking work of our own @3113d00d, such measurements are now available with relative ease and at relatively minor cost. This isn't a "build thread" per se, since the pieces just plug together, and the "programming" is straight-forward, so the process is fairly painless.

This is pure AWESOMENESS on every level! A capable vibration measurement system and analyzer for our hobby! Fun times to be a TR fan!

LastButNotLeast 08-30-2019 07:47 AM

Quote:

Originally Posted by EndersShadow (Post 58491712)
Eh, a bit more of the "dont have that much time to screw with configuring everything" than "not smart enough".

If you go the solderless route, it will take you 30 seconds to put together.
When you have time ;), walk through the software steps. It takes longer to update Buster (the current pi os) than to do anything else.
And the vibration doesn't make too much noise!
Michael

Foundation42 08-31-2019 11:23 AM

I love the idea of this project. Jumping in...

LastButNotLeast 08-31-2019 03:43 PM

Great. Please let us know how it goes.
Michael

3ll3d00d 08-31-2019 04:11 PM

something to note about the dB scales in qvibe

# 1 micro m/s2 in G produces 0dB means 1G = ~140dB, 0.1G = ~120dB, 0.01G = ~100dB, 0.001G = ~80dB and 0.0001G = ~60dB

0.5m/s2 is subjective considered "unpleasant" accordingly to health and safety standards and this equates to 0.05G so about 113dB or so

or put another way, I picked these values to that the numbers might be comparable to reference level in SPL (for the LFE anyway)

it sounds nice and neat on paper anyway :)

LastButNotLeast 09-03-2019 08:03 PM

Quote:

Originally Posted by Nalleh (Post 58491070)
So just to be clear: even if you have a laptop, you still need a USB keyboard and monitor to set up the Raspberry, right?

Quote:

Originally Posted by 3ll3d00d (Post 58491136)
@Nalleh it is possible to setup an rpi without a keyboard (or screen), see https://sendgrid.com/blog/complete-g...keyboard-mouse for an example

I found this:
https://learn.sparkfun.com/tutorials...y-pi-setup/all
Trying it (on my mac) now.
Michael

LastButNotLeast 09-03-2019 08:41 PM

Didn't work. Much to no one's surprise.

Out of time and patience for tonight.
Michael

3ll3d00d 09-04-2019 01:19 AM

Note that the linked page doesn't give instructions for exactly what you want

i.e. you want to enable SSH and set a static IP for wlan0

You also need to be able to write to an ext4 filesystem which I didn't think osx or Windows support. The easiest way around this is running Linux in a VM but that adds rather a lot of complexity to address a small bit of configuration.

LastButNotLeast 09-04-2019 09:13 AM

Under "WiFi with DHCP," I had exactly the same directory structure as pictured, so I thought it was the boot partition.
I may have time over the weekend to experiment some more.
Michael

3ll3d00d 09-04-2019 03:37 PM

Quote:

Originally Posted by LastButNotLeast (Post 58511716)
Under "WiFi with DHCP," I had exactly the same directory structure as pictured, so I thought it was the boot partition.
I may have time over the weekend to experiment some more.
Michael

actually I was wrong, the boot partition is a FAT filesystem so writeable from both windows and osx.

a few points to bear in mind

* you do not want to use DHCP here unless you have configured your router to allocate a static IP based on the MAC address (in which case it will effectively be a static IP albeit one that delivered via the DHCP lease rather than specified in the device config)
* the linked article tells you to write the passphrase in plain text, that's ok for first boot but you should change that to an encrypted passphrase once you connect for sure, you can generate an encrypted passphrase by running

Code:

$ wpa_passphrase <your ssid> <your passphrase>
* I don't recall if putty automates this for you but you may want to put your public key in ~/.ssh/authorized_keys on the rpi so you can connect without needing to supply credentials
* the static ip section of the linked article does not make it clear that the author is writing their own gateway in there, you need to use your own IPs for this. For example, mine is like

Code:

interface wlan0
static ip_address=10.151.167.61/24
static routers=10.151.167.1
static domain_name_servers=10.151.167.1 8.8.8.8 fd51:42f8:caae:d92e::1

note that I have wlan0 as the interface (because I only really care about a static IP via the wireless interface) & my local network is on the 10.151.167 subnet hence why I have set the ip to 10.151.167.61

it's most likely that yours is in the 192.168.0 range but exactly where the gateway is can vary, it might be 192.168.0.1 or it might be 192.168.1.1 (or something else) depending on which router you use

you can see this config in your router or by looking at the route on another machine (IIRC on windows this is done via a cmd window and running ROUTE PRINT)

LastButNotLeast 09-05-2019 07:19 AM

Got a headless version to work (on my mac; windows link also available), so there may be hope after all.
:D
https://desertbot.io/blog/setup-pi-zero-w-headless-wifi
Michael

LastButNotLeast 09-05-2019 04:11 PM

2 Attachment(s)
Working!
Used my mac (High Sierra) and followed the "Headless" directions but did not go with the "Lite" version.
Still no idea what any of it means, but I get squiggles on the screen! :D
Background noise (a/c is on, washing machine going upstairs, etc.):

https://www.avsforum.com/forum/attac...1&d=1567721092

Running "standardised wav file:"

https://www.avsforum.com/forum/attac...1&d=1567721092


Away we go!
:D
Michael

3ll3d00d 09-05-2019 04:25 PM

one thing I've noticed is https://github.com/3ll3d00d/qvibe-analyser/issues/20 which means the RTA doesn't decay smoothly for some reason (you get a weird bouncing effect in the RTA) when the averaging period is short (1x)

I'll explain what these options mean exactly soon and advise on how best to set them

in the meantime, your RTA looks quite smooth. What does the vibration chart look like?

LastButNotLeast 09-05-2019 04:53 PM

Beats me.
:D
IIRC, the "Time" chart was all squished to the y-axis. I didn't play with it much, I was just overjoyed to get something that looked like something.
I'm waiting for you to get the software docs together.
;)
Michael

Nalleh 09-05-2019 05:17 PM

So, all go for Mac, then ?

Exellent, Smithers ;)

LastButNotLeast 09-05-2019 07:00 PM

Quote:

Originally Posted by Nalleh (Post 58518596)
So, all go for Mac, then ?

Yup. Your stuff's ordered, is it not?
One caveat: you need a newer Mac OS. I have a double-boot system because I'm holding on to AppleWorks with all my might. Worked fine under High Sierra.
Michael


All times are GMT -7. The time now is 05:38 PM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
vBulletin Security provided by vBSecurity (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.

vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.