<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.openhardwareconf.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=LukeWeston</id>
	<title>Open Hardware Miniconf - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://www.openhardwareconf.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=LukeWeston"/>
	<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/wiki/Special:Contributions/LukeWeston"/>
	<updated>2026-04-11T09:09:53Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.1</generator>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=52</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=52"/>
		<updated>2012-01-06T21:38:57Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested and the ATmega8U2 flashed appropriately, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s start assembling the through-hole components on the board. Don&#039;t worry, it&#039;s all pretty easy to assemble.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power rail. &#039;&#039;&#039;Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage. We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but &#039;&#039;&#039;the IC socket should be inserted so that the pin-1 indicator notch on the socket corresponds to the silkscreen marking&#039;&#039;&#039;. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll also insert and solder the RGB LED, remembering that &#039;&#039;&#039;the RGB LED must be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking&#039;&#039;&#039;. The four leads of the RGB LED will need to kind of splay out on an angle as you insert the LED onto the board, so it will end up sitting up approximately 5 mm off the board and it will not sit completely flush with the board.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor. &#039;&#039;&#039;The MCP9701 has a TO-92 package which looks identical to the two P2N2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused.&#039;&#039;&#039; We can then also insert and solder the two P2N2222 transistors. &#039;&#039;&#039;Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply firm pressure to press these fully down into place. We will also insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the pair of 2-pin PCB-mounted screw terminal blocks for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ll also insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB. Finally, we&#039;ll also need to unpack the LCD display and we&#039;ll solder a 16-way pin header onto its connection pads, and we&#039;ll also need to insert the AVR microcontroller chip into the IC socket - &#039;&#039;&#039;make sure it&#039;s oriented the correct way.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Plug in the USB cable (which we&#039;ve conveniently included for you) into a PC and into the Pebble board, and the blue power LED should light, and the new USB device should be recognized by the OS. If the power LED does not light, you &#039;&#039;&#039;did&#039;&#039;&#039; install the jumper to short out the USB power disconnection header, right? (Note that the power switch doesn&#039;t do anything except for when battery power is used. If USB power is connected, then it is &amp;quot;always on&amp;quot;.)&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the board from the PC. It&#039;s completely compatible with the Arduino Uno, but we re-used the same firmware used on the Freetronics Eleven, so it identifies itself as a Freetronics Eleven.&lt;br /&gt;
&lt;br /&gt;
If your PC is running Windows, you&#039;ll need to [http://www.freetronics.com/pages/installing-the-usb-driver-file-for-windows install the driver] if you&#039;ve never used an Arduino Uno or compatible device on your PC before. If you&#039;re running Linux or Mac OSX etc, then it should just work without any effort.&lt;br /&gt;
&lt;br /&gt;
You&#039;ll also need to have the Arduino IDE installed, of course. Select &amp;quot;Arduino Uno&amp;quot; as the target hardware type, select the right (virtual) serial port for the Arduino IDE to talk to, and you should be all ready to upload programs.&lt;br /&gt;
&lt;br /&gt;
If you want to use the LCD, you’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable to both the LCD display and the LCD header on the main board, making sure that &#039;&#039;&#039;pin 1 on the Pebble board is connected to pin 1 on the LCD display&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders.&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at battery voltages between 2.4-4.5 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 LEDs independently programmable, including PWM capability.&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display.&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style 4-wire resistive touchscreen.&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee 802.15.4 radio module or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays.&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input.&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
After you&#039;ve programmed the board with some code, if you want to use an alternative power source away from your PC, you can either use battery power or you can provide regulated 5.0 V DC power to the USB socket via a standard USB cable - for example by using one of those common 5.0V mains switchmode plugpacks with a &amp;quot;dumb&amp;quot; USB connector for power output.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. &#039;&#039;&#039;Thou shall not ever exceed 5 volts&#039;&#039;&#039;, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired. (Note that there is no battery holder included with the kit and you can add your own separately if you want to use battery power.)&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity. With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the DFU programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=51</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=51"/>
		<updated>2012-01-06T21:30:30Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested and the ATmega8U2 flashed appropriately, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s start assembling the through-hole components on the board. Don&#039;t worry, it&#039;s all pretty easy to assemble.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power rail. &#039;&#039;&#039;Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage. We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but &#039;&#039;&#039;the IC socket should be inserted so that the pin-1 indicator notch on the socket corresponds to the silkscreen marking&#039;&#039;&#039;. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll also insert and solder the RGB LED, remembering that &#039;&#039;&#039;the RGB LED must be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking&#039;&#039;&#039;. The four leads of the RGB LED will need to kind of splay out on an angle as you insert the LED onto the board, so it will end up sitting up approximately 5 mm off the board and it will not sit completely flush with the board.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor. &#039;&#039;&#039;The MCP9701 has a TO-92 package which looks identical to the two P2N2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused.&#039;&#039;&#039; We can then also insert and solder the two P2N2222 transistors. &#039;&#039;&#039;Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply firm pressure to press these fully down into place. We will also insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the pair of 2-pin PCB-mounted screw terminal blocks for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ll also insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB. Finally, we&#039;ll also need to unpack the LCD display and we&#039;ll solder a 16-way pin header onto its connection pads, and we&#039;ll also need to insert the AVR microcontroller chip into the IC socket - &#039;&#039;&#039;make sure it&#039;s oriented the correct way.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Plug in the USB cable (which we&#039;ve conveniently included for you) into a PC and into the Pebble board, and the blue power LED should light, and the new USB device should be recognized by the OS. If the power LED does not light, you &#039;&#039;&#039;did&#039;&#039;&#039; install the jumper to short out the USB power disconnection header, right?&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the board from the PC. It&#039;s completely compatible with the Arduino Uno, but we re-used the same firmware used on the Freetronics Eleven, so it identifies itself as a Freetronics Eleven.&lt;br /&gt;
&lt;br /&gt;
If your PC is running Windows, you&#039;ll need to [http://www.freetronics.com/pages/installing-the-usb-driver-file-for-windows install the driver] if you&#039;ve never used an Arduino Uno or compatible device on your PC before. If you&#039;re running Linux or Mac OSX etc, then it should just work without any effort.&lt;br /&gt;
&lt;br /&gt;
You&#039;ll also need to have the Arduino IDE installed, of course. Select &amp;quot;Arduino Uno&amp;quot; as the target hardware type, select the right (virtual) serial port for the Arduino IDE to talk to, and you should be all ready to upload programs.&lt;br /&gt;
&lt;br /&gt;
If you want to use the LCD, you’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable to both the LCD display and the LCD header on the main board, making sure that &#039;&#039;&#039;pin 1 on the Pebble board is connected to pin 1 on the LCD display&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
After you&#039;ve programmed the board with some code, if you want to use an alternative power source away from your PC, you can either use battery power (more on that in a moment) or you can provide regulated 5.0 V DC power to the USB socket via a standard USB cable - for example by using one of those common 5.0V mains switchmode plugpacks with a &amp;quot;dumb&amp;quot; USB connector for power output.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=50</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=50"/>
		<updated>2012-01-06T21:23:23Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested and the ATmega8U2 flashed appropriately, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s start assembling the through-hole components on the board. Don&#039;t worry, it&#039;s all pretty easy to assemble.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power rail. &#039;&#039;&#039;Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage. We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but &#039;&#039;&#039;the IC socket should be inserted so that the pin-1 indicator notch on the socket corresponds to the silkscreen marking&#039;&#039;&#039;. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll also insert and solder the RGB LED, remembering that &#039;&#039;&#039;the RGB LED must be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking&#039;&#039;&#039;. The four leads of the RGB LED will need to kind of splay out on an angle as you insert the LED onto the board, so it will end up sitting up approximately 5 mm off the board and it will not sit completely flush with the board.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor. &#039;&#039;&#039;The MCP9701 has a TO-92 package which looks identical to the two P2N2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused.&#039;&#039;&#039; We can then also insert and solder the two P2N2222 transistors. &#039;&#039;&#039;Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply firm pressure to press these fully down into place. We will also insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the pair of 2-pin PCB-mounted screw terminal blocks for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ll also insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB. Finally, we&#039;ll also need to unpack the LCD display and we&#039;ll solder a 16-way pin header onto its connection pads, and we&#039;ll also need to insert the AVR microcontroller chip into the IC socket - &#039;&#039;&#039;make sure it&#039;s oriented the correct way.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to use the LCD, you’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable to both the LCD display and the LCD header on the main board, making sure that &#039;&#039;&#039;pin 1 on the Pebble board is connected to pin 1 on the LCD display&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Plug in the USB cable (which we&#039;ve conveniently included for you) into a PC and into the Pebble board, and the blue power LED should light, and the new USB device should be recognized by the OS. If the power LED does not light, you &#039;&#039;&#039;did&#039;&#039;&#039; install the jumper to short out the USB power disconnection header, right?&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the board from the PC. It&#039;s completely compatible with the Arduino Uno, but we re-used the same firmware used on the Freetronics Eleven, so it identifies itself as a Freetronics Eleven.&lt;br /&gt;
