Arduino watch - Bluetooth and more | development board

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
this is the last version that I've made for the so called Arduino based SmartWatch now this is the new PCB that I've just made in this video I will show you what new things this PCB has how to mount it and how we could use it because once we have the PCB mounted you could upload the last code from the previous version and still use it as a SmartWatch with a Bluetooth option but since this board has a lot of components on it I would like to show it to you from the point of view as it would be a development board and share with you some example codes for each part of the PCB in this way I think you'll learn a lot more since you could see each example one by one I will also show you what new features this board has in compared with the old one and all the things it could do we have LED control battery voltage analog grid we have alarm interruptions a buzzer an OLED screen a real-time clock we have FTD programming using directly the USB connector also Bluetooth communication on the back we have some buttons charging circuit for the lipo battery and much more so before we start make sure you hit the subscribe button and the notification bell in order to see my future videos also thanks to all my patrons for the support so let's get started what's up my friends welcome back this is the new PCB for this SmartWatch as you can see it is way smaller so it could fit better on your arm but at the same time it has some new parts that we will see in this video ok so first thing first this board was possible with the help from my sponsor Chelsea PCB which is a PCB manufacturer so once I have the design made in easy EBA and run the design rule check I've downloaded the Gerber files and upload those to jlc PCB calm once the Gerber was uploaded I've selected 10 PCBs and the green color for the solder mask that cost me only 2 dollars and six more dollars for shipping to Spain ok so I received the boards as always in just 7 days the order process was very easy after a quick inspection all the board seems to be perfect and with good finish ok so I want to show you this project as it would be a development board review and show you what the board could do we could learn a lot with this board first of all you will learn how to solder all the components you will learn why we need each component to program the chip get the time and charge the battery and so on then it has some buttons on the side so you could test digital inputs and get started with basic Arduino programming it also has an LED and a buzzer so you could also test anak outputs and fading LED or if you want just ring the buzzer okay so on the back we have a real-time clock chip or so called an RTC that uses a nice crazy communication so you could also test that out and get the real-time the date temperature and the day of the week on the back the board still has a Bluetooth module but this time I've used directly the SMD modules order on the back so it will occupy less space compared with the last version so you can learn how to get data from this bluetooth module using the word munication okay so the board has a few more components but finally we have the odor display control with a twisty communication as well so you could also play around with the screen and by that improve your skills with Arduino for each of these parts below you will find an example code and the knitted libraries so you could start playing around with this board once you have all the components soldered I also shared the Gerber files for this board and the part list if you want to build it I think building this project would improve your electronics skills since you will work with the schematic of the PCB then you will see the layout of the PCB and order the board from manufacturer so they're both SMD and true hole components using solder paste and so on then we get to programming where you will try all kinds of examples from simple and basic digital read and write to I square C and word communications power control timing and more okay so let's start first I will explain you all the components of the board and in which order you should solder those components at the same time please download the full Kemetic and have it in front of you in order to see order values and names of each component and all the connections so first thing first we solder the atmega 202 neat chip in the middle then we add the 60 megahertz crystal the R for one mega ohms resistor the r7 10 kilo ohms resistor the C seven capacitor of 100 nano farad and the C 3 DTR capacitor of also 100 nano farad with these six components we could test if the chip works to spare some money I took all these components out of a Chinese version of the arduino nano watch the previous video of this project in order to see how to test if this chip works using an FTA programmer connected to these work pins on the back of the PCB ok so if the chip works we can solder the USB connector and all the charging components for the lipo battery all these components here are used to charge and protect the 3.7 volts lipo battery for overcharge and / discharge see the values of each component on the schematic once the charging circuit is soldered test it works connect the battery in plug the USB cable and the red light will indicate charging and the blue light stand by the voltage at VCC right now should be four point two volts check that with the multimeter as well on the front part of the PCB down here we have two LEDs with two resistors one is red and the other one is blue when the battery is charging we get the red light when the battery is full the blue light will turn on okay so if the battery is charging and the circuit works we can solder the work chip which is the CH 340 see if you use the CH 340 G you will also need a 12 megahertz crystal and some capacitors as this Arduino Nano has so solder the CH 340 chip and the are eighteen and nineteen resistors of 1 kilo ohms now we can test if we can program the chip using the USB connector instead of the external FTDI programmer plug the board compile and upload a test sketch if that works we can keep soldiering components I now solder the real-time clock on the back the ds3231 chip and that will give us the date the day of the week the temperature and the alarm interruption so that the rest of the resistors for the real-time chip the resistors for the push buttons and the push buttons as well also the small LED and its resistor and the buzzer on the back ok now it's time for the Bluetooth circuit it needs a 3.3 voltage regulator I've used the C 620 regulator IC which one my board is named u8 soldered at the capacitors at the output and then connect the USB and test if you have around 3.3 volts at the output pin if yes we can solder the small mosfet and the gate resistor and the bluetooth module on the back this MOSFET is used to turn on and off the bluetooth module and by that saves and power if you don't want to use the Bluetooth connection the previous board didn't have this feature so the power consumption was always high and you couldn't turn the Bluetooth off for the Bluetooth module you only need to solder a few pins as in the schematic not all the pins okay so now on the board you will also see some very small pads these are connections that can be made with some solder we have one for the buzzer one for the RTC supply and two for the Rx and TX pins of the Bluetooth module so if you want the buzzer to be connected make that connection between the small pads of r17 using some solder do the same for the real-time clock chip on our 13 but don't make the connections between these small pads for the bluetooth module yet if the module is connected to the Rx and TX pins we can program the chip that's why I've placed these pads so we can program the chip disconnect the USB cable solder the pads and make the connection and we are good to go if you want to reload or code these solder disconnections upload a new code and make back the connections or if you don't want to use the bluetooth module just don't make the connections at all before you solder the especi screen make sure that all the components are working because once you solder the screen on top you can see what is below anymore test the LED the battery analog grid the CH 340 chip and so on then solder the screen and our SmartWatch board is finally ready so what it could do well first we have the watch code go below and download the code named simple watch this code won't use the Bluetooth option but it will make this board to be a normal watch upload the code and now we have on the screen the day of the week the battery level the time and the date if you don't do anything for 10 seconds it will go to sleep and enter the ultra low power mode as you can see right now with the display turn on it needs around 40 milli amperes and when it gets into sleep mode only one point 38 milli amperes so with this 100 milli amperes hour battery it could last up to two or three days before it needs recharging to recharge it just plug the USB connector okay so now long press the mid button and we get into the menu here we can set the time we can set an alarm turn off the beeps for the buzzer show the watchin logo enter a stopwatch counter or go back so the set time option is very basic enter and select the time the date and the day of the week and it will get saved to the real-time clock chip but now we can set an alarm choose the hour and the minute and it will set an alarm now we have this small icon of a clock on the corner even if the watch is into sleep mode when the alarm time is reached the interruption will wake up the clock and ring the alarm the beeps will go on for a minute and then they will stop or if I press the middle button we can cancel the alarm manually also after the alarm is set if I long press the top button on the main menu we can enable or disable the alarm and the clock icon would appear or disappear ok the sound on and off option will only enable or disable the beeps each time we press a button with the beeps on as you can see it beeps each time that I do something now with the sound off the beats are disabled ok the show logo option is not relevant at all it will only display a binary logo that I've made with the image 2 LCD software in this case the watch end logo that I've made ok so finally we have a stopwatch enter this menu and we can start the stopwatch and it will count seconds minutes and hours we can pause the counter with the middle button reset the value with the button 1 and exit this menu with the top button pretty simple design and that's it with the simple watch code you could also upload the last mark watch code that also uses the Bluetooth connection as in the past tutorial and feel free to improve this code however you want since the code is not perfect at all below this video you will also find some more examples that you could do with this board starting with very basic fade examples where you could control the brightness of an LED using the annual write function then we have some digital read examples where he will detect if one button is pressed or not you also have examples to print some logos or text on the I swear see all the display and play around with that you will find a small example that will show you how to read and write data to the real-time clock chip get that time get the temperature how to set the alarm and so on and by that get used to this chip you could also use the booted connection and display that on the screen as we have seen in the past tutorial where we get data from the noted we know app when I receive a call a Twitter message and so on using these examples you could learn more improve your coding skills and make your own code for this math watch check my web page electrons that come for more details step-by-step tutorials for beginners with this board and much more I've also truly printed a crude case for this watch if you want to protect it a little bit you could wear this watch directly with the belt if you want there is some protection between the watch and your hand in case that you sweat since you have two layers of the belt between your hand and the PCB you also find links for this kind of belt below as well and if used these three decades just place the watch inside and glue the top part it has holes for the charging plug and the side push buttons I've used transparent PLA so I could see the LEDs indicators as well there could be a better 3d design but I had no more time for that I will post an upgrade soon so guys that's it if you want to build this project you have everything you need below in the description and on my webpage electronic comm also a bunch of examples that you could run with this board and by that you will learn more please consider helping my projects on patreon if you enjoyed this video make sure you subscribe and activate the notification bell for future videos also click the like button like crazy and share this video with your friends and remember that your help on patreon means a lot for me and will keep these kind of videos going so thanks again and see you later guys [Music]
Info
Channel: Electronoobs
Views: 96,592
Rating: undefined out of 5
Keywords: arduino, watch, smartwatch, RTC, real, time, clock, OLED, Bluetooth, connexion, 3D, printed, Smartphone, android, notification, PCB, power, display
Id: uKJ-MVSIFCw
Channel Id: undefined
Length: 14min 44sec (884 seconds)
Published: Sun Jan 20 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.