ESP32 Arduino RC sound & light controller: revving sound, jake brake & more!
Vložit
- čas přidán 28. 08. 2020
- In this video: software update v5.1 for the DIY Arduino ESP32 RC engine sound & light controller: Jake Brake, Cummins 335, Caterpillar 3408, Detroit 8V71, new light functions, transmission neutral mode
Part 1, unboxing: • Tamiya King Hauler & F...
Part 2, trailer build on Junior’s channel: • Video
Part 3, first controller tests: • G.T.POWER Truck Sound ...
Part 4, sound & light controller demonstration: • Arduino DIY ESP32 Truc...
Part 5: first test drive: • TAMIYA King Hauler wit...
Part 6: Virtual clutch demonstration: • Tamiya King Hauler wit...
Part 7: Bench sound test: • DIY Truck Sound & Ligh...
Part 8: Outdoor test: • Worlds Best Sounding R...
Part 9: Scania V8 Open Pipe: • Arduino DIY ESP32 RC T...
Part 10: Diesel knock: • Arduino DIY Realistic ...
Light & sound controller features & improvements, compared with old version for ATmega328P:
- better sound quality, sampling rate up to 22’050Hz, instead of 16’000
- Multiple sounds can play simultaneously
- real DAC outputs, no R/C filter circuit required
- 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, Kenworth, Detroit Diesel etc.
- Air brake & jake brake sounds
- Output for vibrating motor, which simulates engine vibrations
- Vehicle inertia simulation (if crawler type ESC is connected to pin 33)
- Virtual clutch, making the engine sound much more realistic (if crawler type ESC is connected to pin 33)
- Many light functions like headlight, tale light, brake light, indicators, blue light, foglight, sidelights, high & low beam
- 4 RC servo signal inputs
- 13 light outputs
- PWM, PPM & SBUS communication
- Serial one wire communication with my „Micro RC“ remote system: github.com/TheDIYGuy999/Micro...
Material links for sound controller:
- ESP32 board: www.banggood.com/search/esp32...
- PAM8403 amplifier: www.banggood.com/search/pam84...
- Speaker: www.banggood.com/Heng-Long-So...
- Resistors: www.banggood.com/search/resis...
- PCB: jlcpcb.com
More Links:
- King Hauler semi truck kit 56301: www.tamiya.de/de/produkte/rc-...
- Semi-trailer light set 56502: www.tamiya.de/en/accessories/...
- Hobbywing Quicrun WP 1080 Brushed Crawler ESC: www.brack.ch/hobbywing-regler...
- 540 35T brushed motor: www.banggood.com/Racerstar-54...
- Servo (you need 2 or 3): www.banggood.com/4X-JX-PDI-62...
Banggood Weekly Coupon Deals: goo.gl/D8B1Mu
Banggood Weekly Discount Deals: goo.gl/uGS7Lf
My DIY Open Source Arduino Stuff:
github.com/TheDIYGuy999/Rc_En...
github.com/TheDIYGuy999/Micro...
github.com/TheDIYGuy999/RC_Tr...
github.com/TheDIYGuy999/RC_Tr...
www.thingiverse.com/TheDIYGuy...
github.com/TheDIYGuy999/RC_Tr...
bitlunis wav conversion tool: bitluni.net/wp-content/upload...
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
paypal.me/thediyguy999
#TheDIYGuy999 - Věda a technologie
You sir, are an electronic genius! I wish I had the skills to make one of these!
Thank you. You do have them. Assembling one is really not hard, if you use a pre made PCB. You just have to solder the components.
@@TheDIYGuy999 Soldering small components is something I'm not good with. I always do one of two things A. burn the boards. B. get too much solder & it provides contact between 2, or more circuits.
@@pnwRC. The board is designed to be solder friendly, no small components. For soldering instructions, have a look at this video:
czcams.com/video/fYz5nIHH0iY/video.html
@@TheDIYGuy999 Hey, I am watching your old vids about MacG5 and G4, can i ask you which screwdiver you use to dissasemble the heatsink. Please
It's amazing. As usual
Thank you so much
Thank you for creating the Arduino ESP32 RC engine sound & light controller, I have built three and it still amazes me how good they are for such a cheap price. the building was easy enough but the programming was a little difficult for complete novices like me so all you have to do is find a techno kid to help. The only thing I changed was to put a 3 pin header where the volume pot goes and I used an ordinary mini pot with a knob and 3 pin lead so that i can control the volume externally. Looking forward to future versions to see what else you come up with. Many Thanks
You're welcome. It's always a good idea to ask techno kids, if you have issues with electronics gadgets. Your name sounds german, so if you talk german, I invite you to the RC-Modellbau-Portal: www.rc-modellbau-portal.de/index.php?threads/esp32-arduino-rc-sound-und-licht-controller.7183/page-16#post-236727 I would love to see pictures about your builds there
@@TheDIYGuy999 Born in Germany, moved to Australia when I was 1 year old. Been here since 1956 wouldn't want to be anywhere else, again many thanks for an affordable sight and sound controller
@@dietmarschwecke3057 OK, interesting. I really would like to see your work, maybe you could share a CZcams video or a Google drive link to some pictures?
Amazing has always. 👍
Thank you
Great update 😍
Thank you
Great work. I will immediatley install this new version into my esp32 borad. I had to postpone my project yet as I moved from home, but I will finish to use a modified version controling 4 servos and synchronizing gear sound and a 2 servo 5+1 gear lever that I built. my goal is to have the tamyia gear shifting servo moving to 1st gear from rear to second sound gear, moving to second gear on 3rd and 4th gear sound and moving to 3rd gear on 5th nand 6th, in automatic mode :)
I wanted to add an euro6 scania sound (used in 400 series) too, but it's hard to find good source, and I had some weird shifting behavior
congratulation again, this dyi sound and light project is going way beyond what we can expect from an MFU commercial sound kit
Thanks a lot for the praise. Your shifting will be tricky, but should be doable with this hardware. Yes, finding good sounds, which contain all the required states is quite hard.
The Jake Brake is the COOLEST feature ever!!!
Thanks, Yes, it's cool. I think, there is no other sound controller, which has this feature. Also have a look at:
czcams.com/video/u0d2Bo_hIhA/video.html
thank you very much sir.....
Hello friend ....... every time you upload a new video I get nervous hahahahaha because it will be an incredible job, every time you improve more and more, you are a great person and a great professional ..... thank you very much for sharing with us all your experience thank you from the heart ......................
Thank you so much for your kind words
i have updte my arduino and its work,tq sir
Cool, have fun with it! You should also try the new v5.2 preview.
@@TheDIYGuy999 i will
I know I’m the beginning we may have had differences but I must say you pushed on and this is now becoming one of the best sounds that I’ve heard. Keep up the great work! I was getting ready to ask about jake brake as that part of the video played. Jake brake must be part of semi sounds for me. How about the locomotive air horn? Those custom semis all run the loco horn.. I still can’t not throw out ideas lol.
Colossal BigShot Thank you so much for the praise
Yeah man i was skeptical at first but this is one of the best soundtracks and setups ive ever seen
@@MrJob91 Thank you. If I learned something during this project: reproducing realistic engine sounds is not simple. More than 2100 lines of code so far, excluding libraries, configuration- and sound-files!
@@TheDIYGuy999 there is nothing like this, must be insanely fun to mod
@@MrJob91 Yes, it is. You should build one. Boards can easily be ordered as described on my GitHub. I also have an assembling tutorial video.
Incredibly amazing 👏.. Im already building a second one now. I've got it to work no problems using ppm but can't seem to get sbus to work. Hopefully I'll figure it out.
Thank you. Have you tried "sbusInverted = true / false". You may also have to change the channel order [x] in readSbusCommands()
@@TheDIYGuy999 I seemed to get it working by pluging my receiver sbus plug to the rx pin on the pcb board. Which I did by accident. Still get nothing if I plug it to the sbus pin. Seems to work fine pluged in the rx pins so ill just leave it there. I absolutely love the sound of the jake brake. Thank you so much for sharing this.
@@kevintopping2465 change "sbusInverted = true / false". Then it should work on the SBUS header. If not, your transistor circuitry is faulty.
This project is very nice! I ordered the pcb 😁 Can I find sounds for the t 34 tank in the project?
How wonderful you are
Thanks
Would be nice if you explained the code setup in a video
Wow, you have been really busy with the upgrades!
Yes, I was and still am. Is your receiver coming together?
@@TheDIYGuy999 I will be working on it today. I will do a video when it is done.
@@jps99 Good luck
@@TheDIYGuy999 Thanks. On the Micro Receiver circuit board (SMD) does Q1 get soldered to the NRF24L01? The holes line up, but I can't tell from your photos if you soldered it.
jps99 Q1 is the 8MHz resonator, which needs to be soldered on all 3 pads
Wow, Nice 👏👏 You have sound for cars?
Thanks. Yes, see:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
I really love how you modded the stock controller. Do you have some more info about modding the controller? I use a devo 7e with allot of extra switches, but yours looks like normal wl toys controller. Anyway epic epic epic it looks and sounds awesome 😁👌👌👍
Thanks. This receiver is completely modded inside. It contains my "Micro RC" transmitter electronics. Link in the description. The stock potentiometers are wired to the new electronics. Unfortunately, I don't have a video about this transmitter, but it is very similar to this one:
czcams.com/video/oU4COrRqudU/video.html
czcams.com/video/HNjLZuy2b2A/video.html
Does this have to be used with Your Tx or will it work with a commercial Tx? Outstanding work BTW.
Thanks. It also works with commercial remotes. To use all functions, I recommend to use SBUS, which is an industrial standard, which is also used by my DIY receiver. You can also use standard PWM servo signals, but you will be limited to 4 channels. For details on how to configure and wire it see: github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
Pls can you tell me where i can get a proper schematic of the board that you had ordered or can you send me the gerber file pls and i am not talking about the esp32 i am talking about the one that you had used to make the horns and engine sound , pls answer fast because i am doing a project and i have to finish it before 30/3/2023. pls answer fast pls!!!!!!!!
Congratulations!!!!
I was thinking that if we used a sound module in the truck and another sound module in the trailer and communicated them somehow wirelessly, could we have lights on the trailer without annoying cables? It is still crazy, heh, heh
Thanks. Activating wifi causes a lot of overhead on the ESP32. I think, it will not be able to handle that together with the high interrupt load for sound playback. Maybe Bluetooth could be an option, but it's not on my priority list.
I think this is the way to go for the trailer connection. A serial IR connection, hidden in the coupler area:
forum.arduino.cc/index.php?topic=10555.0
@@TheDIYGuy999 You never cease to amaze me. Thank you!
@@oscarveterinario It will not happen today or tomorrow...
hi friend, where i can download the sounds?
My DIY RC sound & light controller is getting more and more realistic. What do you think? Let me know in the comments. Until next time!
Any chance we could get a Ford powerstroke version? Best sounds in my opinion . . .
Yes, provide the exact vehicle and engine type. Maybe you have a video link?
Do you sell these??
Hi! Is there a manual mode for this similar to the Tamiya MFC? Rather then just auto?
Also is there a 4 stroke Detroit engine?
Thanks in advance,
Hi, yes, Tamiya 3 speed, simulated 3 speed manual (both shifted by 3 position switch), simulated automatic with torque converter, simulated double clutch.
No, there is no 4 stroke Detroit, but a lot of others like CAT 3408. See full list on GitHub. also have a look at my other videos and: www.rc-modellbau-portal.de/index.php?threads/esp32-arduino-rc-sound-und-licht-controller.7183/page-118#post-407651
Looks great but there is one basic problem each page is a link to a page that has various products on it and What quantity of each product do I need to build it?
You can see it on the schematic: github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/tree/master/Eagle_PCB/Final
hello friend, is there the latest update for the RC transmitter / RC receiver that you are using, because I saw in the video you already have CH5
Hi, yes, use the latest transmitter and receiver update. Wire the buttons according to: github.com/TheDIYGuy999/RC_Transmitter/blob/master/3buttons.jpg They are connected instead of the CH4 joystick.
Connect receiver and sound controller in SBUS mode
@@TheDIYGuy999
well, thank you for the explanation, good luck friends
If there any chance to use pwm signal to control the light rater than sbus signal?
Hi, I may add more PWM inputs in the future, but in general I don't recommend to use PWM, because it causes too much interrupt load to read them all.
Ordered the parts to build one, amazing project ! I did develop one myself, check the vids ;-) Yours looks like an upgrade.
Thank you. Yours looks very good. Do you have any documentation about it? It would be interesting to compare them.
@@TheDIYGuy999 it is microchip based. Sounds come from a micro SD Card. I also used a custom header stripped file system too make it easier. Sound and light run each on a dedicated controller but light and sound are synchronized by communication .
hello amestro what make and model is your rc control thanks for the answer greetings
The housing is from WLtoys, the rest is DIY:
github.com/TheDIYGuy999/Micro_RC_Receiver
github.com/TheDIYGuy999/RC_Transmitter
do you have a video on how to built the sound card with a list of parts, im building a 1/14 fire engine and would love to this type sound to it,
czcams.com/video/csQgTfxRd8Y/video.html
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/tree/master/Eagle_PCB
www.rc-modellbau-portal.de/index.php?threads/esp32-arduino-rc-sound-und-licht-controller.7183/
@@TheDIYGuy999 do you have a parts list? the PCB link comes up to their home page and does not show any items.
I think I have figure it out, working on order from PCBWay now..
@@TheDIYGuy999 you have 3 different gerber files, SMD, Prototype and Final, and i only see the BOM and CPL file under SMD, which one should i use. also you show ordering from PCBWay and JLCPCB, which one should i order from? please help.
Where do I get this sound system with engine brake
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32
Need a little help with loading the files on to the chip. Do you update the Adjustments.h file before uploading the RC_Engine_soundESP32.ino file.? Also uploading the RC_Engine_soundESP32.ino file also pulls all the required sound files as well? Thanks
Hi, yes, you have to make the settings you want in "Adjustmernts.h" before uploading +RC_Engine_soundESP32.ino". All the required files are then uploaded automatically. For details read "README.md" carefully: github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
@@TheDIYGuy999 Thank you. Going to work on this night on bread boards. If all goes good I have the PCB boards for the finished product Thanks for the help.
Well I built this on some breadboards and have the throttle working. czcams.com/video/TvSaAt16reg/video.html Will move it to the PCB next. Thanks.
Can you buy these made up or know someone that can make them
I currently don't sell them, but maybe soon. So stay tuned.
You can instruct the controller to upgrade
Just upload the newest software with the configuration you want, pasted into the "Adjustments.h" tab. Then adjust the communication mode according to: github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
@@TheDIYGuy999 No, it is not. You make a video of the remote (TX)
@@giabaongohoang4791 Sorry, I thought you mean the sound controller. Currently, I don't have a video about this transmitter, but basically, it's the same as in the original "Micro RC" transmitter. The software is the same, just the configuration (available on GitHub) is different.
Thanks
There is error when compile the sketch
"rc triger"does not name a type
Install this library: github.com/TheDIYGuy999/rcTrigger
@@TheDIYGuy999 i have install the library but there is stiil the same error 😁
Please post the entire Arduino error message, so I can narrow it down. Thanks
Ok i will post it later
Hi Garry here from melbourne I want to buy ESP32 sound and light system please send me link thanks
Hi, no, I don't sell them, but building your own is really easy. You can find a parts list on my GitHub (links are in the video description). I also have an assembling instructions video
Hi I no have any idea what parts you use can you please send me all parts detail and link were I can buy thanks Gary
@@Cinnamoroll427 See:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/tree/master/Eagle_PCB/Final
czcams.com/video/Vfaz3CzecG4/video.html
i need some extended help ive been on the git hub and im moving forward with making some sound boards i know u said u didnt have any intrest in adding bluetooth audio to it..... but is it possible im adding my sound unit to my crawler and would like music as well from my phone ...... with out addtional weight :)
so ur github page says its recommending the esc u have ....how do i use my esc and configure it mamba x sensored brushless 4600kv
im completely new to this arduino stuff bluetooth and pcbs and ordering electronics parts and 30pin vs 32 pin esp32s think i found the esp32 30 pin i would like to send u an email parts list to know if im ordering the right parts im not ordering from banggood to avoid dutys,fees,customs but insted a local Canadian electronics vender u linked need the end of ur parts list "mouser.ca" < im trying to order all the parts from and amazon.ca would u be able to help me out ?
or could u put together a complete parts list on mouser.ca for me ?
1. I will not add bluetooth support for music, it's an RC sound controller
2. You can use other ESC, but it needs to have a direct brake (no double click for reversing)
3. I don't have the time to search alternative components for people, use the existing list
Instruction on GitHub is poor. never got mine working.
It's not. Just read everything
Arduino: 1.8.7 (Windows 8.1), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
Rc_Engine_Sound_ESP32:127:1: error: 'rcTrigger' does not name a type
rcTrigger momentary_1(500);
^
Rc_Engine_Sound_ESP32:128:1: error: 'rcTrigger' does not name a type
rcTrigger momentary_2(500);
^
Rc_Engine_Sound_ESP32:129:1: error: 'rcTrigger' does not name a type
rcTrigger momentary_3(500);
^
Rc_Engine_Sound_ESP32:130:1: error: 'rcTrigger' does not name a type
rcTrigger momentary_4(500);
^
Rc_Engine_Sound_ESP32:132:1: error: 'rcTrigger' does not name a type
rcTrigger button1(500);
^
Rc_Engine_Sound_ESP32:133:1: error: 'rcTrigger' does not name a type
rcTrigger button2(500);
^
Rc_Engine_Sound_ESP32:134:1: error: 'rcTrigger' does not name a type
rcTrigger button3(500);
^
Rc_Engine_Sound_ESP32:136:1: error: 'rcTrigger' does not name a type
rcTrigger button1toggle(500);
^
Rc_Engine_Sound_ESP32:137:1: error: 'rcTrigger' does not name a type
rcTrigger button2toggle(500);
^
Rc_Engine_Sound_ESP32:138:1: error: 'rcTrigger' does not name a type
rcTrigger button3toggle(500);
^
Rc_Engine_Sound_ESP32:140:1: error: 'rcTrigger' does not name a type
rcTrigger button1toggleLong(500);
^
Rc_Engine_Sound_ESP32:141:1: error: 'rcTrigger' does not name a type
rcTrigger button2toggleLong(500);
^
Rc_Engine_Sound_ESP32:142:1: error: 'rcTrigger' does not name a type
rcTrigger button3toggleLong(500);
^
C:\Users\Tarigan\Documents\RC Engine sound\NEW\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void rcTrigger()':
Rc_Engine_Sound_ESP32:2053:7: error: 'button1' was not declared in this scope
if (button1.momentary(pulseWidth[4], 1000)) headLightsFlasherOn = true; else headLightsFlasherOn = false; // Headlight flasher
^
Rc_Engine_Sound_ESP32:2056:7: error: 'button3' was not declared in this scope
if (button3.momentary(pulseWidth[4], 2000) && currentRpm > jakeBrakeMinRpm) engineJakeBraking = true; else engineJakeBraking = false; // Engine jake brake
^
Rc_Engine_Sound_ESP32:2060:7: error: 'button2toggle' was not declared in this scope
if (button2toggle.toggle(pulseWidth[4], 1150)) masterVolume = 75; else masterVolume = 120; // Change volume between indoor and outdoor mode
^
Rc_Engine_Sound_ESP32:2063:7: error: 'button1toggleLong' was not declared in this scope
if (button1toggleLong.toggleLong(pulseWidth[4], 1000)) headLightsHighBeamOn = true; else headLightsHighBeamOn = false; // High / low beam
^
Rc_Engine_Sound_ESP32:2064:7: error: 'button2toggleLong' was not declared in this scope
if (button2toggleLong.toggleLong(pulseWidth[4], 1150)) neutralGear = true; else neutralGear = false; // Neutral gear true / false (manual transmission only)
^
exit status 1
'rcTrigger' does not name a type
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Arduino 1.8.7 is deprecated. Try the current version. Windows 8.1 could be the issue as well.
Ow...i see..i have trouble with my pc and have upgrade the windows..
I will try with the current version..
Tq sir
But for version such as version 4.4 its still work fine with arduino 1.8.7
@@frenkkotarigan Update Arduino, another viewer had exactly the same issue on 1.8.7. I will no longer support 1.8.7
Ok sir,i will update my arduino and try again
😊
Help me sir
Rc_Engine_Sound_ESP32.ino:143:1: error: 'rcTrigger' does not name a type