Need help to get my ECS and motor armed and running using code

Hello all

It feels like I have tried all example code I can find with no success, so now Im asking all of you for help.

We are trying to make a simple electric bike assistance, and I need to get our motor setup and running.

Equipment:

ESC connected with GND and signal on Arduino.
(power is to be used in the final version when we are not connected to the PC)

In the long run, we need the system to be set up when connecting the battery, no other user involvements.

So im hoping someone here can help me to get a basic code that arms the ECS and runs the motor at any speed. After that I can continue on my own.

I feel that im getting to annoyed to get anywhere now....

//Joshen