Difference between revisions of "Building a Zynthian Box using an official Kit v3"

From ZynthianWiki
Jump to navigation Jump to search
 
(151 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
=Introduction=
 
=Introduction=
  
This tutorial is mainly intended for those who are building a Zynthian Box using one of the ''official'' kits, that i offer here:
+
This tutorial is intended for those who are building a Zynthian Box using one of the ''official'' kits, that i offer here:
  
 
  [http://shop.zynthian.org Zynthian Shop]
 
  [http://shop.zynthian.org Zynthian Shop]
  
Specifically, the instructions are for the assembly of kits v3 (version 3), those using the All-In-One circuit and the ZynScreen v1.4 display.
+
Specifically, these instructions are for assembling kit v3 (version 3), those kits using the Zynaptik circuit and the ZynScreen v1.4 display.
  
[[File:IMG_2287.JPG|600px]]
 
  
Anyway, the instructions are quite detailed and can be used as inspiration for building a custom Zynthian Box from scratch. Of course, you will have to be creative if you want to do it in such a way ;-)
+
[[File:ZynthianFront.jpg|600px]]
  
[[File:IMG_2280.JPG|600px]]
+
[[File:ZynthianBack.jpg|600px]]
  
=Bill of Materials=
+
=List of Materials=
* Zynthian Basic Kit (custom PCBs, electronic parts, wiring and knobs)  
+
* Zynthian Basic Kit v3 (4 x controller v3 + zynaptic circuit + ribbon bus cable)
* Case kit, including nuts, bolts and connectors
+
* ZynScreen v1.4 (3.5" touch-display + controller driver)
* Raspberry Pi 3
+
* [https://www.raspberrypi.org/products/ Raspberry 3 Model B or B+]
 
* [https://www.hifiberry.com/products/dacplus HifiBerry DAC+ADC souncard]
 
* [https://www.hifiberry.com/products/dacplus HifiBerry DAC+ADC souncard]
* ZynScreen v1.4 (3.5" touch-display)
+
* Case kit v3, including nuts, bolts and connectors
 
* Power adapter for Raspberry Pi (5.1v 2.4A with microUSB connector)
 
* Power adapter for Raspberry Pi (5.1v 2.4A with microUSB connector)
* 16GB SD Card (a good one, please!)
+
* 16GB SD Card (Use a high-quality card)
 
 
Visit the [http://shop.zynthian.org Zynthian Shop]
 
  
 
=Some definitions=
 
=Some definitions=
Line 29: Line 26:
 
===Zynthian===
 
===Zynthian===
  
It's an open project with the goal of creating an Open Synth Platform based in Free Software and Open Hardware Specifications & Designs (when available). It's a community-driven project. If you are here, probably you already know all this ;-)
+
It's an open project with the goal of creating an Open Synth Platform based in Free Software and Open Hardware Specifications & Designs (when available)
  
 
===Zynthian Software===
 
===Zynthian Software===
Line 37: Line 34:
 
  + '''GNU Linux Operating System:''' Raspbian Jessie (Minibian is used in the most recent SD images)
 
  + '''GNU Linux Operating System:''' Raspbian Jessie (Minibian is used in the most recent SD images)
 
  + '''Jack Audio Daemon'''
 
  + '''Jack Audio Daemon'''
 +
+ A collection of standalone '''Synth Engines & LV2 Plugins''' (see [[Zynthian_Supported_Synth_Engines|Supported Synth Engines & Plugins]])
 
  + '''MOD-HOST + MOD-UI''' software, from [http://moddevices.com ModDevices] ([https://github.com/moddevices github repositories])
 
  + '''MOD-HOST + MOD-UI''' software, from [http://moddevices.com ModDevices] ([https://github.com/moddevices github repositories])
+ A collection of standalone '''Synth Engines & LV2 Plugins''' (see [[Zynthian_Supported_Synth_Engines|Supported Synth Engines & Plugins]])
 
 
  + '''Zynthian User Interface''' ([https://github.com/zynthian/zynthian-ui github repository])
 
  + '''Zynthian User Interface''' ([https://github.com/zynthian/zynthian-ui github repository])
 +
+ '''Zynthian Webconf Tool''' ([https://github.com/zynthian/zynthian-webconf github repository])
  
All the software used by Zynthian is Free Software (free as in ''freedom'', not as in ''free beer'') and it's covered by the GPL license or similar. If you don't know what i'm talking about, please, take a look to this:  
+
All the software used by Zynthian is Free Software (free as in ''freedom'', not as in ''free beer''), and it's covered by the GPL license or similar. If you don't know what Free Software is, take a look at this link:  
  
 
  [https://www.gnu.org/philosophy/free-sw.en.html What is Free Software?]
 
  [https://www.gnu.org/philosophy/free-sw.en.html What is Free Software?]
Line 47: Line 45:
 
The easiest way of getting the software is downloading the last ''official'' SD image from here:
 
The easiest way of getting the software is downloading the last ''official'' SD image from here:
  
  '''[http://zynthian.org/download/zynthian_gorgona_omega_rbpi3_kitv2-2018-04-03.zip.torrent Download Zynthian "Gorgona Omega" SD-image, configured for Kits v2]'''
+
  '''[https://os.zynthian.org/zynthianos-last-stable.zip Download Last Stable ZynthianOS SD-image]'''
  
It's a 8GB compressed image file (plenty of soundfonts) compiled for Raspberry Pi 3. (Please, keep feeding the torrent after downloading!)
+
It's a 8 GB compressed image file (plenty of soundfonts) compiled for Raspberry Pi 3.
  
These SD card images include all the Zynthian software, properly configured for working with the official kits. Completely ready to use. Plug and play!  
+
These SD-card images include all the Zynthian software, properly configured for working with the official kits. Completely ready to use. Plug and play!  
  
After downloading the SD-image, you have to write it to a SDcard. You need a SD card with a minimum size of 16GB, although you can use a bigger one if you want.
+
After downloading the SD-image, you have to write it to your micro-SD card. You need a '''micro-SD card with a minimum size of 16 GB'''.
  
If you don't know how to do it, you can use [https://etcher.io/ Etcher] (free software works on Mac, Windows or Linux) to flash the image onto the SDcard. Or do it manually! There is a really good manual for this at [https://www.raspberrypi.org/documentation/installation/installing-images/ this link].
+
If you don't know how to do it, you can use [https://etcher.io/ Etcher] (free software, works on Mac, Windows or Linux) to flash the image onto the micro-SD card. Or do it manually! There is a really good manual for this at [https://www.raspberrypi.org/documentation/installation/installing-images/ this link].
  
Finally, if you like, you can build your own SD image following these instructions:
+
you can also build your own SD image following these instructions:
  
 
  [https://discourse.zynthian.org/t/new-sd-image-setup-script/283 Building the SD Image using the Setup Script]
 
  [https://discourse.zynthian.org/t/new-sd-image-setup-script/283 Building the SD Image using the Setup Script]
Line 63: Line 61:
 
===Zynthian Box===
 
===Zynthian Box===
  
A Zynthian Box is a hardware device, a small digital computer designed to run the Zynthian Software. Currently it's based in the Raspberry Pi platform, but it could be easily adapted to other computer platforms.
+
A Zynthian Box is a hardware device, a small digital computer designed to run the Zynthian Software. It's currently based on the Raspberry Pi platform, but it could easily be adapted to other computer platforms.
  
This is a sketch with the main blocks of the ''official'' Zynthian Box:
+
This is a sketch with the components the ''official'' Zynthian Box is made of:
  
 
[[File:Zynthian_hardware_scheme.png|800px]]
 
[[File:Zynthian_hardware_scheme.png|800px]]
  
In the project's repositories you will find all the electric schemes, PCB specifications, Herber files, etc. to build your own Zynthian Box from scratch:
+
In the project's repositories you can find all the electric schemes, PCB specifications, Herber files, etc. to build your own Zynthian Box from scratch:
  
 
  - [https://github.com/zynthian/zynthian-hw Zynthian Hardware Repository]
 
  - [https://github.com/zynthian/zynthian-hw Zynthian Hardware Repository]
 
  - [https://github.com/zynthian/zynthian-case Zynthian Case Repository]
 
  - [https://github.com/zynthian/zynthian-case Zynthian Case Repository]
  
The ''official'' version is the canonical reference. Of course, you don't have to build the ''official'' version. You can build your customized Zynthian Box modifying and improving what you want. If you do so, some feedback would be very appreciated ;-)
+
The ''official'' version is the canonical reference. Of course, you don't have to build the ''official'' version. You can build your customized Zynthian Box modifying and improving what you want. If you do so, feedback would be appreciated.
  
===Zynthian Kit===
+
===Zynthian Bundle All Kit v3===
  
A Zynthian Kit is a set of specific and generic electronic modules designed or picked for building a Zynthian Box. This tutorial refers to the ''official'' Zynthian Kit v2, that is composed of these specific parts:
+
A Zynthian Kit is a set of electronic and mechanic parts. The ''official'' Zynthian Bundle All Kit v3 consists of these specific parts:
  
  + '''4 x Controller Modules''' (rotary encoder + switch)
+
  + '''4 x Controller Modules + Wiring'''  
  + '''1 x All-In-One Module''' (GPIO expander + MIDI IN/OUT/THRU)
+
  + '''1 x Zynaptik Module:''' MIDI Ports + extended I/O
 +
+ '''1 x ZynScreen 3.5':''' Touch-Display + Controllers circuit
 
  + '''1 x Main ribbon bus cable'''
 
  + '''1 x Main ribbon bus cable'''
+ '''Wiring Kit with JST connectors'''
 
  
[[File:IMG_1286.JPG|600px]]
+
[[File:IMG_2461.JPG|600px]]
  
and these generic parts:
+
These generic parts:
  
  + '''1 x Raspberry Pi 2/3'''
+
  + '''1 x Raspberry Pi 3'''
  + '''1 x Hifiberry DAC+''' (also pro & lite)
+
  + '''1 x Hifiberry DAC+ADC'''
+ '''1 x PiScreen 3.5' Touch-Display'''
 
  
[[File:IMG_1299.JPG|600px]]
+
[[File:IMG_2377.JPG|600px]]
  
 +
And the aluminium case:
  
Of course, other arrangements and combinations are possible. You can easily configure your hardware using the [http://wiki.zynthian.org/index.php/Configuration_Users_Guide Webconf Tool], or if it doesn't work, tweaking from the [http://wiki.zynthian.org/index.php/Command_Line_User_Guide command line].
+
+ '''1 x Zynthian Aluminium Case'''
 +
+ '''1 x Connectors'''
 +
+ '''1 x Bolts & Nuts'''
  
You can take a look to some of the alternate builds made by some community members:
+
[[File:IMG_2379.JPG|600px]]
  
- [https://discourse.zynthian.org/t/a-build-with-variations/324 A build with variations, by vagnscott]
+
[[File:IMG_2384.JPG|600px]]
- [https://discourse.zynthian.org/t/another-wiring/333 Another Wiring, by Imager]
 
- [https://discourse.zynthian.org/t/success-cases/41 Success Cases]
 
  
===Zynthian Case===
+
==== Unboxing the Official Kit V3, by Sébastien Marty ====
  
It's the enclosure used to put on all the parts. Again, this tutorial refers to the ''official'' Zynthian Aluminum Case v2, that is designed to be used in conjunction with the ''official'' Kit v2.  
+
<embedvideo service="youtube">https://www.youtube.com/watch?v=dFTSyUoUUTQ</embedvideo>
  
This case is available as a kit, including all the needed connectors, knobs, bolts & nuts:
+
=Assembling your Zynthian Box=
  
[[File:IMG_4752.JPG|600px]]
+
===Prerequisites===
 
 
If you intend to use a different soundcard or display, probably it won't fit the case and you will have to modify it. Of course, you can build your own customized case. Here you can find some examples from the community:
 
 
 
- [[Zynthian_Images_Enclosures|Zynthian Enclosures]]
 
- [https://discourse.zynthian.org/t/success-cases/41 Success Cases]
 
  
=Building the Zynthian Kit parts=
+
Assembling your Zynthian Kit V3 is not difficult at all: you need your attention, a screwdriver, and an adjustable wrench. You don't need to solder anything, just put it together and connect the wires.
  
===Prerequisites===
+
Read the instructions and observe the detailed photos carefully. If you get in trouble you can ask the community:
 
 
Building your own Zynthian Box is not very difficult, but you will need all your attention, some basic tools and a few skills. Read the instructions and observe the detailed photos carefully. If you get in trouble you can ask the community:
 
  
 
  https://discourse.zynthian.org
 
  https://discourse.zynthian.org
  
====Required Skills====
+
{{WarningBox|Please, handle electronic parts with care, specially the display, as they are easily damaged.}}
  
For building the hardware you should have the following basic competences:
+
===Secure the Jack connectors===
  
+ Soldering
+
Insert the jack connectors from inside the box and secure them with the washers and nuts from the inside. The washers will keep the nut from damaging the case.
+ Basic understanding of reading basic electronic circuit diagrams
 
+ Enjoyment of work with electronic hardware and parts
 
  
If you have not soldered before, you should read a [http://www.ladyada.net/learn/soldering/thm.html good soldering tutorial], or perhaps you would prefer the [http://mightyohm.com/files/soldercomic/FullSolderComic_EN.pdf Soldering is Easy] comic book by [http://mightyohm.com/ MightOhm].
+
[[File:IMG_2397.JPG|600px]]
 +
[[File:IMG_2398.JPG|600px]]
  
====Tools====
+
===Secure the MIDI connectors===
  
And this is the list of required and recommended tools:
+
Insert each MIDI connector, from the outside and secure them with the bolt from the inside.
  
+ Soldering iron
+
[[File:IMG_2401.JPG|600px]]
+ Tin-solder
+
[[File:IMG_2402.JPG|600px]]
+ Wire-cutter
 
+ Small Plier
 
+ Screw-drivers Philips
 
+ Wrench, for potentiometer nuts (recommended)
 
+ PCB holder for soldering (very recommended!)
 
+ Small iron brush (very recommended!)
 
+ Magnifiying glass (recommended)
 
+ A vice (recommended)
 
+ A hand saw for metal (recommended)
 
+ Multimeter (recommended!)
 
  
===Some general recommendations===
+
===Mount the MIDI activity LEDS===
  
'''1.''' Be careful to protect the components from [http://en.wikipedia.org/wiki/Electrostatic-sensitive_device electrostatic discharge].  This is most critical for the ICs and the diodes. Be careful with your fingers. Your body can hold a good amount of static electric charge. Under some circumstances that charge can be drained through some of the components that you are handling and this could break the component. Try to hold the PCBs by the borders and discharge your body frequently touching some "ground" with your fingers.
 
  
'''2.''' Before soldering, please, check that you are soldering in the right side of PCB, also that components orientation is correct (ICs, diode)
 
  
'''3.''' When soldering, always avoid overheating. Electronic components doesn't like overheat! This is specially important when soldering the big connector in the HifiBerry soundcard. If you overheat the circuit, probably you will break some electronic component and you will end with a dead board. I recommend  to use a fan while soldering. If not, you can use your mouth ;-) Also, don't solder the contacts in order. It's better to jump from one to another in the oposite corner. If you are not sure of your soldering skills, please, take your time and do some practice with inexpensive components and prototyping board.
+
Insert the 3 LEDS in the case from the outside, leaving the short lead at left. Make sure you push the LEDs by the plastic around the LED, not the LED itself.
  
'''4.''' After finishig the soldering, brush smoothly all the contacts. You may use a small iron brush. After that, blow over the circuit to remove any remaining tin.
+
[[File:IMG2403.JPG|600px]]
  
'''5.''' Inspect visually all the soldered contacts. You could use a magnifying glass for verifying that every soldered pin looks good. If you are not sure, perhaps you could add more tin or re-solder the pin. Also, you could use a multimeter for testing the dubious contacts.
 
  
'''6.''' And of course, double-check everything! Assembling and wiring process are prone to errors. Don't be too confident ;-)
+
When it's done, you have to plug the LED wires into the 2 spare "DUPONT" connectors from the MIDI harness (green & yellow wires). Polarity is important, so don't cross the wires:
Re-check component's orientation (ICs and diode), wiring, etc.
 
  
===Assembling the Controller Modules===
+
* JST Green wire (1) => LED's Anode (LED's long lead)
 +
* JST Yellow wire (2) => LED's Cathode (LED's short lead)
  
The controller module kit is composed of:
+
Since the LED's leads are too long, you will want to cut them down to about 7-8mm. Make sure you remember which lead is the short one.
  
+ 4 x controller PCBs
+
[[File:IMG2406.JPG|600px]]
+ 4 x rotary encoders with switch (PEC11R-4215K-S0024)
 
+ 4 x ceramic capacitor 100nF (C1)
 
+ 8 x ceramic capacitor 10nF (c2, c3)
 
+ 4 x 4-pin JST male-angle connector
 
  
[[File:IMG_4728.JPG|600px]]
+
{{NoteBox|If you don’t connect the status LEDs, the MIDI-OUT and MIDI-THRU won’t work unless you short the JP1 & JP2 jumpers on the zynaptik board.}}
  
This components are used to build the 4 controller modules that form the input side of the physical ''Zynthian User Interface''. Each controller embed an incremental rotary encoder and a switch, so 4 wires (A,B,SW,GND) are needed for connecting it.
+
===Assemble the Main Computing Block===
  
[[File:IMG_4731.JPG|600px]]
+
The main computing block consists of the Raspberry Pi and the HifiBerry soundcard,and is assembled using these separators and bolts
  
These are the steps for building one module:
+
[[File:IMG_1293.JPG|600px]]
  
0. Be sure that you have read and understdood [[#Some_general_recommendations|these recommendations]].
+
  1. Fix the 2x4 separators to the Raspberry Pi. Put the longest of the two on top of the Pi and she shorter at the bottom.
  1. Bend the encoder's securing tabs to 75º, so you can insert it in the upside of the PCB (the labeled side!). Please, be very careful when bending the tabs as the encoder case is quite fragil and could be deformed. I recommend to use a small plier and not reaching to 90º.
+
  2. Connect the Hifiberry soundcard to the Raspberry Pi.
  2. Place the 100nF capacitor in C1 position (the most right!). This is for debouncing the push switch (SW).
+
  3. Fix the 4 screws on top of the HifiBerry to fix it in place.
3. Place the 2 x 10nF capacitors in C2 & C3 positions. These are for debouncing the rotary encoder contacts (A,B).
 
  3. Solder the encoder and capacitors carefully.
 
4. Place the JST connector in the downside of the PCB, with the angle pins facing inwards (look the photo!)
 
5. Solder the JST connector carefully.
 
7. Use the plier to close the encoder's tabs again, trying to "catch" the PCB.
 
  
[[File:IMG_4781.JPG|600px]]
+
[[File:IMG_1353.JPG|600px]]
  
You have to build 4 controller modules, so you to have to repeat the steps 4 times.
+
[[File:IMG_2393.JPG|600px]]
  
===Assembling the All-In-One Module===
+
[[File:IMG_2395.JPG|600px]]
  
The All-In-One module kit is composed of:
+
===Secure the Main Computing Block===
  
+ 1 x All-In-One PCB
 
+ 1 x GPIO-expander MCP23017 => 28-pin IC
 
+ 3 x opto-coupler H11L1 (OC1,OC2,OC3) => 6-pin IC
 
+ 3 x diode 1N4148 (D1,D3,D4)
 
+ 1 x diode 1N5819 (D2)
 
+ 3 x resistor 1K (R3,R4,R9) => brown-black-red (*)
 
+ 1 x resistor 10K (R10) => brown-black-orange (*)
 
+ 1 x resistor 100 (R1) => brown-black-brown (*)
 
+ 2 x resistor 4K7 (R5,R7) => yellow-purple-red (*)
 
+ 3 x resistor 470 (R2,R6,R8) => yellow-purple-brown (*)
 
+ 4 x ceramic capacitor 100nF (C1,C2,C3,C4)
 
+ 7 x 4-pin JST male connector
 
+ 1 x 40-pin-double-row male connector
 
  
(*) Read from left to right with the tolerance ring (gold or silver) on the right.
+
After assembling the main computing block, secure it to the case. Use the 4 remaining black M2.5 screws to secure it to the bottom of the case (see photo above).
  
[[File:IMG_4726.JPG|800px]]
 
  
 +
[[File:IMG 2407.JPG|600px]]
  
These are the steps for building the All-In-One module:
+
===Secure the Zynaptik module===
  
0. Be sure that you have read and understood [[#Some_general_recommendations|these recommendations]].
+
Secure the Zynaptik module to the case using 4 x separators and 8 x M2.5 screws. Begin by mounting the separators to the bottom of the case, and attach the module to the separators using the remaining screws.
1. Place the passive components (resistors & capacitors) in the upside of the PCB (the labeled side!).
 
2. Solder the components carefully. Always avoid overheating!
 
3. Place the ICs and diodes in the upside of the PCB (the labeled side!). Put attention to the orientation of these components!!
 
4. Solder the components carefully. Always avoid overheating! (*)
 
5. Place the connectors in the upside of the PCB (the labeled side!).
 
6. Solder the components carefully. Always avoid overheating! (*)
 
  
(*) You could use some tape for fixing the components while soldering, specially for ICs and connectors.
+
[[File:IMG_1294.JPG|400px]]
  
[[File:IMG_1251.JPG|800px]]
+
[[File:IMG_2410.JPG|600px]]
  
[[File:IMG_1252.JPG|800px]]
+
The zynaptik board has some extra circuitry which doesn't have anything soldered on it. These are used for adding extra functionality to the board.
  
[[File:IMG_1277.JPG|800px]]
+
===Mount the Display===
  
===Tweaking the HifiBerry DAC+ soundcard===
+
{{WarningBox|Please, handle electronic parts with care, specially the display, as it is easily damaged.}}
  
If you are using the HifiBerry DAC+ soundcard (also lite & pro versions), you should add 2 extra connectors to the board:
+
The screen is secured with these 4 screws, nuts, and nylon separators. Mount the screen by screwing the screws from the outside and fixing them with the bolts from the inside. The separators go between the screen and the case. Remember to remove the protective film from the screen before mounting it.
  
+ 40 row-pin GPIO male connector, for connecting the '''main ribbon bus cable'''
+
[[File:IMG_1295.JPG|400px]]
+ 3 pin header connector, for connecting the extra audio line-out Jack connectors
 
  
Both connectors must be placed on the top side of the board, so you should solder the contacts on the bottom side.
+
[[File:IMG_2423.JPG|600px]]
  
'''WARNING!''' Soldering the big 40-pin connector can be difficult if you don't have enough practice. Please, before starting be sure that you have read and understood [[#Some_general_recommendations|these recommendations]].
+
===Mount the Controllers===
  
[[File:IMG_1369.JPG|600px]]
+
Plug a wire on each controller. Fix the controllers in each corner using the nuts and washers attached to them
  
[[File:IMG_1370.JPG|600px]]
+
[[File:Rotary&wire.JPG|600px]]
  
===Tweaking the OzzMaker PiScreen 3.5' touch-display===
+
[[File:ZynScreen&Controller.JPG|600px]]
  
The standard OzzMaker PiScreen 3.5 'touch-display have 2 connectors: a female connector ready for connecting the display as a hat and a male connector placed in the side. The official aluminum case and the ribbon cable are designed for the side male connector. The female connector can be annoying and should be removed for better closing the case.
+
[[File:IMG_1401.JPG|600px]]
  
If you got your PiScreen from a "Bundle-All" kit, you probably don't have this annoying female connector, so you are lucky and don't need to do anything here. If you have it, then take the saw and remove the connector carefully.
+
===Attach the knobs===
  
===Other Soundcards and Displays===
+
You should attach the knobs into the encoders before closing the case. Push the knobs unto the encoders while pushing the encoder with a finger on the PCB board. This will avoid putting too much pressure on the encoders, which can break them. The knobs can be very tight, and a bit of water can be used as lubricant to help with this.
  
If you are using a different soundcard or display, you'll have to see the best way to integrate it. If you do so, please, don't forget to give good feedbak in the forum or here, in the wiki.
+
===Attach the rubber feet===
  
In the forum you can see what other users have done, and of course, don't doubt to ask whatever you want!
+
[[File:IMG 2536.JPG|600px]]
  
https://discourse.zynthian.org/c/building-zynthian
+
=Connecting everything=
 
 
===Building the MIDI-IN/OUT/THRU connectors===
 
 
 
Before mounting the MIDI-IN/OUT/THRU connectors into the case we will solder the needed wires that allow connecting it to the All-In-One circuit using a JST connector. Doing it in that way is rather more comfortable than trying to solder inside the case with all the wiring mess.
 
  
[[File:IMG_4777.JPG|600px]]
+
The Zynthian Kit 3 is designed to use JST connectors which can't be plugged in wrong, so connecting everything is straight-forward:
  
'''JST Connector wires'''[[File:Midiconnfront.jpg|340px|right]]
+
===Connect the Ribbon Bus cable===
  
* JST White (1) => LED's Anode (LED's red wire/long lead)
+
Connect the Main Ribbon Bus cable to the Raspberry Pi's 40-pin header and to the Zynaptik module. The red wire is pin 1, so if you are looking at the case from the front, it should be on the right.
* JST Yellow (2) => LED's Cathode (LED's black wire/short lead)
 
* JST Black (3) => pin 5 of MIDI connector
 
* JST Red (4) => pin 4 of MIDI connector
 
  
If you want (i strongly recommend you do it!), you can protect the contacts using heat-shrink sleeve (the red sleeve pieces in the photo). In that case, remember to insert the sleeve pieces before soldering ;-)
+
[[File:Ribbon.jpeg|600px]]
 +
[[File:Ribbon&Hifi&Zynaptik.JPG|600px]]
  
[[File:IMG_1276.JPG|600px]]
+
===Connect the Controllers===
  
 +
Connect the 4 controller cables to the 4 controller connectors on the ZynScreen (CTRL1, CTRL2, CTRL3, CTRL4)
  
Depending of your case version, you will need to build 2 or 3 MIDI connectors.
+
[[File:ZynScreenConnect.JPG|600px]]
  
===Building the JACK Audio-Out connectors===
+
===Connect the MIDI connectors & activity LEDs===
  
In the same way, before mounting the Jack connectors into the case we will solder the needed wires. You can use heat-shrink sleeve too.
+
Connect the 3 cables from the MIDI connectors to the MIDI-IN, MIDI-OUT and MIDI-THRU connectors on the Zynaptik module.  
  
[[File:IMG_4774.JPG|600px]]
+
[[File:MIDIConnector.JPG|600px]]
  
[[File:IMG_1272.JPG|600px]]
+
{{NoteBox|If you don’t connect the status LEDs, the MIDI-OUT and MIDI-THRU won’t work unless you short the JP1 & JP2 jumpers on the zynaptik board.}}
  
=Case Mounting=
+
===Connect the Audio Output Jack connectors===
  
===Assemble the Main Computing Block===
+
Connect the audio output jack connectors to the audio-output header to the Hifiberry soundcard:
  
The main computing block is composed by the RBPi and the HifiBerry soundcard, and shouold be assembled using the next set of separator & bolts:
+
[[File:dacplus-adc-top audio-out.jpg|600px]]
 +
[[File:IMG_2414.JPG|600px]]
  
[[File:IMG_1293.JPG|400px]]
+
The black wire on the "R" pin, white on the "L" one and red on "GND" (middle).
  
For easier assembling, you should follow the next steps:
+
{{NoteBox|Some kits have flipped the red and white wires. This is not a problem. Simply look at the black wire.}}
  
1. fix the 2x4 separators to the RBPi. The bigger one must be on top and the smaller one on bottom.
+
===Connect the Audio Input Jack connector===
2. insert the Hifiberry soundcard in the RBPi.
 
3. screw the 4 bolts on top of the HifiBerry.
 
  
[[File:IMG_1353.JPG|600px]]
+
This step depends of the specific model of your soundcard:
  
[[File:IMG_1348.JPG|600px]]
+
====HifiBerry DAC+ADC Standard====
  
[[File:IMG_1351.JPG|600px]]
+
Connect the input jack connector to the audio-input header on the sound card using the 3-pin Dupont connector:
  
===Secure the Main Computing Block===
+
[[File:dacplus-adc-top audio-in.jpg|600px]]
 +
[[File:IMG_2416.JPG|600px]]
  
After assembling the main computing block, you should secure it to the case. Use 4 black M2.5 bolts (see photo above).
+
The black wire should be connected to pin 3, red wire to pin 2 and white wire to pin 1. Looking at the first photo, numbering is left to right.
  
[[File:IMG_1314.JPG|600px]]
+
{{NoteBox|Some kits have flipped the red and white wires. This is not a problem. Simply look at the black wire.}}
 +
 +
 +
{{WarningBox|Due to hardware problems, Hifiberry has recently changed (September 2019) [https://www.hifiberry.com/docs/data-sheets/datasheet-dac-adc the specification of the DAC+ADC]. It seems that the Balanced Audio input doesn't work as expected. Instead it works like a simple not-balanced input. You can read more about this subject on [https://discourse.zynthian.org/t/new-official-kit-v2-audio-input-is-here/3013/25 this forum thread].
 +
<br>
 +
In order to take advantage of the stereo connector, which should be a mono balanced input but isn't, you can get an unbalanced stereo input by connecting both audio channels to the connector. The problem is that the 3-wire Dupont connector included in official kit. You have to cut the second wire (red or white) and solder a single Dupont connector, connecting it to the pin 5 on the Hifiberry. Please check the [https://www.hifiberry.com/docs/data-sheets/datasheet-dac-adc/ Hifiberry DAC+ADC specification]}}
  
===Secure the All-In-One module===
+
====HifiBerry DAC+ADC PRO====
  
Secure the All-In-One module to the case using 4 x separators and 8 x M2.5 bolts.
+
Connect the input jack connector to the audio-input header on the sound card using the three 1-pin Dupont connectors as indicated in the image:
  
[[File:IMG_1294.JPG|400px]]
+
[[File:dacplusadcpro-top-audio-in.jpg|600px]]
  
[[File:IMG_1356.JPG|600px]]
+
This way you will have the balanced input connected on the Right channel. If you want to use the Left channel, take a look at the [https://www.hifiberry.com/docs/data-sheets/datasheet-dac-adc-pro Hifiberry DAC+ADC PRO specification].
  
===Secure the Jack connectors===
+
===Connect the Display===
  
Put the rings on the outer side of the case to avoid damaging the case surface when you tighten the nuts.
+
connect the ribbon's 26-pin connector to the display's connector. '''Pay attention to the orientation'''. The red wire should be the pin 1, which as marked on the display's PCB surface.
  
[[File:IMG_1371.JPG|600px]]
+
[[File:Screen&Ribbon.JPG|600px]]
  
===Secure the MIDI-IN/OUT/THRU connectors===
 
  
Just insert the connector with the JST-wire from the out-side of the case and the nut from the innerside. A pair of pliers can be useful for tighten.
+
At this point, your Zynthian Box should look like this:
  
[[File:IMG_1383.JPG|600px]]
 
  
 +
[[File:Precierre.JPG|600px]]
  
===Mount the MIDI activity LEDS===
+
=== Building and Testing the Official Kit V3, by Sébastien Marty ===
  
Insert the 3 LEDS in the case holes. You may want to push the LEDs with something more rigid than your finger. The screwdriver's handle could be fine.
+
<embedvideo service="youtube">https://www.youtube.com/watch?v=e5gpAZL8kiE</embedvideo>
  
[[File:IMG_2223.JPG|600px]]
+
=Testing your Zynthian Box=
[[File:IMG_2224.JPG|600px]]
 
  
When it's done, you have to solder the 2 LED wires (red/black) with the 2 spare wires on the MIDI JST harness (white/yellow). Polarity is important, so don't cross the wires:
+
And that's all. Your Zynthian Box is almost ready to boot. I recommend that you double-check everything before trying to boot.
  
* JST White wire (1) => LED's Anode (LED's red wire/long lead)
+
===Double-check the parts and wiring===
* JST Yellow wire (2) => LED's Cathode (LED's black wire/short lead)
 
  
After soldering all the 3 LEDs, you may want to protect the connection with heat shrink sleeve, adhesive tape or hot melt glue.
+
It's easy to make a mistake while assembling the parts or connecting the wires. Some errors can be dangerous for the electronic components (such as short circuits) so it's better to be sure that everything is correctly assembled and connected.
  
[[File:IMG_2226.JPG|600px]]
+
Pay attention to ribbon bus connection and verify that red wire is on pin 1 for every connector. Pay attention to the audio jack connectors and make sure they are connected correctly to the Hifiberry sound card.
  
===Secure the Display===
+
===First Boot===
  
For fixing the display to the case cover, you have to use this set:
+
When you are sure that everything is in its place, it's time to boot the machine:
  
[[File:IMG_1295.JPG|400px]]
+
1. Insert the SD-card with the zynthian image. If you don't have one yet, [[#Zynthian_Software|read this]]. You can insert the SD-card through the "window" on the bottom-side of the case.
 +
2. Plug the mini-usb power connector. A good 5V micro-usb charger is recommended (> 2 Amp).
  
It's composed of 4 bolts, 4 nuts and 4 nylon separators. Before fixing the screen, don't forget to remove the protective plastic sheet.
+
These are the stages that you should see while booting:
  
[[File:IMG_1387.JPG|600px]]
+
1. After 5-10 seconds, it will show the Zynthian splash screen
 +
2. After 3-4 seconds, it will go black
 +
3. If you are using a fresh zynthian image and it's the first boot, the stages 1 and 2 will be repeated
 +
4. After 5-10 seconds, the zynthian UI will be shown
  
===Secure the Controllers===
+
If you get the Zynthian UI, then you have assembled the Zynthian box correctly. Congratulations!
  
Fix the 4 controller modules to the case cover using the 4 bolts and washers attached to every rotary encoder.  
+
[[file:IMG_2490.JPG|600px]]
  
'''IMPORTANT:''' For avoiding problems while closing the case, i recommend to mount the controller modules with the connectors facing one another. See the photo below.
+
If you don't get an error screen or a blank screen, you probably you made a mistake during the assembly. You have to [[#Locating_and_Solving_problems|locate and solve the problem(s)]].
  
[[File:IMG_1393.JPG|600px]]
+
If you are using the Aruk RC-3 SD image (which you should), you will notice that the controllers are not working at all. This SD image is pre-configured for working with the kit v2, so you need to configure the software for working with the kit v3. The simplest way of doing it is using the webconf tool:
  
[[File:IMG_1401.JPG|600px]]
+
* Connect your zynthian to your local network using an ethernet cable (RJ-45).
 +
* From your web browser, access the zynthian's webconf tool by typing "zynthian.local" in the address bar. If this doesn't work for you, you should try with the IP. You can get the IP of your zynthian by navigating to the Admin Menu and clicking "Network Info". You should do that by using the touch interface: Click the top bar with a stick (or your nail, if it's not too wide) until you are in the Admin Menu. Once you are there, go down and click "Network Info".
 +
* Type the password (''raspberry'') and log into the webconf tool.
 +
* Once you are logged in, you have to access Hardware->Kit and select "Kit V3".
 +
* Save the changes and reboot your Zynthian.
  
===Insert the knobs===
+
===Test the Controllers & UI===
  
You should insert the knobs into the encoders before closing the case. This will avoid forcing the encoders too much as otherwise, you could break them. Follow these simple steps and you wouldn't have any problem:
+
If you get into the Zynthian UI, then you should be in the 'Layer list' screen. Let's start testing that your controllers are working OK.
  
  * moisten with water or saliva the encoder stem and the knob hole
+
  1. Rotate the SELECT controller up & down for selecting the different options in the Layers menu.
* press the encoder PCB with the finger from the rear side while pushing the knob from the front side until is completely inserted
 
  
===Stick the rubber feet===
+
2. Push SELECT to create a New 'Synth Layer'. You should get into the 'Engine Selection' screen.
  
[[File:Zynthian_mounting_case_bottom.jpg|600px]]
+
[[File:IMG_2496.JPG|600px]]
  
=Connecting everything=
+
If it doesn't work, try rotating/pushing the 'learn/snapshot' controller. Perhaps you have cross-wired the 3 & 4 controllers and in that case, you have to fix the wiring. If it doesn't work, try pushing the other two controllers and rotating the controllers. If something happens, most probably you have reversed the wiring when connecting the controllers. Double-check the wiring again.
  
The new Zynthian Kit 2 is designed to use JST connectors, so connecting everything is really straight-forward:
+
3. Rotate the SELECT controller to choose the engine you want to instance for the new layer.
  
* Connect the Main Ribbon Bus cable to the RBPi's 40-pin header and also to the All-In-One module
+
The selector must go down when rotating clockwise and go up when rotating counter-clockwise. If the rotation sense is reversed, you should check the wiring. Perhaps one of the connections are faulty. The wires' color sequence should be red, black, yellow, green.
  
[[File:IMG_4741.JPG|600px]]
+
4. Select the ZynAddSubFX engine, select channel #1, select bank 'Collection' and preset 'Metal Drips'.  
  
[[File:IMG_1474.JPG|600px]]
+
[[File:IMG_2497.JPG|600px]]
  
* Connect the 4 double JST cables to the 4 controller connectors on the All-In-One module (CTRL1, CTRL2, CTRL3, CTRL4)
+
You should get to the 'Instrument Control' screen.
  
[[File:IMG_4744.JPG|600px]]
+
[[File:IMG_2500.JPG|600px]]
  
[[File:IMG_1479.JPG|600px]]
+
5. Rotate every control to test that it works and that the rotation sense is correct.  
  
* Connect the 2 JST cables from the MIDI connectors to the MIDI-IN and the MIDI-OUT/THRU connectors on the All-In-One module. Note that currently only 2 connectors are available in the official aluminum case, so you have to choose what do you prefer: MIDI-OUT or MIDI-THRU ;-)
+
If one of the controllers doesn't work correctly, check the wiring again.
  
[[File:IMG_1465.JPG|600px]]
+
6. Push SELECT to move to the next controller screen. Bold push (a push lasting about 1 second) to select a controller screen from the list.
  
At this point, your Zynthian Box should look something like this:
+
7. Push BACK. You should go back to the 'Preset Selection' screen.
  
[[File:IMG_1409.JPG|600px]]
+
[[File:IMG_2499.JPG|600px]]
  
* Connect the 4 x Controller Modules following the right numbering: from top to bottom and from left to right.
+
8. Push BACK again. You should go back to the 'Bank Selection' screen.  
  
[[File:zynthian_controllers.png|600px]]
+
[[File:IMG_2498.JPG|600px]]
  
[[File:IMG_1412.JPG|600px]]
+
9. Push LAYER again to return to the 'Layer Selection' screen. Try to create another layer following the same procedure.
  
* Connect the Jack connector to the auxiliar audio-out connector on the HifiBerry soundcard. It's the 3-pin JST connector that you soldered before:
+
[[File:IMG_2509.JPG|600px]]
  
[[File:IMG_1489.JPG|600px]]
+
10. Push 'SNAPSHOT' to get into the 'Snapshot' screen. Select 'New Snapshot' and your first snapshot will be stored.
  
===Connect the Display===
+
[[File:IMG_2506.JPG|600px]]
  
And finally, connect the ribbon's 26-pin connector to the Display's male side connector. Put attention to the orientation. The red wire should be the pin 1 that as marked in the display's PCB surface.
+
If everything is working OK, then you should read the [[Zynthian_Users_Guide|User's Guide]] and start enjoying your Zynthian Box, but before that ... why not enjoy it a little bit? Connect your MIDI keyboard, your speakers and check this out:
  
[[File:IMG_1501.JPG|600px]]
+
Bank 'net-wisdom', Preset 'Vangelis Saw - C'
  
=Testing your Zynthian Box=
+
Keep pushing a single note (or a chord) and move the cutoff and resonance controllers. Play around a bit and have some fun
 
 
And that's all. Your Zynthian Box is almost ready to boot. I recommend that you double-check everything before trying to boot.
 
 
 
===Double-check part's assembling and wiring===
 
 
 
It's easy to make a mistake while assembling the parts or connecting the wires. Some errors can be dangerous for the electronic components (short-circuits, some specific bad-wiring combinations) so it's better to be sure that everything is correctly assembled and connected.
 
 
 
===First Boot===
 
 
 
When you are pretty sure that everything is in its place, it's time to boot by first time, so:
 
 
 
1. Insert the SD-card with the zynthian image ready to run. If you don't have one yet, [[#Zynthian_Software|read this]].
 
2. Plug the mini-usb power conector. A good 5V micro-usb charger is recommended (> 2 Amp).
 
 
 
If you are using a SD image pre-configured for the Zynthian Kits v2, these are the stages that you should see while booting:
 
 
 
1. Initially, the display must go white
 
2. After 5-10 seconds, it will show the Zynthian splash screen
 
3. After 1-2 seconds, it will go black
 
4. If you are using a fresh zynthian image and it's the first boot, the stages 2 and 3 will be repeated
 
5. After 5-10 seconds, the zynthian UI will be shown
 
 
 
If you get the Zynthian UI, congratulations!!! You are really close to get it!!
 
 
 
[[file:IMG_1562.JPG|600px]]
 
 
 
If not, bad luck! Probably you made some mistake during the mounting process. You have to [[#Locating_and_Solving_problems|locate and solve the problem(s)]].
 
 
 
If you are using an older SD image that is not pre-configure for the Kit v2, then you should configure your Zynthian Box's hardware using the [[Configuration_Users_Guide|webconf tool]]. These are the adjustments you have to do:
 
 
 
* '''Display:''' PiScreen 3.5 (v2)
 
* '''Audio:''' HifiBerry DAC+
 
* '''Wiring:''' MCP23017_ENCODERS
 
* '''Style:''' FontSize = 14
 
 
 
===Test the Controllers===
 
 
 
If you get into the Zynthian UI, then you should be in the 'Layer Selection' screen. Let's start testing that your controllers are working OK.
 
 
 
1. Push 'select' to create a new layer. You should get into the 'Engine Selection' screen.
 
 
 
[[File:IMG_1563.JPG|600px]]
 
 
 
If it doesn't works, try pushing the 'snapshot' controller. Perhaps you have cross-wired the 3 & 4 controllers and in that case, you have to fix the wiring. If it doesn't work, try pushing the other two controllers and rotating the controllers. If something happens, most probably you have reversed the wiring order when connecting the controllers. Double-check the wiring again.
 
 
 
2. Rotate the 'SELECT' controller to select the engine you want to start for the new layer.
 
 
 
The selector must go down when rotating clockwise and go up when rotating counterclockwise. If the rotation sense is reversed, you should check the wiring.
 
 
 
3. Select the ZynAddSubFX engine, select channel #1, bank and preset. You should get into the 'Instrument Control' screen.
 
 
 
[[File:IMG_1568.JPG|600px]]
 
 
 
4. Rotate every control to test that it works and that the rotation sense is correct.
 
 
 
If some controller doesn't work correctly, check the wiring again. You could try to figure what is happening by analizing the observed behaviour.
 
 
 
5. Push 'BACK'. You should go back to the 'Preset Selection' screen.
 
 
 
6. Push 'Layer' again to return to the 'Layer Selection' screen. Try to create another layer following the same procedure.
 
 
 
[[File:IMG_1584.JPG|600px]]
 
 
 
7. From the "Instrument Control" screen, push 'Snapshot' to get into the 'Load Snapshot' screen. Push 'Snapshot' again to 'Save Snapshot'. Push 'BACK' to return to the 'Instrument Control' screen.
 
 
 
If everything is working OK, then you should read the [[Zynthian_Users_Guide|User's Guide]] and start enjoying your Zynthian Box, but before that ...
 
  
 
===Test the Audio Output===
 
===Test the Audio Output===
Line 503: Line 389:
 
  2. Boot your Zynthian. You should be in the initial 'Layer Selection' screen.
 
  2. Boot your Zynthian. You should be in the initial 'Layer Selection' screen.
 
  3. Push BACK and you will get into the 'Admin' screen.
 
  3. Push BACK and you will get into the 'Admin' screen.
  4. Select 'Audio Test' option and push 'SELECT'. You should hear the test audio-track: a nice afrocuban stuff ;-)
+
  4. Select 'Audio Test' option and push 'SELECT'. You should hear the test audio-track: a nice afrocuban track
 
  5. Push 'BACK' to stop the playing, and 'BACK' again to return to the "Layer Selection' screen.
 
  5. Push 'BACK' to stop the playing, and 'BACK' again to return to the "Layer Selection' screen.
  
If you hear nothing, please, check the amplifier, speakers, cabling, gain, volume, etc. If nothing works, you have to [[#Locating_and_Solving_problems|locate and solve the problem(s)]].
+
If you hear nothing, check the amplifier, speakers, cabling, gain, volume, etc. If nothing works, you have to [[#Locating_and_Solving_problems|locate and solve the problem(s)]].
  
 
===Test the MIDI subsystem===
 
===Test the MIDI subsystem===
  
 
  1. Connect the audio output (RCA or Jack connector) to your amplifier or auto-amplified speakers.
 
  1. Connect the audio output (RCA or Jack connector) to your amplifier or auto-amplified speakers.
  2. Boot your Zynthian, select FluidSynth engine, channel #1 and 'FluidR3 GM' bank. Select some instrument.
+
  2. Boot your Zynthian, select FluidSynth engine, channel #1 and 'TimGM6mb' bank. Select an instrument, like "Piano 1".
  3. You could add more layers for completing the band ;-)
+
  3. You could add more layers to complete the band
  3. Push BACK, holding the switch pushed more than 2 seconds. You should get into the 'Admin' screen.
+
  3. Push BACK, holding the switch down for more than 2 seconds. You should get to the 'Admin' screen.
  4. Select 'MIDI Test' option and push 'SELECT'. You should hear the test midi-track ('Take Five') interpreted by your Zynthian's band ;-)
+
  4. Select 'MIDI Test' option and push 'SELECT'. You should hear the test midi-track ('Take Five') interpreted by your Zynthian's band
 
  5. Push 'BACK' to stop the playing
 
  5. Push 'BACK' to stop the playing
  
Line 522: Line 408:
  
 
  1. Connect the audio output (RCA or Jack connector) to your amplifier or auto-amplified speakers.
 
  1. Connect the audio output (RCA or Jack connector) to your amplifier or auto-amplified speakers.
  2. Boot your Zynthian, select ZynAddSubFX, channel #1, bank and instrument
+
  2. Boot your Zynthian, select ZynAddSubFX, channel #1, bank and an instrument
 
  3. Connect a MIDI-USB keyboard to any USB port. The keyboard should be configured to use channel #1.
 
  3. Connect a MIDI-USB keyboard to any USB port. The keyboard should be configured to use channel #1.
  3. After 2-3 seconds , play something with your keyboard. A simple ''Chopin's Nocturni'' would be enough. You should hear your music. If you don't like it, probably you should take some piano lessons, same as me ;-)
+
  3. After 2-3 seconds , play something with your keyboard. A simple ''Chopin's Nocturni'' should be enough. You should hear your music. If you don't like it, you should probably take some piano lessons, like me.
  
 
If this doesn't work, you have to [[#Locating_and_Solving_problems|locate and solve the problem(s)]].
 
If this doesn't work, you have to [[#Locating_and_Solving_problems|locate and solve the problem(s)]].
Line 531: Line 417:
  
 
  1. Connect the audio output (RCA or Jack connector) to your amplifier or auto-amplified speakers.
 
  1. Connect the audio output (RCA or Jack connector) to your amplifier or auto-amplified speakers.
  2. Boot your Zynthian, select ZynAddSubFX, channel #1, bank and instrument
+
  2. Boot your Zynthian, select ZynAddSubFX, channel #1, bank and instrument.
  3. Connect your keyboard's MIDI-OUT to the Zynthian's MIDI-IN using a MIDI cable. The keyboard should be configured to use channel #1.
+
  3. Connect your keyboard's MIDI-OUT to the Zynthian's MIDI-IN using a MIDI cable.
  3. After 2-3 seconds, play something with your keyboard. OK! A single melody can do the task. You should hear your song ;-)
+
  3. After 2-3 seconds, play something with your keyboard. A single melody can do the trick.
  
 
If this doesn't work, you have to [[#Locating_and_Solving_problems|locate and solve the problem(s)]].
 
If this doesn't work, you have to [[#Locating_and_Solving_problems|locate and solve the problem(s)]].
Line 539: Line 425:
 
=Final steps=
 
=Final steps=
  
Once everything is in its place and you have tested that it works, it's time to close the case ...
+
Once everything is in its place and you have tested that it works, it's time to close the case
  
 
===Close the case===
 
===Close the case===
  
Take your time to see how to bend and drive the cables to get a good fitting when closing the case.
+
Take your time to bend and push the cables to get a good fit when closing the case. The ribbon bus cable is pre-bent to make this process easier.
 +
 
  
[[File:IMG_1626.JPG|600px]]
+
[[File:Precierre.JPG|600px]]
  
Finally, screw-drive the 8 sheet-threader bolts for securing the case, 4 each side.
 
  
[[File:IMG_2287.JPG|600px]]
+
Finally, fasten the 8 sheet-threaded bolts to secure the case, 4 on each side.
 +
 
 +
 
 +
[[File:ZynthianFront.jpg|600px]]
  
 
=Update your Zynthian Box=
 
=Update your Zynthian Box=
  
If you are using the official Zynthian SD Image, the first thing you should do after booting up your Zynthian Box and having the controllers working OK is update the software:
+
If you are using the official Zynthian SD Image, the first thing you should do after booting up your Zynthian Box and making the controllers are working, is update the software:
  
  - connect the Zynthian Box to your router using a RJ45 cable
+
  - connect your Zynthian Box to your router using an ethernet cable
  - '''update zynthian software''' from the admin menu
+
  - from the admin menu, click '''update software'''
  - '''update zynthian library''' from the admin menu
+
  - from the admin menu, click '''restart UI''' (or '''reboot''')
- '''restart GUI''' (or '''reboot''') from the admin menu
 
  
The update process can take some time. Be patient. If you get some ERROR message while updating, please, [https://discourse.zynthian.org/t/problems-updating-the-software-from-the-admin-menu/386 ask in the forum]. You can send a photo or description of the error message.
+
The update process can take some time. Be patient. If you get an error message while updating, please, [https://discourse.zynthian.org/t/problems-updating-the-software-from-the-admin-menu/386 ask in the forum]. You can send a photo or description of the error message.
 +
 
 +
You can also update the software using the webconf tool, or from the command line.
  
 
=Locating and Solving problems=
 
=Locating and Solving problems=
Line 566: Line 456:
 
In this section i will try to give you some tips for locating and solving the problems you may have.
 
In this section i will try to give you some tips for locating and solving the problems you may have.
  
For finding and solving problems, i really recommend to connect a HDMI display to the RBPi. It will give you accurate information during the booting sequence. Also, if you connect a USB keyboard, you can login into the system and get extra information, inspect the logs, etc.
+
For finding and solving problems, I really recommend connecting a HDMI display to the Raspberry Pi. This will show you all information during the boot process. If you connect a USB keyboard to the Pi, you can login into the system and get extra information, inspect the logs, etc.
  
===The display don't go white in the boot stage 1===
+
===The display don't show the zynthian splash screen on boot===
  
I recommend you disconnect the controller and 2in1 modules and try to boot again.
+
In that case, probably the system is not booting correctly. You could try to connect a HDMI display and see if the system is booting. If you can't see the boot sequence, then you should re-flash your SD-card with the Zynthian image. Also check that your image file is correct by using the SHA1 signature.
If the problem persist it's very probable you haven't solder correctly the side 26-pin connector. You should double check the connector and be sure that it's correctly soldered.
 
  
===The display don't show the zynthian splash screen in the boot stage 2===
+
===You get the zynthian error screen with the IP===
  
In that case, probably the system is not booting correctly. You could try to connect a HDMI display and see if the system is booting. If you can't see the booting sequence, then you should re-burn your SD-card with the Zynthian image. Also, check that your image file is correct by using the SHA1 signature.
+
Your hardware seems to be configured incorrectly. You should access the webconf tool and configure your hardware.
  
'''More coming soon ...'''
+
===Your controllers doesn't work===
 +
 
 +
You made a mistake while connecting the controllers, or your hardware (wiring layout) is incorrectly configured. You should access the webconf tool and configure your hardware.
  
 
===You can't solve the problem===
 
===You can't solve the problem===
Line 585: Line 476:
 
  https://discourse.zynthian.org
 
  https://discourse.zynthian.org
  
Also, if you found a solution for a problem not described here, please send feedback to the community, or better, edit this wiki! ;-)
+
Also, if you found a solution for a problem not described here, please send feedback to the community so others can see how you solved the problem
  
 
=Technical Reference=
 
=Technical Reference=
  
Finally, i have included here some detailed schemes. People hacking the standard Zynthian design would find it very useful. Also, if you have some problem and need to "debug", you would find it useful too.
+
Finally, I have included some detailed schematics. People hacking the standard Zynthian design would find it very useful. If you have a problem and need to "debug", you could find it useful too.
  
You can find all this info and much more in the project's [https://github.com/zynthian/zynthian-hw Hardware Repository].
+
[[File:Zynthian_controller_single2_smd.svg|600px]]
  
===Electrical Schematic===
+
[[File:Zynthian_zynaptik.svg|600px]]
  
This is the electrical scheme of the All-In-One circuit:
+
[[File:ZynScreen_v1.3.svg|600px]]
  
[[File:Zynthian_allinone.sch.svg|800px]]
+
You can find all this info and much more in the project's [https://github.com/zynthian/zynthian-hw Hardware Repository].
 
 
===RBPi GPIO===
 
 
 
[[File:Raspberry-Pi-j8header-2b.png|400px]]
 

Latest revision as of 17:07, 9 September 2020

1 Introduction

This tutorial is intended for those who are building a Zynthian Box using one of the official kits, that i offer here:

Zynthian Shop

Specifically, these instructions are for assembling kit v3 (version 3), those kits using the Zynaptik circuit and the ZynScreen v1.4 display.


ZynthianFront.jpg

ZynthianBack.jpg

2 List of Materials

  • Zynthian Basic Kit v3 (4 x controller v3 + zynaptic circuit + ribbon bus cable)
  • ZynScreen v1.4 (3.5" touch-display + controller driver)
  • Raspberry 3 Model B or B+
  • HifiBerry DAC+ADC souncard
  • Case kit v3, including nuts, bolts and connectors
  • Power adapter for Raspberry Pi (5.1v 2.4A with microUSB connector)
  • 16GB SD Card (Use a high-quality card)

3 Some definitions

3.1 Zynthian

It's an open project with the goal of creating an Open Synth Platform based in Free Software and Open Hardware Specifications & Designs (when available)

3.2 Zynthian Software

The Zynthian Software stack consist of:

+ GNU Linux Operating System: Raspbian Jessie (Minibian is used in the most recent SD images)
+ Jack Audio Daemon
+ A collection of standalone Synth Engines & LV2 Plugins (see Supported Synth Engines & Plugins)
+ MOD-HOST + MOD-UI software, from ModDevices (github repositories)
+ Zynthian User Interface (github repository)
+ Zynthian Webconf Tool (github repository)

All the software used by Zynthian is Free Software (free as in freedom, not as in free beer), and it's covered by the GPL license or similar. If you don't know what Free Software is, take a look at this link:

What is Free Software?

The easiest way of getting the software is downloading the last official SD image from here:

Download Last Stable ZynthianOS SD-image

It's a 8 GB compressed image file (plenty of soundfonts) compiled for Raspberry Pi 3.

These SD-card images include all the Zynthian software, properly configured for working with the official kits. Completely ready to use. Plug and play!

After downloading the SD-image, you have to write it to your micro-SD card. You need a micro-SD card with a minimum size of 16 GB.

If you don't know how to do it, you can use Etcher (free software, works on Mac, Windows or Linux) to flash the image onto the micro-SD card. Or do it manually! There is a really good manual for this at this link.

you can also build your own SD image following these instructions:

Building the SD Image using the Setup Script

3.3 Zynthian Box

A Zynthian Box is a hardware device, a small digital computer designed to run the Zynthian Software. It's currently based on the Raspberry Pi platform, but it could easily be adapted to other computer platforms.

This is a sketch with the components the official Zynthian Box is made of:

Zynthian hardware scheme.png

In the project's repositories you can find all the electric schemes, PCB specifications, Herber files, etc. to build your own Zynthian Box from scratch:

- Zynthian Hardware Repository
- Zynthian Case Repository

The official version is the canonical reference. Of course, you don't have to build the official version. You can build your customized Zynthian Box modifying and improving what you want. If you do so, feedback would be appreciated.

3.4 Zynthian Bundle All Kit v3

A Zynthian Kit is a set of electronic and mechanic parts. The official Zynthian Bundle All Kit v3 consists of these specific parts:

+ 4 x Controller Modules + Wiring 
+ 1 x Zynaptik Module: MIDI Ports + extended I/O
+ 1 x ZynScreen 3.5': Touch-Display + Controllers circuit
+ 1 x Main ribbon bus cable

IMG 2461.JPG

These generic parts:

+ 1 x Raspberry Pi 3
+ 1 x Hifiberry DAC+ADC

IMG 2377.JPG

And the aluminium case:

+ 1 x Zynthian Aluminium Case
+ 1 x Connectors
+ 1 x Bolts & Nuts

IMG 2379.JPG

IMG 2384.JPG

3.4.1 Unboxing the Official Kit V3, by Sébastien Marty

4 Assembling your Zynthian Box

4.1 Prerequisites

Assembling your Zynthian Kit V3 is not difficult at all: you need your attention, a screwdriver, and an adjustable wrench. You don't need to solder anything, just put it together and connect the wires.

Read the instructions and observe the detailed photos carefully. If you get in trouble you can ask the community:

https://discourse.zynthian.org

WARNING!!

Please, handle electronic parts with care, specially the display, as they are easily damaged.

4.2 Secure the Jack connectors

Insert the jack connectors from inside the box and secure them with the washers and nuts from the inside. The washers will keep the nut from damaging the case.

IMG 2397.JPG IMG 2398.JPG

4.3 Secure the MIDI connectors

Insert each MIDI connector, from the outside and secure them with the bolt from the inside.

IMG 2401.JPG IMG 2402.JPG

4.4 Mount the MIDI activity LEDS

Insert the 3 LEDS in the case from the outside, leaving the short lead at left. Make sure you push the LEDs by the plastic around the LED, not the LED itself.

IMG2403.JPG


When it's done, you have to plug the LED wires into the 2 spare "DUPONT" connectors from the MIDI harness (green & yellow wires). Polarity is important, so don't cross the wires:

* JST Green wire (1) => LED's Anode (LED's long lead)
* JST Yellow wire (2) => LED's Cathode (LED's short lead)

Since the LED's leads are too long, you will want to cut them down to about 7-8mm. Make sure you remember which lead is the short one.

IMG2406.JPG

Note:

If you don’t connect the status LEDs, the MIDI-OUT and MIDI-THRU won’t work unless you short the JP1 & JP2 jumpers on the zynaptik board.

4.5 Assemble the Main Computing Block

The main computing block consists of the Raspberry Pi and the HifiBerry soundcard,and is assembled using these separators and bolts

IMG 1293.JPG

1. Fix the 2x4 separators to the Raspberry Pi. Put the longest of the two on top of the Pi and she shorter at the bottom.
2. Connect the Hifiberry soundcard to the Raspberry Pi.
3. Fix the 4 screws on top of the HifiBerry to fix it in place.

IMG 1353.JPG

IMG 2393.JPG

IMG 2395.JPG

4.6 Secure the Main Computing Block

After assembling the main computing block, secure it to the case. Use the 4 remaining black M2.5 screws to secure it to the bottom of the case (see photo above).


IMG 2407.JPG

4.7 Secure the Zynaptik module

Secure the Zynaptik module to the case using 4 x separators and 8 x M2.5 screws. Begin by mounting the separators to the bottom of the case, and attach the module to the separators using the remaining screws.

IMG 1294.JPG

IMG 2410.JPG

The zynaptik board has some extra circuitry which doesn't have anything soldered on it. These are used for adding extra functionality to the board.

4.8 Mount the Display

WARNING!!

Please, handle electronic parts with care, specially the display, as it is easily damaged.

The screen is secured with these 4 screws, nuts, and nylon separators. Mount the screen by screwing the screws from the outside and fixing them with the bolts from the inside. The separators go between the screen and the case. Remember to remove the protective film from the screen before mounting it.

IMG 1295.JPG

IMG 2423.JPG

4.9 Mount the Controllers

Plug a wire on each controller. Fix the controllers in each corner using the nuts and washers attached to them

Rotary&wire.JPG

ZynScreen&Controller.JPG

IMG 1401.JPG

4.10 Attach the knobs

You should attach the knobs into the encoders before closing the case. Push the knobs unto the encoders while pushing the encoder with a finger on the PCB board. This will avoid putting too much pressure on the encoders, which can break them. The knobs can be very tight, and a bit of water can be used as lubricant to help with this.

4.11 Attach the rubber feet

IMG 2536.JPG

5 Connecting everything

The Zynthian Kit 3 is designed to use JST connectors which can't be plugged in wrong, so connecting everything is straight-forward:

5.1 Connect the Ribbon Bus cable

Connect the Main Ribbon Bus cable to the Raspberry Pi's 40-pin header and to the Zynaptik module. The red wire is pin 1, so if you are looking at the case from the front, it should be on the right.

Ribbon.jpeg Ribbon&Hifi&Zynaptik.JPG

5.2 Connect the Controllers

Connect the 4 controller cables to the 4 controller connectors on the ZynScreen (CTRL1, CTRL2, CTRL3, CTRL4)

ZynScreenConnect.JPG

5.3 Connect the MIDI connectors & activity LEDs

Connect the 3 cables from the MIDI connectors to the MIDI-IN, MIDI-OUT and MIDI-THRU connectors on the Zynaptik module.

MIDIConnector.JPG

Note:

If you don’t connect the status LEDs, the MIDI-OUT and MIDI-THRU won’t work unless you short the JP1 & JP2 jumpers on the zynaptik board.

5.4 Connect the Audio Output Jack connectors

Connect the audio output jack connectors to the audio-output header to the Hifiberry soundcard:

Dacplus-adc-top audio-out.jpg IMG 2414.JPG

The black wire on the "R" pin, white on the "L" one and red on "GND" (middle).

Note:

Some kits have flipped the red and white wires. This is not a problem. Simply look at the black wire.

5.5 Connect the Audio Input Jack connector

This step depends of the specific model of your soundcard:

5.5.1 HifiBerry DAC+ADC Standard

Connect the input jack connector to the audio-input header on the sound card using the 3-pin Dupont connector:

Dacplus-adc-top audio-in.jpg IMG 2416.JPG

The black wire should be connected to pin 3, red wire to pin 2 and white wire to pin 1. Looking at the first photo, numbering is left to right.

Note:

Some kits have flipped the red and white wires. This is not a problem. Simply look at the black wire.


WARNING!!

Due to hardware problems, Hifiberry has recently changed (September 2019) the specification of the DAC+ADC. It seems that the Balanced Audio input doesn't work as expected. Instead it works like a simple not-balanced input. You can read more about this subject on this forum thread.
In order to take advantage of the stereo connector, which should be a mono balanced input but isn't, you can get an unbalanced stereo input by connecting both audio channels to the connector. The problem is that the 3-wire Dupont connector included in official kit. You have to cut the second wire (red or white) and solder a single Dupont connector, connecting it to the pin 5 on the Hifiberry. Please check the Hifiberry DAC+ADC specification

5.5.2 HifiBerry DAC+ADC PRO

Connect the input jack connector to the audio-input header on the sound card using the three 1-pin Dupont connectors as indicated in the image:

Dacplusadcpro-top-audio-in.jpg

This way you will have the balanced input connected on the Right channel. If you want to use the Left channel, take a look at the Hifiberry DAC+ADC PRO specification.

5.6 Connect the Display

connect the ribbon's 26-pin connector to the display's connector. Pay attention to the orientation. The red wire should be the pin 1, which as marked on the display's PCB surface.

Screen&Ribbon.JPG


At this point, your Zynthian Box should look like this:


Precierre.JPG

5.7 Building and Testing the Official Kit V3, by Sébastien Marty

6 Testing your Zynthian Box

And that's all. Your Zynthian Box is almost ready to boot. I recommend that you double-check everything before trying to boot.

6.1 Double-check the parts and wiring

It's easy to make a mistake while assembling the parts or connecting the wires. Some errors can be dangerous for the electronic components (such as short circuits) so it's better to be sure that everything is correctly assembled and connected.

Pay attention to ribbon bus connection and verify that red wire is on pin 1 for every connector. Pay attention to the audio jack connectors and make sure they are connected correctly to the Hifiberry sound card.

6.2 First Boot

When you are sure that everything is in its place, it's time to boot the machine:

1. Insert the SD-card with the zynthian image. If you don't have one yet, read this. You can insert the SD-card through the "window" on the bottom-side of the case. 
2. Plug the mini-usb power connector. A good 5V micro-usb charger is recommended (> 2 Amp).

These are the stages that you should see while booting:

1. After 5-10 seconds, it will show the Zynthian splash screen
2. After 3-4 seconds, it will go black
3. If you are using a fresh zynthian image and it's the first boot, the stages 1 and 2 will be repeated
4. After 5-10 seconds, the zynthian UI will be shown

If you get the Zynthian UI, then you have assembled the Zynthian box correctly. Congratulations!

IMG 2490.JPG

If you don't get an error screen or a blank screen, you probably you made a mistake during the assembly. You have to locate and solve the problem(s).

If you are using the Aruk RC-3 SD image (which you should), you will notice that the controllers are not working at all. This SD image is pre-configured for working with the kit v2, so you need to configure the software for working with the kit v3. The simplest way of doing it is using the webconf tool:

  • Connect your zynthian to your local network using an ethernet cable (RJ-45).
  • From your web browser, access the zynthian's webconf tool by typing "zynthian.local" in the address bar. If this doesn't work for you, you should try with the IP. You can get the IP of your zynthian by navigating to the Admin Menu and clicking "Network Info". You should do that by using the touch interface: Click the top bar with a stick (or your nail, if it's not too wide) until you are in the Admin Menu. Once you are there, go down and click "Network Info".
  • Type the password (raspberry) and log into the webconf tool.
  • Once you are logged in, you have to access Hardware->Kit and select "Kit V3".
  • Save the changes and reboot your Zynthian.

6.3 Test the Controllers & UI

If you get into the Zynthian UI, then you should be in the 'Layer list' screen. Let's start testing that your controllers are working OK.

1. Rotate the SELECT controller up & down for selecting the different options in the Layers menu. 
2. Push SELECT to create a New 'Synth Layer'. You should get into the 'Engine Selection' screen.

IMG 2496.JPG

If it doesn't work, try rotating/pushing the 'learn/snapshot' controller. Perhaps you have cross-wired the 3 & 4 controllers and in that case, you have to fix the wiring. If it doesn't work, try pushing the other two controllers and rotating the controllers. If something happens, most probably you have reversed the wiring when connecting the controllers. Double-check the wiring again.

3. Rotate the SELECT controller to choose the engine you want to instance for the new layer. 

The selector must go down when rotating clockwise and go up when rotating counter-clockwise. If the rotation sense is reversed, you should check the wiring. Perhaps one of the connections are faulty. The wires' color sequence should be red, black, yellow, green.

4. Select the ZynAddSubFX engine, select channel #1, select bank 'Collection' and preset 'Metal Drips'. 

IMG 2497.JPG

You should get to the 'Instrument Control' screen.

IMG 2500.JPG

5. Rotate every control to test that it works and that the rotation sense is correct. 

If one of the controllers doesn't work correctly, check the wiring again.

6. Push SELECT to move to the next controller screen. Bold push (a push lasting about 1 second) to select a controller screen from the list.
7. Push BACK. You should go back to the 'Preset Selection' screen. 

IMG 2499.JPG

8. Push BACK again. You should go back to the 'Bank Selection' screen. 

IMG 2498.JPG

9. Push LAYER again to return to the 'Layer Selection' screen. Try to create another layer following the same procedure.

IMG 2509.JPG

10. Push 'SNAPSHOT' to get into the 'Snapshot' screen. Select 'New Snapshot' and your first snapshot will be stored.

IMG 2506.JPG

If everything is working OK, then you should read the User's Guide and start enjoying your Zynthian Box, but before that ... why not enjoy it a little bit? Connect your MIDI keyboard, your speakers and check this out:

Bank 'net-wisdom', Preset 'Vangelis Saw - C'

Keep pushing a single note (or a chord) and move the cutoff and resonance controllers. Play around a bit and have some fun

6.4 Test the Audio Output

1. Connect the audio output (RCA or Jack connectors) to your amplifier or auto-amplified speakers.
2. Boot your Zynthian. You should be in the initial 'Layer Selection' screen.
3. Push BACK and you will get into the 'Admin' screen.
4. Select 'Audio Test' option and push 'SELECT'. You should hear the test audio-track: a nice afrocuban track
5. Push 'BACK' to stop the playing, and 'BACK' again to return to the "Layer Selection' screen.

If you hear nothing, check the amplifier, speakers, cabling, gain, volume, etc. If nothing works, you have to locate and solve the problem(s).

6.5 Test the MIDI subsystem

1. Connect the audio output (RCA or Jack connector) to your amplifier or auto-amplified speakers.
2. Boot your Zynthian, select FluidSynth engine, channel #1 and 'TimGM6mb' bank. Select an instrument, like "Piano 1".
3. You could add more layers to complete the band
3. Push BACK, holding the switch down for more than 2 seconds. You should get to the 'Admin' screen.
4. Select 'MIDI Test' option and push 'SELECT'. You should hear the test midi-track ('Take Five') interpreted by your Zynthian's band
5. Push 'BACK' to stop the playing

If you hear nothing, please, check the amplifier, speakers, cabling, gain, volume, etc. If nothing works, you have to locate and solve the problem(s).

6.6 Test the MIDI-USB inputs

1. Connect the audio output (RCA or Jack connector) to your amplifier or auto-amplified speakers.
2. Boot your Zynthian, select ZynAddSubFX, channel #1, bank and an instrument
3. Connect a MIDI-USB keyboard to any USB port. The keyboard should be configured to use channel #1.
3. After 2-3 seconds , play something with your keyboard. A simple Chopin's Nocturni should be enough. You should hear your music. If you don't like it, you should probably take some piano lessons, like me.

If this doesn't work, you have to locate and solve the problem(s).

6.7 Test the MIDI-IN connector

1. Connect the audio output (RCA or Jack connector) to your amplifier or auto-amplified speakers.
2. Boot your Zynthian, select ZynAddSubFX, channel #1, bank and instrument.
3. Connect your keyboard's MIDI-OUT to the Zynthian's MIDI-IN using a MIDI cable.
3. After 2-3 seconds, play something with your keyboard. A single melody can do the trick.

If this doesn't work, you have to locate and solve the problem(s).

7 Final steps

Once everything is in its place and you have tested that it works, it's time to close the case

7.1 Close the case

Take your time to bend and push the cables to get a good fit when closing the case. The ribbon bus cable is pre-bent to make this process easier.


Precierre.JPG


Finally, fasten the 8 sheet-threaded bolts to secure the case, 4 on each side.


ZynthianFront.jpg

8 Update your Zynthian Box

If you are using the official Zynthian SD Image, the first thing you should do after booting up your Zynthian Box and making the controllers are working, is update the software:

- connect your Zynthian Box to your router using an ethernet cable
- from the admin menu, click update software
- from the admin menu, click restart UI (or reboot)

The update process can take some time. Be patient. If you get an error message while updating, please, ask in the forum. You can send a photo or description of the error message.

You can also update the software using the webconf tool, or from the command line.

9 Locating and Solving problems

In this section i will try to give you some tips for locating and solving the problems you may have.

For finding and solving problems, I really recommend connecting a HDMI display to the Raspberry Pi. This will show you all information during the boot process. If you connect a USB keyboard to the Pi, you can login into the system and get extra information, inspect the logs, etc.

9.1 The display don't show the zynthian splash screen on boot

In that case, probably the system is not booting correctly. You could try to connect a HDMI display and see if the system is booting. If you can't see the boot sequence, then you should re-flash your SD-card with the Zynthian image. Also check that your image file is correct by using the SHA1 signature.

9.2 You get the zynthian error screen with the IP

Your hardware seems to be configured incorrectly. You should access the webconf tool and configure your hardware.

9.3 Your controllers doesn't work

You made a mistake while connecting the controllers, or your hardware (wiring layout) is incorrectly configured. You should access the webconf tool and configure your hardware.

9.4 You can't solve the problem

If you can't find a solution for your problem, ask the community:

https://discourse.zynthian.org

Also, if you found a solution for a problem not described here, please send feedback to the community so others can see how you solved the problem

10 Technical Reference

Finally, I have included some detailed schematics. People hacking the standard Zynthian design would find it very useful. If you have a problem and need to "debug", you could find it useful too.

Error creating thumbnail: convert-im6.q16: unrecognized color `none;' @ warning/color.c/GetColorCompliance/1057. convert-im6.q16: non-conforming drawing primitive definition `fill' @ error/draw.c/RenderMVGContent/4404.
Error creating thumbnail: convert-im6.q16: unrecognized color `none;' @ warning/color.c/GetColorCompliance/1057. convert-im6.q16: non-conforming drawing primitive definition `fill' @ error/draw.c/RenderMVGContent/4404.

File:ZynScreen v1.3.svg

You can find all this info and much more in the project's Hardware Repository.