&lt;br /&gt;
If your PC is running Windows, you&#039;ll need to [http://www.freetronics.com/pages/installing-the-usb-driver-file-for-windows install the driver] if you&#039;ve never used an Arduino Uno or compatible device on your PC before. If you&#039;re running Linux or Mac OSX etc, then it should just work without any effort.&lt;br /&gt;
&lt;br /&gt;
You&#039;ll also need to have the Arduino IDE installed, of course. Select &amp;quot;Arduino Uno&amp;quot; as the target hardware type, select the right (virtual) serial port for the Arduino IDE to talk to, and you should be all ready to upload programs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=49</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=49"/>
		<updated>2012-01-06T21:20:51Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested and the ATmega8U2 flashed appropriately, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s start assembling the through-hole components on the board. Don&#039;t worry, it&#039;s all pretty easy to assemble.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power bus. &#039;&#039;&#039;Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but &#039;&#039;&#039;the IC socket should be inserted so that the pin-1 indicator notch on the socket corresponds to the silkscreen marking&#039;&#039;&#039;. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll also insert and solder the RGB LED, remembering that &#039;&#039;&#039;the RGB LED must be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking&#039;&#039;&#039;. The four leads of the RGB LED will need to kind of splay out on an angle as you insert the LED onto the board, so it will end up sitting up approximately 5 mm off the board and it will not sit completely flush with the board.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor. &#039;&#039;&#039;The MCP9701 has a TO-92 package which looks identical to the two P2N2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused.&#039;&#039;&#039; We can then also insert and solder the two P2N2222 transistors. &#039;&#039;&#039;Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply firm pressure to press these fully down into place. We will also insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the pair of 2-pin PCB-mounted screw terminal blocks for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ll also insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB. Finally, we&#039;ll also need to unpack the LCD display and we&#039;ll solder a 16-way pin header onto its connection pads, and we&#039;ll also need to insert the AVR microcontroller chip into the IC socket - &#039;&#039;&#039;make sure it&#039;s oriented the correct way.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to use the LCD, you’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable to both the LCD display and the LCD header on the main board, making sure that &#039;&#039;&#039;pin 1 on the Pebble board is connected to pin 1 on the LCD display&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Plug in the USB cable (which we&#039;ve conveniently included for you) into a PC and into the Pebble board, and the blue power LED should light, and the new USB device should be recognized by the OS. If the power LED does not light, you &#039;&#039;&#039;did&#039;&#039;&#039; install the jumper to short out the USB power disconnection header, right?&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the board from the PC. It&#039;s completely compatible with the Arduino Uno, but we re-used the same firmware used on the Freetronics Eleven, so it identifies itself as a Freetronics Eleven.&lt;br /&gt;
&lt;br /&gt;
If your PC is running Windows, you&#039;ll need to [http://www.freetronics.com/pages/installing-the-usb-driver-file-for-windows install the driver] if you&#039;ve never used an Arduino Uno or compatible device on your PC before. If you&#039;re running Linux or Mac OSX etc, then it should just work without any effort.&lt;br /&gt;
&lt;br /&gt;
You&#039;ll also need to have the Arduino IDE installed, of course. Select &amp;quot;Arduino Uno&amp;quot; as the target hardware type, select the right (virtual) serial port for the Arduino IDE to talk to, and you should be all ready to upload programs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=48</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=48"/>
		<updated>2012-01-06T21:18:43Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested and the ATmega8U2 flashed appropriately, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s start assembling the through-hole components on the board. Don&#039;t worry, it&#039;s all pretty easy to assemble.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power bus. &#039;&#039;&#039;Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but &#039;&#039;&#039;the IC socket should be inserted so that the pin-1 indicator notch on the socket corresponds to the silkscreen marking&#039;&#039;&#039;. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll also insert and solder the RGB LED, remembering that &#039;&#039;&#039;the RGB LED must be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking&#039;&#039;&#039;. The four leads of the RGB LED will need to kind of splay out on an angle as you insert the LED onto the board, so it will end up sitting up approximately 5 mm off the board and it will not sit completely flush with the board.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor. &#039;&#039;&#039;The MCP9701 has a TO-92 package which looks identical to the two P2N2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused.&#039;&#039;&#039; We can then also insert and solder the two P2N2222 transistors. &#039;&#039;&#039;Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply firm pressure to press these fully down into place. We will also insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the pair of 2-pin PCB-mounted screw terminal blocks for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ll also insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB. Finally, we&#039;ll also need to unpack the LCD display and we&#039;ll solder a 16-way pin header onto its connection pads, and we&#039;ll also need to insert the AVR microcontroller chip into the IC socket - &#039;&#039;&#039;make sure it&#039;s oriented the correct way.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to use the LCD, you’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable to both the LCD display and the LCD header on the main board, making sure that &#039;&#039;&#039;pin 1 on the Pebble board is connected to pin 1 on the LCD display&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Plug in the USB cable (which we&#039;ve conveniently included for you) into a PC and into the Pebble board, and the blue power LED should light, and the new USB device should be recognized by the OS. If the power LED does not light, you &#039;&#039;&#039;did&#039;&#039;&#039; install the jumper to short out the USB power disconnection header, right?&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the board from the PC. It&#039;s completely compatible with the Arduino Uno, but we re-used the same firmware used on the Freetronics Eleven, so it identifies itself as a Freetronics Eleven.&lt;br /&gt;
&lt;br /&gt;
If your PC is running Windows, you&#039;ll need to [http://www.freetronics.com/pages/installing-the-usb-driver-file-for-windows install the driver] if you&#039;ve never used an Arduino Uno or compatible device on your PC before. If you&#039;re running Linux or Mac OSX etc, then it should just work without any effort.&lt;br /&gt;
&lt;br /&gt;
You&#039;ll also need to have the Arduino IDE installed, of course. Select &amp;quot;Arduino Uno&amp;quot; as the target hardware type, select the right (virtual) serial port for the Arduino IDE to talk to, and you should be all ready to upload programs.&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=47</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=47"/>
		<updated>2012-01-06T21:17:29Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested and the ATmega8U2 flashed appropriately, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s start assembling the through-hole components on the board. Don&#039;t worry, it&#039;s all pretty easy to assemble.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power bus. &#039;&#039;&#039;Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but &#039;&#039;&#039;the IC socket should be inserted so that the pin-1 indicator notch on the socket corresponds to the silkscreen marking&#039;&#039;&#039;. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll also insert and solder the RGB LED, remembering that &#039;&#039;&#039;the RGB LED must be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking&#039;&#039;&#039;. The four leads of the RGB LED will need to kind of splay out on an angle as you insert the LED onto the board, so it will end up sitting up approximately 5 mm off the board and it will not sit completely flush with the board.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor. &#039;&#039;&#039;The MCP9701 has a TO-92 package which looks identical to the two P2N2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused.&#039;&#039;&#039; We can then also insert and solder the two P2N2222 transistors. &#039;&#039;&#039;Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply firm pressure to press these fully down into place. We will also insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the pair of 2-pin PCB-mounted screw terminal blocks for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ll also insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB. Finally, we&#039;ll also need to unpack the LCD display and we&#039;ll solder a 16-way pin header onto its connection pads, and we&#039;ll also need to insert the AVR microcontroller chip into the IC socket - &#039;&#039;&#039;make sure it&#039;s oriented the correct way.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to use the LCD, you’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable to both the LCD display and the main board, making sure that pin 1 on the Pebble board is connected to pin 1 on the LCD display.&lt;br /&gt;
