DIY collective

By Crash, Apr 12, 2023 in DCS Series

Posted June 5, 2023

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.

Like 1

image.png

siggy.jpg

Posted June 5, 2023

Pictures or it never happened...

My Hanger 2026.png

Posted June 5, 2023

mmkay

image.png

siggy.jpg

Posted June 5, 2023

Can we merge the two threads together. would be easier to follow. text updates then pictures?

My Hanger 2026.png

Posted June 5, 2023

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.

Like 1

image.png

siggy.jpg

Posted June 6, 2023

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?

image.png

siggy.jpg

Posted June 6, 2023
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.

 

Posted June 6, 2023

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.

Like 1

image.png

siggy.jpg

Posted June 7, 2023 · edited Jun 7, 2023 by Crash

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!

image.png

siggy.jpg

Posted June 8, 2023

Parts will arrive today and I will try to get to grips with the Leonardo.

image.png

siggy.jpg

Posted June 8, 2023

Dennis, what pins are you using? I might have to pinch your sketch and mod it.

image.png

siggy.jpg

Posted June 15, 2023

I have found a great video which explains stuff and has the sketch I was looking for.

 

Like 1

image.png

siggy.jpg

Posted June 16, 2023

Crash here is an example of what mine is based on

[Linked Image]

 

Like 1
Posted June 16, 2023

 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.

 

Like 1
Posted June 16, 2023
(..) 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!

Haha 1

DD-Signature.jpg

Posted June 16, 2023

such is the way of Arduino

Haha 1

image.png

siggy.jpg

Posted June 16, 2023
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.😜

Haha 1
Posted June 17, 2023

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.

Like 1

image.png

siggy.jpg

Posted June 18, 2023 · edited Jun 18, 2023 by Crash

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!

image.png

siggy.jpg

Posted June 19, 2023 · edited Jun 19, 2023 by Crash

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

image.png

siggy.jpg

Sign in to reply.