Live data from Hacker News

My quest to make motorcycle riding that tad bit safer

gill.net.in

131–140 of 390 posts

Re: My quest to make motorcycle riding that tad bit safer

#131
post #73

Earlier quoted context omitted.

> my US mazda cx5 center brake light flashes when you press the brakes. That is not a factory feature, it's almost certainly a dealer-installed piece of junk like this ( https://pulseprotects.com/product-info/ ) which the dealer almost certainly charged a stupid amount of money for, and as noted it's not actually legal in the US. Around me the local Hyundai/Kia chain loves to install those, and I hate them.

As you may be aware, the US is a confederation of states. The type of light that flashes several times at the initiation of braking is specifically authorized by the California Vehicle Code, and perhaps in other states.

Do you have a reference as to where it's allowed in the CVC? FMVSS section 108 table I-c specifies this for the stop light:

Steady burning. Must be activated upon application of the service brakes. When optically combined with a turn signal lamp, the circuit must be such that the stop signal cannot be activated if the turn signal lamp is flashing. May also be activated by a device designed to retard the motion of the vehicle.

Re: My quest to make motorcycle riding that tad bit safer

#133

I unsuccessfully built something like this for my bicycle a while back: https://niels-ole.com/bike/maker/2020/02/20/bicycle-light > It turned out that when I accelerate strongly, I pull the bike back, at some point in the rotation of the pedals. This is rightfully detected as a sudden deceleration of the bicycle. I guess on a much heavier motorcycle the deceleration of the motorcycle is actually a meaningful indicato…

Busch und Müller has some products with brake lights

https://www.bumm.de/en/products/dynamo-rucklichter/produkt/3...?

https://www.bumm.de/en/products/e-bike-r%C3%BCcklichter/pare...?

Re: My quest to make motorcycle riding that tad bit safer

#134
Really nice project.

If you are thinking commercial you may want to look into IP issues to see if there are active patents (probably expired by now?)

As far as design choices, based on my journeys in similar types of projects: (just my$.02, not a critique)

USB will be a significant point of failure. The connector has voltage present and electrochemical activity will destroy the connector over time unless you can keep it in a clean, low humidity environment. Consider a different connector or a wireless SOC to eliminate this point of failure and make a completely potted unit possible. If you use usb, make sure there is no voltage normally present, even from the data connections, and you have a good watertight plug for the access port. Everything gets wet on bikes. Everything. nRF52840 or ESP32C3 would be my go to choices here, but there are a lot of excellent candidates. BLE is probably the protocol you will want to use. This will facilitate making a simple app to do firmware updates and feature adjustments.

Consider eliminating the need for RPM input. This will be a significant point of failure and your greatest installation headache across different motorcycles.

As a failsafe, control the lamp output pass-through with a pulled-up mosfet of at least 50a capacity (you won’t ever see this high current, but it protects from bulb changing short circuits and other unknowns)

An Infineon BTS5016-2EKA or its low side equivalent is probably a great choice, and gives you both of the switches you need in one package, for less than $3, with full protection features. ( I assume you will need one to interrupt existing signaling and one to light where’s there is no activation from the brake switches)

The main thing is the lamp must light with regular inputs even if the circuit loses power or the chip gets a hole drilled in it. If it comes on when it shouldn’t, that is also bad, but not as bad.

Idk what sensor you are using, but consider the icm20948, it’s not too expensive ($3-4) and it has onboard sensor fusion. Only downside is it’s 1.8v, but if you use the nRf52840 that’s not an issue. Even so, level conversion isn’t too big a deal. Sensor fusion will greatly simplify understanding what’s going on.

Since power consumption is not critical I would consider using an ML algorithm on the sensor data to detect hazard conditions, lie downs, etc and filter out steep uphill/downhill false activation/failure to activate.

You could collect the data easily and train a simple model with off the shelf tools designed specifically for doing that kind of thing with MCUs. I forget the name but it’s commonly used for voice action or gesture training. You might want to train on a few bikes though, especially ones with different vibration frequencies.

Now you can add a subscription model for premium flashing features and “enhanced AI” with in-app GPT4 access to an interactive tour guide and a “best rides” feature customized to your riding style and search history! Business could pay-to play, and insurance companies, motorcycle manufacturers, and tire sellers would love that personally identifiable riding data! (Please, don’t)

Re: My quest to make motorcycle riding that tad bit safer

#135
post #121

