UKMARSBOT assembly details:
Main PCB assembly
This is the main printed circuit board top and bottom:
- Solder in resistors R1 to R6
Note that on the v1 version of the board, the R2 and R5 resistors have been offset to make soldering easier.
It is helpful if you put all of these resistors in place from the top of the board before you start to solder, as this will avoid you getting solder into the PCB holes next to the one you are soldering in. Check that you have the correct value resistors in each place before you solder them in. You may want to hold these resistors in place with some Blu Tack so that they do not fall out while you solder them on the bottom side of the board.
Do not worry if the ends of the resistors at the back edge of the board short out together e.g. between R1 and R2 or R2 and R3 etc up to R5 and R6, as they are connected anyway in the circuit. Clip off all the excess leads for each device as soon as you have soldered it in so that it does not get in the way of further soldering.
Solder in R7 and R8 making sure that these 10K Ohm resistors which are mounted below the Arduino are close to the board.
If you plan to use an HC05 or HC06 or similar Bluetooth module for serial connection the v1 board has 2 extra resistors R10 and R11 and an extra diode D2. Solder these 2.2K and 3.3K ohm resistors in as shown and then ensure that you put the diode in the right way round with the grey band at the end closest to the 3.3K resistor. Also add a 4 pin header for plugging the HC05 or HC06 module into, which if it has 6 pins should have one pin each side of the 4 way connector and oriented so that the 5v connection on the module aligns with the 5v shown on the board.
- Then solder in the single row 15-way Arduino socket on the side of the motors – take care to connect all 15 pins and inspect it after soldering. A good tip is to solder just the 2 end pins first then check that it is fully seated and upright before soldering in the other 13 pins.
- Solder in the IC 74LS86N checking that the dot in the plastic by pin 1 and the notch at the end of the IC are at the end closest to resistors R7 and R8. You may need to bend the pins slightly inwards before it will go in smoothly.
Then put ceramic disc capacitor c1 in between the IC and resistor R8. You may need to allow enough length in the leads so that it can bend partly over R7 and R8 so that it stays below the level of the top of the Arduino connector.
- Solder in the other 15 pin Arduino connector making sure it is fully seated and upright.
Then solder in the tactile switch S2 – It should only fit one way – and then the 4-way DIPs switch S4
- Add the two 6-way pin header connectors for the motors and the 14-way connector for the sensors. Placing the PCB down on a flat surface will help to get them seated fully while you solder these and the next ones in. You can either use pin headers (cut to length from a 36-way strip) or single row sockets as used for the Arduino (also cut to length from a 15-way item). If you are not using encoders on the motors you only need two 2-way headers soldered into the holes adjacent to where it says M1 and M2
- Add the 4 way pin header connector at the edge of the board next to R7 and R8 for the serial connection. Then solder the battery connector lead into the main PCB next to the on/off switch, with the positive red lead into the centre one of the 3 holes marked + and the negative black lead into either of the two side ones marked –
- Add the miniature 3 pin slide switch used to switch the robot on and off – Yours may look slightly different to the one I have used, but as long as it is soldered into the 3 holes marked S1 that will be OK.
- If your motor driver board or Arduino Nano does not have the headers soldered onto them do this now. Make sure that the short side of the pins are soldered onto the top side of the boards so that the black spacer and long pins are on the rear side of the board where there are no components.
- Solder the motor driver board onto the main PCB so that the yellow tantalum capacitor on the motor driver board is at the end closest to where the Arduino Nano will be.
Then Solder in R9 1kὨ resistor next to the motor driver board and then add a 2 or 3mm indicator LED next to R9. The long lead on the LED (the +) should be the one furthest away from R9 and closest to the word LED on the board
- Make up a PP6 battery connector lead with a 3 pin connector at the end with positive going to the middle pin and negative to the two end pins.
- Plug your Arduino Nano into the two 15 pin sockets so that the USB mini connector is at the end closest to the motor driver board
- Connect a battery to the PP6 battery connector, switch on the on/off switch and your Arduino Nano should come to life with the onboard power LED lit.