My final project

Initial thoughts - Week 1

A few years ago, I built a Beerpong table that is illuminated with LEDs and changes color when the ball ticks. The whole thing was more of a coincidence, however, because I didn't program or install any controllers or anything similar, but instead used the music function of the party LEDs. Since then, I've wanted to make the whole thing better and more portable and smaller. So for the final project, I'm concentrating on the hit surface, which has space for ten cups and can be placed modularly on any table. The cups are to be illuminated from below, which is why there are placeholders on the top board, which will probably be cast from semi-transparent Epoyid resin later on. Below the top board, I would like to attach vibration sensors to try to detect when a cup is hit and then play various light animations. I might want to use a display to motivate or demotivate the team behind their cups and add different features later on.
All in all, it will be a triangular structure made of two wooden boards and side panels with a cavity that I want to use for light installations and the installation of the electronics. This would allow us to play Beerpong in style at Fab25 and afterwards, of course.


Computer Aided Design - Week 2

Because I would otherwise find it odd to only show content about file compression in the Computer Aided Design Week tab, most of the work this week can be found there. I just want to give you a quick update here in the form of a video that I created in and edited with . It shows the design process and, at the end, an animation that is intended to illustrate a successful throw in beer pong. The choppy course of the ball is not really intentional. I have to simulate the ball's trajectory using a sequence of different positions, so this is a movement sampled in this way, and I would have had to invest a lot of time in making it look smooth for the eye. Unfortunately, I didn't have the time at the moment - perhaps there will be an update here in the future. Grab something to eat and make sure you have enough to drink and enjoy the next eighteen seconds. This is the current status of my final project after week 2.



Computer Controlled Machining - Week 7

As described in my assignment for the corresponding week, I mounted my own milling cutters on the machine. To work as efficiently as possible and avoid duplicating the work, I milled the upper and lower plates for the prototype of my final project in addition to the parts for this week. I used a 12 mm plate for this, and in the Fusion setup I first machined the 2D contours with the 8 mm roughing cutter and then finished them with 6 mm. To be on the safe side, I installed retaining bars in each case, which I later cleanly milled away with the hand-held router. I then slightly rounded the edges with another cutter in the same way, with the following result.

1 / 5
after milling and removing the tabs
2 / 5
still had to remove the inner circles
3 / 5
with hammer and chisel
4 / 5
5 / 5
after cleaning the edges with the router

By manufacturing the parts this week, I hope to be able to better estimate how many LEDs I'll need later, which will allow me to dimension my mobile power supply and other components on the PCB based on that. It also gives me the opportunity to use sensors to test my ability to detect hits in cups.

Input Devices - Week 9

This week, I used the group assignment to validate my proposed measurement principle. Ideally, I would like to implement hit detection based on vibrations. To potentially detect the cup being hit, I need to be able to triangulate between measurement signals. To do this, I need to accommodate at least three sensors, which is why I marked three points on the bottom plate that would be suitable for mounting. I attached the sensors to these points using double-sided tape and connected them to the oscilloscope as shown in the group assignment. Then I turned the setup over and placed the cups on top to make test throws. I didn't use the actual top plate for this because of the holes.

1 / 3
the rough placement of the sensors on the top plate
2 / 3
I transferred the placement to the lower plate with a marking gauge
3 / 3

True to my theory, a throw onto the rim of the cup should result in a stronger vibration than hitting the cups filled with water for the test. This was also the case in practice. There is a problem with throws that hit the water without touching the cup; these did not show any significant deflection on the oscilloscope that could be analyzed later. So, my system currently seems to be blind to these types of throws. Another theory, which has been confirmed in practice, is that the vibration frequency is dampened and thus slowed down when the ball hits the cup, i.e., when it comes into contact with the water. Here are some measurements. Unfortunately, the three identical sensors have different sensitivities; please note the box widths below for the measured values.

1 / 3
hit the board, but not a cup
2 / 3
hit the rim of a cup
3 / 3
hit a cup

