Loading
Macaca

Friction Drive E-Bike

by Macaca Apr 25, 2017
Download All Files

Thing Apps Enabled

Please Login to Comment

is this design still working fine for you?

yes, the PU version is still working :)

nice and compact design you've rigged up there

Can you please make a video while driving ON the bike? Is the motor powerful enought?

do you have a guide for the - Arduino for Analog to PWM converting?

Thank you very much!
And also how you connect the throttle to the arduino and the esc??

The throttle is connected to Analog 0, and ESC connected to pin 9. Here's the latest version of my code:

Servo myServo; // create a servo object

int const potPin = A0; // analog pin used to connect the potentiometer
int potVal; // variable to read the value from the analog pin
int ms; // variable to hold the angle for the servo motor

void setup() {
myServo.attach(9); // attaches the servo on pin 9 to the servo object
}

void loop() {
potVal = analogRead(potPin); // read the value of the potentiometer

ms = map(potVal, 0, 1023, 1000, 2000);
myServo.writeMicroseconds(ms);
}