Week 8: Final Week

It is sadly the end of the DTSF 2022 program. I had a interesting summer getting to work with a team, and getting a grasp on how it is to work with a team for some time, even if it was just for eight weeks. Throughout the 8 weeks my cohort consisting of Casey Rhodes and Divya Guatam started off very shy and kept to each other. However, as the weeks progressed we were able to get more comfortable with each other by working together in the weekly design workshops hosted by Josh, ICL Manager. As more weeks passed by, the more focused we got into our projects, we had our days of grunts and frustration together because our projects were not working the way we wanted them to work. However, in the last week we were all able to pull through and complete our summer projects in delight.

During the last two weeks of the summer I collaborated more with Divya to learn more about Arduino, she also helped me set up my Arduino IoT Cloud to read data from my ESC. Sadly, it was not cooperating with me as smooth as it was with her air quality sensor. Divya told me to just let it go that it won’t work, to move on and just mount my enclosure to my board, however, I was persistent and determined to get it to work. I got the IoT cloud to send data to my phone wirelessly for a split second but then for some odd reason it lost connection so I decided to drop it. I think the IoT cloud is fairly new so it still has some bugs in the back end of the software. I spent the entire last week to get this to work. On the last day before presentations I mounted my enclosure to my board and of course I forgot to do one thing before my presentation, charge the battery. On the day of presentations at the Lyceum I skated with my board to the lyceum smoothly, however, Divya texted me asking for my laptop because hers was not working. And of course on my way back my board slows down, signaling me that the battery has low battery. Thankfully my presentation went better than I thought and my board was still working properly the next day after a full charge.

Under the hood of my board (When I had 2 batteries)


This was the library I used to get the readings from my ESC for my Arduino. https://github.com/SolidGeek/VescUart

Completed Board
Arduino MKR 1010 working wirelessly *ignore the micro-usb cable*

Link to final test run: https://drive.google.com/file/d/1tqiG-DSiNIRMxRovkpFz0yEKOlYwhgUz/view?usp=sharing

Live Playback of Readings

I have yet to know the full specs of the capability of my board such as how long the battery lasts, but as of now with one battery I have a max speed of 15 mph. I think it was faster when I had two batteries but I never measured it when I had two batteries.

But that is all folks, I want take this moment and thank Dr. Eric Remy and Josh Wagner for giving me this opportunity to motorize my longboard in hopes of getting to 9am classes on time. I also want to thank Divya and Casey for making this summer spectacular and full of learning new things where we were able to bring our projects into fruition. Good bye

Best Wishes,

Michael Palma ’23

Week 7: Micro Controller Working/ Homestretch

On Monday as I was programming an Arduino to my ESC, it claimed that my battery was at 12%. I was a bit shocked to see such a low reading, so I pulled it up to the VESC tool which had accurate readings and it displayed that my battery was at 29% percent. I then look down an investigate my batteries and noticed that there was a tear on one of the batteries. I then plugged it into the charger and an error came up, and it wouldn’t charge my battery. The team and I came to conclusion that the battery was shot. Eric suggested to look up and see if the battery was salvageable. Although, it was I was too scared to mess with the battery after seeing a spark fly out when Eric was cutting up the electrical tape on the battery. I was also scared that even if I were to try to repair the battery it wouldn’t work. I was going to order a new one but they were out of stock everywhere. So I had no other choice to downgrade to one battery, which was upsetting because that meant lower range on my skateboard.

Although, I was down to one battery from this tragedy I learned that the code I was using with my Arduino was working however, there was just a bug in the code that kept taking my values to zero. And that was exactly my issue. After debugging my code, I found the bug. When I was trying to calculate my values I was attempting to do integer division, which will always divide to zero. After converting that integer division into a double, I was finally able to get accurate readings from the Arduino, where I no longer get 0 readings.

In the afternoon, I then attempted to make holes on my board to add the thread inserts for my bolts. However, I ended up braking one of the inserts because the holes were too tights.

Damaged Battery
LCD reading battery percentage
VESC tool reading low battery
Broken insert

The next few days I focused on cleaning up the code on my Arduino to display on a lcd more nicely. I was also switching in between board to achieve a wireless connection. In hopes of sending the data from one Arduino to another wirelessly. However, I was not able to achieve that.

Display not mapped correctly.
Working LCD ESC Display

After getting the code to work and display it on the screen, I then moved on into 3D printing a case to attach onto my remote. I did not have enough time to design my own encasing so I just printed one from online. That wrapped my week so onto the next and final week!

Week 6: Worrisome

On week 6 I continued trying to get data from my electric speed controller, but nothing worked. Some of the things I tried were trying to code on different micro boards, and Bluetooth modules. What I mean by nothing worked because I was not getting any readings from my code, but rather just zero values for some of the gauges. The only gauge that would move was the battery percentage and amount of power being drawn. And at that, I was not sure whether or not the readings were accurate. My next step to approach this bug is to downgrade the firmware. In some of the forums, I was seeing a series of mixed emotions of some working on the latest firmware and do not.