The package from Digikey, which with any luck will reach me before the end of this century, contains vibration sensors that deliver an output voltage of up to 80 V. The sensors used for the tests delivered values ​​of up to 5 V, depending on the vibration, so I hope this will increase the sensitivity and allow me to improve the results. I'm also considering using thinner wood and mounting it in a way that allows it to move slightly, if possible, to better transmit the vibrations to the sensors. I also want to test light sensors as a redundancy, since the cups will later be placed on translucent material and ideally also need to be illuminated from below. To have this option, I bought some transparent cups a few weeks ago. That's all the testing for now.

In addition to the pure amplitude of the signals, I want to use frequency analysis to draw more precise conclusions about the type of hit. To do this, I use the Fast Fourier Transform (FFT) to decompose the time signal into its frequency components. Different types of hits—such as a ball hitting the table or directly into the water—hopefully produce characteristic frequency patterns. Edge hits might exhibit higher frequency components, while a ball falling into the water should cause a more low-frequency oscillation. By analyzing the frequency spectrum, I can define thresholds for different hit types and thus improve detection accuracy. The FFT decomposes the complex signal into its individual frequency components and shows which frequencies are contained in the signal and how strongly they are represented. The result is a frequency spectrum—a kind of "fingerprint" of the hit. The combination of amplitude and frequency analysis offers me, in the best case, a more robust differentiation option than measuring the amplitude alone.

Further work - Week 10

Since I had more or less finalized my measurement setup, I tested the new sensors after they arrived. At the same time, I tested the oscilloscope's Fast Fourier function. Given the results shown below, I may have to look for other solutions or keep the Fast Fourier analysis very specific. Another source of error that I could actually get is the sampling rate, which in my case will be significantly lower than 20,000 samples per second. In its current form, the signal might not be informative as a supplement, which is probably due to its brevity. There's both a short-term FFT and the option to evaluate the zero-crossing rate, but I can't test either of these with the oscilloscope—so I'll have to postpone further work on this. I'm confident I can solve this, but I'm sure I'll have to spend a lot of time and do a lot of testing.

1 / 3
hit the board, but not a cup
2 / 3
hit the rim of a cup
3 / 3
hit a cup

Midterm - Week 12

This week, we were tasked with further planning our final, listing and planning outstanding work. I've compiled the entire process in a table format for your convenience.

task progress planning
Procurement of components 95 % Week 20
Testing of components, individual control 70 % Week 15
Validate and improve hit detection 50 % Week 20
Design and manufacturing of the circuit boards 30 % Week 18
Bringing together all technical components in the spirit of the spiral design 20 % Week 18
Re-milling of the top and bottom plates (from thinner material for better vibration transfer) 0 % Week 15
Training for the Fab25 0 % Week 20-24
Assembly of the housing with all the bells and whistles 0 % Week 18

Further developments - Week 13

You can probably imagine that during testing, a ball might occasionally bounce or even bounce off the edge of the cup. This naturally adds up with the increasing number of tests, so, frustrated, I finally decided to create a better test environment. Therefore, I present this wonderful, not yet fully assembled safety net. The context in which I initially used it was to test how different sized piezo sensors behave in terms of signal output. All of this can be seen in the entertaining slide show. The result wasn't entirely satisfactory; my favorite is still a different sensor.

The clamps for the round bars are a custom design that you can download below.

1 / 3
2 / 3
3 / 3

Re-Milling my plates - Week 14

One result of the previous tests was that I had indulged in the not illogical illusion that a thinner board would be more advantageous. For this reason, I milled both wooden boards again from 9 mm thick plywood.

1 / 4
2 / 4
3 / 4
4 / 4

During post-processing, I rounded off the edges with a hand router and then sanded everything finely. Unfortunately, I don't have any dedicated images.

Procrastination - Week 16

