Transcript for:
Building TCD 1304 CCD with PCB

welcome everyone in this video i'm going to talk about the tcd 1304 linear ccd again as you can see i unwrapped something which i have received from the sponsor of this video pcba and this thing is nothing else than my own circuit which is designed for the tcd 1304 pcb so i will review this pcb and then i will also build a circuit and hope that it will work as it uh intended so what i want to do with this circuit is i want to mount the ccd on this side and then on the other side i have a few parts which are surface mounted parts as you can see and i will at this point hand solder them to the corresponding positions and the whole thing will go on top of a stm32401 microcontroller so it will click on the the microcontroller board and it will hopefully stay there as well uh yeah so i have these boards as you can see they are black and i ordered five but i received six so thank you very much pcb i have one extra board uh probably for practicing and so on and you can see that these boards are black i designed them to be black and this is kind of a dark black because yeah it looks cool but also it reflects less light but you can see see that it's a bit still sort of shiny but they have a matte black color so if you really want to have a very black color uh which does not reflect too much light then you should go for that but this is perfect for my purpose and what i did on this front uh side i kept the silk for the let's say courtyards for the pin headers and for the tcd 1304 and also i printed some nice text i will take a picture of this so you will see it better but it's just an indication about the board and its designation and so on and to make my work a bit more easy i have the two sides uh also indicated here so i know that on the microcontroller one of the rows for the pins is 3.3 volt and the other is with the vb or for the battery power and then the usb connection comes to this part but this is just to indicate the alignment of the pin and then on the other side you can see the pads for the surface mounted devices we have a few components like capacitors resistors a operational amplifier as well as a voltage reference and hopefully they will suit my design and it will work properly and as you can see there are four holes at the corners and yeah they are just uh for mounting so you can mount this wall board with together with the pcb uh on on this side which is the microcontroller and with the ccd on on this side and it will yeah you can mount it on a on a device or something uh on an enclosure and it makes it easier to use or also you can put it in an enclosure and yeah put the bolt through this uh these holes to through this way so yeah as far as i can see all of these boards look perfect i can say that the printing is very nice quality on both sides so all the let's say component abbreviations r1 r2 and so on they are very nicely shown the printing looks good the tabs for the soldering look perfect and flawless they follow the tabs very nicely that's i really like also these holes for the components look just perfect there are no sharp edges i really like that there are no sharp edges on the board so they will not hurt me i don't know if they polish it or it is just from the very fine cutting tool that they use but i'm always very satisfied with their boards especially of the edge quality in my day-to-day work i work with sharp metal pieces and it's always nice to have something with smooth edges so i really appreciate this thank you and then obviously the next part which i will review will be about the soldering so how easily i can solder the components to these tabs and obviously i will solder manually so this will be an extra challenge for this board but so far it's 10 out of 10. so let me prepare the components i have all the components and everything for the soldering work and let's continue the work with this board so i prepared everything here as you can see i have some flux some very thin thin and then i have the microcontroller here so just to show you quickly why i have these markings on the board like usb 3 v3 and vb is because uh this guy obviously hasn't has a usb port 3.3 volt pin and vb and then my intention is that this should be under it obviously with some gap so then it will be perfectly aligned so the vb is on this side as you can see 3.3 is in this side and then the usb is here but when i assemble it you will see it clearly so i have a bunch of capacitors and resistors here and then this one is an op-amp and in this i have the voltage reference which is needed for this and of course some pin headers and some machine the pin sockets for the ccd so there is nothing else to do is just i try to start and solder the specimens on top of these tabs so obviously i want to start with the specimens or tiny my components first because it's easier to mount them first and then i can go in with the pins or the headers and then finally i can assemble everything and just push together everything so i need to solder three caps on top of this uh pcb or on the back of it so i will start with the caps [Music] uh so i soldered the passive components and it turned out to be pretty ugly but at least as i can see the connections are there so now comes the difficult part is to solder the active components the reference voltage and the uh op-amp so let's do those things and first i start with the reference voltage because it only has three pins [Music] so the voltage reference ic is there i will try to not destroy it by soldering it [Music] so it seems i managed to solder everything it's very ugly and uh not too good but it's a hand solder so what could you expect so now comes the easy part is to solder the pins so i will do that now so there will be a rail here made of two female headers and i will try to use some other jumper pins just to keep the perfect distance between these components so the spacer is done now it's extremely easy to solder everything but before doing any mistakes i discovered that i should solder this first because if i put the rails on this side it will cover all the pins for the socket for the ccd so i should do this first so i have a bunch of ccds here and you can see how many things it has here's a nice tcd 1304 [Music] so first job is done and uh i would also like to do this now so i will do this so the basic idea here so the basic idea here is to assemble this in the following way it should be yeah something like this obviously you could do this i mean nothing hinders you to solder it like that and then you can even use like smaller pins but i want to use these nice sockets so the the microcontroller will be a bit further away from from the ccd circuit so it will be something like this but i hope you get my point so then therefore i solder this together [Music] [Music] [Music] [Music] [Music] so soldering is done and hopefully i haven't messed up the soldering anywhere uh i did a lovely job with the hand soldering but next project will be a reflow station that's for sure so yeah this is the top part here comes the ccd this guy right here and then this is the bottom part where we plug in this microcontroller and then here we have the usb so it should face this way and then just a simple click and it is in the board but of course first i will program this and then we attach to this board but as you can see it looks quite neat i would say so then the usb will come here and it will look perfectly and then i just have to attach basically the ccd to this part and that's uh that's all so let's attach the ccd so the ccd has a notch yeah on one of the ends and then that notch is aligned with the usb port so then let's gently push this thing in the socket and it's in i think it looks neat so then the final assembly should look something like this yes i think it's quite nice and then also one of my ideas is that since we have the usb port here and we have the four holes i can print a 3d printed enclosure around this thing so then i can use this as just a box i don't know a linear ccd box but of course my idea is to have an enclosure with a hole on its wall let's say some kind of box and then i mount this ccd on the box so then it will have a slit where the light can [Music] meet the sensor the surface of the sensor and then basically that's all so this is the wall assembly and uh once again uh this nice pcb was made by uh pcb way so they produced this uh very excellent pcb don't forget to visit their website because you will find some very interesting services not only pcb making but also 3d printing or maybe sheet metal forming or also cnc machining and it's not only that they make the pcb but they can also assemble it for you so for example if you don't want to struggle with the uh assembly like i did for the surface mounted parts the assembly parts then i strongly recommend you to use pcb based services and just pay a little extra and make these components uh by them or through them so it's much more easier so now i will uh wire up everything with my computer and i will show you some pictures uh from my computer short clips if this thing works at all and what's the output of the ccd so let's go to my computer and test this whole thing so here we are with the software which is used to catch the data coming from the microcontroller and plot it and i put a roughly one centimeter wide electrical tape on the middle of the ccd and therefore we should see some dip in the plotted chart so we see if we should see that or not and yeah i just connect to the microcontroller and i just press start these functions are not really live at this moment so everything is just there so i i know that i have to implement them so let's see what we see and now we can see that the signal is jumping but basically this is what we get uh on the input and if i stop it in the right moment i i will be able to show you that there is a dip which is uh caused by the electrical tape which basically blocks the light so i stopped the uh visualization of the incoming data and you can see that basically this here is the first pixel and then we go towards the center of of the ccd and then in in the middle where i have the roughly one centimeter wide uh black electrical tape we have uh yeah basically zero signal and then it goes back of course within just a few pixels to the yeah maximum sort of value which is again the exposed part of the ccd and if you remember my previous demonstration then this kind of signal was inverted and then this is the correct signal now so since i used the operational amplifier in this new circuit i can invert the original output signal of this of this ccd which means that instead of the dark areas becoming higher and now the bright areas the exposed areas on the ccd are the let's see bright values and of course this can be still uh further improved in a way that now i haven't picked the values for the resistors very carefully i just wanted to make it work first so i just wanted to test the ccd with my new pcb so therefore i can make this even better that let's say with a certain light i can be close to the maximum value of the possible values so something around 4 000 and then we can see how the rest is looking like but at this moment uh for me this is sufficient because i can test the pcb and i can test the ccd as well and both of them seem to work so it seems that my lousy hand soldering was good enough so we can extract the signal from the ccd so i haven't really messed up anything so that was all for this video this was my plan that i wanted to show you my new pcb that i designed and then pcb made the pcb for me and then i could build everything together with my nearly zero experience in soldering smd components by uh using a normal soldering iron and as you can see on the software the data is coming out from the pcb so we can actually use this pcb and let's say breakout board properly for this ccd so don't forget to go to my website link is in the description and check the link there because if you want to have this pcb for yourself then you can buy it through pcb based website and it's a win-win situation for everyone because then you don't have to struggle with the pcb design and so on and i also get a little support by each pcb sold so i think that's a good way to have a win-win situation and also of course don't forget to visit pcb based website because they are full of very good services and uh so far i'm very very satisfied with their pcb services and the assembly services as well so i can only recommend them so you should really give them a try if you haven't been already using their services so i hope you like this video i hope you learned something and see you in the next video