Thingiverse
Code for Yoke and Pedals
di juanbc09
3
Download
2
Likes
0
Makes
This remix aims to help users or future users of the yoke or pedals to add buttons, axes since many times it was difficult for many to add these to them.
One thing to mention, when you are not using digital pins you will have to connect 5v with a 10K resistor to the pin that you are not going to use, because otherwise it will start to vibrate and will not let the others work normally.
Here I will leave the link for the arduino code:
https://create.arduino.cc/editor/juanbcastro22/f61e2b45-2d84-4a6f-a961-c4c9f462d8d8/preview
The next thing, as I already said, is to reference the digital pins, here I will leave you an image of how to do it.
The last thing is to adjust the amount of analog pins used,
since, if we want to use 2 and we have 4 axes, it will start to go crazy and will not let the device work; and to add you will only have to copy this simple line of code:
map(analogRead(0), 0, 1023, -32768, 32767);
One thing to mention, when you are not using digital pins you will have to connect 5v with a 10K resistor to the pin that you are not going to use, because otherwise it will start to vibrate and will not let the others work normally.
Here I will leave the link for the arduino code:
https://create.arduino.cc/editor/juanbcastro22/f61e2b45-2d84-4a6f-a961-c4c9f462d8d8/preview
The next thing, as I already said, is to reference the digital pins, here I will leave you an image of how to do it.
The last thing is to adjust the amount of analog pins used,
since, if we want to use 2 and we have 4 axes, it will start to go crazy and will not let the device work; and to add you will only have to copy this simple line of code:
map(analogRead(0), 0, 1023, -32768, 32767);
Hai stampato questo modello? Accedi e condividi il tuo make!
Accedi per lasciare un commento
AccediAncora nessun commento – sii il primo!