Live data from Hacker News

A vibrator helped me debug a motorcycle brake light system

bikesafe.me

11–20 of 60 posts

Re: A vibrator helped me debug a motorcycle brake light system

#11
> the sensor has its own built-in sample rate, 400 times per second. If I read it too quickly, I might just be grabbing the same number twice

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

Re: A vibrator helped me debug a motorcycle brake light system

#12
post #8

I 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.

yeah, downhill mountain bike mechanics have used this method for brake bleeds for a while.

Re: A vibrator helped me debug a motorcycle brake light system

#14
post #8

Earlier 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.

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

#15
> It bumps up the debounce for next time

...

> 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

#16

Earlier 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

>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

#17

Earlier 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

As I understand it you can even source them with specific bend and taper profiles, which lets you optimize for the geometry of the system you're trying to flush.

Re: A vibrator helped me debug a motorcycle brake light system

#18
post #7

Mildly 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…

When I poured a pier for my telescope I did something similar with a sawzall

Re: A vibrator helped me debug a motorcycle brake light system

#19
> Motorway is an hour out from where I live. Each tweak meant hopping on the bike and carving out hours to test.

It'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

#20

I 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…

For bleeding hydraulic brakes, which operate on a similar principle, the normal procedure is to open the bleeder valves on the slave cylinders and vigorously pump the pedal, refilling the master as necessary, until the fluid coming out of the bleeders is free of bubbles. Vibrating the lines won't do anything since the air bubbles fill their entire inside diameter.
Post reply on HN