For me personally, week 16 was a job creation measure. I was forced to give myself the time to think about all the possible features my final project could have. That wasn't good.

Even though I set it on Spiral 3, the idea of ​​integrating music hasn't left me since. So I've been exploring the topic, grabbed a DF Player Mini, and gotten some suitable passive speakers. You can see it here, all the time; I'm not mentioning how many hours of other kinds of procrastination I've invested. , which , in her role as a DJ, inspired me to use while working together.



Of course, in order to fit the speaker into my setup, I needed a mount, which I quickly designed and printed.

Finishing the top - Week 17 & 18

As you can see, I'm having trouble testing my application scenario with the top plate due to the cutouts. So, the next step was to think about how to fill them. I quickly turned to epoxy resin, but I didn't want to simply pour the plate, potentially allowing me to replace parts later without having to replace the entire top plate. So I thought about casting inserts that I could place into my cutouts. To ensure that they hold, and to improve the casting process, I need bevels, which is why I came up with the following design for the inserts.

1 / 2
2 / 2

You can still see a hole in the middle. At this point, I was still optimistic about getting my system to work with photodiodes. Later, I realized that wasn't the case. I also tried IR photodetectors, which were equally unsuccessful. This led me back to my first solution, the photoresistor, and forced me to switch to a new design. This ultimately led me to the following design: the 3D print corresponds to the positive part that I will later cast from epoxy resin.



How did I get there?

As mentioned, I conducted extensive breadboard tests with my sensors before finalizing or manufacturing them. These were very frustrating tests for a long time. Because frustration doesn't take photos, there's a small gap here as well. The photodiode I used for testing only generated an extremely small photocurrent and reacted particularly to strong brightness, not, as in my case, to a slight change in brightness caused by a ball falling into the cup. The IR decoder sounded promising, but unfortunately, the vast majority of the radiation was already reflected by the underside of the cup, so I couldn't achieve any measurable difference with the ball. Measuring with IR would have freed me from the ambient light variable, which would have been nice.

Now you're reading this because I've chosen the photoresistor. It's cheap, after all. I experimented with it a bit. To stay in the style of my very early beer pong table, I'd like to illuminate the cups from below. For this, I had also acquired LED rings in advance, which are also of the WS2812b type. To see how they work and behave, I built a simple test scenario using 3D printing and performed the following test.



This meant I knew what fit I needed on my future underside so I could continue with the casting.

In addition to the inserts, I obviously also need to finish my milled wood, so I decided to use epoxy resin here as well, so I could possibly bond the plate and inserts with it later. I tested the interior surfaces to see how the standard dosage of color for the epoxy resin works. You can see that I have a little white in there, which doesn't match what I want to achieve on the top, so I adjusted the dosage accordingly.

1 / 5
2 / 5
3 / 5
4 / 5
5 / 5

Molding and Casting - Week 18 & 19

Here's just a brief overview of the mold making process, based on the slideshow below. Unfortunately, because I didn't have any non-food-grade silicone available in the lab, I had to use some of my food-grade material for the mold. However, considering I only needed about 80 ml for the mold, the whole thing is more than manageable.

1 / 6
2 / 6
3 / 6
4 / 6
5 / 6
6 / 6

I conducted various tests with the epoxy resin. Because I wanted to make the epoxy resin milky white, I also ordered a matching liquid UV white colorant. From left to right, I made three test pours in plastic cups. On the left is the recommended dosage, in the middle is double the dosage, and on the right, given that I later reduced the dosage to smaller quantities, I used something between three and four times the amount of colorant.

I liked the middle version best because it allows enough light to come from below and also ensures that my photoresistor can possibly continue to work. The milkier the epoxy resin becomes, the greater the light scattering, and thus, in practical tests, no noticeable differences were observed. Even with the epoxy twice as colored, it becomes significantly more difficult, but seemingliy not impossible. This is especially encouraging given that, as I write these lines, three rather milky epoxy castings are curing. I'm keeping my fingers crossed.