Any programmers with some time on their hands out there?

Is there anyone on here who would be kind enough to supply me with IDE code for an Ardunio nano ?
What I’m trying to acheive is:
Vesc PWM throttle control using an Ardunio and custom momentary button switch.
Description of operation:
· Using a single momentary switch/button, the drive can be toggled from zero% to 50% throttle by holding the button for a minimum of 1.5 seconds and a maximum of 3 seconds. This 1.5 second delay ensures that you won’t accidentally switch the drive on by bumping the throttle button.
· The drive can also be toggled from zero% to 100% throttle by holding the button for a minimum of 3 seconds.
· The drive can then be toggled between 50% and 100% by using a continued 1.5 second to 3 second button hold.
· Any button push less than 1.5 seconds will immediately kill the throttle.

Seriously hope someone can help
Cheers
David

(deleted)

urga:
Is there anyone on here who would be kind enough to supply me with IDE code for an Ardunio nano ?

If you just want someone to write a program for you please ask in the Gigs and Collaborations section of the Forum and be prepared to pay.

...R

Ahem...for free? I already have a code written via Visuino which came on a preprogrammed Arduino pro mini. I need another, so bought some Arduino nano's thinking it would just be a matter of uploading the code to the Nano. I cannot get the Vesc tool to register any output during pwm mapping.There is the required output via the serial monitor though? I'm assuming something is amiss with the settings,so thought if I could get code written specifically for the Nano,then it might work?
I know nothing of coding and was hoping,as it's a simple code, that it would be a matter of minutes for a knowledgable coder on here.
Sorry if I have appeared cheeky in asking.It was not my intention
Regards
David

Sir,

I suggest that you first draw a flowchart, that translate it into the code you want if what I said now ( of programming this onto an Arduino via the Arduino IDE) is what you wanted to do. You may also add a Serial.println statement to monitor the signal from the button.startmillis and stopmillis functions can be handy.

Cheers,

Sam

Sorry! Did I say startmillis and stopmillis ? That's incorrect! Use millis() function.

it seems to be a simple task. Anyway if it should work by sending you the code once and everything should work flawlessly it includes intensive testing of the code. This is an iterative process which will take 3-5 hours. So buying some more arduino pro mini will be cheaper.
best regards

Stefan