For instance if you want the blinkers to come on at full lock or immediate after touching the steering.īe kind, I'm a hardware guy with only a little programming experience. This handles reverse channels and also allows for setting where the blinkers activate in the steering. Both posted diagrams should coincide with the posted code as far as port mappings and pinouts.Īlso the code allows for a calibration routine that has to be ran at least once. This can be copied into the Arduino IDE and uploaded. The Wroncho code is based on my Wraith code with some small port and function changes. If anyone want to look at my code I have it here: I have some ideas how incorporate other components easily in later builds. Could have added a FET but it makes it that much more complicated to wire. Each port is rated for 40mA with the entire Arduino rated for 200mA. I also has to be careful on my current draw from a single port. The same color/manufacturer can generally be wired in parallel and will function as long as the forward voltage drop is the same. Also since I ran out of amber LEDs so I used white (painted orange) which meant I had to add the resistor at the LED vs at the PCB. I wired them together since these could technically be the same circuit. The Wroncho was slightly different than my Wraith in that it had a side marker LEDs that I also wanted to blink with the front and rear signals. Using the third channel of my hacked Flysky controller, I'm using the toggle function to increment x% at a time, from -100 to 100. So, here is a video of the final version of my code. It's a bit of a mess in the box but access for programming isn't too bad. The ESC only has to drive around 120mA in LEDs. I'm using the ESC to power the circuit and have a Castle BEC to handle the servo power. This is so I can tap into the signal, grounds and power. I wired the Arduino using 3 servo extensions. Here's the mess of wiring I was left to deal with after running it to the rear. I mounted them to the front to act as left and right signals. I added an extra light bucket that came with the kit but isn't installed by default. The project box (sourced from Radio Shack) fits perfectly and will house the controller and receiver. I started out running the ESC, Servo wires, and all of the LED wiring I needed to a project box I located into the rear of the Wraith. If anyone is interested the entire Wraith build is on my website: For Christmas my wife bought me a wraith kit so I decided it would be my first victim. I've had an Arduino project in my back pocket for a couple of months just waiting to install into a new RC project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |