Electric Skateboard Remote RC by wafflejock 3d model
Warning. This content is not moderated and could be offensive.
pistol
3dmdb logo
Thingiverse
Electric Skateboard Remote RC by wafflejock

Electric Skateboard Remote RC by wafflejock

by Thingiverse
Last crawled date: 3 years ago
This is an RC controller I designed to go with my electric skateboard. Was previously using a RC car controller but it was excessively bulky and ate a lot of batteries. Designed this one around using an arduino nano and rf module on the transmitter and receiver sides and just wrote some code to read a potentiometer in the transmitter here and sends it along to another one that then uses the servo library to send a signal to the ESC that controls the motor.
1_1 Made trigger a bit longer though it wasn't trouble in use the trigger could slip in the main controller area before, also spread out are where the spring mounts between spring and main controller body. Increased size of cover since it was falling into the bottom section when screwed on. Increased height of main controller body to account for potentiometer height so it doesn't rub on the lid, also increased USB and switch hole sizes to make inserting components easier.
Update 1
Added an image of the wiring, considering getting some PCBs printed to simplify connecting the components since the wiring did end up being a bit of a rats nest. Would be around $10-$15 a piece to get a few made. Uploaded images of the built controller as well. The wiring for the receiver is the same with the exception that the analog (A1) is used on the transmitter to read the position of the potentiometer whereas on the receiver the digital pin D5 (PWM) is used to send the microSecond pulses for controlling the ESC.
If using the code below first turn on the transmitter then sweep the trigger to max and min positions this will calibrate the values used to map the max/minimum it sends to the receiver. Power on the receiver after the calibration is done otherwise you will have a run away vehicle.
Update 2
Didn't note it in the wiring diagram or text before here but good to put an electrolytic capacitor between ground and vin on the arduino (around 100uF ~16V one is working well for me) This was needed on the receiver side or else it seems the VESC's BEC that was giving me the 5V to run the arduino would occasionally dip when the motor was drawing a lot of power and the dip was enough for some part of the arduino to brown out. Since adding the capacitor between ground and Vin (make sure polarity is correct) the LEDs shine bright and it hasn't browned out again yet (biggest problem I had since was loose connections between receiver and ESC but soldered those on and has been a solid connection for the last few days).
On a more positive note the controller lasts forever on a charge. In wanting to verify the charger was working after installing the guts in a new print and took a good hour before the voltage had even dipped enough for the charger to not consider it 100% full (I checked with a voltmeter as well and was sitting around 4.14V), so super happy with the efficiency of the whole thing even without any tuning in that regard.
Update 3 https://github.com/shusain/eskatecontroller Posting further updates for the Arduino code and Eagle files for making PCBs to connect the Arduino (pro mini 3.3V) to the nordic RF modules. Found using Arduino Nano I was getting drop outs on the receiver side occasionally (possibly due to fluctuations in em interference on the 5V supply, but seems stable so far with 3.3V). The PCB design is exported as pcb.png in the eagle folder for a single sided DIY at home PCB.
Update 4
Adding a box used for the receiver on the board, also updated the PNG in the linked github repo for at PCB making to work for both the controller and receiver and use a servo style JST plug where the power is in the center and ground is on the edge to avoid accidental reversing the polarity (not that I did that).
Update 5
Working on a new version of this using parametric CAD software to make it easier to tweak the design and refine it. Ordered PCBs from pcbway, was $28 for 10 boards delivered (slight discount for first order) they were of acceptable quality to me and have worked well for the last 6 months or so.
https://cad.onshape.com/documents/50e9e32d777391df91fbe5a9/w/19598faab2182f3b574dcfaf/e/52a747c0c2e141ee735a22b8
Update 6
Added new images and STL files for the onshape based one with the new custom PCBs. 4 new STL files for the controller (all start with RC Controller - )
Update 7
Added a V2 of the controller requires M3 screws of various sizes (will get measurements soon to fill in here but just had a mixed kit) and a few M3 nuts to hold the new "idle arm" in place to properly pull the trigger back to idle reliably. Also used a hall sensor in the new version of the remote and a magnet in the trigger to sense the position of the trigger relative to the hall sensor, this worked amazingly well, I also set a midpoint in the new source code and will update on github shortly.
https://photos.app.goo.gl/C1tx6fe2DGsTn1M8A

Tags