Close

Analog Joysticks

A project log for D1 Mini X-Pad Shield

Adds some buttons to your ESP8266 board.

dehipudeʃhipu 01/12/2019 at 23:024 Comments

I'm very happy with the version 6.0 and don't plan to make any further changes, at least for now. It's perfect both for user interfaces and for games. However, there is one more use case I have in mind, and that is controlling mobile robots. For that analog joysticks would be much better. So I sat down and designed another version, this time with two thumb joysticks, two shoulder buttons, and two buttons on the side for switching modes:

I kept the size the same, but this time I centered the board (the d-pad version is a bit shifted to make room for the four fire buttons). Also, since the thumb sticks are so big, I had to put the shoulder buttons on the back of the board, where the microcontroller is:

Four analog pins of the AtTiny24 are enough to handle the joystick, and the remaining four are for the buttons — again I didn't do anything fancy. I kept the interrupt pin and the two footprints for displays — a robot controller could use this for telemetry, menus, or even camera image (but that would probably require an esp32 board).

Of course the final version will have rounded corners. I should have the boards in a few weeks, then I will adapt the code to send not only the button status, but also the four analog measurements.

Discussions

Craig Hissett wrote 01/13/2019 at 02:01 point

I love this update! A small joystick-based controller will be perfect for many robot projects (I could do with one for my Dfrobot Devastator platform). Pairing it with an on-board ESP-based board running a webserver will allow for perfect controlling over websocket etc.

  Are you sure? yes | no

deʃhipu wrote 01/13/2019 at 22:22 point

Yeah, hopefully those small thumb sticks will be accurate enough for such control. Though I don't plan on selling them on Tindie for now, you should be able to assemble and program one for yourself relatively easily.

  Are you sure? yes | no

Craig Hissett wrote 01/14/2019 at 09:32 point

I've often thought about building a board with analogue sticks and buttons for one of my m5stack boards.

Definitely tempted to do it with one of their m5stick boards too!

  Are you sure? yes | no

deʃhipu wrote 01/14/2019 at 09:52 point

That should work pretty well, I think.

  Are you sure? yes | no