&lt;br /&gt;
Plug in the USB cable (which we&#039;ve conveniently included for you) into a PC and into the Pebble board, and the blue power LED should light, and the new USB device should be recognized by the OS. If the power LED does not light, you &#039;&#039;&#039;did&#039;&#039;&#039; install the jumper to short out the USB power disconnection header, right?&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the board from the PC. It&#039;s completely compatible with the Arduino Uno, but we re-used the same firmware used on the Freetronics Eleven, so it identifies itself as a Freetronics Eleven.&lt;br /&gt;
&lt;br /&gt;
If your PC is running Windows, you&#039;ll need to [http://www.freetronics.com/pages/installing-the-usb-driver-file-for-windows install the driver] if you&#039;ve never used an Arduino Uno or compatible device on your PC before. If you&#039;re running Linux or Mac OSX etc, then it should just work without any effort.&lt;br /&gt;
&lt;br /&gt;
You&#039;ll also need to have the Arduino IDE installed, of course. Select &amp;quot;Arduino Uno&amp;quot; as the target hardware type, select the right (virtual) serial port for the Arduino IDE to talk to, and you should be all ready to upload programs.&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=46</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=46"/>
		<updated>2012-01-06T21:17:03Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested and the ATmega8U2 flashed appropriately, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s start assembling the through-hole components on the board. Don&#039;t worry, it&#039;s all pretty easy to assemble.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power bus. &#039;&#039;&#039;Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but &#039;&#039;&#039;the IC socket should be inserted so that the pin-1 indicator notch on the socket corresponds to the silkscreen marking&#039;&#039;&#039;. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll also insert and solder the RGB LED, remembering that &#039;&#039;&#039;the RGB LED must be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking&#039;&#039;&#039;. The four leads of the RGB LED will need to kind of splay out on an angle as you insert the LED onto the board, so it will end up sitting up approximately 5 mm off the board and it will not sit completely flush with the board.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor. &#039;&#039;&#039;The MCP9701 has a TO-92 package which looks identical to the two P2N2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused.&#039;&#039;&#039; We can then also insert and solder the two P2N2222 transistors. &#039;&#039;&#039;Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply firm pressure to press these fully down into place. We will also insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the pair of 2-pin PCB-mounted screw terminal blocks for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ll also insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB. Finally, we&#039;ll also need to unpack the LCD display and we&#039;ll solder a 16-way pin header onto its connection pads, and we&#039;ll also need to insert the AVR microcontroller chip into the IC socket - &#039;&#039;&#039;make sure it&#039;s oriented the correct way.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to use the LCD, you’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable to both the LCD display and the main board, making sure that pin 1 on the Pebble board is connected to pin 1 on the LCD display.&lt;br /&gt;
&lt;br /&gt;
Plug in the USB cable (which we&#039;ve conveniently included for you) into a PC and into the Pebble board, and the blue power LED should light, and the new USB device should be recognized by the OS. If the power LED does not light, you &#039;&#039;&#039;did&#039;&#039;&#039; install the jumper to short out the USB power disconnection header, right?&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the board from the PC. It&#039;s completely compatible with the Arduino Uno, but we re-used the same firmware used on the Freetronics Eleven, so it identifies itself as a Freetronics Eleven.&lt;br /&gt;
&lt;br /&gt;
If your PC is running Windows, you&#039;ll need to [http://www.freetronics.com/pages/installing-the-usb-driver-file-for-windows | install the driver] if you&#039;ve never used an Arduino Uno or compatible device on your PC before. If you&#039;re running Linux or Mac OSX etc, then it should just work without any effort.&lt;br /&gt;
&lt;br /&gt;
You&#039;ll also need to have the Arduino IDE installed, of course. Select &amp;quot;Arduino Uno&amp;quot; as the target hardware type, select the right (virtual) serial port for the Arduino IDE to talk to, and you should be all ready to upload programs.&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=45</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=45"/>
		<updated>2012-01-06T21:00:32Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested and the ATmega8U2 flashed appropriately, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s start assembling the through-hole components on the board. Don&#039;t worry, it&#039;s all pretty easy to assemble.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power bus. &#039;&#039;&#039;Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but &#039;&#039;&#039;the IC socket should be inserted so that the pin-1 indicator notch on the socket corresponds to the silkscreen marking&#039;&#039;&#039;. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll also insert and solder the RGB LED, remembering that &#039;&#039;&#039;the RGB LED must be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking&#039;&#039;&#039;. The four leads of the RGB LED will need to kind of splay out on an angle as you insert the LED onto the board, so it will end up sitting up approximately 5 mm off the board and it will not sit completely flush with the board.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor. &#039;&#039;&#039;The MCP9701 has a TO-92 package which looks identical to the two PN2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused.&#039;&#039;&#039; We can then also insert and solder the two P2N2222 transistors. &#039;&#039;&#039;Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply firm pressure to press these fully down into place. We will also insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the pair of 2-pin PCB-mounted screw terminal blocks for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ll also insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB. Finally, we&#039;ll also need to unpack the LCD display and we&#039;ll solder a 16-way pin header onto its connection pads.&lt;br /&gt;
&lt;br /&gt;
We’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable headers to both the LCD display and the main board, making sure that pin 1 on the Pebble board is connected to pin 1 on the LCD display.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Once we’ve actually got the hardware, Luke/Jon/Andy etc. will perform some initial testing, and we’ll write a more simple, streamlined guide for miniconf use.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Insert a 0.1” shorting jumper (a little plastic thing, like the ones on older computer motherboards) onto the USB power header, and plug the Pebble into your computer with a mini-USB cable.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Oh, that’s a good idea. Maybe we can provide mini-USB cables with the boards like Freetronics usually does. Maybe there&#039;s not enough time to get them though. Or at least tell participants to bring one in advance.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At this stage we won’t connect any batteries, and we won’t insert the AVR chip into its socket, and we won’t insert an XBee module, and we won’t connect any kind of shield.&lt;br /&gt;
&lt;br /&gt;
As soon as you have connected the USB power, the power LED on the board should be illuminated and it should stay illuminated at all times. If it does not, then something is wrong. The first thing to check is that the USB power disconnection jumper is actually installed on its pair of pins.&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the ATmega8U2 USB-interface microcontroller from within the computer’s operating system. By default it’s programmed as a USB-to-serial bridge, just like an Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
Try inserting a little piece of wire to connect pin 0 and pin 1 on the Arduino shield header, then opening a serial terminal program* and talking to the serial device. This simply creates a loop-back for the serial port, so you should be able to type in a string and see it echo back.&lt;br /&gt;
&lt;br /&gt;
(* If you don&#039;t really know what you&#039;re doing, just use the serial terminal built into the Arduino IDE.)&lt;br /&gt;
&lt;br /&gt;
Now, if everything is good so far we can insert the ATmega328 microcontroller into its IC socket, &#039;&#039;making sure that it is inserted the right way around&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We should now be able to upload Arduino programs into the microcontroller using the Arduino IDE. Remember to select “Arduino Uno” as the target hardware type, and to select the appropriate serial port device.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=44</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=44"/>
		<updated>2012-01-06T20:59:57Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested and the ATmega8U2 flashed appropriately, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s start assembling the through-hole components on the board. Don&#039;t worry, it&#039;s all pretty easy to assemble.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power bus. &#039;&#039;&#039;Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but &#039;&#039;&#039;the IC socket should be inserted so that the pin-1 indicator notch on the socket corresponds to the silkscreen marking&#039;&#039;&#039;. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll also insert and solder the RGB LED, remembering that &#039;&#039;&#039;the RGB LED must be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking&#039;&#039;&#039;. The four leads of the RGB LED will need to kind of splay out on an angle as you insert the LED onto the board, so it will end up sitting up approximately 5 mm off the board and it will not sit completely flush with the board.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor. &#039;&#039;&#039;The MCP9701 has a TO-92 package which looks identical to the two PN2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused.&#039;&#039;&#039; We can then also insert and solder the two P2N2222 transistors. &#039;&#039;&#039;Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply firm pressure to press these fully down into place. To hold the Arduino shield headers in position during soldering, a convenient way to do it is to attach the headers onto the pins of an Arduino shield device first and then insert the shield into position on the board and solder the leads of the female headers. Now we can insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the pair of 2-pin PCB-mounted screw terminal blocks for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ll also insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB. Finally, we&#039;ll also need to unpack the LCD display and we&#039;ll solder a 16-way pin header onto its connection pads.&lt;br /&gt;
&lt;br /&gt;
We’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable headers to both the LCD display and the main board, making sure that pin 1 on the Pebble board is connected to pin 1 on the LCD display.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Once we’ve actually got the hardware, Luke/Jon/Andy etc. will perform some initial testing, and we’ll write a more simple, streamlined guide for miniconf use.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Insert a 0.1” shorting jumper (a little plastic thing, like the ones on older computer motherboards) onto the USB power header, and plug the Pebble into your computer with a mini-USB cable.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Oh, that’s a good idea. Maybe we can provide mini-USB cables with the boards like Freetronics usually does. Maybe there&#039;s not enough time to get them though. Or at least tell participants to bring one in advance.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At this stage we won’t connect any batteries, and we won’t insert the AVR chip into its socket, and we won’t insert an XBee module, and we won’t connect any kind of shield.&lt;br /&gt;
&lt;br /&gt;
As soon as you have connected the USB power, the power LED on the board should be illuminated and it should stay illuminated at all times. If it does not, then something is wrong. The first thing to check is that the USB power disconnection jumper is actually installed on its pair of pins.&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the ATmega8U2 USB-interface microcontroller from within the computer’s operating system. By default it’s programmed as a USB-to-serial bridge, just like an Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
Try inserting a little piece of wire to connect pin 0 and pin 1 on the Arduino shield header, then opening a serial terminal program* and talking to the serial device. This simply creates a loop-back for the serial port, so you should be able to type in a string and see it echo back.&lt;br /&gt;
&lt;br /&gt;
(* If you don&#039;t really know what you&#039;re doing, just use the serial terminal built into the Arduino IDE.)&lt;br /&gt;
&lt;br /&gt;
Now, if everything is good so far we can insert the ATmega328 microcontroller into its IC socket, &#039;&#039;making sure that it is inserted the right way around&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We should now be able to upload Arduino programs into the microcontroller using the Arduino IDE. Remember to select “Arduino Uno” as the target hardware type, and to select the appropriate serial port device.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=43</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=43"/>
		<updated>2012-01-06T20:59:15Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested and the ATmega8U2 flashed appropriately, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s start assembling the through-hole components on the board. Don&#039;t worry, it&#039;s all pretty easy to assemble.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power bus. &#039;&#039;&#039;Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but &#039;&#039;&#039;the IC socket should be inserted so that the pin-1 indicator notch on the socket corresponds to the silkscreen marking&#039;&#039;&#039;. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll also insert and solder the RGB LED, remembering that &#039;&#039;&#039;the RGB LED must be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking&#039;&#039;&#039;. The four leads of the RGB LED will need to kind of splay out on an angle as you insert the LED onto the board, so it will end up sitting up approximately 5 mm off the board and it will not sit completely flush with the board.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor. &#039;&#039;&#039;The MCP9701 has a TO-92 package which looks identical to the two PN2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused.&#039;&#039;&#039; We can then also insert and solder the two P2N2222 transistors. &#039;&#039;&#039;Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply firm pressure to press these fully down into place. To hold the Arduino shield headers in position during soldering, a convenient way to do it is to attach the headers onto the pins of an Arduino shield device first and then insert the shield into position on the board and solder the leads of the female headers. Now we can insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the 4-pin PCB-mounted screw terminal block for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ll also insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB. Finally, we&#039;ll also need to unpack the LCD display and we&#039;ll solder a 16-way pin header onto its connection pads.&lt;br /&gt;
&lt;br /&gt;
We’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable headers to both the LCD display and the main board, making sure that pin 1 on the Pebble board is connected to pin 1 on the LCD display.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Once we’ve actually got the hardware, Luke/Jon/Andy etc. will perform some initial testing, and we’ll write a more simple, streamlined guide for miniconf use.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Insert a 0.1” shorting jumper (a little plastic thing, like the ones on older computer motherboards) onto the USB power header, and plug the Pebble into your computer with a mini-USB cable.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Oh, that’s a good idea. Maybe we can provide mini-USB cables with the boards like Freetronics usually does. Maybe there&#039;s not enough time to get them though. Or at least tell participants to bring one in advance.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At this stage we won’t connect any batteries, and we won’t insert the AVR chip into its socket, and we won’t insert an XBee module, and we won’t connect any kind of shield.&lt;br /&gt;
&lt;br /&gt;
As soon as you have connected the USB power, the power LED on the board should be illuminated and it should stay illuminated at all times. If it does not, then something is wrong. The first thing to check is that the USB power disconnection jumper is actually installed on its pair of pins.&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the ATmega8U2 USB-interface microcontroller from within the computer’s operating system. By default it’s programmed as a USB-to-serial bridge, just like an Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
Try inserting a little piece of wire to connect pin 0 and pin 1 on the Arduino shield header, then opening a serial terminal program* and talking to the serial device. This simply creates a loop-back for the serial port, so you should be able to type in a string and see it echo back.&lt;br /&gt;
&lt;br /&gt;
(* If you don&#039;t really know what you&#039;re doing, just use the serial terminal built into the Arduino IDE.)&lt;br /&gt;
&lt;br /&gt;
Now, if everything is good so far we can insert the ATmega328 microcontroller into its IC socket, &#039;&#039;making sure that it is inserted the right way around&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We should now be able to upload Arduino programs into the microcontroller using the Arduino IDE. Remember to select “Arduino Uno” as the target hardware type, and to select the appropriate serial port device.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=42</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=42"/>
		<updated>2012-01-06T20:57:20Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested and the ATmega8U2 flashed appropriately, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s start assembling the through-hole components on the board. Don&#039;t worry, it&#039;s all pretty easy to assemble.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power bus. &#039;&#039;&#039;Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but &#039;&#039;&#039;the IC socket should be inserted so that the pin-1 indicator notch on the socket corresponds to the silkscreen marking&#039;&#039;&#039;. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll also insert and solder the RGB LED, remembering that &#039;&#039;&#039;the RGB LED must be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking&#039;&#039;&#039;. The four leads of the RGB LED will need to kind of splay out on an angle as you insert the LED onto the board, so it will end up sitting up approximately 5 mm off the board and it will not sit completely flush with the board.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor. &#039;&#039;&#039;The MCP9701 has a TO-92 package which looks identical to the two PN2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused.&#039;&#039;&#039; We can then also insert and solder the two P2N2222 transistors. &#039;&#039;&#039;Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply pressure to these to press them into place. To hold the Arduino shield headers in position during soldering, a convenient way to do it is to attach the headers onto the pins of an Arduino shield device first and then insert the shield into position on the board and solder the leads of the female headers. Now we can insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the 4-pin PCB-mounted screw terminal block for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ll also insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB. Finally, we&#039;ll also need to unpack the LCD display and we&#039;ll solder a 16-way pin header onto its connection pads.&lt;br /&gt;
&lt;br /&gt;
We’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable headers to both the LCD display and the main board, making sure that pin 1 on the Pebble board is connected to pin 1 on the LCD display.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Once we’ve actually got the hardware, Luke/Jon/Andy etc. will perform some initial testing, and we’ll write a more simple, streamlined guide for miniconf use.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Insert a 0.1” shorting jumper (a little plastic thing, like the ones on older computer motherboards) onto the USB power header, and plug the Pebble into your computer with a mini-USB cable.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Oh, that’s a good idea. Maybe we can provide mini-USB cables with the boards like Freetronics usually does. Maybe there&#039;s not enough time to get them though. Or at least tell participants to bring one in advance.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At this stage we won’t connect any batteries, and we won’t insert the AVR chip into its socket, and we won’t insert an XBee module, and we won’t connect any kind of shield.&lt;br /&gt;
&lt;br /&gt;
As soon as you have connected the USB power, the power LED on the board should be illuminated and it should stay illuminated at all times. If it does not, then something is wrong. The first thing to check is that the USB power disconnection jumper is actually installed on its pair of pins.&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the ATmega8U2 USB-interface microcontroller from within the computer’s operating system. By default it’s programmed as a USB-to-serial bridge, just like an Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
Try inserting a little piece of wire to connect pin 0 and pin 1 on the Arduino shield header, then opening a serial terminal program* and talking to the serial device. This simply creates a loop-back for the serial port, so you should be able to type in a string and see it echo back.&lt;br /&gt;
&lt;br /&gt;
(* If you don&#039;t really know what you&#039;re doing, just use the serial terminal built into the Arduino IDE.)&lt;br /&gt;
&lt;br /&gt;
Now, if everything is good so far we can insert the ATmega328 microcontroller into its IC socket, &#039;&#039;making sure that it is inserted the right way around&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We should now be able to upload Arduino programs into the microcontroller using the Arduino IDE. Remember to select “Arduino Uno” as the target hardware type, and to select the appropriate serial port device.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=41</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=41"/>
		<updated>2012-01-06T20:56:45Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested and the ATmega8U2 flashed appropriately, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader. Now, let&#039;s start assembling the through-hole components on the board.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power bus. &#039;&#039;&#039;Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but &#039;&#039;&#039;the IC socket should be inserted so that the pin-1 indicator notch on the socket corresponds to the silkscreen marking&#039;&#039;&#039;. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll also insert and solder the RGB LED, remembering that &#039;&#039;&#039;the RGB LED must be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking&#039;&#039;&#039;. The four leads of the RGB LED will need to kind of splay out on an angle as you insert the LED onto the board, so it will end up sitting up approximately 5 mm off the board and it will not sit completely flush with the board.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor. &#039;&#039;&#039;The MCP9701 has a TO-92 package which looks identical to the two PN2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused.&#039;&#039;&#039; We can then also insert and solder the two P2N2222 transistors. &#039;&#039;&#039;Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply pressure to these to press them into place. To hold the Arduino shield headers in position during soldering, a convenient way to do it is to attach the headers onto the pins of an Arduino shield device first and then insert the shield into position on the board and solder the leads of the female headers. Now we can insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the 4-pin PCB-mounted screw terminal block for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ll also insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB. Finally, we&#039;ll also need to unpack the LCD display and we&#039;ll solder a 16-way pin header onto its connection pads.&lt;br /&gt;
&lt;br /&gt;
We’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable headers to both the LCD display and the main board, making sure that pin 1 on the Pebble board is connected to pin 1 on the LCD display.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Once we’ve actually got the hardware, Luke/Jon/Andy etc. will perform some initial testing, and we’ll write a more simple, streamlined guide for miniconf use.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Insert a 0.1” shorting jumper (a little plastic thing, like the ones on older computer motherboards) onto the USB power header, and plug the Pebble into your computer with a mini-USB cable.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Oh, that’s a good idea. Maybe we can provide mini-USB cables with the boards like Freetronics usually does. Maybe there&#039;s not enough time to get them though. Or at least tell participants to bring one in advance.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At this stage we won’t connect any batteries, and we won’t insert the AVR chip into its socket, and we won’t insert an XBee module, and we won’t connect any kind of shield.&lt;br /&gt;
&lt;br /&gt;
As soon as you have connected the USB power, the power LED on the board should be illuminated and it should stay illuminated at all times. If it does not, then something is wrong. The first thing to check is that the USB power disconnection jumper is actually installed on its pair of pins.&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the ATmega8U2 USB-interface microcontroller from within the computer’s operating system. By default it’s programmed as a USB-to-serial bridge, just like an Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
Try inserting a little piece of wire to connect pin 0 and pin 1 on the Arduino shield header, then opening a serial terminal program* and talking to the serial device. This simply creates a loop-back for the serial port, so you should be able to type in a string and see it echo back.&lt;br /&gt;
&lt;br /&gt;
(* If you don&#039;t really know what you&#039;re doing, just use the serial terminal built into the Arduino IDE.)&lt;br /&gt;
&lt;br /&gt;
Now, if everything is good so far we can insert the ATmega328 microcontroller into its IC socket, &#039;&#039;making sure that it is inserted the right way around&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We should now be able to upload Arduino programs into the microcontroller using the Arduino IDE. Remember to select “Arduino Uno” as the target hardware type, and to select the appropriate serial port device.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=40</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=40"/>
		<updated>2012-01-05T13:46:42Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader. Now, let&#039;s start assembling the through-hole components on the board.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power bus. &#039;&#039;&#039;Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but &#039;&#039;&#039;the IC socket should be inserted so that the pin-1 indicator notch on the socket corresponds to the silkscreen marking&#039;&#039;&#039;. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll also insert and solder the RGB LED, remembering that &#039;&#039;&#039;the RGB LED must be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking&#039;&#039;&#039;. The four leads of the RGB LED will need to kind of splay out on an angle as you insert the LED onto the board, so it will end up sitting up approximately 5 mm off the board and it will not sit completely flush with the board.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor. &#039;&#039;&#039;The MCP9701 has a TO-92 package which looks identical to the two PN2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused.&#039;&#039;&#039; We can then also insert and solder the two P2N2222 transistors. &#039;&#039;&#039;Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply pressure to these to press them into place. To hold the Arduino shield headers in position during soldering, a convenient way to do it is to attach the headers onto the pins of an Arduino shield device first and then insert the shield into position on the board and solder the leads of the female headers. Now we can insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the 4-pin PCB-mounted screw terminal block for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ll also insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB. Finally, we&#039;ll also need to unpack the LCD display and we&#039;ll solder a 16-way pin header onto its connection pads.&lt;br /&gt;
&lt;br /&gt;
We’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable headers to both the LCD display and the main board, making sure that pin 1 on the Pebble board is connected to pin 1 on the LCD display.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Once we’ve actually got the hardware, Luke/Jon/Andy etc. will perform some initial testing, and we’ll write a more simple, streamlined guide for miniconf use.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Insert a 0.1” shorting jumper (a little plastic thing, like the ones on older computer motherboards) onto the USB power header, and plug the Pebble into your computer with a mini-USB cable.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Oh, that’s a good idea. Maybe we can provide mini-USB cables with the boards like Freetronics usually does. Maybe there&#039;s not enough time to get them though. Or at least tell participants to bring one in advance.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At this stage we won’t connect any batteries, and we won’t insert the AVR chip into its socket, and we won’t insert an XBee module, and we won’t connect any kind of shield.&lt;br /&gt;
&lt;br /&gt;
As soon as you have connected the USB power, the power LED on the board should be illuminated and it should stay illuminated at all times. If it does not, then something is wrong. The first thing to check is that the USB power disconnection jumper is actually installed on its pair of pins.&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the ATmega8U2 USB-interface microcontroller from within the computer’s operating system. By default it’s programmed as a USB-to-serial bridge, just like an Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
Try inserting a little piece of wire to connect pin 0 and pin 1 on the Arduino shield header, then opening a serial terminal program* and talking to the serial device. This simply creates a loop-back for the serial port, so you should be able to type in a string and see it echo back.&lt;br /&gt;
&lt;br /&gt;
(* If you don&#039;t really know what you&#039;re doing, just use the serial terminal built into the Arduino IDE.)&lt;br /&gt;
&lt;br /&gt;
Now, if everything is good so far we can insert the ATmega328 microcontroller into its IC socket, &#039;&#039;making sure that it is inserted the right way around&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We should now be able to upload Arduino programs into the microcontroller using the Arduino IDE. Remember to select “Arduino Uno” as the target hardware type, and to select the appropriate serial port device.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=39</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=39"/>
		<updated>2012-01-05T13:43:29Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader. Now, let&#039;s start assembling the through-hole components on the board.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power bus. &#039;&#039;Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but the IC socket should be inserted so that the indicator notch on the socket corresponds to the silkscreen marking. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll also insert and solder the RGB LED, remembering that the RGB LED &#039;&#039;must&#039;&#039; be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking. The four leads of the RGB LED will need to kind of splay out on an angle as you insert the LED onto the board, so it will end up sitting up approximately 5 mm off the board and it will not sit completely flush with the board.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor - &#039;&#039;the MCP9701 has a TO-92 package which looks identical to the two PN2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused. We can then also insert and solder the two P2N2222 transistors. Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply pressure to these to press them into place. To hold the Arduino shield headers in position during soldering, a convenient way to do it is to attach the headers onto the pins of an Arduino shield device first and then insert the shield into position on the board and solder the leads of the female headers. Now we can insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the 4-pin PCB-mounted screw terminal block for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ll also insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB. Finally, we&#039;ll also need to unpack the LCD display and we&#039;ll solder a 16-way pin header onto its connection pads.&lt;br /&gt;
&lt;br /&gt;
We’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable headers to both the LCD display and the main board, making sure that pin 1 on the Pebble board is connected to pin 1 on the LCD display.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Once we’ve actually got the hardware, Luke/Jon/Andy etc. will perform some initial testing, and we’ll write a more simple, streamlined guide for miniconf use.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Insert a 0.1” shorting jumper (a little plastic thing, like the ones on older computer motherboards) onto the USB power header, and plug the Pebble into your computer with a mini-USB cable.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Oh, that’s a good idea. Maybe we can provide mini-USB cables with the boards like Freetronics usually does. Maybe there&#039;s not enough time to get them though. Or at least tell participants to bring one in advance.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At this stage we won’t connect any batteries, and we won’t insert the AVR chip into its socket, and we won’t insert an XBee module, and we won’t connect any kind of shield.&lt;br /&gt;
&lt;br /&gt;
As soon as you have connected the USB power, the power LED on the board should be illuminated and it should stay illuminated at all times. If it does not, then something is wrong. The first thing to check is that the USB power disconnection jumper is actually installed on its pair of pins.&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the ATmega8U2 USB-interface microcontroller from within the computer’s operating system. By default it’s programmed as a USB-to-serial bridge, just like an Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
Try inserting a little piece of wire to connect pin 0 and pin 1 on the Arduino shield header, then opening a serial terminal program* and talking to the serial device. This simply creates a loop-back for the serial port, so you should be able to type in a string and see it echo back.&lt;br /&gt;
&lt;br /&gt;
(* If you don&#039;t really know what you&#039;re doing, just use the serial terminal built into the Arduino IDE.)&lt;br /&gt;
&lt;br /&gt;
Now, if everything is good so far we can insert the ATmega328 microcontroller into its IC socket, &#039;&#039;making sure that it is inserted the right way around&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We should now be able to upload Arduino programs into the microcontroller using the Arduino IDE. Remember to select “Arduino Uno” as the target hardware type, and to select the appropriate serial port device.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=38</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=38"/>
		<updated>2012-01-05T13:43:08Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader. Now, let&#039;s start assembling the through-hole components on the board.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power bus. Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but the IC socket should be inserted so that the indicator notch on the socket corresponds to the silkscreen marking. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll also insert and solder the RGB LED, remembering that the RGB LED &#039;&#039;must&#039;&#039; be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking. The four leads of the RGB LED will need to kind of splay out on an angle as you insert the LED onto the board, so it will end up sitting up approximately 5 mm off the board and it will not sit completely flush with the board.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor - &#039;&#039;the MCP9701 has a TO-92 package which looks identical to the two PN2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused. We can then also insert and solder the two P2N2222 transistors. Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply pressure to these to press them into place. To hold the Arduino shield headers in position during soldering, a convenient way to do it is to attach the headers onto the pins of an Arduino shield device first and then insert the shield into position on the board and solder the leads of the female headers. Now we can insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the 4-pin PCB-mounted screw terminal block for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ll also insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB. Finally, we&#039;ll also need to unpack the LCD display and we&#039;ll solder a 16-way pin header onto its connection pads.&lt;br /&gt;
&lt;br /&gt;
We’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable headers to both the LCD display and the main board, making sure that pin 1 on the Pebble board is connected to pin 1 on the LCD display.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Once we’ve actually got the hardware, Luke/Jon/Andy etc. will perform some initial testing, and we’ll write a more simple, streamlined guide for miniconf use.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Insert a 0.1” shorting jumper (a little plastic thing, like the ones on older computer motherboards) onto the USB power header, and plug the Pebble into your computer with a mini-USB cable.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Oh, that’s a good idea. Maybe we can provide mini-USB cables with the boards like Freetronics usually does. Maybe there&#039;s not enough time to get them though. Or at least tell participants to bring one in advance.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At this stage we won’t connect any batteries, and we won’t insert the AVR chip into its socket, and we won’t insert an XBee module, and we won’t connect any kind of shield.&lt;br /&gt;
&lt;br /&gt;
As soon as you have connected the USB power, the power LED on the board should be illuminated and it should stay illuminated at all times. If it does not, then something is wrong. The first thing to check is that the USB power disconnection jumper is actually installed on its pair of pins.&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the ATmega8U2 USB-interface microcontroller from within the computer’s operating system. By default it’s programmed as a USB-to-serial bridge, just like an Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
Try inserting a little piece of wire to connect pin 0 and pin 1 on the Arduino shield header, then opening a serial terminal program* and talking to the serial device. This simply creates a loop-back for the serial port, so you should be able to type in a string and see it echo back.&lt;br /&gt;
&lt;br /&gt;
(* If you don&#039;t really know what you&#039;re doing, just use the serial terminal built into the Arduino IDE.)&lt;br /&gt;
&lt;br /&gt;
Now, if everything is good so far we can insert the ATmega328 microcontroller into its IC socket, &#039;&#039;making sure that it is inserted the right way around&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We should now be able to upload Arduino programs into the microcontroller using the Arduino IDE. Remember to select “Arduino Uno” as the target hardware type, and to select the appropriate serial port device.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=37</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=37"/>
		<updated>2012-01-05T13:36:23Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader. Now, let&#039;s start assembling the through-hole components on the board.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power bus. Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but the IC socket should be inserted so that the indicator notch on the socket corresponds to the silkscreen marking. We&#039;ll also insert and solder the RGB LED, remembering that the RGB LED &#039;&#039;must&#039;&#039; be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
Now we will insert and solder the MCP9701 temperature sensor - &#039;&#039;the MCP9701 has a TO-92 package which looks identical to the two PN2222 transistors, so make sure you read the markings printed on them and you don&#039;t get them confused. We can then also insert and solder the two P2N2222 transistors. Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&lt;br /&gt;
&lt;br /&gt;
We will now insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB.&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply pressure to these to press them into place. To hold the Arduino shield headers in position during soldering, a convenient way to do it is to attach the headers onto the pins of an Arduino shield device first and then insert the shield into position on the board and solder the leads of the female headers. Now we can insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the 4-pin PCB-mounted screw terminal block for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Finally, we’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable headers to both the LCD display and the main board, making sure that pin 1 on the Pebble board is connected to pin 1 on the LCD display.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Once we’ve actually got the hardware, Luke/Jon/Andy etc. will perform some initial testing, and we’ll write a more simple, streamlined guide for miniconf use.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Insert a 0.1” shorting jumper (a little plastic thing, like the ones on older computer motherboards) onto the USB power header, and plug the Pebble into your computer with a mini-USB cable.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Oh, that’s a good idea. Maybe we can provide mini-USB cables with the boards like Freetronics usually does. Maybe there&#039;s not enough time to get them though. Or at least tell participants to bring one in advance.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At this stage we won’t connect any batteries, and we won’t insert the AVR chip into its socket, and we won’t insert an XBee module, and we won’t connect any kind of shield.&lt;br /&gt;
&lt;br /&gt;
As soon as you have connected the USB power, the power LED on the board should be illuminated and it should stay illuminated at all times. If it does not, then something is wrong. The first thing to check is that the USB power disconnection jumper is actually installed on its pair of pins.&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the ATmega8U2 USB-interface microcontroller from within the computer’s operating system. By default it’s programmed as a USB-to-serial bridge, just like an Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
Try inserting a little piece of wire to connect pin 0 and pin 1 on the Arduino shield header, then opening a serial terminal program* and talking to the serial device. This simply creates a loop-back for the serial port, so you should be able to type in a string and see it echo back.&lt;br /&gt;
&lt;br /&gt;
(* If you don&#039;t really know what you&#039;re doing, just use the serial terminal built into the Arduino IDE.)&lt;br /&gt;
&lt;br /&gt;
Now, if everything is good so far we can insert the ATmega328 microcontroller into its IC socket, &#039;&#039;making sure that it is inserted the right way around&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We should now be able to upload Arduino programs into the microcontroller using the Arduino IDE. Remember to select “Arduino Uno” as the target hardware type, and to select the appropriate serial port device.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=36</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=36"/>
		<updated>2012-01-05T13:33:36Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (Mk. 2) kit. In your kit, all the SMD components are pre-soldered on the board, the ATmega8U2 USB-to-serial circuit on the board has been pre-tested, and the ATmega328 microcontroller has been pre-flashed with an appropriate Arduino Uno compatible bootloader. Now, let&#039;s start assembling the through-hole components on the board.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted into the terminals face out towards the outside edge of the board. Next, we will also insert and solder the two 220 uF electrolytic capacitors in the upper left of the board, along with the 10 uH inductor and the 2-pin header which is used to connect or disconnect the USB power bus. Remember that the two electrolytic capacitors are polarized and they must be inserted with the correct orientation.&lt;br /&gt;
&lt;br /&gt;
The inductor is the relatively large black cylinder with two wires and with no markings, and it is not polarized. The two-pin header can sometimes require a bit of firm pressure to fit it into its holes on the PCB. We will also fit the shorting jumper onto the two-pin header at this stage.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but the IC socket should be inserted so that the indicator notch on the socket corresponds to the silkscreen marking. We&#039;ll also insert and solder the RGB LED, remembering that the RGB LED &#039;&#039;must&#039;&#039; be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking. We&#039;ll also insert and solder the trimpot which is used to adjust the LCD display contrast.&lt;br /&gt;
&lt;br /&gt;
Now we can insert and solder the MCP9701 temperature sensor - &#039;&#039;make sure that you don&#039;t get the MCP9701 confused with the two similar-looking P2N2222 transistors&#039;&#039;. We can then also insert and solder the two P2N2222 transistors. Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&lt;br /&gt;
&lt;br /&gt;
We can now insert and solder the rotary encoder. It should just &amp;quot;snap&amp;quot; into place on the board as its mechanical mounting tabs are inserted into the PCB.&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the two 6-pin ISP programming headers, and we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;. The 6-pin ISP programming headers make a very snug fit into their holes on the PCB, and you may want to use some sort of tool (I use the end of the handle of a screwdriver) to apply pressure to these to press them into place. To hold the Arduino shield headers in position during soldering, a convenient way to do it is to attach the headers onto the pins of an Arduino shield device first and then insert the shield into position on the board and solder the leads of the female headers. Now we can insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the 4-pin PCB-mounted screw terminal block for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets in if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
Finally, we’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable headers to both the LCD display and the main board, making sure that pin 1 on the Pebble board is connected to pin 1 on the LCD display.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Once we’ve actually got the hardware, Luke/Jon/Andy etc. will perform some initial testing, and we’ll write a more simple, streamlined guide for miniconf use.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Insert a 0.1” shorting jumper (a little plastic thing, like the ones on older computer motherboards) onto the USB power header, and plug the Pebble into your computer with a mini-USB cable.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Oh, that’s a good idea. Maybe we can provide mini-USB cables with the boards like Freetronics usually does. Maybe there&#039;s not enough time to get them though. Or at least tell participants to bring one in advance.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At this stage we won’t connect any batteries, and we won’t insert the AVR chip into its socket, and we won’t insert an XBee module, and we won’t connect any kind of shield.&lt;br /&gt;
&lt;br /&gt;
As soon as you have connected the USB power, the power LED on the board should be illuminated and it should stay illuminated at all times. If it does not, then something is wrong. The first thing to check is that the USB power disconnection jumper is actually installed on its pair of pins.&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the ATmega8U2 USB-interface microcontroller from within the computer’s operating system. By default it’s programmed as a USB-to-serial bridge, just like an Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
Try inserting a little piece of wire to connect pin 0 and pin 1 on the Arduino shield header, then opening a serial terminal program* and talking to the serial device. This simply creates a loop-back for the serial port, so you should be able to type in a string and see it echo back.&lt;br /&gt;
&lt;br /&gt;
(* If you don&#039;t really know what you&#039;re doing, just use the serial terminal built into the Arduino IDE.)&lt;br /&gt;
&lt;br /&gt;
Now, if everything is good so far we can insert the ATmega328 microcontroller into its IC socket, &#039;&#039;making sure that it is inserted the right way around&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We should now be able to upload Arduino programs into the microcontroller using the Arduino IDE. Remember to select “Arduino Uno” as the target hardware type, and to select the appropriate serial port device.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=18</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=18"/>
		<updated>2011-12-21T10:18:14Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;Getting Started&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a basic guide to assembling a Pebble (v2.0) kit.&lt;br /&gt;
&lt;br /&gt;
This guide assumes that you have a kit with all the SMD components pre-assembled on your board. Your kit should come with the ATmega8U2 IC and its associated SMD components pre-assembled on the board and the through-hole 16 MHz crystal next to it pre-soldered on the board, with the ATmega8U2 pre-flashed with its appropriate firmware and the USB interface pre-tested. You should also be supplied with an DIP ATmega328 microcontroller that is pre-flashed with an Arduino Uno compatible bootloader.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s start assembling some of the through-hole components on the board.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kit Assembly (only the through-hole components)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection, in the upper left of the board. Make sure that the holes where the wires are inserted face out towards the outside edge of the board. Next, we will insert and solder the two-pin header which is used to connect or disconnect the USB power bus. We will also insert and solder the inductor - the inductor is a black cylinder with two wires, and it is not polarized. Next, let&#039;s insert and solder the two 220 uF electrolytic capacitors - remember that these capacitors are polarized and they must be installed with the correct polarity as marked on the board.&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the 6-pin ISP programming header (which may be optional if in-circuit programming is not required) and we will insert and solder the trimpot which sets the LCD contrast.&lt;br /&gt;
&lt;br /&gt;
Next, we will also insert and solder the 16-pin header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but the IC socket should be inserted so that the indicator notch on the socket corresponds to the silkscreen marking. We&#039;ll also insert and solder the RGB LED, remembering that the RGB LED &#039;&#039;must&#039;&#039; be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking.&lt;br /&gt;
&lt;br /&gt;
Now we can insert and solder the MCP9701 temperature sensor - &#039;&#039;make sure that you don&#039;t get the MCP9701 confused with the two similar-looking P2N2222 transistors&#039;&#039;. We can then also insert and solder the two P2N2222 transistors. Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&lt;br /&gt;
&lt;br /&gt;
Now we can insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the 4-pin PCB-mounted screw terminal block for the two general-purpose open-collector transistor outputs.&lt;br /&gt;
&lt;br /&gt;
It can be easier to hold the XBee header sockets straight and in position if you have an XBee module handy, by inserting the sockets onto the pins of the XBee module first and then inserting this assembly into the holes on the board. If you have a spare Arduino shield, a similar procedure can also be used to hold the Arduino shield header sockets straight.&lt;br /&gt;
&lt;br /&gt;
We can now insert and solder the rotary encoder. Finally, we’ll need to attach the LCD display. This is done by making sure that your LCD display has a 16-pin header soldered onto it, and connecting the 16-wire ribbon cable headers to both the LCD display and the main board, making sure that pin 1 on the Pebble board is connected to pin 1 on the LCD display.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Once we’ve actually got the hardware, Luke/Jon/Andy etc. will perform some initial testing, and we’ll write a more simple, streamlined guide for miniconf use.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Insert a 0.1” shorting jumper (a little plastic thing, like the ones on older computer motherboards) onto the USB power header, and plug the Pebble into your computer with a mini-USB cable.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Oh, that’s a good idea. Maybe we can provide mini-USB cables with the boards like Freetronics usually does. Maybe there&#039;s not enough time to get them though. Or at least tell participants to bring one in advance.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At this stage we won’t connect any batteries, and we won’t insert the AVR chip into its socket, and we won’t insert an XBee module, and we won’t connect any kind of shield.&lt;br /&gt;
&lt;br /&gt;
As soon as you have connected the USB power, the power LED on the board should be illuminated and it should stay illuminated at all times. If it does not, then something is wrong. The first thing to check is that the USB power disconnection jumper is actually installed on its pair of pins.&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the ATmega8U2 USB-interface microcontroller from within the computer’s operating system. By default it’s programmed as a USB-to-serial bridge, just like an Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
Try inserting a little piece of wire to connect pin 0 and pin 1 on the Arduino shield header, then opening a serial terminal program* and talking to the serial device. This simply creates a loop-back for the serial port, so you should be able to type in a string and see it echo back.&lt;br /&gt;
&lt;br /&gt;
(* If you don&#039;t really know what you&#039;re doing, just use the serial terminal built into the Arduino IDE.)&lt;br /&gt;
&lt;br /&gt;
Now, if everything is good so far we can insert the ATmega328 microcontroller into its IC socket, &#039;&#039;making sure that it is inserted the right way around&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We should now be able to upload Arduino programs into the microcontroller using the Arduino IDE. Remember to select “Arduino Uno” as the target hardware type, and to select the appropriate serial port device.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Arduino Uno compatible, with ATmega328 and ATmega8U2 carrying the appropriate bootloaders&lt;br /&gt;
&lt;br /&gt;
- Boost-converter power supply for portable battery operation at voltages between 2.4-5.0 volts.&lt;br /&gt;
&lt;br /&gt;
- RGB LED with each of the 3 dies independently programmable, including PWM capability&lt;br /&gt;
&lt;br /&gt;
- Standard HD44780 20x4 alphanumeric LCD display&lt;br /&gt;
&lt;br /&gt;
- Support for a low cost Nintendo DS style resistive touchscreen&lt;br /&gt;
&lt;br /&gt;
- Support for an XBee digital radio modem or any other &amp;quot;Bee&amp;quot;-compatible module that operates at 3.3V and talks to a serial UART.&lt;br /&gt;
&lt;br /&gt;
- Two general-purpose open-collector low-side-switching output transistors for controlling external devices such as relays or small speakers&lt;br /&gt;
&lt;br /&gt;
- Rotary encoder for user input&lt;br /&gt;
&lt;br /&gt;
- Temperature sensor (MCP9701) and light sensor (TEMT6000)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Battery power&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Example battery holder, I need to nick a picture of one and insert it: http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Semi-permanent solder jumpers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SJ1 is normally closed, this is for automatic reset of the AVR, controlled by the USB UART interface, during programming. Cut it to disable auto-reset.&lt;br /&gt;
SJ2 connects the USB shield to ground. This is normally closed and should never normally need to be opened.&lt;br /&gt;
SJ3 is normally open. This is for the bootloader programming of the ATmega16U2 and should never need to be closed.&lt;br /&gt;
SJ4 is normally closed, and this connects the high side of the two low-side-switching open collector output transistors to +5V. Disconnect it if you want to use an external higher-voltage power supply for these circuits.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
	<entry>
		<id>http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=16</id>
		<title>Pebble V2.0 Instructions</title>
		<link rel="alternate" type="text/html" href="http://www.openhardwareconf.org/index.php?title=Pebble_V2.0_Instructions&amp;diff=16"/>
		<updated>2011-12-20T12:05:25Z</updated>

		<summary type="html">&lt;p&gt;LukeWeston: Created page with &amp;quot; // This is very rough, I need to work on it some more but it&amp;#039;s a draft to get started.  This guide assumes that you already have all the SMD components pre-assembled on your ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
// This is very rough, I need to work on it some more but it&#039;s a draft to get started.&lt;br /&gt;
&lt;br /&gt;
This guide assumes that you already have all the SMD components pre-assembled on your board. Check that this is the case; if there are some SMD components that are missing or not &lt;br /&gt;
assembled already then you should check this with Luke or Jon.&lt;br /&gt;
&lt;br /&gt;
Your kit should come with the SMD ATmega8U2 pre-assembled on the board and the through-hole 16 MHz crystal next to it pre-soldered on the board, with the ATmega8U2 pre-flashed with its appropriate firmware and the USB ATmega8U2 circuit pre-tested. You should also be supplied with an ATmega328 DIP chip that is pre-flashed with an Arduino Uno compatible bootloader.&lt;br /&gt;
&lt;br /&gt;
Check the status of the semi-permanent solder-jumper links - SJ1 (reset), SJ2 (USB ground) and SJ4 (+5V low-side drives) should be closed by default, whilst SJ3 (boot) should be open.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s start assembling some of the through-hole components on the board.&lt;br /&gt;
&lt;br /&gt;
We will start by installing the 2-pin screw terminal block for the battery connection. Make sure that the holes where the wires are inserted face out towards the outside edge of the board.&lt;br /&gt;
&lt;br /&gt;
Now, we will insert and solder the two-pin header which is used to connect or disconnect the USB power bus. We will also insert and solder the inductor - the inductor is a black cylinder with two wires, and it is not polarized.&lt;br /&gt;
&lt;br /&gt;
Next, let&#039;s insert and solder the two 220 uF electrolytic capacitors - remember that these capacitors are polarized and they must be oriented with the correct polarity as&lt;br /&gt;
marked on the board.&lt;br /&gt;
&lt;br /&gt;
Next we will insert and solder the 6-pin ISP programming header (which may be optional if in-circuit programming is not required) and we will insert and solder the trimpot which sets the LCD contrast. Make sure that the side of the trimpot where you actually rotate it is facing towards the outside edge of the board.&lt;br /&gt;
&lt;br /&gt;
Next, we will also insert and solder the 16-pin female header strip which connects to the LCD display. We will then also insert and solder the pair of 8-pin female header strips and the pair of 6-pin female header strips that are used to mate with Arduino &amp;quot;shields&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
We&#039;ll now also insert and solder the 28-pin DIP socket for the AVR microcontroller, and the 16 MHz crystal for the AVR. The crystal is not polarized, but the IC socket should be inserted so that the indicator notch on the socket corresponds to the silkscreen marking. We&#039;ll also insert and solder the RGB LED, remembering that the RGB LED must be inserted the correct way, with the flat side of the LED corresponding to the silkscreen marking.&lt;br /&gt;
&lt;br /&gt;
Now we can insert and solder the MCP9701 temperature sensor - make sure that you don&#039;t get the MCP9701 confused with the two similar-looking P2N2222 transistors. We can then also insert and solder the two P2N2222 transistors. Remember that the transistors and the temperature sensor must all be inserted the right way around, as marked on the silkscreen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we can insert and solder the two 2.0 mm 10-pin female header sockets for the (optional) XBee module, as well as the 4-pin PCB-mounted screw terminal block for the two general-purpose low-side transistor outputs.&lt;br /&gt;
&lt;br /&gt;
We can now insert and solder the rotary encoder. Finally, we’ll need to attach the LCD display. The easiest way to do this is probably to insert the 16-pin pin header strip into the 16-pin female header on the board, and insert the LCD module with the other end of the pin headers passing through the holes on the LCD.&lt;br /&gt;
&lt;br /&gt;
Make sure that the LCD is in the correct orientation and that pin 1 on the LCD display corresponds to pin 1 on the board, and then solder the pin header onto the LCD module’s pads.&lt;br /&gt;
&lt;br /&gt;
For future use, if the position of the LCD is not convenient, you might wish to construct a cable to move it away from the board.&lt;br /&gt;
&lt;br /&gt;
Now, we’re ready for some testing.&lt;br /&gt;
&lt;br /&gt;
Testing&lt;br /&gt;
&lt;br /&gt;
Note: Once we’ve actually got the hardware, Luke/Jon/Andy etc. will perform some initial testing, and we’ll write a more simple, streamlined guide for miniconf use.&lt;br /&gt;
&lt;br /&gt;
Insert a 0.1” shorting jumper (a little plastic thing, like the ones on older computer motherboards) onto the USB power header, and plug the Pebble into your computer with a mini-USB cable.&lt;br /&gt;
&lt;br /&gt;
(Yes, jumper shunts were included on the BOM.)&lt;br /&gt;
&lt;br /&gt;
Note: Oh, that’s a good idea. Maybe we can provide mini-USB cables with the boards like Freetronics usually does.&lt;br /&gt;
&lt;br /&gt;
At this stage we won’t connect any batteries, and we won’t insert the AVR chip into its socket, and we won’t insert an XBee module, and we won’t connect any kind of shield.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As soon as you have connected the USB power, the power LED on the board should be illuminated and it should stay illuminated at all times. If it does not, then something is wrong. The first thing to check is that the USB power disconnection jumper is actually installed on its pair of pins.&lt;br /&gt;
&lt;br /&gt;
At this stage, you should be able to talk to the ATmega8U2 USB-interface microcontroller from within the computer’s operating system. By default it’s programmed as a USB-to-serial bridge, just like an Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
Try inserting a little piece of wire to connect pin 0 and pin 1 on the Arduino shield header, then opening a terminal program and talking to the serial device. This simply creates a loop-back for the serial port, so you should be able to type in a string and see it echo back.&lt;br /&gt;
&lt;br /&gt;
Now, if everything is good so far we can insert the ATmega328 microcontroller into its IC socket, making sure that it is inserted the right way around.&lt;br /&gt;
&lt;br /&gt;
We should now be able to upload Arduino programs into the microcontroller using the Arduino IDE. Remember to select “Arduino Uno” as the target hardware type, and to select the appropriate serial device.&lt;br /&gt;
&lt;br /&gt;
Batteries:&lt;br /&gt;
&lt;br /&gt;
Now, if you want to use portable power without just being limited to USB use, let’s look at power options.&lt;br /&gt;
&lt;br /&gt;
If you want to use a mains plugpack as the power supply, the kind of plugpack that provides a 5.0 V output onto a standard USB socket is a good choice.&lt;br /&gt;
&lt;br /&gt;
The battery voltage input must be within the range of about 2.4 - 4.5 V for correct operation. Thou shall not ever exceed 5 volts, into either of the power supply inputs, on this device.&lt;br /&gt;
&lt;br /&gt;
You can use two standard alkaline or NiCd or NiMH cells in series, for a voltage supply of 3.0 V (or 2.4 V if you’re using 1.2 V NiMH cells), or you can use 3.6-4.5 V from a set of three cells in series. The latter will provide an improvement in battery life. The 2.4 V you will get from two NiMH cells is OK, but it is towards the lower end of the operational voltage window.&lt;br /&gt;
&lt;br /&gt;
You can use common “AA” or “AAA” cells, however the larger types such as “C” or “D” cells will provide greater charge capacity and a greater runtime. You could also use a 3.7 V lithium-polymer cell, where a small, lightweight battery with high energy density is desired.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is no battery charging electronics built into the device - to recharge your batteries they must be disconnected and recharged externally.&lt;br /&gt;
&lt;br /&gt;
A 2 x AA battery holder like the one pictured should be included in your kit. To use it, you’ll need to disconnect the USB power supply jumper (this does not affect USB programming and communications with the USB cable connected) and connect the wires from the battery holder to the battery connection terminals on the board.&lt;br /&gt;
&lt;br /&gt;
Example battery holder, I need to nick a picture of one and insert it:&lt;br /&gt;
http://search.digikey.com/us/en/products/BC2AAW/BC2AAW-ND/2190080&lt;br /&gt;
&lt;br /&gt;
If you were using a different battery configuration, as per the examples and requirements above, you may wish to swap this over for a different kind of battery holder.&lt;br /&gt;
&lt;br /&gt;
Make sure that the positive and negative wires from the battery holder are connected to the terminal block on the board with the correct polarity, as marked on the silkscreen, and ensure that charged batteries are inserted into the battery holder with the correct polarity.&lt;br /&gt;
&lt;br /&gt;
With the batteries installed and wired up, you should then be able to turn on the power switch on the board, and the power LED should light up. (The on-board power switch has no effect if USB power is connected.) If you’re using a battery holder which has a built-in power switch then this power switch must also be turned on.&lt;br /&gt;
&lt;br /&gt;
If you’re using battery power at the same time that you have the USB power jumper connected and USB plugged in, this should be OK and it should function normally with no weird issues or damage. However, I need to perform testing to double-check this once the production hardware arrives... until then, if in doubt leave the USB power jumper disconnected when battery power is connected.&lt;/div&gt;</summary>
		<author><name>LukeWeston</name></author>
	</entry>
</feed>