During the week as I was about to mount the enclosure to board, of course, it falls on the floor. Although, I had to restart the print which takes 2 days to print. However, this caused me to discover that the integrity of the edges was too weak and it needed a stronger lip to hold onto.

I now have the final prints for my enclosure. On Friday I attempted to mount my board but decided to stop because I was not sure what was causing my board to chip as I tried drilling a hole.

Next week I hope to find some way to get data from my board, but I am getting kind of worried since it’s coming down to the wire.

Week 5: Bugs, Bugs, Bugs

This week consisted of trying to add new features to the board besides having it move. Some of the features I had in mind was adding a speedometer to the board. I wanted to incorporate that by adding a microcontroller, ESP32, to the controller, which had a mini OLED display that could display data.

Soldering ESP32 Microcontroller

After soldering the wires on the ESP32 I attempted to code onto. I was able to add an example code to it. Some of the things I did were connect Wi-Fi to it, display some demo screens and display hello on to it. I could not do much besides that because I was missing a bluetooth receiver on the ESC to display the data.

After playing with the ESP32, I moved on to a simpler Arduino attached to an LCD. I was able to connect the Arduino to my ESC with some jumper wires to display some data such as speed, battery percentage, power used, and distance traveled, but for some reason the data was incorrect.

After another 3D print was ready, thinking it was my final print, I came across another issue. Some of the supports were too weak, which caused them to detach. So I had to go back to the drawing board and print a fully supported build.

Detaching print
Fully Supported Print

That wrapped up week 5 next week I plan to continue trying to attach an esp32 to my controller along with other add ons.

Week 4: Busy Week

This week I was able to make good progress in my build. However, I did stumble over a few problems. I have my final design for my enclosure that will house my batteries and wires but the 3D printer won’t print it properly. I had my filament form a knot, not allowing the print to finish, the same issue occurred again to the point that the wires underneath the printer short-circuited causing the wires to scorch up.

I also charged up my batteries to get them to be prepared for the first test. Then I proceeded with soldering up some wires. I soldered bullet connectors that go from the ESC to the motor and soldered an xt60 adapter to the ESC to receive power, which all worked out perfectly.

Soldering bullet connectors to ESC
soldered xt-60 connector.

After getting everything powered up it was finally time to program my motor and remote controller. Everything was working ok, however, my motor was not accelerating smoothly but rather at full speed but I finally got it to spin at a comfortable speed. What I am having trouble with is trying to bind the other knob on the controller. I want to find a way to make use of it but I can’t find a way to bind it.

The motor programmed for the first time.

My new wheel pulley came in, and luckily it was a perfect size, which threw all of the filing of my truck out the window. With that final piece, I was able to complete my build.

Items (Left to Right): LiPo Batteries, wiring harness, power switch, ESC, remote receiver, remote, motor

This was what I did for the week. Next week I plan to add more adjustments to the motor for a smoother ride, print my final enclosure, mount it, and attach more modifications to the board.

Week 3: Constant Barriers

Coming into this week I thought I would be fine, but of course, things do not always turn out that way. It was filled with problems after problems, when one was solved another arose.

Attaching belt-driven motor

On Monday I was able to mount my motor to my board. Not knowing what the next day meant for me. What seemed to be a success it was actually the start of the many problems.

Design enclosure

On Tuesday I continued my design from Monday of the enclosure where I will be housing my batteries and wires to go under the board. I then got this design ready to print.

On Wednesday I continued trying to mount the motor to my board along with the belt-driven system. However, I encountered a huge issue.

The wheel does not sit correctly on the board

After installing the pulley that goes directly on the wheel and trying to place it onto the board, it was not able to sit on the board correctly. I need it to go down more so I could place the nut in place to sit on the board. I sat there trying to think of several solutions and the only logical solution was to shave down the hanger of the truck.

Truck after a good while of filing it down

On Wednesday I spent the day filing down the hanger of my truck, I spent a long day doing that, and my hand kept cramping up.

Wheel after some time filing the hanger

I was not able to finish filing down the truck and had to finish the next day.

On Thursday after finally getting my wheel to sit correctly on the truck arose another problem. My belt did not fit my pulleys.

Motor Belt does not sit correctly on the wheel

On Friday Eric was able to help me get the belt to come around the wheel. Just when I got a sense of relief arose another problem, the tension of the belt was causing it to pull my wheel inwards, not allowing the wheel to align straight.

Wheel pulleys do not allow each other to sit flush.

