1: Download and install the SAM-BA program. You must also instal the USB drivers that come with it.
SAM-BA User Guide:
http://www.cs.jhu.edu/~cliang4/public/d ... rguide.pdf
2: Now that you have SAM-BA installed , you need to go the folder where it is installed. Now locate the tcl_lib folder , and save the ZIP in it.
NOTE: This a New Version ..Do not use the orginal I posted , it will cause a Error.
3: unzip the file in the tcl-lib folder , it should rewrite the "boards.tcl" file , and create an new folder called at91sam3s4-9x
4: Now if you run the SAM-BA program you should see
"at91sam3s4-9x" in the selection menu.
When you get the board:
1: The board can be programmed outside of the radio , with just a Micro USB cable and the SAM-BA software.
2:
Before starting the SAM-BA program , insert the USB cable into the USB connector on the Board (the other end should be plugged into your computer)
If you have the USB driver software installed properly , you will get the USB connection sound from your computer.
3: Run the SAM-BA program , you should see a new COM port connection for the USB.
4: Now with the USB port selected , and the
at91sam3s4-9x board selected , press the Connect button.
Note: Windows 7 could take up to a minute to display the Box ... be patient.
5: This will bring up the programming screen. It should show the at91sam3s4-9x Board
The middle area of the screen is what your interested in.
To Load a new version of the software , you enter the New file name in the "Send File Name" Box and click the "Send File" button
You should see the file upload in the dialog box at the bottom....it only take a couple of seconds to program.
After its done programming, it will come up with a Lock option. Select the "No" button ...programming is complete.
6: If you did select the YES button and "LOCKED" the chip. To re-program the chip, you will need to short out the ERASE jumper . and power up the board
by plugging in the USB connection...you now can remove the jumper. The board is returned to its factory default values.
Because you have erased all of the chip , you need to tell the chip what to do at power up. There is a selection BOX labeled "Scripts" , select the "Boot from Flash (GPMVN1)" and click "Execute" . The chip will now run the program loaded in flash memory at power up.
7: After you are done programming , terminate the SAM - BA program. Then you can disconnect the Board.
The SAM-BA program only works the ONE time , You must EXIT it , and re-insert the USB , THEN run the SAM -BA program.
YOU Must follow this procedure if not, then you are going to have trouble with the SAM - BA program.
Battery Requirements:
The ERSKY board is a 3.3V design , it uses "low dropout" 1Amp regulators. It will run fine on any voltage input above 5V.
The Input voltage should also be kept below 10V. The regulator must get rid of the "voltage difference" through heat.
The regulator contains circuitry to protect itself from overheating. It does this by shutting off the output voltage....NOT GOOD
This being said a 3S Lipo is TO LARGE for this application .... a fully charged 3S Lipo is over 12 Volts !
The regulator would have over 10 Volts to dissipate as heat !
I included a 3 pin Battery connector shell , and some contacts , as well as a 2 pin shell for the LCD connector.
The Two pin RED female connector with yellow wires is for a 8 ohm Speaker. It connects to the Two pin male connector beside the RED
jumper wire.
The Red jumper wire hooks up the internal buzzer, there is a menu selection for speaker or buzzer.
Remember to turn up the volume in menu screen.
Connecting the Stock LCD.
The Stock LCD connects to the LCD connector at the top edge of the board.
This connector works differently then the one on the stock board.
The connector uses a Brown Latch to secure the cable.
The ribbon cable is inserted ON TOP of the Brown Lever into the slot. (you will still see some of the Gold contacts on the cable)
Press down on the Brown Lever Tabs on each side of cable. It should lock down the cable in place.
To unlock , Pull up gently on each tab , this will unlock and release the cable.
Connecting The Optrex LCD
The Optrex LCD connects to the LCD connector that is set behind where the Stock LCD connects.
There is a little Brown level that you flip up with your finger nail it snaps open ...
You insert the Ribbon cable , and push down on the lever and it should lock in place.
J19 is a Battery output (to drive other things) it goes through the current sensor , so you can monitor its current draw.
Do NOT use this to supply power to the board.
Telemetry
The Telemetry connection from the FRSKY RF module , connects to COM1 serial port.
The connections can be accessed through the 2.5mm Stereo jack.
The tip of the jacK plug is the TXD
The Middle ring is the RXD
The Base ring is ground (GND)
You need to make a cross connection when connecting.
That is the TXD of the RF module goes to the RXD of the radio , and the TXD of the radio goes to
the RF Module.
Backlight
The LED Backlight Connector has a 200 Ohm surface mount resistor in series with the 5V supply.
There are two larger holes on each side of it. This has a 68 ohm resistor mounted on the key switch side of the board .
The boards are shipped , with both resistors installed.
This arrangement works with the Optrex LED backlight , but the The HK backlight , needs the 68 ohm resistor removed.
A small pair of cutters , can snip it off the board.
DIN / USB expansion cable:
Remove back of case:
Pull out the DC power connector.
Clip the two wires. ( these two wires could be hooked up to the yellow / white wires on the DIN cable ,this would allow you to keep the charger connection.
Remove the wires , or tape them to the back (allows future use if needed)
DIN connector sits in the old Charger Port hole. Fix it in place with some Hot Glue or epoxy
The 4 pin connector plugs into the connector directly BEHIND the USB port.
Make sure you plug it in as shown (it CAN be plugged in backwards) - you dont want to do this.
The 3 pin connector (with white and yellow wires) can be used to bring the Telemetry serial port connections to the spare pins on the DIN jack.
Plug in as shown
The Encoder is also shown plugged into the Aux port.