Bumblefuck / HBR-Proportional-Valve

This is an arduino C sketch for controlling a proportional valve with potentiometer joy stick
27 stars 11 forks source link

Joystick controlled PWM #1

Closed DanNixon closed 8 years ago

DanNixon commented 8 years ago

Here is a basic joystick controlled PWM output, this is written using a library I have used in many other projects so it should work, however I haven't tested it so make sure to before using it on the valve.

The pins to connect the valves to are noted by VALVE_X_POS, etc. The axes of the joystick should be connected to analog pins 0 and 1.

Pin 10 must be connected to ground to enable any output.

Requires this library (can be installed through library manager in Arduino IDE, search for "Universal Input": https://github.com/DanNixon/ArduinoUniversalInput

Included are the calibration values for this joystick (which is worth the price in my opinion, I do think you can get it cheaper elsewhere though): http://uk.rs-online.com/web/p/products/8430838/

Bumblefuck commented 8 years ago

Cool! I'll try it out with the library and a couple of pots. Thanks!