U-Do-It-Duino

From My WIki
Jump to: navigation, search

This page is still under construction.



Parts List
Atmega 328-PU
Chip socket
6 pin mail right angle header
C1,C4,C6, ceramic capacitors
C8,C5, tantalum capacitor
16 MHz resonator
resistor array A103J
D1, 3 mm LED blue
D2, 3 mm LED
D4, 3 mm LED
D5, 3 mm LED
D3, D6, diode
6mm pushbutton
SW2, DPDT slide switch
DPDT slide switch
DC barrel Jack
U1, voltage regulator
Q1, transistor
PV1, potentiometer
R1, resistor 1k
R2, resistor 220
Grove connector, straight
6x2 mail header
10p female header
2x 8p female header
2x 6p female header

Tools
Computer to program your U-Do-It-Duino
Iron
knife (to cut the solder jumper)


Drivers for the Silicon Laboratories SINGLE-CHIP USB TO UART BRIDGE
https://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx

Data Sheet
https://www.silabs.com/Support%20Documents/TechnicalDocs/CP2102-9.pdf
Most of the moduals have the CP2102 chip.


U-Do-it-(3).JPG
Solder Your First Part
Resistor (R2)
R2-220ohm.png
R2-220ohm-c.png

U-Do-it-(5).JPG
Bend it

U-Do-it-(6).jpg
Place it

U-Do-it-(7).jpg
With resistors you do not need to worry about what direction it is placed in to the board.

U-Do-it-(8).JPG
You can ben the wires to help hold the component in place.

U-Do-it-(9).jpg
Now it's time to solder.

U-Do-it-(10).jpg

U-Do-it-(11).jpg
Take a moment to atmire your handiwork.

U-Do-it-(12).jpg
Give your board a trim.

U-Do-it-(13).jpg

U-Do-it-(13)2.png
It should look some thing like this

Time for (R1)
R1-1kohm.png
R1-1kohm-c.png

U-Do-it-add-R1.png
Here is where you put it. ( Note that this is an update. The rest of the pictures will not have this exact resistor ).

U-Do-it-(16)-001.png
Time for the DIP (Dual in-line package). Notes that there is a little notch on the end.

U-Do-it-(16)-002.png
You need to match the notch in the socket with the marking on the printed circuit bard.
U-Do-it-(16)-003.png
I recommend soldering just 2 corners first.

U-Do-it-(20).JPG
Then push the socket down and reheat the solder on the two spots. This way you can get the socket to sit snugly against the circuit board.

U-Do-it-(21).JPG
Now you're ready to solder all of them.

U-Do-it-(22).jpg
Next place in the six pin right angle header at the edge of the board.

U-Do-it-(22)-005.png
These thick pins are very good at transferring heat, so you can save your table from getting burned by placing a coin underneath. Be careful not to heed them for too long, or the black plastic will melt. For this component you only need to solder one pin first.

U-Do-it-(25).jpg
Again reheat the solder while pushing the right angle header into place. You can use your coin to prevent from burning your fingers.

U-Do-it-(26).jpg

U-Do-it-(27).JPG
Once you're happy with its placement, solder the rest of of them. For these photos we were using a glass table, that's why there is no coin in this picture. haha

U-Do-it-(28)-007.png
Now let's try the little ceramic capacitors. As you can see there are three of them. These components are also unaffected by what direction you place them in. C1 is used as part of the communication circuit between the microprocessor and the serial line. C2 is used to smooth out the power that comes from the barrel Jack. C4 is to smooth out the USB power.

U-Do-it-(29).JPG
This big fat component is called a resonator. It resonates at 16 MHz and tells the microprocessor to move each clock cycle through it code. "This component is like really important."

U-Do-it-(30).jpg
Now let's place the most expensive component on the board. The microprocessor is a Atmega328 by Atmel. It is very important that you place it in, in the right direction. Make sure that the notch in the microprocessor lines up with the notch in the socket.

U-Do-it-(30)-008.png

U-Do-it-(30)-010.png
There should be three markings altogether one end.

U-Do-it-(32).JPG
It takes a significant amount of pressure to push the chip into the socket.

U-Do-it-(33).JPG
The microprocessor now has everything it needs to start communicating by serial to your computer. Make sure you did not put the cable in backwards. The grounds should go to the grounds and so on.

U-Do-it-(35).jpg
These are electrolytic capacitors. They have much more capacity than the small ceramic capacitors. The small ceramic capacitors can respond quickly to higher frequency ripple in the power. These larger electrolytic capacitors can dampen out bigger slower changes in power.
Electrolytic capacitors need to be placed in the circuit board with the right direction. The longer lead goes in the whole marked with the plus sign (+).

U-Do-it-(35)-010.png
The negative side is also marked (-). It is marked by the big white stripe with the negative signs on it.
This is the location for C3.

U-Do-it-(36).jpg
This is the location for C5.

U-Do-it-(36)-011.png
Here the + is a little messed up, but you can still see it.

U-Do-it-(38)-012.png
Once the electrolytic capacitors are in place the only way to check their polarity ( direction ) is by the white stripe that represents the negative side of the capacitor.

U-Do-it-(38)-013.JPG
Now it's time to place the resistor array.

U-Do-it-(39).jpg
This resistor array contains all of the resistors used for the reset button "pull up" and the four neighboring LEDs. We will talk about the "pull up" later when we talk about the reset button.

