The file 'Working DHD And SFX For Stargate MK2 Design 3D Printer Model' is (STL,zip) file type, size is 24.6MB.
'DHD_for_Stargate_MK2-v1.0.zip' - Wiring Diagrams updated on 01-21-19
This is a DHD that works with Glich's remarkable Stargate Mk2 ( https://www.thingiverse.com/thing:1603423 ).The DHD reads resistance from a 39 button matrix and sends the information to an Arduino Nano inside the DHD. The dialed address is sent to the gate, which will dial it. There are three Arduinos total. The DHD Nano, an Uno with a motor shield and an Uno with an MP3 player Shield. The three Arduinos talk to each other via I2C. The Zip file available here has a pretty good roadmap to making this happen as well as the code and necessary libraries. Please feel free to make this better!
The way it works:
The gate, in rest mode, cycles the Chevron LEDs through some patterns. When you press the first address symbol on the DHD, the pattern stops and the Ramp light turns on. You will hear the key pressed and the first address LED on the DHD lights up. Press the next 6 addresses and when you have all seven addresses, the big red button lights up. Press that and the gate will start dialing the address you entered, along with the corresponding sound effects. The Gate will sound like it established a wormhole for a little bit and then shut down and return to Chevron based light patterns.
The one caveat so far is that you need to have the earth symbol at the top for the gate to know where it is. Hopefully down the line, this can be addressed and rectified. Perhaps the photoresistor could help...
Also, the Big Red Button is designed to fall out if tipped upside down. I did this because it is a lot easier to do the wiring inside with the button removed.
Enjoy!
Below is some general information, in no particular order: (much more in the .Zip file)
Left ch = DHD speaker
Right ch = Gate speaker
Pin 1 - Nano pin A4
Pin 2 - Nano pin A5
Pin 3 - 5V to Nano 5V pin and the button matrix
Pin 4 - Gnd to Nano GND and the button matrix
Pin 1 - N/C
Pin 2 - N/C
Pin 3 - DHD speaker +
Pin 4 - DHD speaker -
Once built and wired, upload the 'Get_Keyboard_Matrix_Values.ino' onto the DHD's Nano and open up the serial monitor. Press the symbol buttons on the DHD and you will see a resulting value in the serial monitor window. The results may fluctuate slightly when pressing the same key multiple times, so it is best to check each key 4 or 5 times and note the highest value, then add 2 to it's value in the DHD code.
Example: If the 12th symbol button returns the highest value being 603, then test for 605 in the DHD Keyboard Master code:
else if (keypress < 605){ // button 12 symbol = 4; }
If there are buttons with the same or very close values, add resistors to the button to tweak the value. See 'DHD Wiring Diagrams - Bottom View - Column 2.jpg' for an example. If using resistors with a tolerance of 1%, it's best to have at least a value difference of 10 between each key. Probably 15 between keys if using 2% resistors.
DHD (1) Arduino Nano
https://www.amazon.com/Arduino-A000005-ARDUINO-Nano/dp/B0097AU5OU/
DHD (1) 3 Watt Amp
https://www.amazon.com/gp/product/B00C4N410G/
DHD (2) 3 Watt speakers (one in DHD and one on Stargate)
https://www.amazon.com/gp/product/B073MF3G4W/
DHD (2) connectors
https://www.amazon.com/gp/product/B07793H4CV/
DHD (40) 6x6x5mm push button switches
https://www.amazon.com/gp/product/B06Y56KPBS/
DHD (7) 3mm DHD Address LEDs
https://www.amazon.com/Transparent-Lighting-Electronics-Components-Emitting/dp/B01AUI4W0U/
DHD-Gate (5) 5mm DHD Big Red Button LEDs / Calibration LED on Stargate
https://www.amazon.com/gp/product/B005ONQ41W/
Stargate (2) Motors
https://www.amazon.com/gp/product/B00EYIFW70/
Stargate (2) Arduino Uno R3
https://www.amazon.com/gp/product/B008GRTSV6/
Stargate (1) Adafruit Motor Shield v2.3
https://www.amazon.com/gp/product/B00PUTH3B0/
Stargate (1) Sparkfun MP3 Player Shield
https://www.amazon.com/gp/product/B006TGID7Q/
Stargate (1) Photoresistor
https://www.amazon.com/gp/product/B01N7V536K/
Stargate (8) Ramp LEDs
https://www.mouser.com/ProductDetail/720-LWT6SGV2BAJKPLZI
Stargate (27) Chevron LEDs
https://www.mouser.com/ProductDetail/604-APT1608SECK
(1 box) wire
https://www.amazon.com/gp/product/B00B4ZQ3L0/
(1 kit) Resistors
https://www.amazon.com/gp/product/B072BL2VX1/
(1 Kit) Shrink Tube
https://www.amazon.com/gp/product/B075WR9FVL/
Big_Red_Button.STL | 144.7KB | |
DHD_Base.STL | 247.2KB | |
DHD_Bottom_Cover.STL | 105.0KB | |
DHD_for_Stargate_MK2-v1.1.zip | 23.8MB | |
Inner_Button_Mounting_Plate.STL | 2.1MB | |
Inner_Glyphs.STL | 326.3KB | |
Inner_Glyph_Base.STL | 129.7KB | |
Inner_Glyph_Switch_Paddles.STL | 85.6KB | |
Inner_Shaft.STL | 78.0KB | |
Outer_Button_Mounting_Plate.STL | 122.7KB | |
Outer_Glyphs.STL | 457.1KB | |
Outer_Glyph_Base.STL | 145.7KB | |
Outer_Glyph_Switch_Paddles.STL | 147.2KB |