I had to go back to the drawing board with this one trying to think of the most reasonable solution. I was able to pull back the bore sitting on the motor to allow the belt to sit straight with the motor pulley on the wheel, however, it was not the most effective solution since, the bore sat on the edge of the motor. My other solution was to get a longer belt, however, with that I might lose the tension I need to pull the the belt. Another solution was to get a new truck, however, that was kind of expensive. And finally the next solution was to get a new pulley for the wheel that was less wide that will give me the clearance I need to install the belt correctly.

A rough idea of the enclosure assembly

To finish up the day I wanted to see if the enclosure could house all of my batteries and wire, and luckily it all did sit well in the enclosure, which was a relief. So I spent the rest of the day making small prints to make sure I was getting the right hole sizes on to pull in the wires from the motor and install the power button.

Holes for power button and wires.

So that were the obstacles I faced that week. I was able to tackle most of them by the end of the week. Now I am just crossing my fingers the new pulley will fit correctly with the belt. If that ends up working out I will be able to conduct my first test run on the board with me riding the board.

Week 2: Bringing Everything Together

This week a bit stressful and full of anxiety. I had placed an order for my parts before leaving Friday and I had a gut feeling that I forgot a piece to my build. As the week went by my parts slowly started coming in but there was not enough for me to get started with. I started to become overwhelmed as the majority of the parts came in because I still felt like I was missing a part.

Monday and Tuesday I spent the day on tinker cad designing my own enclosure to house my batteries. I also spent the day familiarizing myself with ardinos in hopes of gaining knowledge to attach one of these to my boards.

On Wednesday the prototype of my enclosure was printed. Seeing the enclosure for the first time, I could point out my flaws and see what needed to be modified.

With this initial print, I was able to see that the supports on the side were way too thin and were not fully attached to the whole print. So I went back to the drawing board and started making the necessary tweaks. In the afternoon I was flooded with more parts. So I decided to take a baby step with the parts and installed the new wheels needed for this build.

A table full of parts

Installing new wheels

On Thursday I continued building the parts I could with parts I had.

After a week full of anxiety about missing parts I decided to slow down a bit and assess what parts I had and what parts were missing. After reviewing the parts I had I realized all I needed were the batteries to start this build, I had everything else needed to complete this build.

Prototype of battery enclosure with not enough clearance.

After Friday I uncovered a new problem. After taking my board for a test run, I realized I did not have enough clearance on my board to ride around with this enclosure underneath. So I would have to tackle this problem next week!

Week 1: Introduction

Hello, my name is Michael Palma and for the next 8 weeks, I will be building my own electric longboard from my own personal longboard. Throughout these next 8 weeks, I will be working with DTSF to help me think through various design thinking exercises on how to build this electric board.

On day one we started off with a design game, where we choose an item from a mystery bag and spent some time brainstorming ideas on what we could do with our random object. I was given a glass prism. At initial glance I was able to think of various things I could do with the object. However, as more time went by I was starting to run out of ideas. So I started to think out of the box with more abstract ideas on what I could do with a glass prism. With the idea of designing things with random object we moved onto building our very own pinball machine with the items around the ICL lab. Through this exercise we were able to test our creativity and team building skills. We started off at a shaky start of not communicating as much with each other, but the further we got into the project the more invested we all got and started thinking of more ideas on how to build this machine together. With our effective teamwork we were able to successfully build our very own pinball machine out of styrofoam, popsicle sticks, and other knick knacks to decorate our machine. With these various skills learned that day of design thinking, team building, and execution we were able to start thinking of our own projects for the summer.

Pinball Machine built by Casey, Divya, and Michael

On Day 2 I spent the day familiarizing myself with building an electric longboard. I looked at various tutorials where I got a good grasp on how to choose the right items for this build. I looked into choosing the right batteries, electric speed controller, wheels, wheel mounts, etc. I then continued at reviewing parts and where I could order parts from at an affordable cost. I started to feel overwhelmed because the parts shared similar prices. However, I was still building a board at a cheaper price than the ones that are prebuilt in the market.

On day 3 I continued reviewing the parts I needed for my build. I stumbled through a few hiccups trying to find the right parts that were compatible with my build and would actually help me build a functioning board. After compiling a list of items that I needed, right when I thought I was done I realized the wheels I had were not compatible with this build. So I had to go back to my list of items and re-budget my build with the addition of new wheels.

On Day 4 I finalized my list of parts I needed and spent the day learning about battery safety and voltage safety. I also spent the day designing my own battery enclosure. I decided to print my enclosure at a smaller scale, rather than wasting product on a bigger build to gain a physical sense on how I wanted my enclosure to look like. That day I stumbled upon another hiccup, some of the parts I needed were not going to arrive until 3 weeks from then. With the time constraint, I could not wait 3 weeks. So I had to quickly rethink my build with a new ESC, electric speed controller, which is the brain of my build. The ESC I chosen was the perfect ESC for my build that was compatible with all the parts I needed. However, I had to review my parts and a new ESC quickly. Now, I have to wait for all the parts to arrive and begin assembling.

Michael Palma’s Work Station