New ESP32 Based Arduino RC Engine Sound Generator: Simultaneous Horn playback, a lot of Free Sounds!
Vložit
- čas přidán 7. 12. 2019
- In this video, i’m going to show you my new, ESP32 based Arduino RC engine sound unit: github.com/TheDIYGuy999/Rc_En...
old ATmega 238 based version: github.com/TheDIYGuy999/Rc_En...
Parts can be found here: www.banggood.com/Wholesale-Ar...
bitlunis ingenious wav conversion tool: bitluni.net/wp-content/upload...
Features & improvements:
- better sound quality, sampling rate up to 22’050Hz, instead of 16’000
- real DAC outputs, no R/C filter circuit required
- easier sound file conversion thanks to bitlunis conversion tool (link above)
- the variable speed engine sound can play at the same time as an additional sound with fixed speed (a horn or a siren for example)
- more sounds in better quality available
- special sounds included like: „Martinshorn“ fire truck horn, US Police siren, Swiss post bus horn, train horn, car horn, MAN TGA truck horn
- Engine sounds for: Land Rover Defender V8, ford Mustang, Chevy Nova, Dodge Challenger, MG B GT V8, LaFerrari, V8 Trophy Truck, Scania V8, Ural V8
It is already in usable condition, but I intend to develop a lot more features and maybe my own board in the future.
Material links:
- ESP32 board: www.banggood.com/search/esp32...
- PAM8403 amplifier: www.banggood.com/search/pam84...
- Small speaker: www.banggood.com/Heng-Long-So...
- Big Speaker: www.banggood.com/HG-110-112-U...
- Resistors: www.banggood.com/search/resis...
- Breadboard: www.banggood.com/search/bread...
- Jumper wires: www.banggood.com/search/jumpe...
Banggood Weekly Coupon Deals: goo.gl/D8B1Mu
Banggood Weekly Discount Deals: goo.gl/uGS7Lf
Now go and build your own!
My DIY Open Source Arduino 2.4GHz and IR „Micro RC“ Remote:
github.com/TheDIYGuy999/Micro...
github.com/TheDIYGuy999/RC_Tr...
github.com/TheDIYGuy999/RC_Tr...
github.com/TheDIYGuy999/Rc_En...
www.thingiverse.com/TheDIYGuy...
github.com/TheDIYGuy999/RC_Tr...
Check out my other RC videos: • Remote control
My GitHub: github.com/TheDIYGuy999
My Thingiverse: www.thingiverse.com/TheDIYGuy...
Follow me on Twitter: / thediyguy999
on Flickr: www.flickr.com/people/1517355...
and on Instagram: / thediyguy999
If you want to support this channel: / thediyguy999
#TheDIYGuy999 #Arduino - Věda a technologie
Thanks for all your great projects on CZcams, Thingiverse and Github! I'm following your electonics, rc car/truck and 3d printing projects, you are a wonderful resource!
Thanks for the praise
Fantastic sounds, great Job, looks complicated but you done a great Job, thanks for sharing 👍😁👍
Thank you. No, it's not really complicated, it just looks like, because of the wiring.
The RC sound effects just got a lot better! My Arduino engine sound generator is now based on a powerful ESP32 processor. I allows to play longer sounds with higher sampling rate. Even 2 fully independent sounds at the same time are possible! Check it out: github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32
awesome,also big thanks for sharing your work with us,im still using a V 1.32 of your engine sound simulator and trying to make my own sound ( the 300 TDi Defender) but it still sound like the generic diesel, LoL
Thanks and you're welcome. Yes, making the sounds is not easy and requires a bit of practice.
Thanks. I've been looking around for this kind of sound generator for model train soundbox application.
You're welcome. It already includes some train sounds
Outstanding project. Great work and thanks for making it open source! I'm going to fork some of your code for an open source VESC display I'm building for another 24kW ebike build, my 5th one. I'm going to sample Southpark's vocal Harley sounds, and maybe a tronbike or podracer too, and run a pair of 20W surface exciters.
Wow, this thing rocks
Thanks
Thank you very much 🙏🎈⚙️🇯🇵
Hi, this is a great project and thanks for all the links. My PCB arrived in the UK within a week! Fantastic service.
Having built my unit, I want to load the Landrover engine sound. As I am new to Arduino, could you give some instructions on how to download in install on the ESP32 or do a short video?
Many thanks again.
Thanks. Basically, you can find all the required informations in the main text on my GitHub. Read is carefully sand it should answer most questions, I think:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32
Edit: I just improved the documentation on GitHub
Great looking video. Presume you did a great deal of your very own html coding.
heyo
I live again! 😄🎉👍
Thanks....
You're welcome. I hope, it will be useful
@@TheDIYGuy999 yes very useful, because this is what I wait, in the sound engine before memory is very limited, and in this video it seems that memory is very much so there are how many additional sounds such as start sound engine and horn.
btw can you make a tutorial using 2 esp32 modules, 1 functions as RX, and 1 esp32 functions as TX. Regards
Yes, it has much more memory, but only the selected sounds are stored on the module. I had the same idea with 2 ESP32 modules, time will tell.
@@TheDIYGuy999
Once again, I thank you very much.
I will always see the news and knowledge that you will give us.
regards
Dear Sir,
Thanks a lot for the project and all the documentation you provided. I'm planning to use the sound generator for my boat. I already found some include files for the engine sound and I should find my way in the code. I only have one question regarding the audio amplifier : I have a PAM8403 item with a potentiometer already solded on the device. Based on your V1.1 scheme, can I bypass R18 and just use the two 10k (R11& R12) connected to the IN-L entry of the amp ? Should I use another cabling scheme ?
Thanks by advance for your answer and again, thank a lot for the impressive job !
Great Job. great inspiration. any change to scale this up for Eikes?
Any idea on how to make something like this work on an electric scooter using an ESC and the signal from a Hall effect pedal?
Do you have full tutorial step by step for programing ? I've tried programming but after upload sound engine don't work. The blue light just blinks slowly. So where is it wrong?
Fantastic!!! This is one project really worth building!!! Thank you for sharing!!! I'm wondering would it be too hard to port the code to STM32? I'm a complete novice as far as the code writing goes but not stranger to electronics. I'm converting some of my boys' Bruder trucks to RC so this would make it even more interesting and attractive.
Thanks and you're welcome. I think, it would be possible, but I prefer the ESP32 with its easy USB interface. The memory size of the STM32 would be an issue as well and you would have to use an SD card or external flash memory to store the sound files.
Great work, can this be easily altered so i can program into my model train that can make multiple channel sound correspondence to action and CAM(rotation/position) speed?
Thanks for sharing!! Is there any way to use nrf24l01 to control remotely? I'm planning to add a slide potentiometor to imitate plane throttle
It´s a great project. Thanks a lot. I´m trying to do something like this to put motor sound to an electric bike. I guess it would be more simple cause I won´t need lights, horn or rc, just the signal from throttle and the motor sound. I would thank your help with this.
you did it?
very nice project, is it posible to use this on ebike? thanks
I make 30pin sound and light card for tamiya king .its work fine with 8ch sbus , butt my head lights not working no low and high beem D3 pin connect to head light please share some information..
Nice, can you also make a video how to make engine sound generator for electric bike/motorcycle using arduino
Thanks. It would be the same.
could you please tell me the name of horn sound file that you used at 2:56 time, thank you alot!
Quero usar apenas o som do motor e luzes é necessário colocar o código inteiro? e meu rádio só tem 02 Ch tem algum problema?
how to setting adjusment remote for Dumborc X6 Transmitter and X6F receiver?
acho que estou com problema na hora do código, tenho a impressão que não está carregando para o esp32 p
30 pinos, faço a ligação tudo certo, mas quando vou testar não funciona.
Hi simple question can i use a log pot 10 k instead of the 3296?
Hi! Great project btw, I have a problem, how to implement dashboard on OLED 128x64 running of I2c with SSD1306 display library? Can you help me with this? BR
Hello,
So far I built three of your Rx micro receivers, two RC transmitters, and your sound module for ATmega328, and they all work fantastic.
However, I am currently trying to work with the ESP32 sound module and I keep getting the following error:
redefinition of 'const unsigned int sampleRate'
I get it every time when I try to verify the program. It does not matter which vehicle sound I am using. So far I have not been able to find the cause of the error.
Please let me know if you have any suggestions or an idea what could be wrong.
Thank you.
Hi, never uncomment more than one sound per category. If you add your own sounds, make sure, that the variables on top of the .h file are named according to the existing files of the same category.
Hope this helps
Hi i build the compact one
using iBUS protocol
Got it build only no sound coming out
my son install the ESP-WROOM-32 Development Board
sound/light file i know ibus compact for just sound
I am using Flysky FS-i10 FS I10 2.4ghz 10ch Transmitter and Receiver System
with FS-IA10 and using the FS-CEV04 Serial Bus Receiver For iA6B iA10 Receiver
Need help on hookup and software to install
Can you make one with jetsons sounds?
Where the github project from this video? without LCD, dashbord, etc.. (based on ESP32) Please help
How to upload ppm. In seting remote
Great job!!
Can we use the same code with ESP32-S2 (but it is single core)
Hello, your thinking and sharing is very nice.
I have Arduino UNO , speaker and potentiometer
Can I make these sounds throttle using potentiometer?
Thank you
This version does not work on a UNO. You have to use this, but it't much less advanced: github.com/TheDIYGuy999/Rc_Engine_Sound
You can add potentiometer support, using the analogRead() function.
So I’m looking to put something similar in my kid’s power wheel I customized. I’m familiar with github but an Arduino beginner. Same products should work right? Or is there another way to do this without the 2.4ghz remote part (since it will all be on the power wheel & not activated via remote)
You can trigger the sounds for example with analogRead(), but you have to change the code
Hi! This is amazing! Can this be added to a kids power wheel?
Thanks. Yes, as long as it has one of the compatible control signals:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
Otherwise you have to change the code.
How much does building one of these cost?
I like a lot your work, i'm doing something similar to control several signals in a RC boat, but now i'm heavily interested in the horn, in the MAN Truck horn, the sound is perfect for me, and it's really easy to have or not to have the motor sound, because i need to use the horn without the motor sound, but i have a small issue, i need to make the horn sound giving to the ESP32 a single closing contact signal, not a servo signal, is it possible in your design?
Yes, replace (pulseWidth...) in this section with digitalRead():
// detect horn trigger ( impulse length > 1700us) -------------
if (pulseWidth[3] > (pulseMaxNeutral[3] + 180) && pulseWidth[3] < pulseMaxLimit[3]) {
hornSwitch = true;
//sirenSwitch = false;
soundNo = 0; // 0 = horn
}
else hornSwitch = false;
TheDIYGuy999 thanks a lot for your help, I’ll try
Bisa pesan hanya modulnya saja...yang sudah di isi swara truk?
You have tutorial save modif file
can u help me with wiring schemartic and setting if i use Radiolink RC4GS V2 Remote ? tks
See: www.rc-modellbau-portal.de/index.php?threads/esp32-arduino-rc-sound-und-licht-controller.7183/
Is it possible to use external DACs with higher bitrate in purpose of getting higher quality sound?How can ı achieve higher qualty?
Rn I'm working on an i2s based sound generator with esp32 and max98357 16bit audio dac but I'm having a hard time trying to fit 16bit 44.1khz audio files into the esp32, I tried external sd card but this takes takes the variable sampling rate capability which really affects the revving up sound which I found was a good combination of two sounds overlayed with variable sampling rate and volume. It's still a work in progress but if anyone is willing to pitch in ideas I'm open.
The update file has many library, i don't understand how to use it , can you share the version in this video?
Thank you very much.
You can also download old versions on my GitHub. How to use this software: github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
Hello Brother! Is it possible to control a servo motor and an H-bridge (PWM) with the same esp32? Whether with Bluetooth or NRF24l01 ? Gratitude!
Olá Irmão!
É possível controlar um servo motor e uma ponte H (PWM) com o mesmo esp32?
Seja com Bluetooth ou NRF24l01 ?
Gratidão do Brasil!
I am trying to do something very similar. Need low latency sound effects but having issues doing this via SD Card -> I2S -> MAX98357. is using the onboard ESP32 DAC and having the sound effects in RAM the only way to accomplish such low latency effects?
Im using an audio library by a guy named xtronical but variable sampling rate doesn't seem to be an option in his i2s audio library with the sd card , without the sd using on board memory it's possible to vary sampling rate but with only 3 mbs left for audio files I can barely fit any onto the 4mb esp32. Maybe I try to modify an esp32 with a 25q128jvsq chip for 16mb of storage, maybe that will be enough to store my starter , idle , one or two rev loops for mixing and variable sampling , gear shift , turbo flutter and rev limiter sounds.
Ok. Built it again. Connecting a 5v rail on the receiver side to any other 5v rail results in power cycling on and off repeatedly.
Ive narrowed it down to a problem with the code. With a blank ESP32 board installed, everything powers on and seems fine. With a board with the code loaded, it pulses power. Tried 2 different boards. Holding the boot button for a second causes it to come on and stay on, but no sound.
@@lordsanityfree I'm having the same exact problem, but I cannot pinpoint any of the issues, any tips?
hi, i wanna make using arduino nano, want to make sound engine and horn, but your schematic and pcb is not clear for me, can you make it again for arduino nano ?
Hi, engine sound and horn will not work on a nano, it does not have enough memory. The schematic for the ESP32 version is now finished, including eagle board file
Oo i see, ok thx alot for sharing
Hallo, erstmal ein großes Lob an dich! Das hört sich fantastisch an! Nun zwei Fragen. Funktioniert das auch mit einem Arduino Mega? Und könntest du mal eine Anleitung machen wie man das alles aufbaut und dann Programmiert?
Hallo, vielen Dank. Nein, das funktioniert nicht, dazu hat er zu wenig Speicher und Rechenleistung. Ich habe soeben das Eagle Schema und Board auf GitHub veröffentlicht. Dies macht es sehr einfach, das benötigte Board zu bestellen, z.B. bei Oshpark oder JLCPCB. Sobald mein Board angekommen ist, werde ich sicher ein Video über den Aufbau machen. Das Löten wird sehr einfach sein, da ich bewusst keine SMD Komponenten verwendet habe. Auch das Programmieren des ESP32 ist mit Arduino sehr einfach.
Verstehe ich das Richtig der ESP32 macht den Sound! Aber ich muss den doch mit einem Arduino oder ähnlichen ansteuern oder?
@@thomasfrie163 Ja, das macht er. Der ESP32 ist im Prinzip ein Arduino und wird auch damit programmiert. Vor dem Heraufladen des Programmes, muss man in der Datei Adjustments.h wählen, welchen Sound man will ( die beiden // einfernen) und sonstige Einstellungen machen. Angesteuert wird er mit Standard Servosignalen vom Empfänger. Am einfachsten ist es, Y-Servokabel zu verwenden.
Ok dann werde ich mir den ESP32 auch nochmal genau anschauen. Wieviele Aus- und Eingänge usw. Ich habe nur gesehen das es den ESP32 auch mit Bluetooth an Board gibt.
Bin schon auf dein neues Video mit dem Eagle Board gespannt. Finde den Sound wirklich mega! Gibt es denn so eine Art Tutorial wie man die Software am ESP32 aufspielt und verwendet? Auf dem ESP32 läuft ja ein Arduino Programm, oder?
Can we use pwm as input signal like previous one arduino based
Yes, see: thediyguy999.github.io/TheDIYGuy999_ESP32_Web_Flasher/products.html
unfortunately I bought esp 32 board there is no pin 0 (D0) for head light ... is it possible to use another pin?
Yes, just comment out this line in the Adjustments.h file as follows:
//#define PROTOTYPE_36-PIN // 36 or 30 pin board (comment it out for included PCB)
Then connect the headlights to the RX0 pin instead
@@TheDIYGuy999 Ok, I'll try, thank you .... you are the best....
dear mr diyguy, i would like to try it, but i know nothing about electric, how do i start it?
thank you
Have a look at all the other videos about it on my channel and read the manual:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
I have tried to make this module but until now it still does not work, I use a Mini Amplifier PAM8403 with include potentiometer, is it still using a 10 K resistor connected with pins 25 and 26 according to your schematic? any way big thanks for sharing your work, sorry my english is not very well
What does not work? Which input signal type are you using PWM or PPM? You have to select the correct signal type in Adjustments.h
@@TheDIYGuy999 I do not know, in the remote control specifications (I use dumborc 6 channel)
Modulation Mode: GFSK
Spreading Mode: FHSS 67 channel pseudo-random frequency hopping, which one do I choose PWM or PPM ?, sorry I don't really understand Arduino programming, anyway thanks ...
@@muslaeni4829 I'm having the same issues. Wired everything up, loaded everything up, no sound. No real help. Wasted money on arduino parts for a failed project. Should have just bought an ESS Dual.
I need for tank Henglong
Can I buy this, but sound I need scania bus🙏
Unfortunately not, but it's really easy to build your own as well as making new sounds
Hi, If I opt for the version : Compact version for excavator (IBUS & sound only, supplied by 6V BEC , photo: compact1.JPG , Which all files need to be uploaded from GitHub? Than You.
Hi how would I used this application on a real vehicle with a bigger speaker. Most modern vehicle have 5v signs wire on the throttle pedal. Any ideas?
'TaskHandle_t' does not name a type
I am getting such an error. What should I do? thankyou
Install the board according to: randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/
You also need to install the latest version all the libraries, which are mentioned in the comments
merhaba emre bende aynı hatayı aldım en son sürümleri yükledim ama çözemedim sen problemi bulabildin mi ? yardımcı olabilir misin ?
Hallo,
Kannst du ein Video vielleicht ein Video machen wie man den "dead spot" vom servo beim jlb cheetah weg bekommt?
Außerdem habe ich ein Problem und zwar im hinteren teil von meinem auto hört man manchmal so ein knacken/knistern wenn ich fahre und es hört sich so an als ob es von Reifenbefestigungen oder dem Differential kommt. Hast du damit vielleicht Ehrfahrung?
Btw Ich finde deine Videos echt hilfreich aber das elektronik zeug ist mir noch ein bisschen zu kompliziert (ich mach grad eine Ausbildung zum Elektroniker 😁) aber ich würde es gerne nachmachen weil es mich sehr interessiert
Hallo,
Den bekommst du nur durch den Ersatz von Sender & Empfänger weg. Am Servo liegt es meist nicht. Wenn deiner knackt, ist an einem Zahnrad ein Zahn gebrochen. Das ist der häufigste Fehler beim Cheetah. Ich habe dann meine Räder im Backofen wärmebehandelt und seitdem ist Ruhe. du findest Videos zu beiden Themen auf meinem Kanal. Wenn du Elektroniker lernst, wirst du meinen Empfänger problemlos zusammenlöten können, probiers doch einfach mal!
@@TheDIYGuy999 Danke für die Antwort,
Wie meinst du das mit den Rädern im Backofen?
Und zu dem Receiver habe ich mir schonmal ein video angeschaut geht das nur mit dem receiver oder kann man ds jeden beliebigen nehmen?
Sender und Empfänger müsste man dann selber zusammenbauen richtig oder braucht man dann irgendeinen receiver wo schon was drinne ist?
Welches Öl würdest für die Differenziale empfehlen?
Räder im Backofen: czcams.com/video/qV8JvKY8QBs/video.html
Du musst auch meinen Transmitter nehmen, zumindest die Elektronik, welche du dann in einen bestehenden einbaust.
Fett für Diffs: super dickes 500'000cst Silikonfett
can you guide me to add a new audio file
See: github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
Why can't I download the firmware???
You have to install the ESP32 board according to:
randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/
Also install the mentioned libraries
Thanks for you sharing! SBUS connection is working, but don't know how to make PWM mode works. I tried to "comment" SBUS line in "adjustmentsRemote.h", but there is not working.
Thanks. Please read: github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
Is there a more comprehensive guide to the software aspect of this? Trying to verify the sketch nets tons of errors involving missing parenthesis.
There are no errors, if you install the ESP32 board and all the required libraries:
//
// =======================================================================================================
// ! ! I M P O R T A N T ! ! SETTINGS (ADJUST THEM BEFORE CODE UPLOAD), REQUIRED ESP32 BOARD DEFINITION
// =======================================================================================================
//
// All the required vehicle specific settings are done in Adjustments.h!
#include "Adjustments.h" //
@@TheDIYGuy999 i tried to copy the errors i'm getting here but it wouldn't work. my header doesn't look like yours.
@@TheDIYGuy999
//
// =======================================================================================================
// LIRBARIES & TABS
// =======================================================================================================
//
#include "curves.h" // load nonlinear throttle curve arrays
//
// =======================================================================================================
// PIN ASSIGNMENTS & GLOBAL VARIABLES (Do not play around here)
// =======================================================================================================
//
@@TheDIYGuy999 I'm about to give up on this and just buy a module. I've been fighting this sketch for 4 hours and no sound.
@@lordsanityfree Why it doesn't look like mine? Then you should download the latest version. You have to install all the libraries and the ESP32 board definitions, which are mentioned in my previous answer. Also make sure, you read everything on my GitHub page. I can't help you without knowing your error messages.
Sounds are quite plastic
Thanks. There is still potential, I may try to add separate sounds for the higher rev range
Would be nice to have high bitrate sound from like a nfs game. Those people with scale trucks often have very shallow tincan sound. Would be nice if there could finally be a fix for that
I would avoid anything 8bit were not in the 90's anymore
Coding
See:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/Eagle_PCB/How%20To%20Order%20Your%20PCB.pdf
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/documentation/quickStartManual.pdf
Hey, look at that! I bought your board, I followed your schematic, and IT STILL DOES NOT WORK!
I feel like you owe me an ESS Dual. The money I spent following your plan was wasted.
Then you have to wire and adjust it correctly. It is working for a lot of other people around the world.
@@TheDIYGuy999 so, using your board i somehow didn't wire it correctly?
@@lordsanityfree You told me, you can't read a schematic, so how will you make sure, you populated the board correctly? Also have a look at the improved instructions on my GitHub. Maybe, this helps to configure and wire it correctly with your vehicle.
@@TheDIYGuy999 between the board, the schematic, and the video, im certain i wired it up correctly. When i feed 7.4v to the power input, the only thing getting power is the amp. If i feed 5v to it from and esc thru the receiver, the esp powers on but nothing works.
@@lordsanityfree So you are feeding 7.4V to the "X1" connector and to the ESC, which supplies 5V to the "ESC" connector and from there via Diode D1 to the "VIN" pin on the ESP32. Do you measure 5V there? Ist the diode soldered the right way around? The ring marking on the diode needs to point towards the ESP32 side.
thath sounds like farming simulator 1 tractor