When I was commuting daily in the SF fog, I discovered that putting on of these [1] on my helmet did wonders to keep cars further off my tail. It moves the brake light up to eye level for people in SUVs and also triggers on engine braking. Wish it were cheaper, but was a worthwhile investment for me. Also, consider looking into airbag vests if you ride regularly. Also expensive but (supposedly) make a huge difference…

I ride a bicycle, and I deliberately mount the rear light directly at the eye level of typical sedans and SUVs. It's not connected to the brakes, but I find that having the light pulse is enough.

Are you on a penny farthing? A tallbike?

I've got the rear flasher on my road bike tucked as high under the seat as it can get, but even with a large frame bike and relaxed commuting (non-aero) posture I'm shorter than the hood lots of full-size SUVs and pickups, much less the seat.

I agree with the other commenter that a 360 cam on top of the helmet has been the most important thing for deterring tailgating and road rage. I've added reflective tape on the frame, the blinking blinking lights under the seat, a headlight on the handlebars and a headlamp with front white and rear red light, and my backpack has a nearly fluorescent neon green cover. Those all help reduce the "Oops, didn't see you there while looking at my phone" close calls, but do nothing to reduce intentional harassment - that's the function of the camera.

Re: My quest to make motorcycle riding that tad bit safer

#136

The author did a great job actually building the project, doing a layout and custom design rather than just stitching together off the shelf modules. Good work. That being said, in 20 years of riding motorcycles and being an ATGATT (all the gear, all the time) kind of rider, I'm mixed on the need for this. It's something I have thought about doing with a direct hardwire to the throttle, but I can't come up with a sit…

You're making an assumption that someone tailgating you wants to pass. That isn't really true. A decent percentage of drivers just want to tailgate someone.

Well then they can tailgate someone else.

Re: My quest to make motorcycle riding that tad bit safer

#137
post #73

Earlier quoted context omitted.

my US mazda cx5 center brake light flashes when you press the brakes.

> my US mazda cx5 center brake light flashes when you press the brakes. That is not a factory feature, it's almost certainly a dealer-installed piece of junk like this ( https://pulseprotects.com/product-info/ ) which the dealer almost certainly charged a stupid amount of money for, and as noted it's not actually legal in the US. Around me the local Hyundai/Kia chain loves to install those, and I hate them.

I bought the car used. I did not install it, but can not claim the previous owner did or did not.

Re: My quest to make motorcycle riding that tad bit safer

#138

When I was commuting daily in the SF fog, I discovered that putting on of these [1] on my helmet did wonders to keep cars further off my tail. It moves the brake light up to eye level for people in SUVs and also triggers on engine braking. Wish it were cheaper, but was a worthwhile investment for me. Also, consider looking into airbag vests if you ride regularly. Also expensive but (supposedly) make a huge difference…

[deleted]

Re: My quest to make motorcycle riding that tad bit safer

#139
post #121

Earlier quoted context omitted.

I ride a bicycle, and I deliberately mount the rear light directly at the eye level of typical sedans and SUVs. It's not connected to the brakes, but I find that having the light pulse is enough.

Are you on a penny farthing? A tallbike? I've got the rear flasher on my road bike tucked as high under the seat as it can get, but even with a large frame bike and relaxed commuting (non-aero) posture I'm shorter than the hood lots of full-size SUVs and pickups, much less the seat. I agree with the other commenter that a 360 cam on top of the helmet has been the most important thing for deterring tailgating and road…

Sorry if I was unclear. I have two rear lights. The first one is mounted on the seat post near the eye level of sedans. The second one is mounted at the bottom of the helmet near the eye level of large SUVs.

Re: My quest to make motorcycle riding that tad bit safer

#140
post #36

Earlier quoted context omitted.

Most, if not all, modern motorcycles already come with ABS braking. For many motorcycles it's also adjustable, for example switching off ABS in the rear while retaining it in the front, for those riding offroad and dirt. Many bikes also come with cornering ABS, meaning that if the motorcycle is at an angle, the ABS comes in gradually. Overall ABS is pretty much a "solved" problem right now, on motorcycles 2012+ at th…

If you're in Australia where it is mandated, sure. In most of the world, no motorcycles have ABS

I'm in South Africa, and most of the popular brands have ABS by default, including top sellers like BMW R1300GS, Honda Africa Twin, KTM 890. This is big adventure country, like Australia. I think the superbikes also have ABS now since about 10 years ago.
Post reply on HN