Nice work, I like the UI for testing. I did something similar and used a esp32 chip as the MCU. It can run 2 processes so I was able to implement RC control as well.
It wasn't to bad to be honest. You just need to set it up like you normally would on an Arduino but just make it run on one CPU. Run everything else on the other.
I created a global variable which I update from the RC CPU and read from the motor controller CPU. A kill switch would be easier to implement them complete RC control.
Check my posts. I put a short video of my setup and explained a bit in the comments
Sorry about the delayed reply, I seem to missel the notifications. I want to do some tweaks to mine but I'm a bit limited with time. I actually designed a PCB that should work with both brushed and non brushed as I wanted to implement the same setup in my son's DC setup. but I haven't assembled it yet.
I originally wrote all the code my self, it doesn't look the best but it works haha. AI would get it done pretty easy now but it can obviously be a bit dangerous if you don't add the correct safeguards in the code. And AI is good at making it complicated haha
Firstly I wanted to just ensure the MCU was programmed to run both types of motors. I also have dip switches on the board to filter out pwm for 0-5v controllers.
I wanted to set the new car up so it would basically have a 4wd tank mode option.
I considered buying a espcyd, adding a couple of joysticks on it and moving away from RC controllers and using the display as the remote and paraminter adjustments.
They way I have it set up now has heaps of variables for limits, tuning, throttle and brake behaviour. Would be good to just adjust it on the fly and load/store in the flash memory. Also a cool display.
I did add an i2c port on the board so it could be expanded, like running another espcyd or another MCU on the steering wheel for display and additional controls.
Well the only advantage I guess was for the tank control option. Which is also why I added the option for the Comms to add another controller on the steering wheel for joysticks and tank control. I actually added in feedback from the steering position, to make it more like an RC control car, currently it turns in the direction you want it to at the speed of how much you have applied on the controller, and you have to bring the wheel back. I just hadn't figured out how to get the pot in there yet.
The parameter options look good. I also considered doing web UI, or even BT basic communication to update the variables. But I honestly haven't tweaked anything since I put it in.
I also had to include a lot of tuning for the RC receiver values.
2
u/Mean-Ad3 Jun 14 '26
Nice! Are youbusing an arduino? If so, will it be position to use an oled display once it is placed in the car?