Telemetric Longboard | VESC+ ESP8266+iPhone | old Deck from attic | BLDC Turnigy 6374 149kv| Custom Mount | 12S 5000mAh |

Hello I’m Nick from Austria and i would like to present you my first approach of building an electric longboard.

Project Aim:

  • electric Longboard with high enough torque to go up steep hills (>20%)

  • easy handling and controlling of the board

  • good price to quality ratio

  • safety features (limiting current, liming current ascent)

  • Display live telemetry data on phone

  • Change live board beheaviour on phone

Concept Longboard:

Used Parts:

  • BLDC: Turnigy Aerodrive SK3 - 6374-149kv Brushless Outrunner Motor

  • VESC: Enertion VESC-X

  • Battery: 3x ZIPPY Flightmax 5000mAh 4S1P 20C

  • µC: Selfmade Custom board for ESP8266-01

  • Deck+Trucks: old Deck from the attic

  • wheels: Enertion 83mm

Concept Remote:

Used Parts:

  • Phone: Iphone 6 (App TouchOSC)

  • Remote: Selfmade (Joystick Playstation Portable, ATTiny85, ESP8266,2xAA Battery, Switches and Buttons)

  • calculated runtime 40 hours

Communication Sequence:

  • [Remote] ATTiny85 reads analog Value from Joystick and sends it over the Serial Interface to the ESP8266

  • [Remote] ESP8266 gets Joystick Value via Serial Interface and Sends it over WiFi to the ESP8266 on the longboard

  • [Remote] ESP8266 reads Pushbutton Value on Digital In and Sends it over WiFi to the ESP8266 on the longboard

  • [Phone] sends and gets Telemetric Value over Wifi from and to the ESP8266 on the longboard

  • [Longboard] : ESP8266 on the longboard gets Values from Remote and iPhone and is communicating with the VESC over the Serial Interface.

Interface Phone: Detailed Dashboard with the Information about all measured Parameters:

Changing of K and T value of the PT1 transfer function for changing the behavieour of the remote:

Dashboard:

Remote:

Longboard build:

If you have any questions or suggestions for improvement please let me know.

Happy e-boarding

Nick

4 Likes

Awesome awesome board man, im interested in the remote, can you tell me more ab it? How did you make it?

For the remote I just used a psp-joystick like this one: https://www.adafruit.com/product/444 and I used an ATTiny85 microcontroller to read the analog values of each axis. After digitizing the input the ATTiny sends via the serial interface to the esp8266. The esp8266 is connected to the esp8266 on the longboard, which works as accesspoint and sends the data via udp protokoll. So in the remote are two programmed microcontrollers. Here are the layout and scheme:

I hope I’ve answered your question

What happens when you get out of Wi-fi range or did i misread that it needs Wi-fi for the phone and joystick remote?

Usually the board can’t get out of Wifi range, because the board broadcasts it’s own Wifi. So you moving your accesspoint with the board.

But in case that there is any connection error or timeout of a component (phone, remote, vesc), the board is set to a save state with a braking current of 10A. To get out of the save state there is the button “arm” on the phone

1 Like

I suggest you instead make it go to zero throttle and let it coast. Otherwise you might find yourself flying off the board if you lose connection at high speed

2 Likes

You could use a Wii remote with the Esp8266, it’s safety

1 Like

I havn’t experienced any connection issues so far, except the ones I’ve provoked for testing the safety mechanism.

In case of a connection loss I first set to zero throttle and then a soft ascend of braking, so the change of momentum isn’t too rapid.

1 Like

I also experimented with the ESP8266 and i can’t recommend to use it for throttle inputs. Disadvantages are also the high current consumption of around 100 mah (at the remote).

I also have the small joystick that you use and i can’t imagine that it is sensitive enough for throttle inputs. You also don’t necessarily need the ATTiny85 in between. You could detect both axis via one ADC pin. But as i said already the joystick from the PSP that you use isn’t precise enough. Also the resistance for the thumb is very low which would make it hard to find the right position for the right amount of power.

Thank’s for the feedback.

The psp joystick for the remote isn’t perfect but i had some of them lying around and therfore I used them. Concerning the esp8266 and the analog input. I’m using a ESP8266-01 and the ADC Pin isn’t accessable via the pinheader and i won’t use some fiddly soldered wires directly to the chip.

For the better respone-behavior I programmed a PT1-Transfer function for filtering the input signal and as result i get a quite natural feeling throttle behavior. With this PT1 filter the exact position of the thumb isn’t necessary any more.

The power consumption isn’t that important to me, I’ve experienced a battery life of the remote of about 40h.

1 Like