News for hackers. Stuff that matters.
Re:DIY 1,500W solar power electric bike by jacquesm on Thursday February 09, 2023 @12:08AM (#34720005)
The way that controller and charger are mounted to the chassis without any real shock absorbing measures is asking for trouble, I've done something similar and I think that half the work was to make sure that shocks from the road on the frame did not make it to the electronics or the battery (and that system has worked well for about a year now).

Also, the electronics are mounted out in the open and on top of a small bit of wood, that works well in the lab but if you're going to be biking and end up being rained on it may well cause issues, just using splash proof connectors isn't enough, you need to protect the electronics from the elements by eliminating direct contact with the elements. Much like in a car: all of the connectors under the hood are waterproof and they are under the hood, not out in the weather.

That said, it's a neat idea.

Re:DIY 1,500W solar power electric bike by andreareina on Thursday February 09, 2023 @01:02AM (#34720282)
How did you manage the shocks? I've been thinking about a conversation for my commuter (more for the diy aspect than really wanting an electric)
Re:DIY 1,500W solar power electric bike by Hextinium on Thursday February 09, 2023 @01:32AM (#34720439)
For most shocks a little foam goes a long way, having the electronics be bolted to a cushioned box or having the electronics laying in foam (with appropriate cooling) helps a lot.

Source: I cushion my robots this way, haven't gotten to the ebike yet.

Re:DIY 1,500W solar power electric bike by jacquesm on Thursday February 09, 2023 @05:36AM (#34722045)
Bikes operate in a pretty tough environment, especially potholes and vibration need some careful thinking when it comes to the effect on your design. Potting is best but then you have to be very careful about managing the heat. Your robot experience will serve you well when building an e-bike but beware of the weather, heat, rain, snow, ice and UV are all pretty rough on electronics, enclosures and wiring.
Re:DIY 1,500W solar power electric bike by jacquesm on Thursday February 09, 2023 @05:34AM (#34722026)
The whole is mounted in a trespa box in such a way that there is a few millimeters of shock mount in all three directions (very high density foam) and all empty spaces are completely filled up. That box in turn is then mounted to the frame again in a similar way, I tested the whole using dummy weight and the accelerometer in a phone to see what happened when jumping a pothole at speed (which is about the worst that you could do to this bike) and it came in well under the limits and also tested it on a very rough path to see what it would do when subjected to vibration. The front fork is a very nice 'Fox' unit with adjustable springs which have been set to be in the middle of their travel range when the bike is fully loaded and so that it never bottoms out even under the worst conditions.

On the whole it isn't perfect but good enough for many years, I've run this setup for a year now and have once (at 5K km) inspected the wiring and the battery welds and everything seems to be holding up quite well. Things to be careful with: overpressuring the tires would reduce the amount of shock absorbing capacity quite a bit (and is definitely not recommended with tires this wide anyway), the rolling resistance of these is fairly high but that is just how they are designed. Then, obviously there is bumping in to things and falling at speed, which fortunately hasn't happened. But if it did I would immediately consider the battery pack a write-off in spite of being super well protected. I've done about 10K on it now and when it hits 20 I'll take the whole thing apart to see if there is any wear that is hidden from view. I'm mostly concerned with the battery welds and the wiring, those are the weak points, even with all of the wiring contained within the enclosure, routed carefully to never cross over any other wires and with the welds checked using a FLIR during a pretty rapid discharge (twice as fast as the motor could ever do).

The OP has mounted the charge controller and the motor controller to a piece of wood (which will flex a bit but not much) which in turn appears to be protected in only one axis (side-to-side) and is either free to move or rigid in the other two. The wiring runs 'cold' without any kind of extra protection through the wood that it is mounted on. The frame is unsprung as far as I can tell, which especially for the front is not a luxury on a bike this heavy, which makes bike+battery the unsprung weight (I think I see a saddle pin with a rubber mount so there is some flex there). That battery box may have some foam in it or some other suspension for the battery which is good.

As long as he's on good asphalt this setup will work, but as soon as you go on less perfect roads I think that it will give trouble over time. DIY stuff like this looks great on the day you build it if you don't build it for abuse, but exposed wiring is dangerous and vibration as well as the weather are going to be rough on this. I'm curious what it will look like a year from now if used intensively, and also how the wire runs are on the other side of that board.

Re:DIY 1,500W solar power electric bike by londons_explore on Thursday February 09, 2023 @02:51AM (#34720950)
Dip a circuit board in epoxy and it becomes pretty much shockproof. A bike, even one with high pressure tyres on a bumpy road, won't kill it.
Re:DIY 1,500W solar power electric bike by jacquesm on Thursday February 09, 2023 @05:59AM (#34722230)
Tricky to pot something that will make a lot of heat such as a charge controller or a motor controller. You will need to carefully manage your heat if you do that.
Re:DIY 1,500W solar power electric bike by londons_explore on Thursday February 09, 2023 @06:31AM (#34722425)
There are ways to pot circuit boards with heatsinks. The best way is to attach the heatsink, then cover the heatsink with something like polystyrene, pour over the epoxy, and then dissolve the polystyrene away with a few drips of gasoline.

End result, everything is perfectly potted except the topside of an aluminium heatsink.

Re:DIY 1,500W solar power electric bike by jacquesm on Thursday February 09, 2023 @11:55AM (#34726991)
That's a neat trick! I use a similar one to create positives for casting but never thought of using it to protect heatsinks during potting, thank you.