The author is configuring the sensor wrong i think. The usually way is you setup sampling rate of register, setup fifo inside register, wait for interrupt from sensor(through GPIO pin), then read from FIFO. Just blindly read data from sensor will get you in trouble, like reading duplicate value
A vibrator helped me debug a motorcycle brake light system
11–20 of 60 posts
Re: A vibrator helped me debug a motorcycle brake light system
#12I too have repurposed a similar machine to try to help me solve a nagging problem. One of my vehicles uses a hydraulic clutch. By design, air bubbles can be trapped in the master cylinder due to factory bends in the lines and the orientation of the master cylinder when it is properly installed. If this happens it will be impossible to shift the gears (manual transmission) until the air is bled from the lines. I tried…
I'm given to understand there are multiple companies manufacturing those back massagers in different shapes and colors these days, if you need one that can reach into those tight places under the hood without relying on the PVC pipe to help it along.
Re: A vibrator helped me debug a motorcycle brake light system
#13Re: A vibrator helped me debug a motorcycle brake light system
#14Earlier quoted context omitted.
I'm given to understand there are multiple companies manufacturing those back massagers in different shapes and colors these days, if you need one that can reach into those tight places under the hood without relying on the PVC pipe to help it along.
Sounds like a front massager. Different tools that certainly have their place, especially when there's no pipe handy.
pipes just lead to trouble
Re: A vibrator helped me debug a motorcycle brake light system
#15...
> But when things are smooth for a while, the debounce comes back down
it sounds like he's just incrementing a variable in the first case and using timers to decrement it in the second case. that's a bad implementation. the correct implementation here is an envelope follower, or maybe-perhaps a kalman filter. OP's implementation will exhibit motorboating: https://en.wikipedia.org/wiki/Motorboating_(electronics)
Re: A vibrator helped me debug a motorcycle brake light system
#16Earlier quoted context omitted.
Sounds like a front massager. Different tools that certainly have their place, especially when there's no pipe handy.
yeah there's all sorts of useful shapes and convenient features, priced for every budget. Better in most ways! pipes just lead to trouble
I'm an old pipeliner. I can vouch for that.
Re: A vibrator helped me debug a motorcycle brake light system
#17Earlier quoted context omitted.
Sounds like a front massager. Different tools that certainly have their place, especially when there's no pipe handy.
yeah there's all sorts of useful shapes and convenient features, priced for every budget. Better in most ways! pipes just lead to trouble
Re: A vibrator helped me debug a motorcycle brake light system
#18Mildly related: "Evan and Katelyn" is the name of a youtube channel where (amongst other less mature things) they make a bunch of small things with concrete and epoxy, like a concrete keyboard. Both materials (especially concrete) need some assistance in flowing into small spaces and getting bubbles out. For the size of project they often work on... a personal vibrator seems to work damn well. Concrete keyboard video…
Re: A vibrator helped me debug a motorcycle brake light system
#19It's easier said than done, but you might want to approach this like a data science project. Record the data from your test runs, annotate the behaviour you want, and build up a dataset. You should be able to experiment with any number of tweaks (admittedly except for the data sampling itself) without having to get back on the bike.
Re: A vibrator helped me debug a motorcycle brake light system
#20I too have repurposed a similar machine to try to help me solve a nagging problem. One of my vehicles uses a hydraulic clutch. By design, air bubbles can be trapped in the master cylinder due to factory bends in the lines and the orientation of the master cylinder when it is properly installed. If this happens it will be impossible to shift the gears (manual transmission) until the air is bled from the lines. I tried…