# Blinking rain light for OpenRC F1 car

**URL:** <https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317>\
**Category:** Arduino\
**Created:** [2 February 2021 05:48 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317 "2021-02-02T05:48:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Melissa150817](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Melissa150817](https://forum.core-electronics.com.au/u/Melissa150817)\
**Post date:** [2 February 2021 05:48 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/1 "2021-02-02T05:48:07Z")

</div>

OK - I’m currently 3D printing the parts for the OpenRC Formula 1 car: [OpenRC F1 car - 1:10 RC Car by barspin - Thingiverse](https://www.thingiverse.com/thing:1193309)

I’d like to upgrade it to include the flashing rain light here: [OpenRc F1 Rainlight and Diffuser with working Rainlight by Dark-Hawk - Thingiverse](https://www.thingiverse.com/thing:2829615) and here: [OpenRC F1 Blinking Rainlight V2.0 - Controllable from remote by Citrushund - Thingiverse](https://www.thingiverse.com/thing:3689878)

I have this motor, ESC combo: [https://hobbyking.com/en\_us/trackstar-roar-approved-1-10th-stock-class-brushless-esc-and-motor-combo-21-5t.html](https://hobbyking.com/en_us/trackstar-roar-approved-1-10th-stock-class-brushless-esc-and-motor-combo-21-5t.html) and this receiver/controller combo: [https://hobbyking.com/en\_us/hobbyking-gt2e-afhds-2a-2-4ghz-2-channel-radio-system.html](https://hobbyking.com/en_us/hobbyking-gt2e-afhds-2a-2-4ghz-2-channel-radio-system.html) I’m using this Lipo battery for power: [https://hobbyking.com/en\_us/turnigy-nano-tech-shorty-4200mah-2s2p-65-130c-hardcase-lipo-pack-roar-approved.html](https://hobbyking.com/en_us/turnigy-nano-tech-shorty-4200mah-2s2p-65-130c-hardcase-lipo-pack-roar-approved.html)

I’d like the wiring & install of the flashing rain light to be as simple as possible because although I can solder, I am a complete newbie to all this electronics stuff - learning as I go!

Ideally the light should be powered off the receiver as suggested. Although it would be nice to turn the light on and off from the receiver, that’s not important. It can be either red or white as I have either colour in translucent PLA for the printed cover.

It would be good to have the flashing slow down or change when the Lipo battery is getting low. Again, not critical if it makes everything to complicated. 🙂

What I need help with is a list of parts including the wires/connectors I need (eg. between the LEDs and resistors and the resistors and receiver etc). Thanks in advance and…be kind.

---

<div class="post-metadata">

**Author:** ![Bryce](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/bryce/32/3631_2.png) [@Bryce](https://forum.core-electronics.com.au/u/Bryce)\
**Post date:** [3 February 2021 04:55 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/2 "2021-02-03T04:55:57Z")

</div>

Hi Melissa,

We’ll get back to you on this soon, I’m just trying to figure out the best way to answer this. For now, I’d take a look at this project based on a 555 timer that should have some useful info for your project.

> **[Flashing Brake Light - 555 Timer Circuit](https://www.instructables.com/Flashing-Brake-Light-555-Timer-Circuit/)**
>
> Flashing Brake Light - 555 Timer Circuit: I found at the China stores some electronic devices that can flashing the brake light. I will make that for my motorcycle topbox. Searching on the internet gave my various sides, I ended up with the flashing...

---

<div class="post-metadata">

**Author:** ![Melissa150817](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Melissa150817](https://forum.core-electronics.com.au/u/Melissa150817)\
**Post date:** [3 February 2021 05:43 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/3 "2021-02-03T05:43:34Z")

</div>

Appreciate your help, but that looks waaaay more complicated than on the thingiverse links…?

---

<div class="post-metadata">

**Author:** ![Bryce](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/bryce/32/3631_2.png) [@Bryce](https://forum.core-electronics.com.au/u/Bryce)\
**Post date:** [4 February 2021 00:10 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/4 "2021-02-04T00:10:03Z")

</div>

Hi Melissa,

You’re right, that tutorial massively overcomplicates the requirements for such a simple application which could easily be put together with a microcontroller. You’re much better off writing a custom script to control the LED/s based on the inputs provided to a board such as an Arduino Pro Mini (or ) as they suggested on Thingiverse with a script you’ve customized to control the brightness with PWM (there are 6 suitable pins on the board), frequency of flashes, etc.

You can use a 5-12V battery to supply power to the Pro Mini (your 7.2V battery should do the trick). As for controlling the lights from your receiver (The GT2E), I had a look at the pinout, and you should be able to hookup an input from the Pro Mini to one of the channels to be able to let your script know when to turn on/off the lights or perform other actions.

> **[Arduino Pro Mini 328 - 5V/16MHz](https://core-electronics.com.au/arduino-pro-mini-328-5v-16mhz.html)**
>
> It’s blue! It’s thin! It’s the Arduino Pro Mini! SparkFun’s minimal design approach to Arduino. This is a 5V Arduino running the 16MHz bootloader. Arduino Pro Mini does not come with connectors populated so that you can solder in any connector or...

> **[Digital RGB LED Strip 120 LED-White](https://core-electronics.com.au/digital-rgb-led-strip-120-led-white.html)**
>
> If you are going to make something dazzling and colorful, then you have come to the right place. Now, DFRobot is launching this Digital RGB LED Strip. This WS2812 .. read more

> **[Addressable RGB LED Controllers - Tutorial](https://core-electronics.com.au/tutorials/addressable-rgb-led-controllers.html)**
>
> We're going to do a comparison of 3 types of Addressable RGB LED controllers (WS2812B, SK6812 and APA102C) and discuss why you would pick one type over the others. We look at control method, current draw per LED, color channel, brightness, PWM...

You should be able to learn all the code necessary to set this all up in the free workshop below, let us know if you have any questions about it 😁

> **[Arduino Workshop for Beginners - Tutorial](https://core-electronics.com.au/tutorials/arduino/arduino-workshop-for-beginners.html)**
>
> Welcome to the Arduino Workshop, where you'll be able to follow our guided course which covers everything you'll need to know in order to create your own Arduino projects and become a leveled up maker. My name is Sam and along with being a maker...

---

<div class="post-metadata">

**Author:** ![Melissa150817](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Melissa150817](https://forum.core-electronics.com.au/u/Melissa150817)\
**Post date:** [5 February 2021 00:55 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/5 "2021-02-05T00:55:31Z")

</div>

Thanks Bryce - I’ll check it all out and do some more reading/learning.

---

<div class="post-metadata">

**Author:** ![Melissa150817](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Melissa150817](https://forum.core-electronics.com.au/u/Melissa150817)\
**Post date:** [6 February 2021 09:11 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/6 "2021-02-06T09:11:32Z")

</div>

Hi Bryce - what do I use to connect the Arduino to my computer usb for programming? I have the thing in my attached photo, but I don’t know what it is - would it help?? 🙂

 ![IMG_0801](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/2/250c6467b1e50f2819c195c6625ff9fca7f92ff6.jpeg)

---

<div class="post-metadata">

**Author:** ![Melissa150817](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Melissa150817](https://forum.core-electronics.com.au/u/Melissa150817)\
**Post date:** [6 February 2021 09:54 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/8 "2021-02-06T09:54:57Z")

</div>

The thingiverse instructions provide the code I need, what I meant was how do I physically connect the Arduino to my computer USB port?

---

<div class="post-metadata">

**Author:** ![Melissa150817](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Melissa150817](https://forum.core-electronics.com.au/u/Melissa150817)\
**Post date:** [6 February 2021 10:11 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/10 "2021-02-06T10:11:10Z")

</div>

But how do I connect it to the Arduino? I don’t have a bread board  
I have a Mac computer - not sure if that makes a difference?  
Also, the cable I have(in the photo) has a female 2 x 3 pin adapter on the end. So the cable goes from 2x5 down to 2x3. I don’t get how to connect either of those the the 1x6 header of the Arduino

---

<div class="post-metadata">

**Author:** ![brian86770](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@brian86770](https://forum.core-electronics.com.au/u/brian86770)\
**Post date:** [6 February 2021 21:33 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/11 "2021-02-06T21:33:18Z")

</div>

is that the only board you have as the unit that you show there is the debug board for the audino nano and alike…which i assume you have or need to purchase for the project…all you need is an aurdino and a usb cable to fit …i think just a flashing led and a battery may be an easier alternative…

---

<div class="post-metadata">

**Author:** ![James46717](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@James46717](https://forum.core-electronics.com.au/u/James46717)\
**Post date:** [6 February 2021 22:12 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/12 "2021-02-06T22:12:15Z")

</div>

The device in your pic looks like a USB AVR programmer, it can use the MOSI MISO interface of the Arduino to load code into the microprocessor. It is a lower level programmer that will over write the boot loader of the Arduino. It can brick the Arduino and should not be used if you are new to programming the Arduino. (personal learning experience)

Recently I purchased a POLOLU-3172. This has both the types of programming interfaces. The 6 pin serial interface is the one to use. It uses the TX & RX pins to load the Arduino with code. I have recently used it to load code into a A-Star 328PB micro, POLOLU-3162. Pololu have excellent instructions for getting these two devices to work. The programmer will work with any Arduino micro.

Pololu have a configuration application that will allow you to make changes to the setup of the programmer. The default setup will generally work in most cases. The programmer can provide power to the Arduino but the default setting is NOT. Therefore it is necessary to provide power to the GND and +Bat pin of the A-star to get it to work or similar for other Arduino’s. The programmer auto detects 5V or 3.3V micros.

Loading code via the TX & RX lines, using the bootloader installed in the Arduino, is the easiest and safest way to program the micro. It is similar to how the Arduino UNO loads code.  
All the best  
Jim

 ![1612648192008 (2)](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/c/c472008cf428af5c47abb8faa26ed1140f2e7ffd.jpeg)  
 ![1612648297165 (2)](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/a/a05f8891ff631f92bf54a7358f43b28b8fb8f157.jpeg)

> **[Pololu USB AVR Programmer v2.1](https://core-electronics.com.au/pololu-usb-avr-programmer-v2-1.html)**
>
> A USB In-system programmer, suitable for AVR controllers and AVR based boards. Can be used for general purpose serial communication, debugging or programming microcontrollers

> **[A-Star 328PB Micro 3.3V 8MHz](https://core-electronics.com.au/a-star-328pb-micro-3-3v-8mhz.html)**
>
> The A-Star 328PB Micro is a tiny programmable module featuring the ATmega328PB AVR microcontroller, a backward-compatible replacement for the popular ATmega328P that features more general-purpose I/O and many additional peripherals.

---

<div class="post-metadata">

**Author:** ![James46717](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@James46717](https://forum.core-electronics.com.au/u/James46717)\
**Post date:** [6 February 2021 22:15 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/13 "2021-02-06T22:15:20Z")

</div>

Agree with Bryce. If all you need is a Blinking light. Flashing LED, resistor, battery and switch.  
Cheers  
Jim

Edit: Flashing LED is not the solution after more investigation.

---

<div class="post-metadata">

**Author:** ![Melissa150817](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Melissa150817](https://forum.core-electronics.com.au/u/Melissa150817)\
**Post date:** [7 February 2021 01:07 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/14 "2021-02-07T01:07:41Z")

</div>

can I plug a flashing led directly into my receiver for power? turn it on and off with the transmitter?

---

<div class="post-metadata">

**Author:** ![James46717](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@James46717](https://forum.core-electronics.com.au/u/James46717)\
**Post date:** [7 February 2021 03:27 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/15 "2021-02-07T03:27:50Z")

</div>

Originally, I only looked at the programming device in your pic. And provided an answer to your question about what it was and how to use it.

I have now looked in more detail at what you want to do. The Arduino code looks for a greater than 1.7msec high pulse from the receiver, turns the LED on for 200msecs then off for 200msecs. Then it checks for the pulse again and repeats. This makes a micro ideal for reading the pulse and controlling the LED.

I have thought of a number of scenarios but cannot come up with a circuit to just connect the LED to the receiver and have it blink nicely. Connecting the LED directly to the receiver pin; probably would not work as this pin would not be designed to provide this type of power and the LED would blink at a rate that the human eye could not see and just appear dim. (25msec)

Can you provide information on the Arduino you are using ??  
Pic maybe. That will help me in determining the easiest way to program it.

Regards  
Jim

---

<div class="post-metadata">

**Author:** ![Melissa150817](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Melissa150817](https://forum.core-electronics.com.au/u/Melissa150817)\
**Post date:** [7 February 2021 03:47 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/16 "2021-02-07T03:47:39Z")

</div>

Hi James,

Thanks for taking the time to help me. I haven’t bought the Arduino yet, but the thingiverse page suggests the Arduino Nano or pro mini. So I think this one? [https://core-electronics.com.au/arduino-pro-mini-328-5v-16mhz.html](https://core-electronics.com.au/arduino-pro-mini-328-5v-16mhz.html)  
But what I can’t work out is how to connect it to my computer (Mac Catalina) by USB in order to upload the code provided. I have seen this on another store: [Arduino USB to 6 Pin TTL Serial Converter Module](https://www.auselectronicsdirect.com.au/usb-to-6-pin-ttl-serial-converter-module-for-ardui?gclid=Cj0KCQiAmfmABhCHARIsACwPRADGQ9vnH-O86yD0TSCivDzPwBGag-AyM4ljU5Z-ci77uffLfxUmXMQaAt8gEALw_wcB) do you have something similar? If that’s ok to use, what pins to I buy to attache to the Arduino so I can connect the two?

---

<div class="post-metadata">

**Author:** ![James46717](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@James46717](https://forum.core-electronics.com.au/u/James46717)\
**Post date:** [7 February 2021 05:19 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/17 "2021-02-07T05:19:41Z")

</div>

Honestly, any Arduino device will work, it does not have to be a Nano or Pro Mini. In my opinion these are over priced for what they do. (started to write a big post but decided it might confuse)

In my post above I linked the A-Star 328PB 3.3V 8 MHz board and programmer. The programmer will work with the Pro mini. It connects to the 6 pins at the top of the board. You would solder a 6 pin connector to these pins and plug in the programmer. The Pro Mini comes with the Arduino IDE the A-Star does not but can be added pretty easily. The 6 pins at the top of the A-Star board are the same as the Pro Mini.

Do you have the Arduino IDE installed on the MAC ?? If not you will need it.

Decisions; decide which Arduino device you will get. Pro Mini does the same job as the A-Star but is more expensive. The Pro Mini board is listed in the Arduino IDE, the A-Star needs to be added. Both have a similar footprint. Both will work with the battery you intend to use. Both can use the programmer to load programs.

Anyway, the Pololu programmer is an excellent device and easy to get going compared to other programmers I have used. I highly recommend it.

Regards  
Jim

PS

> [@Melissa150817](#):
>
> I have seen this on another store: [Arduino USB to 6 Pin TTL Serial Converter Module](https://www.auselectronicsdirect.com.au/usb-to-6-pin-ttl-serial-converter-module-for-ardui?gclid=Cj0KCQiAmfmABhCHARIsACwPRADGQ9vnH-O86yD0TSCivDzPwBGag-AyM4ljU5Z-ci77uffLfxUmXMQaAt8gEALw_wcB) do you have something similar?

This is just a serial device it cannot be used as programmer.

---

<div class="post-metadata">

**Author:** ![Oliver33](https://avatars.discourse-cdn.com/v4/letter/o/a9adbd/32.png) [@Oliver33](https://forum.core-electronics.com.au/u/Oliver33)\
**Post date:** [7 February 2021 05:28 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/18 "2021-02-07T05:28:24Z")

</div>

FYI, you can get LEDs with a built in flashing circuit:

> **[10 x LED 5mm Red Fast Flashing Blinking Strobe Ultra Bright LEDs 2Hz Boat RC PC...](https://www.ebay.com.au/itm/10-x-LED-5mm-Red-Fast-Flashing-Blinking-Strobe-Ultra-Bright-LEDs-2Hz-Boat-RC-PC-/151262363161?_trksid=p2349624.m46890.l49292)**
>
> The frequency is approximate. Animation Type2Hz Flashing / Blinking On / Off. Now in one of the most popular sizes, we have brought a flashing led. There is nothing extra needed when hooking this led up to power.

---

<div class="post-metadata">

**Author:** ![James46717](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@James46717](https://forum.core-electronics.com.au/u/James46717)\
**Post date:** [7 February 2021 06:01 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/19 "2021-02-07T06:01:38Z")

</div>

Hi Oliver,

Yep.  
The receive output is a pulse, greater than 1.7ms within 25ms. You would need a circuit to retrigger on pulses to keep the LED running. It could be done. 555 timer could do it, me thinks. see Bryce post above. Don’t think Melissa wants to go that way, by the subsequent post.

---

<div class="post-metadata">

**Author:** ![Melissa150817](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Melissa150817](https://forum.core-electronics.com.au/u/Melissa150817)\
**Post date:** [7 February 2021 06:28 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/20 "2021-02-07T06:28:25Z")

</div>

Hi Guys - thanks so much for all your help! I’ve decided to go ahead with James’ suggestion and have ordered the board and programmer and other bits and pieces this afternoon. Hopefully they won’t take too long to get to me so I can get this thing done!

---

<div class="post-metadata">

**Author:** ![James46717](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@James46717](https://forum.core-electronics.com.au/u/James46717)\
**Post date:** [7 February 2021 22:05 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/21 "2021-02-07T22:05:26Z")

</div>

Some links to get you going.  
Pololu AVR Programmer V2.1. User guide and MAC installation package.

> **[Pololu USB AVR Programmer v2.1](https://www.pololu.com/product/3172/resources)**
>
> This in-system programmer can be used to program AVR microcontrollers and AVR-based controller boards, such as our A-Star 328PB Micro, Orangutan robot controllers, and the 3pi robot. The programmer emulates an STK500 on a virtual serial port, making...

If you bought the A-Star 328PB 5V 16Mhz micro. User guide for getting it working and installing the board in the Arduino IDE.

> **[Pololu - A-Star 328PB Micro - 5V, 16MHz](https://www.pololu.com/product/3160/resources)**
>
> The A-Star 328PB Micro is a tiny programmable module featuring the ATmega328PB AVR microcontroller, a backward-compatible replacement for the popular ATmega328P that features more general-purpose I/O and many additional peripherals. This module...

If you bought the Pro Mini its board definition comes with the Arduino IDE.

Suggest getting the programmer working with the Arduino IDE first.  
Then solder a 6 pin connector to the micro. Carefully as the boards are pretty small. I use the finest tip I can find for the soldering iron.  
You could then run the programmer utility and set it to output VCC, this will power the micro board when you connect it. So all you need is the programmer and the micro to load code.  
The onboard LED on digital pin 13 can be used to prove it is loading code and working. I usually modify the time in the blink program. Fast or slow blink.

When you are confidence the board and programmer are working and you can load code ok, you could look at getting the receiver input to work. I use the `Serial.print()` function to debug the code. On the top right of the IDE there is a an icon that when clicked will open a serial monitor.  
Apologies if you know all this already.

All the best  
Jim

---

<div class="post-metadata">

**Author:** ![Melissa150817](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Melissa150817](https://forum.core-electronics.com.au/u/Melissa150817)\
**Post date:** [22 February 2021 04:44 UTC](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317/22 "2021-02-22T04:44:16Z")

</div>

Hi James - I’m baaaaaack!  
The board etc has now arrived and I’ve finally had a chance to review and get a little bit more familiar with things. I’ve managed to solder the header onto the board. The only problem I have now is that the wiring diagram provided by thingiverse uses the Arduino Pro Mini board and the A-Star I have bought looks different. So I am not quite sure if I have the correct holes for the correct wires so that the code (provided by thingiverse) is all ok.  
I’ve attached a copy of the wiring diagram as well as a photo I have marked up the way I think it should go together. Would you mind checking to see if I have it right in my photo?

 ![A-Star wiring](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/0/021bbe369d65d12eaa8c8ed7b1246580682af28d.jpeg) ![Screen Shot 2021-02-22 at 3.26.13 pm](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/0/0bab6a44df32bc5e147497edc02332e0440073ab.jpeg)

[Next page](https://forum.core-electronics.com.au/t/blinking-rain-light-for-openrc-f1-car/9317.md?page=2)
