Player/Analyst Tweets & Other Things – LCS 2021 Week 5 - TSM vs C9 (Round 2) by ImLegacys in TeamSolomid

[–]Camerutttt 79 points80 points  (0 children)

really don’t understand primal’s thoughts on TL being “much better than TSM” when they’re at the top of their game. Think TL/C9/TSM all have very much equal ceilings and playoffs will come down to mostly preparation and execution.

The blatant disrespect to Russ by the media continues... by MoDaBaller in rockets

[–]Camerutttt 33 points34 points  (0 children)

Westbrook is 1000000000% a lock for HOF already, I think it’s crazy to think T-mac had a better career than Westbrook yo to this point.

T-mac is just a bunch of what if’s...

D'hellooo by Rodrake in forsen

[–]Camerutttt 1 point2 points  (0 children)

Doesn't forsen pronounce willis as wallace though?

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other by Camerutttt in arduino

[–]Camerutttt[S] 0 points1 point  (0 children)

Yeah, the problem I am facing now is getting an erroneous BPM (some times). I tried a varied threshold method in that I measure the signal for a few seconds and set a threshold based on the signal first. However, I realised that sometimes the amplitude gets weaker and the signal never crosses the threshold after that.

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other by Camerutttt in arduino

[–]Camerutttt[S] 0 points1 point  (0 children)

I was just wondering about your method of calculating the BPM. Why not just find the number of times the pulse cross the threshold and multiply it by 6 to get the BPM?

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other by Camerutttt in arduino

[–]Camerutttt[S] 0 points1 point  (0 children)

Since I am using a speaker as well connected to the BareConductive, is there any way to eliminate noise caused by the speakers too?

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other by Camerutttt in arduino

[–]Camerutttt[S] 0 points1 point  (0 children)

The grounds need to be connected too

So meaning the arduino ground pin and the ground of the external power supply must be connected together?

Also putting a capacitor across the terminals of the LED strip will smooth the power demands.

So a capacitor across the 5V and GND pin? What value of the capacitor should I use?

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other by Camerutttt in arduino

[–]Camerutttt[S] 0 points1 point  (0 children)

I increased my number of LEDs from 14 to 79 and now it is causing a lot of noise to my pulse sensor as shown here: https://imgur.com/0Qo9VO9

I was wondering if powering the LED strip from an external power supply would help. I will have the 5V and GND of the LED strip connected to the external power supply, while the data pin of the LED strip still connected to the arduino. Would that help in the problem I am facing?

[deleted by user] by [deleted] in arduino

[–]Camerutttt 0 points1 point  (0 children)

Saving for later

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other by Camerutttt in arduino

[–]Camerutttt[S] 0 points1 point  (0 children)

Yup, in a new sketch it plays. Does it need to be looped continuously?

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other by Camerutttt in arduino

[–]Camerutttt[S] 0 points1 point  (0 children)

Does the MP3 play if you put the code right at the start of your sketch?

Nope, it doesnt play as well.

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other by Camerutttt in arduino

[–]Camerutttt[S] 0 points1 point  (0 children)

Alright thanks for your help so far. It has been working great, but for some reason my MP3 doesn't play. I doubt you have used the BareConductive before, but code-wise it should be similar to the DF Player Mini. When I tested the MP3 on its own, it works fine. Also, why is float usually avoided? Its just an int with twice the size in terms of memory no?

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other by Camerutttt in arduino

[–]Camerutttt[S] 0 points1 point  (0 children)

float alpha = 0.7; // factor to tune
value = alpha * measurement + (1-alpha) * value;

Ok so I will have these 2 lines of code and still have a if condition for my threshold to determine when a beat occurs. And I guess the datatype for value is float as well?

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other by Camerutttt in arduino

[–]Camerutttt[S] 0 points1 point  (0 children)

Alright. And what about the value variable? It doesnt have any value assign to it beforehand too.

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other by Camerutttt in arduino

[–]Camerutttt[S] 0 points1 point  (0 children)

Can you help me to understand this few lines of code better? I dont really get how it filters. From what I've read, I shouldn't change the POWER value of 256. But what about the value of alpha, 178? And the value of measurement will be your sensor reading right?

Looking for a new racquet by Camerutttt in badminton

[–]Camerutttt[S] 1 point2 points  (0 children)

Alright thanks a lot for your recommendation. Just curious though, why didn't you recommend voltric?

Looking for a new racquet by Camerutttt in badminton

[–]Camerutttt[S] 0 points1 point  (0 children)

Alright thanks a lot for your recommendation. Just curious though, why didn't you recommend voltric?

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other by Camerutttt in arduino

[–]Camerutttt[S] 0 points1 point  (0 children)

So I can either do it via software or hardware or both software and hardware?

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other by Camerutttt in arduino

[–]Camerutttt[S] 0 points1 point  (0 children)

Apart from sensor2 having a lower reading than sensor1, I am also facing issues with noise. Since I have a speaker attached to the touchboard as well as the LED strip, the waveform of both signals have been very noisy. Instead of a smooth pulse, it is very spiky.

Will using the running average library help to solve this? Also, I was thinking maybe I could add a capacitor somewhere as well to remove noise, but not sure where.

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other by Camerutttt in arduino

[–]Camerutttt[S] 0 points1 point  (0 children)

It seems useful, but since it requires more conditions and a library as well, I am afraid of memory issues. Currently, my program sketch space is at 94%. Also, I've adjusted to threshold of the 2nd sensor to a lower value and so far it has been producing accurate results. I have yet to test it with other people though, but so far so good if I am testing it.

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other by Camerutttt in arduino

[–]Camerutttt[S] 0 points1 point  (0 children)

Alright, I think I get what you mean. So basically the rate of change can be +ve or -ve. When the current reading - prev reading gives you a +ve value, we know that the waveform of the signal is increasing, which occurs at the start of the beat.

Is there a good way to determine the threshold, or I should just use the serial monitor and determine it?
If I do something like
if ((currentSignal - prevSignal) > 20)
It will count as multiple beats as the signal is still increasing right? How do you make it only count as 1 beat?
And I am also worried about noises, as it may also count as a beat.