Boyntonstu
10 kW
This is all new to me:
I have a Hobbyking 150A 1/8 scale controller and a 213 KV 59mm Turnigy motor and I don't want to burn anything up.
I have this nano Arduino:
This 3 wire Throttle Thumb control:
Also:: Hobbywing 3A Switch Mode UBEC 5V 6V Max 5A Lowest RF Noise Brand New US
And this Sketch code given to me by a friend who says that it is on/off only and not variable.
Wiring advice:
Arduino pin
5V - Ubec + Throttle red
GND - Ubec + throttle white + battery ground
9 - ESC signal
A5 - Throttle green
------------------------------------
First: Please double check the wiring advice.
Second: Please advise modification to Arduino sketch to enable speed control.
I really would appreciate your help.
I have a Hobbyking 150A 1/8 scale controller and a 213 KV 59mm Turnigy motor and I don't want to burn anything up.
I have this nano Arduino:

This 3 wire Throttle Thumb control:

Also:: Hobbywing 3A Switch Mode UBEC 5V 6V Max 5A Lowest RF Noise Brand New US
And this Sketch code given to me by a friend who says that it is on/off only and not variable.
#include <Servo.h>
Servo ESC;
int Button;
int Speed = 1500;
void setup()
{
ESC.attach(9);
pinMode(13, OUTPUT);
pinMode(A5, INPUT);
digitalWrite(A5, HIGH);
}
void loop()
{
delay(25);
Button = digitalRead(A5);
if(Button == LOW)
{
digitalWrite(13, HIGH);
Speed = 2000;
}
else if(Button == HIGH)
{
digitalWrite(13, LOW);
Speed = 1500;
}
ESC.writeMicroseconds(Speed);
}
Wiring advice:
Arduino pin
5V - Ubec + Throttle red
GND - Ubec + throttle white + battery ground
9 - ESC signal
A5 - Throttle green
------------------------------------
First: Please double check the wiring advice.
Second: Please advise modification to Arduino sketch to enable speed control.
I really would appreciate your help.