Sound through gyro / pedal

Hi everybody,

Sorry if this has been asked but my brain is like soup and I am really bad at a lot of things.

I would like to ask you all if you can help me out with a project.
I have an electric car and don't have money for the 1000 dollar + sound generators.

My idea:
Use gas pedal and stick a Gyro on it. Through Arduino board load a sound of gasoline powered car and then attach a wireless (charged) speaker.
If the board needs power I could give it through the 12v plug in the car.

How can I realise this?

(reason is I need feedback when racing / drifting)
Thank you all.

You on the right track but there are probably easier and better ways to get the position of the gas pedal.

Gyros sense rate of angular motion, not saying it wouldn't work, but an accelerometer might be slightly easier.

But some kind of potentiometer woukd be my first stop.

Some guitar pedals use a rack and pinion driven conventional rotary potentiometer, you might even find a repair part that's just the thing.

There will come several many more ideas soon here for sure.

Or a linear pot slide fader, yeah that's the ticket.

Then your problem is using that number, pedal deflection, to control the pitch or timbre or volume of your feedback sound.

a7

See

HTH

a7

How will You handle the effect of going up hill or down hill?
Find another way to play with the gyro.
A linear pot would do well. If You want to construct a contactless sensor I once designed for a well known car manufacturer.

the car has an OBD connector. you can read the position of the pedal, engine speed and some other data to calculate the required sound frequency to generate

The Arduino UNO has very little memory for holding sound sound samples, about three seconds worth. Other Arduinos have more. The simplest way to store the sounds is with a DFplayer module which has an onboard SD card in it and can play pre-recorded sounds. The you can connect the output of this to an audio Bluetooth sender board for your wireless speakers.

You could record several audio samples of a car at different speeds and playback one depending on the reading you get from your peddle. But you will probably have to get the samples to seamlessly loop.

To sound good, this project is a lot harder than you think it is.

Thank you everybody for all the ideas / replies.

The reason I can't use OBD2 is because my electric car does not send out RPM signal. I have tried multiple OBD2 plugs with apps and even apps that generate sound.
This is the main reason why I am trying to look into other stuff.

Going uphill or downhill isn't really something that occurs here in the Netherlands and when I am drifing on track it would only mean I would get a little bit of body roll.

I am a bit discouraged as I am truly super stupid. It's not that I don't want to do any effort for it but I think it's gonna be too long of a journey for me to just build something or figure it out. My memory isn't that great to say the least...

But anyway... I am looking for a board like mentioned above that could hold reasonably big files regarding engine sound however I would like to have it sound like a real car. (slider?)

So I thought some kind of device that knows the pedal situation when it's up or down or halfway pressed in would be a good start.

Sound out through a simple wireless speaker shouldn't be a problem.

Other than that I am grasping at straws haha.

The steepest hill I have encountered in the Netherlands, is the one that used to take you off the motorway to the German boarder crossing. It had a red triangular "steep hill" symbol and my wife an I used to laugh when we passed it, as being from the North of England it hardly classed as a slight slope. Last time we went (2019) after many years away there was no boarder there but we still saw it.

To do that you record a real car, that is the only way unless you want to synthesise the sound, and that is several orders of magnitude above what you are proposing involving complex maths.

I was thinking this: You can get sound modules for RC cars, like this one: Engine Simulated Sound System Module with Speaker For 1/10 RC Rock Crawler Car | eBay I bet there are cheaper and more expensive ones with different car sounds to be found with google. Edit* this one has 58 types of engine sounds: https://nl.aliexpress.com/item/1005002598194984.html

Those soundboxes are PWM / throttle controlled. Next step could be using an MPU6050 + arduino to convert the angle of the MPU6050 to pwm.

Disconnect the speaker from the soundbox and add a headset connector?

1 Like

But - just why? :roll_eyes:

Thanks again everybody.

Grumpy I hear ya haha.

Hans that sounds really good. I have been looking at those RC things for a long time. Years ago I made something similair without arduino but just with tape and tie-wraps on my crazy cart to simulate sound as well.

I will look into it further but I really want this to happen! Cheers

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.