I'm a beginner at programming aduino, this time I tried to program something that looked simple, namely "sound engine simulator", I found the sketch on YouTube and tried to upload it and it ran smoothly, but there was a drawback, namely there were no sound effects when knocking, I wanted to add The sound of the knocking effect but I don't understand the code that needs to be entered. Hopefully someone here can help me solve this problem...
Then you need to actually define, for us, what this sound is and how it might be created. We only know what you tell us and our imagination may not be in sync with yours.
To help you, is the knock from incorrect ignition timing, or from worn out rod bearings or worn out main bearings or is the engine diesel and knock is normal running? They all sound different.
I think you understand my imagination, what I'm aiming for is the sound at the limit when turning on the full throttle, maybe in a petrol vehicle it's very clear... in the sketch it only knocks during acceleration, I want to complete how it works with a petrol engine
I think you understand my imagination, what I'm aiming for is the sound at the limit when turning on the full throttle, maybe in a petrol vehicle it's very clear... in the sketch it only knocks during acceleration, I want to complete how it works with a petrol engine
Lots of words, but you have not said a word about what that knock sounds like! The knock is the motor destroying itself because you are using low quality fuel. Are you wanting to self destruct your device?
maybe it will be clear i mentioned a sketch for esp32 which smoothly runs that sound, but my project is for atmega 328 there is a description of lastdieselknock
Well, since you have an operational example on the esp32, you have two options. Rather than continue to spend time on the Arduino forum, option 1 is to change your project to run on the esp32, or option 2 is to port the esp32 code to your atmega 328.