your shop is so scarily clean and beautifully arranged.
@SpaceParanoidX4 жыл бұрын
There's one screwdriver in the background which is not fitted right, and it's triggering my OCD. ;)
@parallaxggyt4 жыл бұрын
SpaceParanoidX oh god why would you point that out
@dr76153 жыл бұрын
@@SpaceParanoidX ha ha...
@MarcRidders5 жыл бұрын
You might want to use the qualifier "volatile" for the variable ticks, so the declaration should read "volatile int ticks= 0;". This is a compiler directive which results in code that reads the value of ticks from RAM instead of from a register in order to avoid conflicts when using concurrent processes and/or interrupts with global variables.
@stefanmoser43485 жыл бұрын
this also I wanted to suggest, but you were quicker :-) when the values of variables are changed in interrupt service routines (ISRs), they have to be defined 'volatile', otherwise they could behave oddly
@djneon125 жыл бұрын
the DS signal is a 1-wire signal used for the DS18B20 temperatuur sensor that you can add to the board and is not a device select! here is the schematic: www.fabtolab.com/image/data/Accessories/RTC/DS1307ckt.jpg and if you use a CR2032 (non rechargeble battery) you need to change some stuff because those boards are designed to use a LIR2032 (rechargeable battery). to do this remove R5, D1, R4 and R6. then wire a jumper on R6. other wise you try to charge a non chargeabe battery and that is going to kill the battery.
@jezebabe5 жыл бұрын
Another excellent video Bill. Thank you very much for all of your hard work.
@musaadejoshuaibuopaluwa17125 жыл бұрын
I am a fan of this channel. I have always watched your videos. Keep up these good works of yours. I shall be looking forward to the day you will make a video on Arduino/GSM modules. Thank you now and always.
@SpeccyMan5 жыл бұрын
One small but important point regarding your LED blink on interrupt code. It is not a very good idea to use digitalWrite within an interrupt service routine because it is very slow and, as you rightly pointed out, the routine should execute as quickly as possible. It is much better to use direct port manipulation (in this case PORTB bit 5) to flip the LED state.
@rodnussbaumer23985 жыл бұрын
Very nicely produced and easy to follow along with clear explanation and good pace. One nit that jumped out at me is the misuse of the term accuracy, where you really meant precision. The*precision* of the RTC is 1 second. As others have noted, the *accuracy* is off for two reasons. The time & date used to set the clock will have a slight skew due to the lag between running the clock-setter and the compile time. Also, many people seem to find the accuracy of the clock frequency is poor, resulting in increasing differences between date & time of the RTC & and actual time and date. I immediately wondered whether the is some way to trim the frequency of the crystal to achieve better accuracy.
@AztecWarrior69_694 жыл бұрын
Thank you very much for this. It saved me (some time). LOL I did have trouble since I have a DS3231 and not a DS1307. It kept putting the seconds 8 seconds behind. I ended up having to add 8 seconds to the time when it retrieved the time from the PC. Thanks again!
@gwmoon85965 жыл бұрын
Thanks for another great informative video. I was hoping you were going to finish the video with the addition of a digital readout.
@AngryRamboShow5 жыл бұрын
I always can make time for DroneBot Workshop. Thanks again teacher.
@BrettMartin844 жыл бұрын
Thanks for sharing this clever way to use an RTC to update the clock. I knew there must be a simpler and more accurate way to get the time from my RTC.
@PaulLascari5 жыл бұрын
Great video... my only comment is be careful of the difference between "accuracy" and "resolution". The clock may be resolute to a second, but it's accuracy (how much it may drift) may be better or worse after some period of time.
@samuelsungstabtu75274 жыл бұрын
I love the way the info presentation flows. Pretty structured and informative. So I've to visit your website for more static info on this topic. However, I found on the website (similar to this video) the description for the DS pin on the TinyRTC module "DS - Device Select, this allows you to enable or disable the device.". I did more research online and found that DS was actually meant for the temperature readout from the DS18B20 tempearture sensing module that can be optionally soldered to the board next to the battery (if its not already there). And it is also recommended to have a pullup resistor to the DS pin conenction when in use.
@samuelsungstabtu75274 жыл бұрын
The DS18B20 temperature sensor is independent of the DS1307 RTC hardware on the board. The only shared resources between the two are the VCC and GND rails on the TinyRTC board...
@sportilight30055 жыл бұрын
Awesome tutorial on Using the Tiny RTC thanks teacher... will really appreciate it if you could do a tutorial on how to Setup interrupt from RTC DS3231. In such a way that at a particular time specified. RTC will put my arduino to sleep mode and also at a specified time it will wake it up....USING RTC DS3231 module. thanks so much Sir, I really appreciate you and celebrate you. HEZEKIAH 4rm 🇳🇬🇳🇬🇳🇬NIGERIA . 🤗
@Electronieks4 жыл бұрын
increase speed to 1.5x
@paranormalitcresearch4 жыл бұрын
Module’s Hidden Feature - DS18B20 There’s a provision on our DS1307 RTC module that often goes unnoticed. It allows us to install DS18B20 temperature sensor. The 3 holes in the top corner right next to the battery holder(labled as U1) is where the DS18B20 is installed. Once you install the DS18B20, you will be able to get temperature readings from DS pin. These readings can further be used to compensate for temperature based time drift in code. So there is no need to install a Temp Sensor, since its already at the Tiny RTC / DS1307.
@JerryEricsson3 жыл бұрын
Thanks, always nice to review the basic modules.
@stompreaper5 жыл бұрын
I really like how you introduced the module and the developed the ideas in this video. It was a good progression from module to project. I'm looking forward to the robot series. I do like the two camera set up for seeing the projects on the bench or when you showing a module or part. I'm not a fan of the look left look right camera switching for the explanations/narration. It's quite jarring and doesn't feel like it adds to the presentation. I can see what you are going for with respect to keeping interest in the visuals but I think some editing cutting with stills or change of framing would work better than seeing you physically turn to look from one camera to the other with no obvious purpose. Keep up the great videos!
@KenHeinrich5 жыл бұрын
One other thing you could do with this project is monitor the rtc backup battery and alarm if it is low so the user knows when to change it.
@EvileDik4 жыл бұрын
Kind of tangentially related, but a lot of people are using now ESP32/ESP8266 based 'Arduinos', as they are much more powerful and have WiFi/Bluetooth, and are generally cheaper. Obviously with the WiFi connection is the possibility to use NTP (network time protocol) to get the accurate time from a time server, the ESP even has functions built into it's ROM for registering which time server you want to use, so require almost no code to set up.
@acadman43225 жыл бұрын
Most of these 'micro-puter-ese' videos put me to sleep- but not yours. You have such good structure and flow, it moves me right along. Great job, Bill- as usual. I do not know how you find the time (Pun on purpose!).
@Inertia8885 жыл бұрын
There is also a 16 pin "DS3231SN" RTC. This is the first I have heard of the DS1307 Tiny, but it sounds like they both do the same. Unfortunately I don't have the pinout in front of me or I would share. Pretty cool little chips.
@3maisons4 жыл бұрын
The DS1307 has no alarm function built in and no temperature built in; the DS3231 has two built-in alarms, and can be programmed to interrupt when the clock time matches the alarm time in seconds, or minutes and seconds, or hours minutes and seconds, or days hours minutes and seconds, etc. The DS3231 also has an on-chip thermometer. (I bought the DS1307, and was disappointed that I could not interrupt once per hour.)
@tookitogo5 жыл бұрын
I completely agree with the other commenters who say to use the DS3231 instead. (Especially the DS3231SN, which is the quartz crystal version, rather than the DS3231M, which uses a less accurate MEMS oscillator.) The DS1307 can be so inaccurate that it's just not worth the effort. I've gotten some clock kits based on the 1307 that were so bad they literally were useless (a clock that loses or gains several minutes per day is simply not usable). The DS3231 is superb.
@LeonardoPJ Жыл бұрын
Very good video, i was need know to make interrupt with RTC, thanks. But the pin DS i think that is for temperature sensor, and not for device select, i also verified in datasheet.
@robertb23504 жыл бұрын
Like other videos from this channel, the constant change in camera angles during discussion is VERY painful to watch. I would suggest using camera 1 for intro and conclusion while using camera 2 for all other discussions on the subject at hand. As far as the information being discussed, I give it an A+.
@ignaciomora83173 жыл бұрын
Bill Thanks FOR EVERYTHING.
@manofmesopotamia76023 жыл бұрын
I believe this module is suitable for projects that deals with calendar, such as smart irrigation system in agriculture, or deals with time such as smart home 🏠 light
@azyfloof5 жыл бұрын
This'll be massively helpful in my future projects involving time keeping :D Thanks, Bill!
@dave_dennis3 жыл бұрын
I noticed that as the serial monitor was listing out the time, temp, humidity that occasionally there were would be two consecutive time displays with exactly the same reading in the seconds place. I thought this would update the display once per 1 Hz tick, so I don't follow how you could ever have a duplicate time displayed. What am I missing? Thanks! I love your style. It is so very easy to follow.
@s.u.52854 жыл бұрын
Just something I read on google about DS1307. "The main difference between the DS3231 and DS1370 is the accuracy of time-keeping. DS1307 comes with an external 32kHz crystal for time-keeping whose oscillation frequency is easily affected by external temperature. This usually results with the clock being off by around five or so minutes per month." so maybe the DS3231 is better.
@davibrasil15765 жыл бұрын
It would be really interesting if you made a voice recorder with arduino for house automation, if you say “turn lights on” the arduino reads it and the relay activates the light bulb. Great videos by the away, I’m a really big fan.
@MikeNewham5 жыл бұрын
Always looking forward to Bill's videos. Keep up the good work !
@harryohanson3 жыл бұрын
Love your teachings!! Thank you!!
@InvertLogic5 жыл бұрын
Very nice! but I think the DS3231 is better and precise than DS1307. what you think
@MrJohnnaz5 жыл бұрын
3231 is far more accurate. You can also solder it directly to some of the Arduino clones as they have an additional header that just happens to align with the pins on the 3231 RTC. I had a 3231 running for over 2 years, have not had to adjust the time yet.
@binarybox.binarybox5 жыл бұрын
Always well made videos. The DS1307 is a great intro to I2C use but for accuracy, the DS3231 is a lot better. I have built both.
@MrFTW7335 жыл бұрын
From gears to circuits. I love engineering.
@woodensurfer Жыл бұрын
It seems that assigning the square wave to pin 2 or 3 of the Uno comes with the disadvantage that it is an interrupt. The controller stops when the wave is down. Why not assigning to a non-interrupt digital input pin and then check for change of state (of the square wave)? This would avoid interrupting the controller. Also, do the statuses of the I/O change to zeros (off) during an interrupt, or are they frozen (maintained) during an interrupt? Thanks
@franciscoj.r.gomezduran80145 жыл бұрын
A very well done teaching video, congratulations.
@iieenedelectronics18144 жыл бұрын
Sir your videos are very helpfull..Sir make video on lora module.. plz sir....
@trueindia8083 жыл бұрын
Nice information sharing with us. thanks. sir if any have best arduino project for bike?
@rogersfigueira5 жыл бұрын
Thank you very much for all of your hard work
@jaikishan02185 жыл бұрын
Thank you for such a detailed video, please give a video on Daisy connections and how to use it with Arduino
@nimasalehi51975 жыл бұрын
I love your style . another great job.
@yashindian42333 жыл бұрын
Excellent videos to learn.!
@donsuttie37583 жыл бұрын
Excellent tutorial, thank you.
@الحمدلله-ح8ق6ذ2 жыл бұрын
can you please explain what a preamble value means? what is necessary for?
@woodensurfer Жыл бұрын
Can the square wave pin of one RTC be tied to two Arduino controllers by wires, e.g. one Uno and one Nano? For me, only the Uno needs the real time; the nano needs only the square wave digital input.
@stevec5000 Жыл бұрын
How do you ever get those RTC modules to work? I got 6 of them from Amazon and can't get any of them to work since the 32 KHz crystal doesn't oscillate and the ds1307 doesn't do anything! The Ground pin was not even connected on the pc board but jumping a wire to the neg. on the board didn't help, although it's getting power now it still doesn't do anything. I tried replacing the crystal on one of them but that didn't make any difference. I wonder if they were all made with counterfeit clock chips or what is going on with them?
@TuttleScott5 жыл бұрын
thing that confused me a lot when I first started using an RTC was that the compiler hard codes the time into your clock set program and you have to recompile and upload asap to have the current time.
@hafizamrahman21634 жыл бұрын
how you set your time using your currency/place/country ?
@1958abc4 жыл бұрын
Thanks alot Sir For your Excellent Work.One Request Please display thenames of Component used Names &Circuit Diagram.With Regards
@RalphWLundvall3 жыл бұрын
Airports update their barometric pressure reading hourly at my nearby Paine Field Everett WA. I log my BME280 the same. Humidity readings more often are unneeded.
@mohammedyasarshaikh45013 жыл бұрын
For full article there is an error, This site can’t be reached Check if there is a typo in dbws. If spelling is correct, try running Windows Network Diagnostics. DNS_PROBE_FINISHED_NXDOMAIN
@emmanueltakpal93312 жыл бұрын
Please lectures on fingerprint module
@bazrazin13 жыл бұрын
i made a raw ds1302(found from another ready clock) dot pcb module & connected the crystal & backup batterym wired it to A4 & A5, nothing is showing on serial monitor, using nano, do i have to use pull up resistors & what to do with the CE pin.
@perinoveriza16584 жыл бұрын
Best teacher 👍👍👍
@tigrafrog5 жыл бұрын
1. DS pin is for ds18b20 -- there is a place for it for battery holder side. 2. You ABSOLUTELY MUST modify module for using standard non-rechargable battery. This module will try to re-charge battery and will damage it. Not safe. Use modules based on DS3231N -- much more stable, not required any modifications, allows to change I2C address, and have additional functionality. A bit more expensive, but much better overall. You also never mention that module have EEPROM as well. Please research modules and their issues more carefully, can be lots of traps like that.
@AngryRamboShow5 жыл бұрын
Wax on, wax off? That's a disaster. You should know better than trying to school the master.
@SpeccyMan5 жыл бұрын
@@AngryRamboShow They are actually correct in what they say.
@AngryRamboShow5 жыл бұрын
@@SpeccyMan "They?" Who?
@bornach5 жыл бұрын
This module was intended to be used with an LIR2032 and not a CR2032. Martyn Davies channel shows which components to desolder in order to use a non-rechargeable battery. There's another cheap RTC module using a DS3231 and it also has the same issue of being wired to recharge an LIR2032 so will also require modification to swap in a CR2032
@techi6025 жыл бұрын
I have to agree. I used DS1307 and it skipped 3 days! within a one year :) DS3231N can measure temperature therefore adjust crystal frequency based on temperature. You can measure temperature from the sensor as well :)
@VideoTiglathIII5 жыл бұрын
Hi Bill, Great video and very informative. Unfortunately I could not download the associated code files for the interrupt example, so I copied the code from the video. I could not get the LED to flash from that code until I noticed that the command Wire.begin() was missing from the setup() function. If you put this in right after the call to Serial.begin(9600) it all magically works.
@mikze1234 жыл бұрын
Thanks! I had same problem.
@TheJPhotos5 жыл бұрын
Nice one! Plz make a video showing how to use gps and sim card modules. There are not many good videos on how to make an alram/tracking device that updates you with sms. Also, your new project building a real robot is very interesting. Looking forward to it. :)
@joeydelmarsjr.6462 жыл бұрын
i have a MSM9004-02 in my car that is severed from the stock radio, so it doesnt work. Can i some how make it into a stand alone clock? I have located the pin out of the chip to 10pin connector vcc 5v and LCD voltage, rest, load, clock, and ground. what do i need to make it work independently?
@Yash-Gaikwad Жыл бұрын
I am trying to make a pet feeder. I am looking into clock modules which would run on low power like cmos cell or aaa battery, and not required to have a microcontroller attach or running . I found out clock modules like ds3231etc runs on cmos cell for months. But I realized it can only trigger two alarm daily. Is there any other module with at least around 6-10 alarms capability daily or any way to increase alarms capability of ds3231. So that I can amplify the alarm signal and use it trigger motor or servo that will dispense the treat/food. I was unsuccessful in finding such module, I also tried to find cheap circuit board of a commercial pet feeders on amazon. Still nothing. Thanks in advance.
@sunaydjelali9269 Жыл бұрын
Hello pls Made video how work whit DS3231 I'm having a lot of trouble with this module
@DeepCM4 жыл бұрын
Hello DroneBot Workshop I followed the tutorial with my arduino mega 2560 up to the point where the external LED pin would trigger on each falling edge of the RTC. Unfortunately the LED just stays on, either staying high all the time or the frequency is too high to detect the blinking. The code that was used is identical to yours. Any tips or suggestions will be appreciated. Thank you.
@johnibbertson29602 жыл бұрын
bill im new to all this and its baffling , but can you help , ive built a coloured digital clock a cheap chineese job , it works but GAINS TIME about a minute a day , is there a way round this, thanks, john.
@xfran703 жыл бұрын
19:20 the square wave is 1Hz but because of the software the LED flashes at 1/2 Hz
@omgurudev03 жыл бұрын
Hello Guru, I have recently subscribed to DroneBot Workshop and like your way of teaching with detailed explanations and have become your fan. I request you if possible to append this video for interfacing this with 6 nos 8x8 Matrix Display in configuration as Digital clock display. Although you did mention that there are cheap Digital clocks available. If you have this on your website please do inform.
@marshallwoodson3 жыл бұрын
I get an error when I try to navigate to the article on DroneBot Workshop. Is the article still available?
@paulkirchhof95463 жыл бұрын
What’s about start and stop the RTC-Chip? Is this Bit set by settiing the time?.
@C3lt1cbl00d4 жыл бұрын
Cool and simply video... but can you tell me How to programming a alarm time . I wish to use a ESP8266, with a relai to switch on /off the current wo will start and stop a radio. Have allready buy a DS3231 to have anytime the right time but don t find a solution to programming the alarm time . Can you help me please ? thanks in forwards
@dsarkrise5 жыл бұрын
It would be really nice if you could make a detailed video of MPU9250 and ESP8266 for making a pedometer. I am really looking forward to this!
@andywylie2873 жыл бұрын
Excellent vid! This might be a strange question but I cant seem to be able to follow the links you provided for your website. Has something changed or is it me?
@patrickmclaughlin60134 жыл бұрын
that led toggle is interesting ^1
@xacompany5 жыл бұрын
Really enjoy your videos thanks!
@midlandernc7403 Жыл бұрын
My tiny rtc module with eeprom only shows the i2c address for the eeprom 0x50 and so application can't see the RTC at 0x68
@sanjaynahata33745 жыл бұрын
hi Sanjay Here I have one suggestion why dont you move to stm32f103X blue pill or ESP8266(nodemcu)
@artemyevtushenko87223 жыл бұрын
Unfortunately, the links in the description aren't working! (Great video as always)
@mohammedyasarshaikh45013 жыл бұрын
yes, This site can’t be reached Check if there is a typo in dbws. If spelling is correct, try running Windows Network Diagnostics. DNS_PROBE_FINISHED_NXDOMAIN
@electronic79795 жыл бұрын
Useful video 👍 Thank you
@isoguy.5 жыл бұрын
Ive seen a few I2C projects that need a resistor on the dataline to ground, is this required for this project? Great vid, thanks for sharing.
@typematrix50385 жыл бұрын
If you have multiple devices , interference or your I2C nodes are a long distance from each other you may need pull-up resistors.
@isoguy.5 жыл бұрын
@@typematrix5038 thanks for explanation, greatly appreciated.
@pilarsurya38313 жыл бұрын
Terimakasih atas ilmunya
@chiavenato15 жыл бұрын
Hi Bill, Great lesson! I´m anesthesiologist and became very interest in arduino. Im trying to build an apparatus very similar to this one but instead an AM2320 i was trying to use a BMP280, to obtain de atmospheric pressure (it´s important to calibrate some capnographers! It will be very useful to me!), watched some videos and at the end i fried my sensor! Can you help me? Best regards from Brazil!
@VcelakMАй бұрын
Hi, can someone please help me how to print the values of time on the lcd display with I2C converter? Thanks
@REDACT3D5 жыл бұрын
beauty bud keep up the good work!
@jeffmerlin25805 жыл бұрын
Wouldn't the output on pin 13 be half the frequency of the input as the interrupt is triggered on one flank only?
@dismaldunc4 жыл бұрын
enjoyed that thanks!
@feelvlog84583 жыл бұрын
What is the use of this module on Arduino
@falabimayode2505 жыл бұрын
Great video! I saw a video you used rf 433 module to send data I am currently stuck trying to use it to send data from an accelerometer to a dc motor, can you help with that
@hppatelmaths4 жыл бұрын
How can I turn on a bulb using a simple mobile phones alarm clock .. Please help me in this . Is this possible .
@PhG19615 жыл бұрын
Excellent !!
@pareshmhatre40192 жыл бұрын
what should one do for 12 hour format setting?
@pareshmhatre40192 жыл бұрын
I found a little piece of code for 12 hour format void ampm(int Hour){ //ampm function takes the hour value 0-23 if(Hour==0){ //if it's 0 it becomes 12 Hour=12; a=true; //true if it's am, false otherwise lcd.print(Hour); } else if(Hour>0 && Hour12){ Hour=Hour-12; //substract 12 to bring it back to 1,2,3,... a=false; lcd.print(Hour); } }
@elirhodeestrella59075 жыл бұрын
can you make a video about using android phone connected to wifi to control home equipment and appliances??
@ahmedel-sinousy48482 жыл бұрын
RTC doesn't update time what should i do, am using RTC DS1307
@cameramensandy5 жыл бұрын
5:50 wire rtc to arduino 6:04 About Library
@MrHoangphan734 жыл бұрын
good... thanks you.
@shashankbagda69704 жыл бұрын
How can i add 12c screen or 16×2 lcd with arduino and tiny rtc... Please share me pinout and code for that...
@Ic3Editz4 жыл бұрын
what kind of battery does it use
@neilausten94045 жыл бұрын
The link to the full article doesn't seem to be working.
@mnsenocak5 жыл бұрын
dbot.ws/tinyrtc is the correct address, I think the author made a typo :-)
@danwhiffen92355 жыл бұрын
Am I the only one that noticed at 12:13 that the time set against your computer was 11 seconds off? My OCD is acting up!
@aleks_mag5 жыл бұрын
you are incredible
@dimitriosa8tsipouras9534 жыл бұрын
When i use i2c scan i found 2 adress 0x50 and 0x68, from the library they use the 0x68. Did anyone know what the use of 0x50 adress?
@oqibidipo4 жыл бұрын
The module has a 24C32N EEPROM chip (4 kilobytes).
@nixo00773 жыл бұрын
Doskonałe wideo, pozdrawiam
@NoahPeeters5 жыл бұрын
Amazing informative video! Could you maybe make a video about the esp 32 module? I'm trying to figure out how it's Bluetooth and wifi work and how it can be connected to a smartphone. I would really appreciate it if you could make a video about it. Keep up the great work!
@ali.._..4 жыл бұрын
Hello Sir, the link which you have provided isn't working i.e dbws/tinyrtc