Thank you,
GHS EV Team
Let's keep comments constructive please. He wants to know how to do something for a project for school.Jednorozec wrote:I think that it's a mistake to make a quiet electric motor sound like an infernal combustion engine.
Delightfully 'KISS'.DougieLawson wrote:If your wheels have spokes then it'll be easiest with a playing card (or two) and a clothes peg.
And precisely what we did as kids.pluggy wrote:Delightfully 'KISS'.DougieLawson wrote:If your wheels have spokes then it'll be easiest with a playing card (or two) and a clothes peg.
You just have to spoil our fun with your clever science.scruss wrote:Not just for kids — certain VW cars have a “Soundaktor”, a speaker/amplifier behind the engine that makes fake ‘vroom vroom’ noises. No, really. I'm surprised no-one has made such a gizmo for Tesla drivers, as if you're going to drop that much $$$, you'd think a certain %age of the drivers would want it to bring the noise.
For the OP, you'll want to make a square wave of frequency roughly proportional to the speed of the vehicle. So you'll need a way to measure the vehicle speed (or the motor speed) rapidly, and generate a tone based on that value. If you're feeling really flash, you can add an accelerometer, and have the signal from that influence the volume. If you're feeling flash×10⁶, simulate gear-shifts with pitch shifts down at certain speeds.
Also a safety issue due to ..... not so aware.... pedestrians being run over by electric cars because they could not hear engine noise.scruss wrote:Not just for kids — certain VW cars have a “Soundaktor”, a speaker/amplifier behind the engine that makes fake ‘vroom vroom’ noises. No, really. I'm surprised no-one has made such a gizmo for Tesla drivers, as if you're going to drop that much $$$, you'd think a certain %age of the drivers would want it to bring the noise.
So you're saying it's up to the pedestrian to notice you and jump out of your way? And if they don't, it's there own stupid fault? Even if they're on their phone, or they happen to be deaf?klricks wrote:Also a safety issue due to ..... not so aware.... pedestrians being run over by electric cars because they could not hear engine noise.
Remember we're corresponding with our American friends. Over there someone sued McDonalds for putting hot coffee in their cups without a warning "this cup contains hot coffee" and you have to explain to everyone about the image distortion effects of a convex mirror on the nearside of their car (the explanation "objects in (the) mirror are closer than they appear" is somewhat incorrect to anyone who understand the physics of mirrors, but who cares).Burngate wrote: So you're saying it's up to the pedestrian to notice you and jump out of your way? And if they don't, it's there own stupid fault? Even if they're on their phone, or they happen to be deaf?
Or should we make it a rule that the driver avoids the pedestrian, whether or not they've seen or heard the car?
I did not say that, but it is usually the driver gets the blame even if the pedestrian was at fault. What I was referring to is legislation to make noise generators mandatory for automakers....Burngate wrote:So you're saying it's up to the pedestrian to notice you and jump out of your way? And if they don't, it's there own stupid fault? Even if they're on their phone, or they happen to be deaf?klricks wrote:Also a safety issue due to ..... not so aware.... pedestrians being run over by electric cars because they could not hear engine noise.
Or should we make it a rule that the driver avoids the pedestrian, whether or not they've seen or heard the car?
I think that drivers have an obligation to help some pedestrians win a Darwin Award.Burngate wrote:So you're saying it's up to the pedestrian to notice you and jump out of your way? And if they don't, it's there own stupid fault? Even if they're on their phone, or they happen to be deaf?klricks wrote:Also a safety issue due to ..... not so aware.... pedestrians being run over by electric cars because they could not hear engine noise.
Or should we make it a rule that the driver avoids the pedestrian, whether or not they've seen or heard the car?
I must be quite the specialist, then. Every time I'm faced with a generational music program or an analogue synth, on the very first try I always get a squelchy, farty sound.DougieLawson wrote:I suspect SonicPi could be encouraged to produce some custard farting when driven by a specialist.
The RPi does not have any type of analog input so you would have to have an analog to digital converter..... But current is likely to be non linear. More current will be used starting out or going up hill etc........... so it would be a difficult task to figure out how to code that to get a true representation on speed from current.GHS_EV_team wrote:So the idea thus far is to use Sonic Pi for the noise generation and have this responding to speed (and accelerometer?) or GPS... Could it instead be hooked up to an ammeter and have it based on current, producing noise based on current? How could all this be done? ......