Hello. I want to talk about how I did the semblance of neon lights and headlights with dimensions for a radio-controlled drift model of 1:10 scale.
PrehistoryIn November 2015, I became interested in drift on RC models, money suddenly appeared, and then it started ... Drift involved me, and I decided to go to a stage that in electronics usually begins with the manufacture of housings for my devices, and in modeling - with the addition of On the model. I already had a body - beaten by the life of a Porsce 911 GT2 RS, and I decided to add some light. What came of it - we look.
Part 1, theoretical and philosophical
To begin with, I made for myself a list of "Wishlist"
1. Highlighting the bottom of the model, the so-called. "neon";
2. Headlights (high beam);
3. Dimensions.
To illuminate, I dug out a LED pseudo-RGB tape in the bins of the cabinet. The R, G and B LEDs are not in the same package, but simply stand behind each other (I missed this fact when ordering, so the tape moved into the cabinet). The length of one tape segment is 147mm and it fits two LEDs of each color. But whatever the RGB tape, it still needs a controlling controller - I planned to implement it on ATTiny13, since they were recognized by me as “unreliable” for the projects and lay quietly in the same cabinet.
')
The inclusion of headlights and dimensions was also planned using the same ATTini, but ... did not work out, in general. Although both on the signet and in the code everything is drawn and described, maybe someday I will add; now the light and dimensions are turned on by a dip switch for 2 sections.
In the original version of the "light unit", the power was planned to be combined with the power supply of the power unit; no matter whether the voltage dropped or the voltage subsided due to the gluttony of my regulator, the controller dropped the controller, so I had to add (in version 2) 2 18650 batteries connected in series. The voltage of 6-8.4V was enough to power the LED strips. Then, due to the lack of a large number of compartments for the 18650, I had to replace the double compartment with a single compartment and add a Chinese DC-DC Step-Up module on a small chip with unreadable marking. The voltage at the output I put 10V, now the tape and the lights shine brighter, however, you have to charge the battery more often; but it is still more than enough for 2-3 pokatushki for 2.5 hours. Yes, and carry a 2 18650 battery - not such a big problem. Power MK is provided by the converter LM1117-5.0,
Part 2, practical
Practically, the implementation of the light controller is not a miracle, I did not bother much and decided to do 5 modes of operation - everything is off, R, G, B, RGB. Due to the relatively small clearance of the model, in the RGB mode, all three LEDs are clearly visible. The tape itself has a common anode, the cathodes are switched using small N-channel field-effect transistors in the SOT-23 package. For some reason, the wiring of the power section was the biggest problem for me - I’m undermining a little when I draw circuits with transistors. And after the elimination of the problem, I found the connection scheme in the collection of Arduino Basic Connections.
LEDs are mounted on the case of the model (for headlights - on stars, dimensions are simply glued on hot melt glue) and a board on which a DIP switch and current-limiting resistors are mounted. A battery with a boost converter stand on the chassis, power is supplied via a 3-pin connector, of which 1 is not connected (to protect against polarity reversal).
The firmware for the microcontroller (all at the end of the article in the archive) was written in BASCOM-AVR, which, IMHO, was unfairly described by one or two articles on Habré, because the environment deserves attention due to the simplicity of writing the program and a decent exit code.
In conclusion, some photos of the resulting:






Photos of the board without heat shrinkingThe archive with printed circuit boards and code can be downloaded
here . Printed circuit boards are drawn in Sprint Layout 6, the code is written in BASCOM-AVR 2.0.5.0.
Thanks for attention!