Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Raspberry Pi Sensors
  • Toc
  • feedback
Raspberry Pi Sensors

Raspberry Pi Sensors

By : Rushi Gajjar
4.4 (9)
close
Raspberry Pi Sensors

Raspberry Pi Sensors

4.4 (9)
By: Rushi Gajjar

Overview of this book

This book is perfect for hardware enthusiasts who want to develop amazing projects using Raspberry Pi. Some knowledge and experience working with Linux, C, and Python is a plus, but once you're set up to go, you'll be ready to push the creative capabilities of your Raspberry Pi even further.
Table of Contents (10 chapters)
close
9
Index

Synchronizing the clock with the Internet


It is really difficult when the date and time of the RasPi are not synced with the local time zone while logging the data. It is much more difficult once you set up your logging device or sensor node in a remote place that doesn't have uninterrupted power supply. You might have noticed that whenever the RasPi boots up, the clock shows the incorrect time. Check it yourself by entering the date command in the command-line interface of the RasPi. Also, in the previous chapter, you might have noticed that the time logged in the .csv log file is not showing the refreshed date. No, the RasPi doesn't time-travel when it's sleeping! It's just because it doesn't have a dedicated button cell to power its real-time clock (RTC). To make the RasPi cheaper, the designers removed a lot of functionalities that normal desktops or laptops have.

A desktop computer has an inbuilt button cell to power the internal RTC. To achieve this with the RasPi, you can interface...

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete