AlBundy33 / CameraStick

Use Digispark and a Joystick as a CameraStick

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CameraStick

Use Digispark and a Joystick (e.g KY-023) as a CameraStick. I want to us it primarily in Euro Truck Simulator 2 (ETS2).

For pinout check: https://neonaut.neocities.org/blog/2018/digispark-attiny85.html

It seems that we cannot use PIN 3 and 4 if we want to use USB.

Because we need two analog inputs for X and Y we have to enable PIN 5 (by default a reset PIN in my model).

I've used this pages to enabled PIN 5 as IO PIN:

There was no need to install WinAVR because Arduino IDE has also included avrdude

/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C /Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -p attiny85 -c avrisp -P /dev/cu.usbmodem14201 -b 19200 -n   
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C /Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -p attiny85 -c avrisp -P /dev/cu.usbmodem14201 -b 19200 -U hfuse:w:0x5F:m

HINT: according to this page you can also use a 100 kOhm resistor instead of changing the fuses but I haven't tried it.

wiring diagram

wiring diagram

while developing I'm using a leonardo. wiring diagram (leonardo)

About

Use Digispark and a Joystick as a CameraStick


Languages

Language:C++ 100.0%