Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
joystick [2017/02/23 02:55]
99.174.81.42 [Mapping Voltage to Position]
joystick [2021/02/22 16:52] (current)
Line 1: Line 1:
 <WRAP right round box> <WRAP right round box>
-[[https://www.sparkfun.com/products/9110|{{ :joystick:joystick.png?200|Image modified from SparkFun Electronics (CC BY-NC-SA 3.0)}}]]+[[https://www.sparkfun.com/products/9110|{{ ://joystick:joystick.png?200}}]]
 </WRAP> </WRAP>
  
Line 19: Line 19:
 <callout type="danger" icon="true" title="Not yet completed or released"> <callout type="danger" icon="true" title="Not yet completed or released">
 Note this page is a work in progress and the joystick functionality is not yet released in smoothieware. Note this page is a work in progress and the joystick functionality is not yet released in smoothieware.
 +To test it you need to use pull request [[https://github.com/Smoothieware/Smoothieware/pull/1122]], and instructions on how to test a Pull request are here [[http://smoothieware.org/third-party-branches#checking-out-pull-requests]]
 </callout> </callout>
 === Hardware Requirements === Hardware Requirements
  
-{{ :joystick:joystick.png?150|Image modified from SparkFun Electronics (CC BY-NC-SA 3.0)}} +{{ ://joystick:joystick.png?150}} 
-{{ https://cdn.sparkfun.com//assets/parts/7/6/5/5/11621-01.jpg?150|Image from SparkFun Electronics (CC BY-NC-SA 3.0)}} +{{ //external/https.cdn.sparkfun.com.assets.parts.7.6.5.5.11621.01.jpg.150.image.from.sparkfun.electronics.cc.by.nc.sa.3.0.}} 
-{{ https://cdn.sparkfun.com//assets/parts/4/0/4/9/09939-01.jpg?150|Image from SparkFun Electronics (CC BY-NC-SA 3.0)}}+{{ //external/https.cdn.sparkfun.com.assets.parts.4.0.4.9.09939.01.jpg.150.image.from.sparkfun.electronics.cc.by.nc.sa.3.0.}}
  
  
Line 35: Line 36:
 If you have a potentiometer, you will need to connect one side to 3.3 V, the other side to ground, and the wiper to a pin on the SmoothieBoard which supports analog reading (see table below). If you have a potentiometer, you will need to connect one side to 3.3 V, the other side to ground, and the wiper to a pin on the SmoothieBoard which supports analog reading (see table below).
  
-{{https://cdn.sparkfun.com/assets/6/3/e/5/e/511ac8f5ce395f5846000000.png?300|Image from SparkFun Electronics (CC BY-NC-SA 3.0)}}+{{//external/https.cdn.sparkfun.com.assets.6.3.e.5.e.511ac8f5ce395f5846000000.png.300.image.from.sparkfun.electronics.cc.by.nc.sa.3.0.}}
  
 The above image shows a basic schematic of a potentiometer. Pins 1 and 3 are the ends of the potentiometer, and Pin 2 is the wiper. Vin should be 3.3 V for the SmoothieBoard, and Pin 2 will be connected to a compatible pin on the SmoothieBoard (see table below). The above image shows a basic schematic of a potentiometer. Pins 1 and 3 are the ends of the potentiometer, and Pin 2 is the wiper. Vin should be 3.3 V for the SmoothieBoard, and Pin 2 will be connected to a compatible pin on the SmoothieBoard (see table below).
Line 51: Line 52:
 | 0.25 | thermistor2 | Not recommended (used for thermistors and has built-in 4.7 kΩ pull-up) | | 0.25 | thermistor2 | Not recommended (used for thermistors and has built-in 4.7 kΩ pull-up) |
 | 0.26 | thermistor3 | Not recommended (used for thermistors and has built-in 4.7 kΩ pull-up) | | 0.26 | thermistor3 | Not recommended (used for thermistors and has built-in 4.7 kΩ pull-up) |
-| **1.30** | spare | Recommended pin |+| **1.30** | spare | Recommended pin | 
-| **1.31** | spare | Recommended pin ||+| **1.31** | spare | Recommended pin |
  
 See [[Pinout]] for a diagram of the SmoothieBoard with the pins labeled. See [[Pinout]] for a diagram of the SmoothieBoard with the pins labeled.
  
 For a joystick, you will need to connect each wiper (the left/right and up/down) to different analog pins (e.g. 1.30 and 1.31). For a joystick, you will need to connect each wiper (the left/right and up/down) to different analog pins (e.g. 1.30 and 1.31).
- +{{://joystick:joystick_connections.png?nolink&400}}
-(image of joystick connection)+
  
 == Configuration == Configuration
Line 68: Line 68:
  
 <WRAP center round box 80%> <WRAP center round box 80%>
-{{ :joystick:joystick_mapping_diagram.png?1000 |}}+{{ ://joystick:joystick_mapping_diagram.png?1000 }}
  
 Example Mapping from joystick position to output with <kbd>zero_offset</kbd> = 1.5 V and <kbd>endpoint</kbd> = 0 V Example Mapping from joystick position to output with <kbd>zero_offset</kbd> = 1.5 V and <kbd>endpoint</kbd> = 0 V