U-Do-it-(39)-013.png
It is important that the diamond is placed at the same end as the solder pad with the square around it.

U-Do-it-(41).jpg
43


U-Do-it-(41)-014.png
44

U-Do-it-(42).jpg
45

U-Do-it-(43).JPG
46

U-Do-it-(44).jpg
47

U-Do-it-(45)-015.png
48

U-Do-it-(46).jpg
49

U-Do-it-(46)-016.png
50

U-Do-it-(47)-017.png
52

U-Do-it-(48).jpg
53

U-Do-it-(49).jpg
54

U-Do-it-(49)-018.png
55

U-Do-it-(50).jpg
56

U-Do-it-(51).jpg
57

U-Do-it-(52).jpg
58

U-Do-it-(52)-019.png
59

U-Do-it-(53).JPG
60

U-Do-it-(54).JPG
61

U-Do-it-(55).JPG
62

U-Do-it-(56).JPG
63

U-Do-it-(57).JPG
64

U-Do-it-(58).JPG
65

U-Do-it-(59).JPG
66

U-Do-it-(59)-1.jpg
166

U-Do-it-(59)-020.png
67

U-Do-it-(60).JPG
68

U-Do-it-(61).JPG
69

U-Do-it-(62).jpg
70

U-Do-it-(63).jpg
71

U-Do-it-(64).jpg
72

U-Do-it-(65).jpg
73

U-Do-it-(66).JPG
74

U-Do-it-(67).jpg
75

U-Do-it-(68).jpg
76

U-Do-it-(69).JPG
77

U-Do-it-(70).JPG
78

U-Do-it-(71).JPG
79

U-Do-it-(71)-2.JPG
80

U-Do-it-(72).JPG
81

U-Do-it-(73).JPG
82

U-Do-it-(73)-2.JPG
83








Install The Microcontroller
Install The USB Drivers
Test Your Microcontroller
Install The Indicator LEDs
Test The Indicator LEDs
Install The Transistor
Test The Transistor
Install The Voltage Regulator
Test The Voltage Regulator

Install The Capacitors
Install The Reset Button
Install The Connectors

Install The Potentiometer
Test The Potentiometer


Parts List
Atmega 328-PU
Chip socket
6 pin mail right angle header
C1,C4,C6, ceramic capacitors
C8,C5, tantalum capacitor
16 MHz resonator
resistor array A103J
D1, 3 mm LED blue
D2, 3 mm LED
D4, 3 mm LED
D5, 3 mm LED
D3, D6, diode
6mm pushbutton
SW2, DPDT slide switch
DPDT slide switch
DC barrel Jack
U1, voltage regulator
Q1, transistor
PV1, potentiometer
R1, resistor
R2, resistor 10k
Grove connector, straight
6x2 mail header
10p female header
2x 8p female header
2x 6p female header


Try LED blinking Sketch
Use the this code

//************************************************************************************
const int Pin = 1;
 
void setup() {
  // initialize digital pin as an output.
  pinMode(Pin, OUTPUT);
}
 
// the loop function runs over and over again forever
void loop() {
  digitalWrite(Pin, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(300);              // wait for a second
  digitalWrite(Pin, LOW);    // turn the LED off by making the voltage LOW
  delay(300);              // wait for a second
}
//************************************************************************************

You can also try pin 0
Just change the value for "Pin"
Pin1_to_Pin2.png

Add The Transistor The transistor is useful because it can switch on more power then the chip can by it's self.
Solder:
Transistor (Q1)
Diode (D6)
LED (D5)
Resister (R1) 1k
Resister (R2) 10k
Slide Switch DPDT

Note: DPDT http://en.wikipedia.org/wiki/Switch

//************************************************************************************
void setup() {
  // initialize digital pin 13 as an output.
  pinMode(0, OUTPUT);
  pinMode(1, OUTPUT);
  pinMode(9, OUTPUT);
}
 
// the loop function runs over and over again forever
void loop() {
  digitalWrite(0, LOW);   // turn the LED on (HIGH is the voltage level)
  delay(300);              // wait for a second
  digitalWrite(0, HIGH);    // turn the LED off by making the voltage LOW
 
  digitalWrite(1, LOW);   // turn the LED on (HIGH is the voltage level)
  delay(300);              // wait for a second
  digitalWrite(1, HIGH);    // turn the LED off by making the voltage LOW
 
  digitalWrite(9, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(300);              // wait for a second
  digitalWrite(9, LOW);    // turn the LED off by making the voltage LOW
 
}
//************************************************************************************

Slide the switch towards the edge.
Note: The switch connects Pin 9 to the transistor and the Potentiometer to pin A0. Use the switch to disconnect the transistor and Potentiometer, this way you can use the pins for other things
Now try the Blink sketch with Pin 9

Next you can solder the 6-pin Female connector, and try some more high power things such as bigger LEDs, Speakers, and small motors.

Solder:
Potentiometer


Reset push button


DC Jack
Solder:
Voltage Regulator (U1)
Diode (D3)
Ceramic Capacitor (C4)
Electrolytic Capacitors (C5)


Cut Trace
Solder:
Slide Switch
DC Jack

Test DC Jack


Solder:
Ceramic Capacitor (C6)
Electrolytic Capacitors (C8)



Solder:
I2C Connector



Solder:
I2C Connector








Trouble Shooting

if the power LED and the TX LED are on the moment you plug in the 6 pin cable, then the cable is plugged in backwards.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox