Motion Reactive Surfboard LED Strips
by mosivers in Circuits > LEDs
6405 Views, 32 Favorites, 0 Comments
Motion Reactive Surfboard LED Strips
Recently, some friends and I discovered river surfing. Living in Munich we are lucky to have three surfable river waves among that the famous Eisbach surf spot. The downside of river surfing is that it is quite addictive and so I rarely find time for my other hobbies including building electronic projects. This was until a friend of mine came up with the great idea to equip a surfboard with LED strips for our first night-surfing session. Our plan was to not only light up the surfboard but also install a gyroscope to have them react to the motion of the board.
Supplies
- 5m WS2812B LED strips, IP68, 60 LEDs/m
- Arduino Nano
- MPU6050 3-axis gyroscope (e.g. ebay.de)
- 18650 battery (e.g. ebay.de)
- TP4056 battery charger with over-discharge protection circuit (e.g ebay.de)
- 3.7V to 5V step-up module, >1.5A (e.g. ebay.de)
- Tupperware box
- 3 pin, superseal connectors (e.g. ebay.de)
- epoxy glue
- silicone
- 3M dual lock tape (e.g. ebay.de)
- hotglue
- cable binders
Preparing the Surfboard
We used a really cheap 7' foam board for this project which was the first board that we bought for the small Eisbach wave (also known as E2). We wanted to attach one long LED strip all along the side of the surfboard. As the first step, we removed the uppermost foam layer with a rotary tool. It is advised to use a respiratory mask for this as the procedure left my friend's apartment completely covered in a layer of blue dust. Having the LED strip countersunk in the surfboard helps to prevent damages when you accidentally bang the board against the wall which happens a lot during river surfing.
Gluing the LED Strip
Attaching the LED strips was not easy as many glues do not stick well to the silicone that is covering the strip. After some failed attempts with hot glue and multipurpose glue we finally settled on a high viscosity two-component epoxy. We also had to shorten the LED strip a bit sealed the end with silicone. Unfortunately, after the first surf session also the epoxy came loose again so we are planning to cover also the top of the strips with silicone or transparent epoxy.
Preparing the Electronics
Originally, we wanted to use a powerbank to provide the 5V needed to power the Arduino and LED strips and. However, most powerbanks automatically switch-off when the current draw is below a certain threshold which is a bit of an inconvenient feature. In the end, we replaced the powerbank with a 18650 battery, a TP4056 board, and a 3.7V to 5V step-up module. Make sure to choose a boost converter that can handle the current draw of the LED strips or adjust the brightness of the LEDs accordingly. Our 1.5A step-up module turned out to be not powerful enough when setting the LED brightness to >50%.
As it turns out it was not the step up module that limited the output current but the over-discharge protection onboard the TP4056 module. I replaced it with a TP4056 module without over-discharge protection.
All electronic components were mounted on a perf board and connected on the bottom with silvered copper wire. I also added a slide switch after the boost converter.
Watertight Enclosure for Electronics
My plan was to make a nice 3D printed enclosure for the electronics and read up some helpful tutorials on how to design watertight 3D prints (see here and here). Unfortunately, I did not manage to get the lid of the enclosure truly watertight using either a rubber o-ring or silicone and gave up after three failed attempts. In the end, we just put the electronics in a Tupperware box, made a hole for the cable, and sealed it with hot glue and silicone. If I had to redo it I would probably just purchase an IP68 rated enclosure with a cable feed-through.
Arduino Code
The attached Arduino code is quite simple and builds upon the FastLED and Adafruit MPU6050 libraries. The LEDs react differently when the following motion is detected.
- left/right turn: a colored dot sweeping back and forth on the side where the board turns to
- standing: FastLED's "confetti" animation
- pumping: blinking rainbow pattern
- surfing straight: FastLED's "rainbow with glitter" animation
Downloads
Connecting Everything
We did not want the electronics to be permanently attached to the LED strip but have some connector in between. After searching some time for IP68 rated connectors we finally decided to use so-called superseal connectors. These are only rated as IP67 but they are less bulky and cheaper than most of the IP68 connectors we found. In addition to the sealing that comes with the connector we also resealed them with epoxy.
Finally, the electronics box was attached to the top of the surfboard with 3M dual lock tape and secured with cable binders. In the end, it all looks a bit improvised because we were really keen on getting things done fast so that we can try out the board.
Surf On!
We just barely finished the board in time to try it out for our first night-surfing session. In the end almost everything went wrong. When we came to the wave the only people with a floodlight just left. Also, we realized that the LED strips turn off after about one minute because the current draw was too high for the step-up module. After quickly re-hacking the board by connecting the battery directly to the 5V input of the Arduino and LED strips and securing everything with lots of sellotape we were also lucky that some more people with a floodlight arrived at the river. The board was working and we had an awesome surf session.
Afterwards, we saw that the silicone hose covering the LEDs had quite some holes, the epoxy came loose and the connectors were not watertight so it is kind of a miracle that the LED strips were working all the way to the end. Now it is time to repair and improve the board for the next surf night.
Update
I also attached a small LED strip to my 5' board for season's closing day at Floßlände.
The LED strip was put in a transparent PVC hose and sealed with silicone. I attached the hose with cable binders and self-adhesive cable binder holders to the board.
The electronics were put in an IP68 certified box with cable feedthrough. The box was attached with double-sided tape. Everything was holding well but I was also able to remove it afterward.