Thank you! If I transpose the Vibration Data list, export it as a CSV, and then reimport it, it is imported as a list of numbers. Is there a more straightforward way of accomplishing this?
“Flatten” works great! … I’m capturing the movement of the vibrating rod using MicroBlocks and a sensor connected to a vibrating rod.
I would like to do this directly in Snap! using the MicroBlocks library, but evidently the USB port doesn’t have the bandwidth to support the sampling rate required for the resolution needed. As an alternative, I’m capturing in MicroBlocks and exporting the data as a CSV file. Evidently when the CSV file is then imported into to Snap!, it comes in as a list of one-item lists.
Now that it can be transformed into a flattened list of numbers, it can be plotted, played back as a sound, etc. There’s a related activity developed by Roger Wagner that involves capturing the movement of a candle flame. The movement of a single candle flame is aperiodic due to the chaotic nature of the factors involved. Under the right conditions, three candles in close proximity will synchronize, moving in unison to create periodic motion. Can’t wait to try that next.
Thanks for the assist and the multiple solutions to transformation of the data into the form needed.
Glen: I’m curious what sensor you’re using to collect the rod motion? What sampling rate are you using and what’s the frequency of the rod vibrations?
As you found, MicroBlocks is great for capturing data at high sampling rates. Transmitting that data to Snap! via USB is slower. So, the way you are doing this is a good solution: capture a few thousand data samples in a MicroBlocks list at high speed, then send it to Snap! at at your leisure.
I don’t yet know whether the factors that cause pendulums and candle flames to synchronize have any common underlying factors. This is something that I hope to learn more about as we look into this further.
We’re using an LED taped to a coin cell battery on the end of a metal ruler. This is a technique that Roger Wagner devised. He initially used an infrared flame sensor but then found that a classic photoresistor (“LDR” = Light Dependent Resistor) module worked just as well. Here is the general search link on Amazon:
There are a lot of options depending on the quantity desired. Roger used the 4-pin modules, not the ones with 3-pins, and that worked for us as well.
—–
BTW, the first time that I did this was with an Apple II computer running LCSI Logo with a swinging flashlight suspended from a string. We used the Apple II game port as an input for the light sensor.
So I was delighted that we could recreate the activity using an LED on a vibrating rod with MicroBlocks and Snap!