ESP32 RC Sound & Light Controller: How To Finish The Pre Assembled PCBWay SMD Version
Vložit
- čas přidán 16. 07. 2024
- PCBWay End-Year Promotion with the Biggest Sale Coming This December: www.pcbway.com/
In this video: I’m showing you how to complete the already pre assembled ESP32 EC Engine Sound And Light Controller SMD Version PCB form PCBWay. It is really easy to do it, because all SMD components are already soldered. Of course, the SMD components make the board way more compact than the thru hole version. This makes the board suitable for smaller scale trucks from WPL. Of course you can still use it for TAMIYA trucks. The functionality stays the same.
Virtual 3 speed transmission: • WPL B36 URAL-375D With...
Flysky support: • The Best Engine Sound ...
Revving sound, Kennwort sounds: • ESP32 Arduino RC sound...
SCANIA V8 Open Pipe: • Worlds Most 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, Scania V8, Ural V8, Kenworth, CAT, 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)
- simulated manual 3 speed, automatic & double clutch transmissions
- The TAMIYA 3 speed transmission is synchronised in software and can be shifted while driving
- Many light functions like headlight, tale light, brake light, indicators, blue light, foglight, sidelights, high & low beam
- 6 PWM RC servo signal inputs
- 13 light outputs
- PWM, PPM, IBUS & SBUS communication, makes it compatible with most common remotes
Material links for sound controller:
- PCB including SMD components assembling: www.pcbway.com/
- 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...
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 #PCBWay #Arduino - Věda a technologie
Your ESP32 just keeps getting better and better!
Thank you!
This is an awesome project! I've already ordered enough stuff to make 10 of them. Thanks so much for sharing it. I'm designing a fully 3D printed 1/14 semi truck and I hope this system will really bring it to life.
Thanks for the praise.
Do you want sell me one sound board you made i have the ESP32 readly I am not good with computer for install or order any pcb
@@robertbaker8342 I could sell one to you. Let me check with TheDIYGuy999 first to be sure it’s ok with him if I sell one.
im actually building your semi and want to add this to mine how many channels do i need on a receiver
@@bluesparky727 I have one set up with 6 channels and one set up with 10. The more channels you have the more functions you can control. It can do a lot without your input though, so you don’t need a lot of channels.
amazing work!! collecting parts now can not wait to get started thank you for sharing your work!!
Thanks. Have fun with it
@@TheDIYGuy999 oh I'm going to!!
@@TheDIYGuy999 ive got it working!! thank you again
Amazing bro, you are really great, thanks the firmware😍
Thank you
Wow,great video and information
Thanks
thank you so much for your effort to make it possible to us to do our sound light system better and cheaper than bad /over priced one, but can please show us how to connect to normal pistol receiver without the s-bus ,i mean normal channels
Guten Morgen Martin, sehr sehr schön geworden. Das Bord bietet ja völlig neue Möglichkeiten.
Herzlichen Glückwunsch ! !!
Schöne Grüße aus Deutschland
Andreas
Hallo Andreas, danke für das Lob. Viele Grüsse aus den Bergen
@@TheDIYGuy999 Berge haben wir hier auch, ich komme aus dem Harz. Der Brocken dürfte dir bekannt sein. Aber okay deine
@@picturexxxx Ja, der ist ja bis heute berüchtigt für seine Überwachungsstation aus DDR Zeiten
Ja, zum Glück hatte ich damit keine Probleme, da ich von der anderen Seite her stamme.
Heute Abend werde ich endlich mal die Zeit finden, das Update zu testen. Laptop läuft seit gestern wieder.
Okay dann hab erst mal einen guten Start in die neue Woche....
(man tgx ;-)
Thanks a lot for sharing your work with us! I've got all the hardware ready to solder and I will soon have 5 of your controller of my own ;-) Could you make a tutorial on how to create a new sound file? I would like to create a realistic formula 1 sound file.
nice! its much smaller now 👍
Thanks. Yes, it is.
Hello, your work is excellent. It is possible to use this sound module in an RC tank?
Could it be possible to add torque vectoring to this board? For example put 2 esc to control left and right side motors and a potentiometer to read turning angle. It would be nice to have in my dump truck that really wants to understeer.
Oooh, my head tells me I already have 5 PCB boards mounted but my heart screams that it wants new SMD PCBs ... And best of all, I don't have a truck yet. heh heh
Thanks a lot!
Thanks for the praise, Then you should go and buy a truck ;-)
Where do you show attaching the GPIO0 connection for the Neopixels? I can't see it documented in any of your videos or on Github, except for one pic I have seen, where it is tacked onto a SMD resistor.
Can you make a instruction video for programming the esp32?
Hello friend, first of all, thank you for this great contribution.
I wanted to know if you could give me a tip on how to connect a flysky FS-IA6B. THANK YOU
Nice broo
Thanks
Thank you for the continuous improvements in your project. I note in the BOM.xlsx there are some items crossed out. Obviously these are the pass through bits that they do not assemble. Do they have to stay in the upload file to PCBway or can they be removed? I have never ordered a partially built board so appreciate the advice.
It doesn't matter. Also have a look at: github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/Eagle_PCB/How%20To%20Order%20Your%20PCB.pdf
I ordered the PCB from Pcbway but they are having trouble with the assembly. they are saying that there is one component (C1206) that is listed but no pad on the board for it. They are also saying that one component (DO-214AC) is too big for the footprint on the board. How should I respond to them?The part#s are C4 & D3
I've almost soldered the board and now ready to move on to the tests. Could you comment, please, the light test on 9:30? How does the receiver transmit signals from several channels having only one 3-pin wire connected?
it's using the SBUS protocol. See (interface types):
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
You should read this file entirely
This is awesome, just stumbled across it. What is the maximum load / number of leds each light output can run?
Thanks. See:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/documentation/quickStartManual.pdf
This looks a fantastic sound and light module. I have never built anything like this, I think I would be able. I have not been able to find any info on programming or downloading the software or sounds etc?
Thanks. The GitHub link is in the video description ;-) also have a look at my other videos about it.
hello sir, i downloaded your code learning to do it had the esp32 already some resistor, light pam module, do u have like a screenshot on how or what do i need to edit on code to make it work? thanks a lot im a big fan of your work
This looks very promising! I was looking for something for my tamiya beetle.Is there an option to wire only esp32 with sound amp? I dont need all the custom functions and lights are hardwired.
Thank you. You can also use it without the lights options. Just leave them out. You can wire the ESP and the amp according to the schematic on my GitHub.
Great work. Sorry for different kind of question. For the Micro RC Receiver Light do I need to put C3, C4, C5 and C6 capacitors on the board (no TB6612FNG motor controller)? Thank you.
Thanks. No, these capacitors are for the TB6612FNG. Note, that I recommend to add a 100nF cap across the GND and 3.3V terminals of the radio module.
@@TheDIYGuy999 OK, thank you.
You are the best! I’m now working into a scania mini truck and I’m intending to use sound commander. Do you think it’s possible to use a tablet software with Bluetooth instead of RC controller ?
Thanks. In theory it is possible to use bluetooth, but in this case you have to change the software to fit your needs
The "how to order pcb" on github from previous video has no link.
That such a great work 🤟🏽🤟🏽🤟🏽🙏🏽. I do follow your work sir..but i have a bit questions bout problem i have. I wass doing the programing things with your latest firmware v7. But I can't find my engine sound work from the wiring pin on esp32 to my reciver.
Did you have any suggestions please?? For only the triggered sound simulation things.
Im using 30 pins esp32, and 6ch dumbo rc rx tx. How the wiring should be possible for me?🙏🏽
Big respect. Thanks
Thanks. Wire and configure it according to:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
Hi, this is an amazing work! I'm starting my RC journey and I've already ordered the required parts and the board itself however, looking at your documentation I've noticed that the remote adjustment file is mainly prepared for the flysky and your own controller. Would I have to make many changes to adapt this to Spektrum dx6i? Many thanks
You're welcome. The flysky setting should work (you can also change or copy it easily) as long as the spektrum has the same switches and a dual rate option. Of course the remote channel order has to be adjusted according to the sound controller setting. For details see "adjustmentsRemote.xlsx"
@@TheDIYGuy999 brilliant! Thank you so much for your help!
@@TheDIYGuy999 What rating fuse did you use with your setup? I'm coupling the board with Hobbywing 1080 esc if it helps. Many thanks
so I ordered the assembled pcb from Pcbway and have finished 2 of them. I installed the original excavator sketch and I'm using a Flysky FS I6S transmitter with IA 6B receiver .Changed the vehicle.h and the remote.h as instructed in the GitHub documentation. When I test the boards the same as Martin did in this Video all goes well until I get to the part where he gets the hazard lights flashing. I am getting roof lights and the head lights turning on solid instead. Also I am not getting any sound at all. I have tried both boards and multiple ESP32s and get the same results with them all. I have tried sbus and ibus with same results but don't have the necessary cables to try PWM. I have read every bit of documentation and instructions that I can find so many times that I almost have it memorized. Does anyone know if there are any differences between this board and the newer version with wireless trailer lights or the sketch for the ESP32s that could be causing this problem? I would look for help on the forum that is recommended but I never receive the confirmation email to complete registration for the forum when they send it. Ive tried multiple times. Any help from anyone would be greatly appreciated.
hi ,very good job !!!!!!!
I wanted to know if you sell the fully assembled cards because I do not know how to do .
sorry for my english but i'm french
thank you
You can buy pre assembled boards, but no fully assembled ones. You can see how to do it in this video.
Just received my 5 boards today from PCBWay all the way in Port Elizabeth South Africa, just waiting on my ESP32 and amp boards then I can start...been looking at the coding...bit daunting for a novice....
Have fun with it.
Bro, i watched an old video were u had to solder components, order the pcb and ia this new one. Can i have a list of the new components? Thank you so much!
Hello, with your gerbers.zip file on the pcbway site we get your electronic card with all the small components already soldered on it. You just have to solder a terminal block, a 100 ohm resistor and some pins.
Thank you for your help
Bonsoir, je suis un petit frenchi qui aurai besoin de votre aide. Cordialement
It will come with soldered SMD components, if ordered according to the PDF in this directory:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/tree/master/Eagle_PCB
Hello, I ordered all the parts got it all assembled. Do you have a tutorial on how to configure/setup the radio. My radio in particular is Futaba 8FG. I found your excel configuration spreadsheet but, I'm still a little confused on how to set my radio. Thanks
Hi, read this document and you will know how to configure it:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
It's important so set the 100 & 75% dual rate on your radio according to the excel file
Nice
Thank you
I have question about last update
when i use manual engine on/ off
Why engine begin auto on/start after engine manualy off
@@frenkkotarigan It is starting as soon as you touch the throttle, it is normal.
Its normal
I mean i dont touch the thortle or other
Hello, I have found your channel by chance after looking for options of light and sound OTHER than Tamiyas MFC unit. I found a Beier unit but it looks too complicated your looks better in all respects BUT i have no idea how i get a unit, is it only available in kit form? i can do a bit of soldering BUT getting the PCB ordered from PCBWAY ant the github you mention as me lost,
It's not as had as you think. Just upload Gerbers.zip from here:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/tree/master/Eagle_PCB/SMD
Then select how many pieces you want. In a later step you need to provide the BOM and the Pick and place excel files, which are included in the zip file.
Hi. Can you tell me what speakers did you use in your system, and where can I buy its. Thanks and great job, congratulations.
You can use any speaker between 4 and 8 ohms. Mine have GT Power chassis in 3D printed housings
Bonjour vous avez une vidéo pour installer le fichier sur votre module son et lumière que vous avez fabriqué. ( votre fichier pour installer sur ESP32 on peut le trouver ou)
Cordialement
Hallo. Das ist ein Klasse Modul und genau das was ich auch für meine RC Modelle suche.
Ist es möglich das ganze noch kleiner zu bauen, da ich echt wenig Platz habe?
Board reboots when the Arduino code is compiled using ESP32 board versions after 1.0.5.
Is there a fix??? I have the same problem... Is it the bootloader or ..?
Hello, i am looking at gathering the componants for the build. i have no real technical knowledge of electronics ,i will how ever be able to assemble them. Given this i have2 questons please, Schottky diode 1D5819, i can only get 1N5819. "N" rather than D. Also 1/4w resistor as varoius ratings,which do i need thanks? lastly in the UK i can not get the circuit board printed so will use normal hobby board stuff,the unit will be situated in the trailer so does not need to be small or neat.thanks
iN5819 is OK. You can find the resistor values in the PDF schematics
I understand that it you load the software (as default) for a SBUS system into the ESP32, it should be blinking the blue LED in the board in the moment you power it even if it you haven not connected a receiver. Is that ok? Because when I load the software it doesn't blink and I'm trying to find if the problem is that Arduino IDE doesn't compile the software properly or if my boards are faulty.
It's the hazard lights, indicating that no connection to the transmitter was found. This is normal with the "MICRO_RC" remote profile. Have a look at "adjustmentsRemote.xlsx"
@@TheDIYGuy999 Yes, I used the "MICRO_RC" remote profile (as you have it by default) just in order to to try it. With your confirmation I know I have a problem with the Arduino IDE or with the ESP32. If I got to solve the problem, I will let you know if it works with Futaba Sbus. Many thanks again for your help.
hey is it posable to buy the main pub from you please and thank you I really want just 1 for my truck so I can build my lights and sounds I already have the esp32
Sorry, I don't sell them, but you can order your own according to the manual in this video. It's very easy.
@TheDIYGuy999 I sent the files to PCBWay they've made the board but have 2 issues : (Switch Mode Version)
1.For position C1, there are three holes will be blocked if we solder the capacitors,pls advise and comment.
2.For position D3 , component we purchased as per part number#SS34 is bigger than pads in your design, can't solder. Pls provide correct part number.
Would just like to say this module looks fantastic. I would really like to follow this vid and assemble one RATHER than going with the useless Tamiya unit of overpriced Beier unit BUT ordering the PCB on PCBWAY is way to complicated for the first timer/novice. I tried by using the GERBER files BUT the site still asks for aditional info which the novice will have no idea of.Its a shame the channel could not go into more detail for the novice. I have given up on this module due to ordering side.
You can order the boards easily according to the step by step manual:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/Eagle_PCB/How%20To%20Order%20Your%20PCB.pdf
The pwm receiver how to connect with the sound controller? I have fix the last problem
Read:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
Just built another ESP32 Sound board for my T35, but I can't find a link for the WAV file converter that Bitluni made for you. The link above goes to the old original converter. I checked your Github too and although it shows a png picture of the converter, there is no link there either.
The converter is included on GitHub:
"Audio2Header.html"
It was rewritten by me to fit our needs.
@@TheDIYGuy999 Thanks, I did not know that. I used the one at Bitluni.net and made it work. I captured 15 seconds of the Russian National Anthem to play as Sound1 on my T35 tank.
@@jps99 You can use it as well, but in this case, you have to change the variable names manually. That's why I made my own version.
@@TheDIYGuy999 Yes, that's what I did , but it will be much easier to use your version, which I will do in the future.
Hi. I bought board from PCBWAY, soldered all components and flash program via Arduino IDE. There are no sound. Also my speaker popping all time when I power board on. Can You help?
See comments on RC Modellbau Portal
Coolz 😎👋
Thank you!
Hello, when assembling the board. The top right of board has a section "rear lights" does this accept 2 x 3pins connector OR 3 x 2pin connectors, i am a newb,sorry
You can use 3 pin connectors, glued together back to back. The 5 Volt pin is shared for all rear lights.
@@TheDIYGuy999 2 x 3pin connectors,thank you
would you assemble everythiinfor me with the 3406 cat motor and jake break sound with the light connectors please ill pay for you to do it
Sorry, I don't have the time. You can order your own according to the PDF in this directory:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/tree/master/Eagle_PCB
hi. me again ☺
maybe a request:
#1 maybe a port if this on 328P but lights only? no sound
#2 how can we modify code to NOT have an intertia( or a very minimal one)? I plan to use this on 4wd 1:10 'high speed' .
Hi,
#1 it is not possible, because not all 328 pins are supporting PWM
#2 adjust the "escRampTime" variables in the vehicle preset accordingly
This sound + light unit seems to be the way to go. I can solder ok but never worked with this sort of electronics so have of componant costs etc. Brfore i get into finding the parts etc can anyone give a apx cost of the parts to complete this project?
This is the BOM for the through hole version: github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/Eagle_PCB/Final/Components%20list.pdf
I try to order with PCBWAY but I can't they ask for a Part List BOM file and Centroid file?
They are included in the Gerbers.zip, but you have to provide them separately. They are named BOM.xlsx & CPL.xlsx
@@TheDIYGuy999 Thanks. Will be great to find this in shared projects in PCBWAY
@@TheDIYGuy999 I send BOM and CPL to pcbway but this failed review. They say that on R18(20k) "your designed pads are for THT part rather than SMD part, pls double check and advise correct part No. for checking"
@@giropa sorry, my fault. Tell them they don't have to populate it. You will have to solder it by yourself:
the receiver, can change to other receiver ?
Yes, you can use every receiver as long as it has SBUS, IBUS, PPM or PWM
@@TheDIYGuy999 so that, i can use arduino and bluetooth to control pwm, right?
boards arrived, no stickers, no pen, just the boards, and a fat bill from DHL .. shipping was almost as much as the entire boards, wish pcbway had a cheaper shipping method, mine was also delayed because the email they send me went to the spam folder and Chinese new year... so an order placed on 20 Jan 21 was not delivered.. i had to go get it as DHL had "oopsied" my delivery and the local DHL subsidiary had it. i finally got my boards on march 9th 21 but that is not the fault of pcbway or you DIYguy. Now i will test them and start looking for that 1 engine sound i can not find as a .wav file.
and then see how to make them work as s-bus receiver/sound/light effects boards.
a thank you will come after the test :)
Hmm, sounds annoying. This is strange. I never had issues with PCBWay so far. tons of sounds are already included and pre configured in vehicle profiles.
@@TheDIYGuy999 dhl promised a callback within 24 hours, that was 2 days ago, they admit mistakes where made they just do not want to do a full or partial refund of the shipping costs.
is tthere a way how i could privatly let you know what engine sound i want ? maybe you know where to find it .. all i will say its a big engine and not a line or V one :)
@@TheDIYGuy999 cant find the P&W r2800 :)
Hi sir, is it just only 1 channel input from receiver?
Hi, it is SBUS, wich requires just one wire. You can also use multiple PWM servo channels. Details according to: github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
@@TheDIYGuy999 yes i see sir, thanks for your reply.
Can I get them to do a light and sound module for a 1/14 truck, one off thing, do you know?
Or will you do the work (so the system is completely working) and I pay you.
You have to order the boards by yourself according to: github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/Eagle_PCB/How%20To%20Order%20Your%20PCB.pdf
@@TheDIYGuy999 so I gather that is a no
@@grease94819481 Sorry, I don't have the time to make complete systems for other people. Making your own is really not that hard.
I know I can make one but my disability does not allow me to do so, the heat and solder fumes get to me pretty much instantly
Hello,i meet some problems,arduino shows error 'RMT' was not declared in this scope😭
Install aalte required libraries and do the adjustments according to:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
How to order Pre Assembled PCB on PCBWA i download the Gerber File and it just show the plan pc boad info on site been trying for 2 week now i just need fast link to order the Pre Assembled board i am not good with all these links to open each time i open a link
See the pdf in this directory: github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/tree/master/Eagle_PCB
It shows you the ordering process
@@TheDIYGuy999 the pc board site just asking
Quantity
No. of Unique Parts
SMT Pads
Thru-Holes
there no place asking dor G file
geber file only this gbr file
Is there an updated version or is this the latest?
No, currently this is the most recent version
I build it but it doesn't work with my Futaba sbus. I tried changing the sbusInverted to "true" and it neither works. Does anybody used it with Futaba sbus? Does anybody knows where could be the problem?
I don't have a Futaba remote, so I can't test it. It works just fine wit the Flysky and my DIY Micro RC remote. You should test it in PWM mode first. Does it work in this mode? Note, that you need to connect an ESC, otherwise the ESP32 is not supplied. See:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/documentation/quickStartManual.pdf
@@TheDIYGuy999 First of all, many thanks for your answer. I haven't conected the ESC, but I powered the ESP32 from the +5V rail as you explain in the documentation, and the ESP32 turns on, but it doesn't do anything at all. It seems to be everything ok but I have not answer fron the device. I'm using your default parameters because I'm trying a sbus connection and as I told the only change I dis was the sbusinverted for try both options. I imagine the firmware is correctly loaded because I didn't get any error message fron the Arduino IDE. I will try with the PWM mode and I will let you know.
@@TheDIYGuy999 I'm verifying everythin and I have found that PCBWay used ULN2003A LED drivers in place of the ULN2003AD. Could be this the problem?
@@lerpft They are OK, my boards also came with them. You should measure the supply rails for correct 5V.
@@TheDIYGuy999 It's ok, they have 4.97v. I will try the PWM mode as you told me before and I will let you know if it works in this mode. And many thanks for all support you are giving to all of us with this great development.
Gruss Martin (back to English) i have tried to upload the files from the github to the board but keep running into issues, when will you do a tutorial on how to install the software so i can get my board working and look for the P&W R2800 engine for my 8x8 wpl 1/16 truck (after all, i do not want a diesel v4,v6,v8,v10, or v12) i want a rotary twin row 2x9 cylinder 2000 hp engine in my 8x8 same engine as in a P-47, F6F, F8F or the F7F-3n Tigercat (as on my aircraft carrier)
Danke :)
Hi,
do it according to:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
and:
www.rc-modellbau-portal.de/index.php?threads/esp32-arduino-rc-sound-und-licht-controller.7183/
@@TheDIYGuy999 Danke :)
you can with stm32
No, it does not have enough memory.
I ask for help with the error code here "pulseMaxNeutral[i] = pulseZero[i] + pulseNeutral;"
This is not an error message, please post the entire error message as shown in Arduino IDE
@@TheDIYGuy999
D:\MICROCONTRELLER\Rc_Engine_Sound_ESP32-master\Rc_Engine_Sound_ESP32-master\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void setup()':
Rc_Engine_Sound_ESP32:969:41: error: 'pulseNeutral' was not declared in this scope
pulseMaxNeutral[i] = pulseZero[i] + pulseNeutral;
^
Rc_Engine_Sound_ESP32:971:34: error: 'pulseSpan' was not declared in this scope
pulseMax[i] = pulseZero[i] + pulseSpan;
^
D:\MICROCONTRELLER\Rc_Engine_Sound_ESP32-master\Rc_Engine_Sound_ESP32-master\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void readPpmCommands()':
Rc_Engine_Sound_ESP32:1034:29: error: 'STEERING' was not declared in this scope
pulseWidthRaw[1] = ppmBuf[STEERING - 1]; // CH1 steering
^
Rc_Engine_Sound_ESP32:1035:29: error: 'GEARBOX' was not declared in this scope
pulseWidthRaw[2] = ppmBuf[GEARBOX - 1]; // CH2 3 position switch for gearbox (left throttle in tracked mode)
^
Rc_Engine_Sound_ESP32:1036:29: error: 'THROTTLE' was not declared in this scope
pulseWidthRaw[3] = ppmBuf[THROTTLE - 1]; // CH3 throttle & brake
^
Rc_Engine_Sound_ESP32:1037:29: error: 'HORN' was not declared in this scope
pulseWidthRaw[4] = ppmBuf[HORN - 1]; // CH5 jake brake, high / low beam, headlight flasher, engine on / off
^
Rc_Engine_Sound_ESP32:1038:29: error: 'FUNCTION_R' was not declared in this scope
pulseWidthRaw[5] = ppmBuf[FUNCTION_R - 1]; // CH5 jake brake, high / low beam, headlight flasher, engine on / off
^
Rc_Engine_Sound_ESP32:1039:29: error: 'FUNCTION_L' was not declared in this scope
pulseWidthRaw[6] = ppmBuf[FUNCTION_L - 1]; // CH6 indicators, hazards
^
Rc_Engine_Sound_ESP32:1040:29: error: 'POT2' was not declared in this scope
pulseWidthRaw[7] = ppmBuf[POT2 - 1]; // CH7 pot 2
^
Rc_Engine_Sound_ESP32:1041:29: error: 'MODE1' was not declared in this scope
pulseWidthRaw[8] = ppmBuf[MODE1 - 1]; // CH8 mode 1 switch
^
D:\MICROCONTRELLER\Rc_Engine_Sound_ESP32-master\Rc_Engine_Sound_ESP32-master\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void readSbusCommands()':
Rc_Engine_Sound_ESP32:1069:39: error: 'STEERING' was not declared in this scope
pulseWidthRaw[1] = map(SBUSchannels[STEERING - 1], 172, 1811, 1000, 2000); // CH1 steering
^
Rc_Engine_Sound_ESP32:1070:39: error: 'GEARBOX' was not declared in this scope
pulseWidthRaw[2] = map(SBUSchannels[GEARBOX - 1], 172, 1811, 1000, 2000); // CH2 3 position switch for gearbox (left throttle in tracked mode)
^
Rc_Engine_Sound_ESP32:1071:39: error: 'THROTTLE' was not declared in this scope
pulseWidthRaw[3] = map(SBUSchannels[THROTTLE - 1], 172, 1811, 1000, 2000); // CH3 throttle & brake
^
Rc_Engine_Sound_ESP32:1072:39: error: 'HORN' was not declared in this scope
pulseWidthRaw[4] = map(SBUSchannels[HORN - 1], 172, 1811, 1000, 2000); // CH5 jake brake, high / low beam, headlight flasher, engine on / off
^
Rc_Engine_Sound_ESP32:1073:39: error: 'FUNCTION_R' was not declared in this scope
pulseWidthRaw[5] = map(SBUSchannels[FUNCTION_R - 1], 172, 1811, 1000, 2000); // CH5 jake brake, high / low beam, headlight flasher, engine on / off
^
Rc_Engine_Sound_ESP32:1074:39: error: 'FUNCTION_L' was not declared in this scope
pulseWidthRaw[6] = map(SBUSchannels[FUNCTION_L - 1], 172, 1811, 1000, 2000); // CH6 indicators, hazards
^
Rc_Engine_Sound_ESP32:1075:39: error: 'POT2' was not declared in this scope
pulseWidthRaw[7] = map(SBUSchannels[POT2 - 1], 172, 1811, 1000, 2000); // CH7 pot 2
^
Rc_Engine_Sound_ESP32:1076:39: error: 'MODE1' was not declared in this scope
pulseWidthRaw[8] = map(SBUSchannels[MODE1 - 1], 172, 1811, 1000, 2000); // CH8 mode 1 switch
^
Rc_Engine_Sound_ESP32:1077:39: error: 'MODE2' was not declared in this scope
pulseWidthRaw[9] = map(SBUSchannels[MODE2 - 1], 172, 1811, 1000, 2000); // CH9 mode 2 switch
^
Rc_Engine_Sound_ESP32:1078:40: error: 'MOMENTARY1' was not declared in this scope
pulseWidthRaw[10] = map(SBUSchannels[MOMENTARY1 - 1], 172, 1811, 1000, 2000); // CH10
^
Rc_Engine_Sound_ESP32:1079:40: error: 'HAZARDS' was not declared in this scope
pulseWidthRaw[11] = map(SBUSchannels[HAZARDS - 1], 172, 1811, 1000, 2000); // CH11
^
Rc_Engine_Sound_ESP32:1080:40: error: 'INDICATOR_LEFT' was not declared in this scope
pulseWidthRaw[12] = map(SBUSchannels[INDICATOR_LEFT - 1], 172, 1811, 1000, 2000); // CH12
^
Rc_Engine_Sound_ESP32:1081:40: error: 'INDICATOR_RIGHT' was not declared in this scope
pulseWidthRaw[13] = map(SBUSchannels[INDICATOR_RIGHT - 1], 172, 1811, 1000, 2000); // CH13
^
D:\MICROCONTRELLER\Rc_Engine_Sound_ESP32-master\Rc_Engine_Sound_ESP32-master\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void readIbusCommands()':
Rc_Engine_Sound_ESP32:1129:39: error: 'STEERING' was not declared in this scope
pulseWidthRaw[1] = iBus.readChannel(STEERING - 1); // CH1 steering
^
Rc_Engine_Sound_ESP32:1130:39: error: 'GEARBOX' was not declared in this scope
pulseWidthRaw[2] = iBus.readChannel(GEARBOX - 1); // CH2 3 position switch for gearbox (left throttle in tracked mode)
^
Rc_Engine_Sound_ESP32:1131:39: error: 'THROTTLE' was not declared in this scope
pulseWidthRaw[3] = iBus.readChannel(THROTTLE - 1); // CH3 throttle & brake
^
Rc_Engine_Sound_ESP32:1132:39: error: 'HORN' was not declared in this scope
pulseWidthRaw[4] = iBus.readChannel(HORN - 1); // CH5 jake brake, high / low beam, headlight flasher, engine on / off
^
Rc_Engine_Sound_ESP32:1133:39: error: 'FUNCTION_R' was not declared in this scope
pulseWidthRaw[5] = iBus.readChannel(FUNCTION_R - 1); // CH5 jake brake, high / low beam, headlight flasher, engine on / off
^
Rc_Engine_Sound_ESP32:1134:39: error: 'FUNCTION_L' was not declared in this scope
pulseWidthRaw[6] = iBus.readChannel(FUNCTION_L - 1); // CH6 indicators, hazards
^
Rc_Engine_Sound_ESP32:1135:39: error: 'POT2' was not declared in this scope
pulseWidthRaw[7] = iBus.readChannel(POT2 - 1); // CH7 pot 2
^
Rc_Engine_Sound_ESP32:1136:39: error: 'MODE1' was not declared in this scope
pulseWidthRaw[8] = iBus.readChannel(MODE1 - 1); // CH8 mode 1 switch
^
Rc_Engine_Sound_ESP32:1137:39: error: 'MODE2' was not declared in this scope
pulseWidthRaw[9] = iBus.readChannel(MODE2 - 1); // CH9 mode 2 switch
^
Rc_Engine_Sound_ESP32:1138:40: error: 'MOMENTARY1' was not declared in this scope
pulseWidthRaw[10] = iBus.readChannel(MOMENTARY1 - 1); // CH10
^
Rc_Engine_Sound_ESP32:1139:40: error: 'HAZARDS' was not declared in this scope
pulseWidthRaw[11] = iBus.readChannel(HAZARDS - 1); // CH11
^
Rc_Engine_Sound_ESP32:1140:40: error: 'INDICATOR_LEFT' was not declared in this scope
pulseWidthRaw[12] = iBus.readChannel(INDICATOR_LEFT - 1); // CH12
^
Rc_Engine_Sound_ESP32:1141:40: error: 'INDICATOR_RIGHT' was not declared in this scope
pulseWidthRaw[13] = iBus.readChannel(INDICATOR_RIGHT - 1); // CH13
^
D:\MICROCONTRELLER\Rc_Engine_Sound_ESP32-master\Rc_Engine_Sound_ESP32-master\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void processRawChannels()':
Rc_Engine_Sound_ESP32:1162:9: error: 'channelReversed' was not declared in this scope
if (channelReversed[i]) pulseWidth[i] = map(pulseWidthRaw[i], 0, 3000, 3000, 0); // Reversed
^
Rc_Engine_Sound_ESP32:1166:9: error: 'channelAutoZero' was not declared in this scope
if (channelAutoZero[i] && !autoZeroDone && pulseWidth[i] > pulseMinValid && pulseWidth[i] < pulseMaxValid) pulseOffset[i] = 1500 - pulseWidth[i];
^
exit status 1
'pulseNeutral' was not declared in this scope
@@reighasta Looks like a lot of files are missing. You have to download the entire file structure, using "Code > Download ZIP"
also have a close look at: github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
@@TheDIYGuy999
ok thanks it worked
This is the other guy with the swiss accent :)
indeed 😄
Yes, of course ;-)
Thank you so much for doing this! Unfortunately, I'm having some problems getting the correct parts. In your github I see many files, but not sure which one to provide to pcbway. I also see a variety of PAM8403 amplifiers to choose from and I don't know what resistors I'd need....or how many. Do you happen to have a very basic tutorial of the process? I do not have much experience with board designs/layout so many of these terms (ESP32, for example) are new to me. :)
You're welcome. Just order the boards including the SMD parts according to the PDF in:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/tree/master/Eagle_PCB
You need this amplifier: www.banggood.com/5pcs-PAM8403-Miniature-Digital-USB-Power-Amplifier-Board-2_5V-5V-p-918227.html?cur_warehouse=CN&rmmds=search
More parts links are in the video description
@@TheDIYGuy999 thank you again, sir! Can't wait to get mine going. :)
How to program please
See:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
@@TheDIYGuy999 can't you help me
I copied your program but it didn't work
Upload eror to board🤦
Доброго времени суток! У меня есть несколько вопросов по поводу звукового модуля на ардуино. Вы сможете мне помощь?
Hi, read this carefully:
github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/README.md
If you have more questions, ask them here.
@@TheDIYGuy999 @TheDIYGuy999 можно вас попросить сделать звук "кировца" для ардуино 328 и прислать на почту rinat.arslanov.7@mail.ru
How much for a custom program of functions?
Sorry, I don't have the time for that, but the code is open source, so you can modify it easily. You also have many adjustment options in the configuration tabs.
@@TheDIYGuy999 ok 👌🏾, thanks for the advice
Can it run on 6v?
It should, but it was not tested @ this low voltage
@@TheDIYGuy999 Thanks for the reply. Assembling one now and hope to start programing today, see how it goes, looks a little confusing at the moment. Reason for voltage is I'm putting the unit in a scale boat that runs on 2 large 6v SLA batteries. If all goes well plan is to have two units running off the separate ESC's for the twin independent motors. Going to try it on 6v, worst case I'll add a 7.4v lipo just for ESP32. Thanks again for your awesome work!
Got it assembled and programed finally. Worked right away. Just need to try some adjustments for the boat application, don't need air brakes and backup beeper....lol. Thanks again for all your hard work and an awesome design. I researched many commercially available units and this one does way more than those and I have way less invested.
@@txracer1636 Good to hear it's working. Have fun with it.
@@TheDIYGuy999 I'm having a little trouble understanding how to change channel assignments. Trying to get it working properly with my Spektrum DX6e. What exactly do I need to change in adjustmentsRemote.h to assign the channels to suit my radio? Also trying to use tank mode and now all I can get is engine idling. Thanks in advance.
How can I order the pcb Bro 🙏
See: github.com/TheDIYGuy999/Rc_Engine_Sound_ESP32/blob/master/Eagle_PCB/How%20To%20Order%20Your%20PCB.pdf
@@TheDIYGuy999 many thanks 🙏
Please I need help
What kind of help?
@@TheDIYGuy999 I dont find the right files to download for the pcb board
@@TheDIYGuy999 it will be more easy to talk to you in live chat or email please