oops
Active Member
- Messages
- 100
- Reaction score
- 166
I've been working on adding lights to my Felony and wanted to have the lights remotely controllable via a spare channel on the transmitter and have working brake lights. I couldn't find anything existing that did exactly what I wanted, so I set about making something myself.
After a bit of investigation, I discovered that the Spektrum Smart ESC/receiver don't use normal RC servo control signals, but have 2-way digital communication. This makes things much more interesting, as you can use telemetry data to reliably tell when the ESC is braking (as opposed to reversing), and you also get access to control data for all RC channels on a single cable, not just throttle.
So, after a lot of tinkering, I have this:
It's based on Raspberry Pi Pico microcontroller. It connects with a single Y lead to the ESC/receiver connection, and gives three independent lighting channels (although it'd be trivial to add more).
It has three modes that can be selected (off, mode 1 and mode 2), and you can independently set the brightness of each lighting channel for modes 1 and 2, as well as the braking brightness if applicable, so the rear lights can be on at a lower level or off when driving, and then go to high brightness when braking. There's also a "flash" function which changes the brightness of one or more channels when you hold the B button when driving.
I got a bit carried away and implemented a menu system for configuring the brightness settings via the transmitter. Hold down the B button for 5 seconds when the car is stopped and you enter a menu that you can program using short and long presses on the B button. The brightness level is set using the AVC level control on the transmitter. I've added the handbrake module to my Felony, and use the same channel for controlling that - A for handbrake, B for light control. I have the handbrake servo setup so it only has a tiny throw when you press B.
I'm planning to get a case for it 3D printed in due course and am also considering getting some PCBs made which should make it quite a lot smaller.
I'm very happy to share the code and schematics for the electronics if anyone is interested. The Pico microcontroller cost all of £3.60 (~ $5 US) and the other components were well under £10 in total.
Kudos to Horizon for making the details of the Smart ESC protocol freely available.
After a bit of investigation, I discovered that the Spektrum Smart ESC/receiver don't use normal RC servo control signals, but have 2-way digital communication. This makes things much more interesting, as you can use telemetry data to reliably tell when the ESC is braking (as opposed to reversing), and you also get access to control data for all RC channels on a single cable, not just throttle.
So, after a lot of tinkering, I have this:
It's based on Raspberry Pi Pico microcontroller. It connects with a single Y lead to the ESC/receiver connection, and gives three independent lighting channels (although it'd be trivial to add more).
It has three modes that can be selected (off, mode 1 and mode 2), and you can independently set the brightness of each lighting channel for modes 1 and 2, as well as the braking brightness if applicable, so the rear lights can be on at a lower level or off when driving, and then go to high brightness when braking. There's also a "flash" function which changes the brightness of one or more channels when you hold the B button when driving.
I got a bit carried away and implemented a menu system for configuring the brightness settings via the transmitter. Hold down the B button for 5 seconds when the car is stopped and you enter a menu that you can program using short and long presses on the B button. The brightness level is set using the AVC level control on the transmitter. I've added the handbrake module to my Felony, and use the same channel for controlling that - A for handbrake, B for light control. I have the handbrake servo setup so it only has a tiny throw when you press B.
I'm planning to get a case for it 3D printed in due course and am also considering getting some PCBs made which should make it quite a lot smaller.
I'm very happy to share the code and schematics for the electronics if anyone is interested. The Pico microcontroller cost all of £3.60 (~ $5 US) and the other components were well under £10 in total.
Kudos to Horizon for making the details of the Smart ESC protocol freely available.