The cunning plan worked and the soldering is now done. A few minor jobs to do the sketch and test. Will put up some photos tomorrow.
DIY collective
By Crash, Apr 12, 2023 in DCS Series
Can we merge the two threads together. would be easier to follow. text updates then pictures?
It nearly finished now Colin. I have covered what I did in the Hardware forum.
Outstanding jobs are
1/ glue the collar on to the column
2/ drill a hole to feed the usb cable through the button box
3/ do the Arduino sketch
4/ plug the cables into the board and test
5/ fit the assembly into the simpit.
Dennis, can I use the 3v to power the buttons? I have looked up on google but I cant find out. What about the 5v (pin2) on the 6 pin header, can that be used?
2 hours ago, Crash said:Dennis, can I use the 3v to power the buttons? I have looked up on google but I cant find out. What about the 5v (pin2) on the 6 pin header, can that be used?
Yes the 3V and/or 5Volt supply can be used,
but PC USB power supply more then enough for switches buttons and rotaries. I personally stay away from that option as they can create more problems. Generally they are used for motors ( in our case, people run real Aircraft gauges that run with servo motors), digital readers ect, that require more power. Not really needed in our case IMO.
Thanks Dennis, I will run the pots (4 of them) off the 5v and the buttons off the 3v. I have found out that i can glue the pins off my dupont cables together and make a sort of multi-pin plug. The sketch hasnt been sorted yet, I have one for 5 axis controller. I can edit that down to 4 and then add the button part. I will have 13 buttons, each to a separate pin so I will have to copy paste the routine for this and then test it.
I have hit a snag. I have soldered the dupont wires to the switches but the wires break very easily. I think I will have to re-wire and use crimped connectors.
Wire, soldering tips and terminals ordered. Got to get this sorted!
I don't think it matters whether you fit the diodes on the row or column connections as long as they are round the right way.
As long as the columns and rows are defined properly in the sketch the Arduino should be OK. You don't want a column as an output being connected to a row which is also an output. Both inputs would not work but wouldn't do any harm.
Connection to your PC is via the USB so it should be safe enough.
The sketch. It is pretty straightforward. The biggest thing is setting the pins and ports to either input or output, but it is very logical.
There are tons of tutorials on the internet if you get stuck.
(..) should be OK. You don't want a column as an output being connected to a row which is also an output. Both inputs would not work but wouldn't do any harm.
Connection to your PC is via the USB so it should be safe enough.
The sketch. It is pretty straightforward. The biggest thing is setting the pins and ports to either input or output, but it is very logical. (...)
Hm... there's a number of words in there that makes me think it's all a bit .... sketchy - but what do I know!
3 hours ago, FoolTrottel said:(..) should be OK. You don't want a column as an output being connected to a row which is also an output. Both inputs would not work but wouldn't do any harm. Connection to your PC is via the USB so it should be safe enough. The sketch. It is pretty straightforward. The biggest thing is setting the pins and ports to either input or output, but it is very logical. (...)Hm... there's a number of words in there that makes me think it's all a bit .... sketchy - but what do I know!
I'm a sketchy guy, what can I say.😜
Using the sketch from the video I THINK I have now got the sketch sorted. More soldering and then a test. It is finally on the last lap.
Soldering is hopefully all done. We will see tomorrow. IF it all works as planned then I will finish the build thread.
All boxed up. Hope it all works!
Not much luck. Sketch is fine but 1 axis and 12 buttons have gone missing. Oh well I will take it apart tomorrow.
Z axis no show due to coding error Buttons probably due to power pin not in properly
Sign in to reply.


![[Linked Image]](https://i.imgur.com/NGODDpA.png)
