|
V41FAQ
v4.1 Custom Board FAQ
Custom Board v4.1 FAQFrequently Asked Questions Q. How do I get a local copy of the PCB design files? A. Install Subversion, then "check out" (download) the entire pcb-v4.1-frozen directory. Instructions for doing that (command line version) are on the standard Google "Source" page (see menu, above.) You'll need to change the source path though ... svn checkout https://gruvin9x.googlecode.com/svn/archive/pcb-v4.1a-frozen g9x-pcb-v4.1 That will create a directory named g9x-pcb-v4.1/, containing all the files and subdirectories. You can of course use whatever folder name you please. Various bill-of-materials (BOM) files can be found in the assembly/ sub-folder. Q. Where do I find v4.1 board construction tips and advice? A. There's a separate Build Your Own Board wiki page for that, here. What follows in this FAQ is more aimed at completed v4.1 boards, being installed into a '9X transmitter housing. Q. The JST PH connectors are fiddly to make! Is there an easier way? A. Yes! We found this eBay store, which has ready-made JST 2.0mm connectors (2, 3, 4, 5, 6, 7 and 8 pin) with wires attached and at very good prices. You can probably find the same products in other eBay store languages / locations. Search for "JST Micro 2.0." Q. How do I connect an LED back-light to connector K5? A. VERY CAREFULLY Seriously. The centre pin is GND and the RIGHT-hand pin (labelled '1') is +ve output power for an LED back-light. It includes a 200 ohm series current limiting resistor, which gives a comfortable and practical brightness on the HobbyKing LED back-light module. If you need a different brightness, you could use your own series current limiting resistor off the left hand pin (3), which is a switched 5V output, utilising its own dedicated regulator as well as a safety fuse. The regulator is rated at maximum 100mA and fused for safety at 250mA (if it gets fried and shorts out, it shouldn't take out the radio. This has not been tested.) CAUTION: There is no series current limiting resistor on the the left-hand, pin-3! Q. How do I use an electro luminescent (EL) back-light? A. You will need a SmartieParts or equivalent EL driver board, to provide the correct type of power for an electro luminescent (EL) back-light. There are three terminals labelled 'EL B/lite', in the upper left area of the main board. These were originally designed to allow the SmartieParts EL driver board to be mounted directly over them, using individual header pins as dual-purpose stand-off and electrical connections. The board is placed such that the right-hand three driver board pads are soldered to the header stand-off pins, as viewed with the pads at the top of the board. Clear as mud? ... I'll try to draw it ... +-----------+ | o o o o o | . 1 2 3 . . . . . +-----------+ Pads labelled 1, 2 & 3 in the above EL board diagram connect via header pins to the v4.1 main board. The left-hand two pads on the driver board go to the EL back-light itself. The driver board should sit about 5mm above the main board -- not down on the header-pin insulators -- so that it remains well clear of the MENU/EXIT push button leads sticking up from the board. Header pins are made of high-tensile metal, so the board should be held quite rigidly in place. If you use some other kind of connecting wire instead, then you may need to use something like thick, double-sided adhesive tape to secure and insulate the EL board -- or simply mount it somewhere else entirely. Q. How should I set jumpers J1 (back-light control) and J4 (Vibrator control)? A. By default, pins 1 & 2 are shorted together on both J1 and J4. For J1, that's the left hand two pads. For J4, it's the upper two pads. You may want to refer to the circuit schematic to learn what the other positions might be good for. Q. Why doesn't the internal piezo beeper work? A. Because the v4 firmware currently only supports a 'speaker' (usually a cheap headphone element) connected to the 'Spkr' port on the PCB. This is the 2-pin header, labelled 'Spkr' if the upper center-right area of the PC board. The factory installed piezo beeper (shrieker in some cases! :p) should work just fine, once code exists to turn it on and off. The same is true of the Vibrator output. Although the port has been tested to provide the correct, regulated voltage under firmware control, there hasn't actually been any real code written for it yet. Q. What type of 'speaker' element should I use? A. This one can actually be a bit of a problem, as it turns out. The first few headphone elements used by Gruvin, over several prototype builds, all produced plenty of audio volume. He thus concluded that this would be the most common case. However since then, we have all (including Gruvin) had difficulty finding new elements that make enough noise. (It is possible, though unlikely, that the change to the ATmega2560 chip might somehow have something to do with this?) That said, the 'speaker' element from one side of some cheap headphones is what was intended. These are the commonly used, roughly 1 inch (25mm) diameter types, with the clear plastic diaphragm. They're usually rated somewhere around 32-ohm impedance and are to be found in most computer or portable music headphones (other than the type that plug inside your ear canal, of course.) Old laptops are another potential source. There are also two 200-ohm resistors near the 'Spkr' socket on the v4.x boards. These are in fact wired in parallel, to provide 100-ohms total. The intention here was to allow for variations in available speaker elements. You can either short the resistors out with a fine wire link for more volume or carefully remove one resistor to reduce sound output. (Removal is unlikely to be needed.) Consequently -- and as mentioned above -- a lot of us have been needing to short out the resistors (for 0-ohms) to get more volume from quieter speaker elements -- only to find that it's still not loud enough in about half the most recent cases. A long term solution for this is still 'being formulated'. The obvious quick solution would be to update the firmware to go back to using the factory supplied piezo beeper, which s almost always much louder than any speaker. Plans to do this exist, but we haven't got around to it as at this writing, sorry. Q. How are the rotary encoders supposed to be wired? A. Viewed from the back of the encoder, the wires going to controller board pin numbers 1, 2, 3 and 4 should look something like this ... 3 2
| | |
\
| |
4 1... where the upper-middle terminal is connected to the lower right terminal, as shown. (This is the GND or 0V wire.) The above wiring will make it such that pushing the top of the encoder knob away from you will increase its value -- the same for both left and right encoders. If you prefer to have the encoders operate in the opposite direction, then swap wires 2 & 3. Might I also suggest wiring as follows, ... 2 3 | | | / | | 1 4 ... to keep cable flat, with no twists, should you be using ribbon cable. (It doesn't really matter for individual wires as shown in the images below.) Here are some images of Cam's nice and tidy installation ...
Q. How should I install the RTC/SD-card Board? A. Any way you like, really. But please see here for how Gruvin does it. Q. How do I set the v4 board's ATmega2560 MCU option fuses, before the first Flash programming? A. If you have purchased a ready-made board, the fuses will already be set correctly. If you have built your own board and assuming you have the cross-compiler environment and project source code installed, along with a Makefile set up for your particular AVRDUDE programming device, then you can execute the following command from the src/ directory ... $ make wfuses If you wish to install a pre-compiled .HEX binary firmware version, rather than building from source, you can use AVRDUDE manually to set MCU fuses, in a similar way to the following ... $ avrdude -c usbasp -P usb -p atmega2560 -U hfuse:w:0x11:m -U lfuse:w:0xd7:m -U efuse:w:0xfc:m Q. How to fix intermittent power lock-on problem? A. There is a small design flaw in the v4.1 soft-off circuitry that can sometimes cause the radio to lock in the power-on state, after turning off the power switch. This fault can, quite literally, come and go with changes in the weather, moisture level sin the air, local static field, etc. Thus, not all radios will be affected and radios that have been fine for weeks could begin to exhibit the behaviour from time to time. The fix is to solder a 10K resistor across (or on top of) C63, which is located 2 components to the right of the (lower) 3.3V regulator and directly beneath transistor Q9. (Board viewed with LCD screen socket at the "top".) Note that it is also possible for certain types of system crash to cause this problem. This though is theoretically very unlikely, due to watchdog timer configuration. Never the less, if you have soldered in the new resistor but still have the problem, please let us know. The resistor is a standard part in v4.2 boards, none of which have actually been manufactured, at the time of this writing. Q. Why KiCAD' and not the ever popular Cadsoft Eagle suite? A. Apart from actually liking KiCAD, this is an open and more importantly FREE for ALL project. KiCAD does everything we need and is free and open source. Eagle on the other hand, demands a hugely expensive (minimum USD$1,145 ATOW) "Pro" license for boards of this size and complexity. So really, it's a no-brainer. Eagle is of no practical use to us what-so-ever. KiCAD was chosen over another alternative because we (well, gruvin) found that it is easy to download and install on both Linux and Windows (the latter still being the most commonly used platform, for who on Earth knows why, right? :P) | |||||
