Lab Task 3 Soldering the PCB
PCB I:! Use a wire to connect the 5V to pin 7! 2
PCB II 3
PCB Circuit design!! R17 = 25k!!!! R9 = 47k!! 4
Soldering
PCB I Step1: Power Supply uc C1 LED3 C6 R4 6 C5 1 Connector Components: R4 = 1k C5 = 1uF C1 = C6 = 100nF LED3 = LED Green Connector: GND = Pin 3,4 5V = Pin 5,6 6
PCB II Step1: Power Supply Connector uc C1 R4 C5 6 LED3 1 Connector C6 Components: R4 = 1k C5 = 1uF C1 = C6 = 100nF LED3 = LED Green/Yellow Connector: GND = Pin 5,6 5V = Pin 3,4 7
PCB I Step1: Powersupply Testcase 1: When you finish step 1 with soldering, call the staff! Connect the 5V and Ground to your PCB-Board. à Result: the Power LED (led3) lights up. 8
PCB I Step2: Programming uc LED2 LED1 + R1 Reset + R11 R10 Switching the LED1/2 = gpio3 C3 C4 Q1 R3 R2 C2 Connector2 GND Connector2: GND = Pin 1 Tx = Pin 4 Rx= Pin 5 DTR= Pin 6 Connection DTR: R1 = 10k C2 = 100nF Resetbutton Connection Tx, Rx: R2 = R3 = 1k Components: LED1 = Red LED2 = Green R10 = R11 = 330 uc: Q1 = 16MHz C3 = C4 = 22p 9
PCB II Step2: Programming uc Reset C2 + + LED2 LED1 R11 R10 R1 Switching the LED1/2 = gpio3 R3 R2 C3 C4 Q1 GND Connector2 Connector2: GND = Pin 1 Tx = Pin 4 Rx= Pin 5 DTR= Pin 6 Connection DTR: R1 = 10k C2 = 100nF Resetbutton Connection Tx, Rx: R2 = R3 = 1k Components: LED1 = Red LED2 = Green R10 = R11 = 330 uc: Q1 = 16MHz C3 = C4 = 22p 10
PCB I Step2: Programming uc Testcase 2: When you finish Step 2 with soldering, call the staff! Connect the uc with the FTDI and connect the FTDI to the PC Open the blinking LED Program and use the GPIO 3 as the output signal. Upload the blinking LED Program. àresult: the green and the red LED light up alternately. 11
PCB I Step3: Comparator R15 R14 R13 R12 Connection To Comparator Output D1 R16 IC3 Connection Comparator: IC3 = LM311 R12 = 4,7M D1 = SFH205 R13 = 3,3k R14 = 4,7k R15 = 10k = Trimmer R16 = 1M Comments: Comparator Outputsignal is connected to Pin 11 of the uc 12
PCB II Step3: Comparator Pin11 D1 - R12 R15 IC3 R14 R13 R16 Connection Comparator: IC3 = LM311 R12 = 4,7M D1 = SFH205 R13 = 3,3k R14 = 4,7k R15 = 10k = Trimmer R16 = 1M Comments: Comparator Outputsignal is connected to Pin 11 of the uc 13
PCB I Step3: Comparator Testcase 3: Build up the sender on a second PCB Board. Use your PCB Board to receive the signal. Program the uc and use the Comparator Output to control the green and red LED. When the program starts, the green LED should be on and the red LED should be off. If the signal between the transmitter and the receiver is blocked, the red LED should turn on and the green led turn off. If the red LED is on, wait two seconds and turn the red LED off and turn the green LED on. TSHA 6203 R5= 100 GND Sender 14
PCB I Step4: Bus-Extender and LCD R7 R8 R6 R5 IC2 R17 Connection Bus-Extender: IC2 = 82B715 R5 = R6 = R7 =R8 = 4,7k Connector Pin 1 = LCL=SCL Connector Pin 2 = LDA=SDA R9 6 5 4 LCD Connector Connection between LCD and uc: LCD Pin4 = uc GIPO7 LCD Pin11 = uc GPIO10 LCD Pin5 = uc GPIO8 LCD Pin12 = uc GPIO11 LCD Pin6 = uc GPIO9 LCD Pin13 = uc GPIO12 LCD Pin14 = uc GPIO13 15 LCD Connector 11 12 13 14 1 6 Connector R9 = 47k R17 = 25k (Poti)
PCB II Step4: Bus-Extender and LCD R17 R9 6 1 Connector 6 5 4 11 12 13 14 LCD Connector R5 R6 R7 R8 IC2 Connection Bus-Extender: IC2 = 82B715 R5 = R6 = R7 =R8 = 4,7k Connector Pin 1 = LCL=SCL Connector Pin 2 = LDA=SDA Connection between LCD and uc: LCD Pin4 = uc GIPO7 LCD Pin11 = uc GPIO10 LCD Pin5 = uc GPIO8 LCD Pin12 = uc GPIO11 LCD Pin6 = uc GPIO9 LCD Pin13 = uc GPIO12 LCD Pin14 = uc GPIO13 16 R9 = 47k R17 = 25k (Poti)
PCB I Step4: Bus-Extender and LCD Testcase 4A: The 8x2 LCD display has to be operated in 4-bit mode. Make a simple program and display Test on the 8x2 LCD. Port - Config GPIO7 = RS GPIO8 = Read/Write = 1/0 GPIO9 = E = Enable GPIO10-13 = Databits for the LCD! Notice 1: There are many LCD-examples for the Arduino!! Notice 2: Set the resistor R17 for the display contrast! àresult: Display output: T E S T 17
PCB I Step4: Bus-Extender and LCD Testcase 4B: Connect your PCB Board with an Arduino over I2C The master sends a sign to the slave. The slave answers with the next ASCII sign. Input of the sign via keyboard of the PC. The both signs (Master and Slave) have to be displayed on the LCD Display (First row: sign of the master; second row: sign of the slave). à Result: Display output example: M A S T E R : A S L A V E : B 18
Last lab session
Last Lab Day: Presentation and Life Demonstration At the last lab day, you will have time to setup your system and implement some last adjustments. However, the final 90 minutes will be your presentations: 1. Each group will given a Pecha Kucha presentation at the beamer about the project (see next slide) 2. Each group will give a short life demonstration at the lab desk, to prove the correct functioning of their project (max. 3 minutes). Both elements are required to pass the lab. No extension of the deadline is possible, since the pre-examination marks must be submitted to the FSB. 20
What is Pecha Kucha Pecha Kucha 20x20 is a simple presentation format where you show 20 images and each image for 20 seconds. The images advance automatically and you talk along to the images. This means that your presentation will be exactly 6:40 minutes in total. Each slide should contain a picture or screenshot or drawing only. You can only added maximum three words on a slide More information on pecha kucha can be found here: www.pechakucha.org or search the internet for examples. The fast visual presentation style hopefully is informative and fun at the same time 21
Required Presentation Contents Task and assumed challenge Team members and roles Work / Project plan Block Diagram (your own, no copy) Calculation, if any Oscilloscope screenshots Brief C-Code fragment (that the auditorium can grasp in 20 seconds!) Challenges encountered and solution approaches Conclusion about your work Adherence to your own work plan Conclusions on your team work Remember to use visual elements only (3 additionally printed words are allowed!) 22