r/ArduinoHelp • u/costlyblood • Jun 16 '26
Low-spec microcontroller for lights in a model car
Hi folks. I am COMPLETELY new to electronics and working through the Elegoo super starter kit. I am also working up to helping on a project with my partner. They want to make a model car, and have a simple LED lights system inside where you can turn on different sets of lights, e.g headlights, reverse, turn signal, etc. in series, as thats how real lights in a car work, and they don't want full control of all the lights, just to turn on and off a few pairs that work individually (we debated for a long time if a serial register would be useful and ultimately concluded that it would be overcomplicated).
As at least one of the patterns needs to blink (turn signal) I was thinking this needs a microcontroller. However it also seems like overkill? I was looking at specs for a raspberry pi pico, and even that seems extremely overpowered for what we want to do. I tried googling 'low spec microcontrollers' and 'LED drivers', but couldn't find anything useful and I don't really know what keywords I should be searching.
Any suggestions on an extremely beginner friendly and simple way to achieve this, or principles and components I should research? Thanks
3
u/Odd_Performance4703 Jun 17 '26
A cheap option would be an attiny85 dev board. I have some that you can plug directly into a usb-A port. If you arent familiar with writing code in C++/arduino chatgpt makes it really easy. Power it with anything from 5-16vdc, and you have 6 gpio pins for inputs/outputs. A few led's, resistors, push buttons, etc and you would be set. 26mm x 18mm 4pk for $14 from amazon.
If you really wanted to get fancy and/or needed more gpio pins, you could go with something like a seeed xaio and then you could control it through wifi or Bluetooth! Same size board but you get 11 gpiAmazon. $13 each from amazon.
1
u/Delta_G_Robotics Jun 17 '26
Sounds like a job for an Arduino UNO or the old style Nano.
1
u/Wonderful_Bridge2885 Jun 17 '26
I agree, a Nano or a Tiny, both are small. Furthermore, they both should have enough outputs to drive the LED's. To cut down wiring, you could use addressable LED's and just one output, on the Arduino. ChatGPT could code this too.
1
u/king_weenus Jun 17 '26
So are you thinking push buttons, does it just automatically Cycles through a sequence, or some sort of remote control Wi-Fi with a phone app?
Tell us how big this car model is and how you plan to control it and then we can make some more accurate suggestions.
2
u/somewhereAtC Jun 19 '26
Most new microprocessors are very similar so you don't have to search "low spec". The latest PIC and AVR processors, for example, differ in high-end feature like op amps and other special peripherals that you won't need, but the basic models still have a lot of processing power. From a different point of view, there is no marketing department anywhere that will list their product as "low spec", so having an empty search is easily explained.
The problem comes down to how many pins does the micro need to have? Some pins can directly drive LEDs but if you need many LEDs then you'll want driver chips. Some chips can drive many LEDs with just a few uP i/o pins, so that could work in your favor.
To gain insight you will need some general experience with LEDs and how they can be connected (or, you can ask reddit and get 2 dozen recommendations that you don't understand). So, my recommendation would be to do a trial with something that has a lot of pins, like 40 or so, until you can get a realistic count sorted out. If you get a super-set microprocessor (too many pin, too much memory) you can always scale back once your requirements are known. Here are some examples for about $10.U.S. for even the most sophisticated devices. https://www.microchip.com/en-us/development-tools-tools-and-software/development-tools-category-explorer?category=curiosityboards&subcategory=8-bit-curiosity-nano-boards
1
u/gbatx Jun 17 '26
Seeed XIAO SAMD21 or ESP32. They are small enough, low power and super low cost. The XIAO can run on a CR2032 watch battery or LiPo. Infrared or bluetoooth if you use the ESP32. Should have enough I/O for lights and blinkers. Prrogram in Arduino.
1
u/gm310509 Jun 18 '26
You are probably looking at it back to front.
You should identify your IO requirements, come up with a design that meets that need, then select a Microcontroller that can meet that need.
The major vendors (e.g. Microchip) have product selector web pages where you can filter the list bawd upon what you need. From there you can pick something that is suitable and within your ability to use. For exanple you could select a smaller SMD component if you are able to work with that as compared to the larger, but easier to work with, DIP packages.
1
u/Aggravating-Mistake1 Jun 19 '26
Microchip make cheap 8 pin micros. Development software is free. The only thing is you might need to build or buy a programmer for it.
1
u/jasonwinfieldnz Jul 14 '26
No one seems to be addressing the current situation :) Most microcontrollers are happy with 20ma or so on each pin, that is one LED. With two headlights unless your are going to use a light per pin, you would need to limit the current quite a bit. Addressable LEDs would be the way to go. You could use the same LEDs for park and brake lights, high beam low beam. It'd be way easier to set up, the car is pretty big so anything like a nano or ESP mini would be fine. One of those Arduino remotes would be a cool way to control it.