Skip to main content

Posts

Showing posts from February, 2017

Raspberry Pi as a Computer

Raspberry Pi is an amazing devise in credit card size that can replace even CPU of your computer hence you can use Raspberry Pi as a personal computer!!! The Raspbian OS comes with Web browser, pdf viewer, Python games etc. You can download necessary application softwares from Raspberry Pi store. You can connect connect display, mouse, keyboard etc. with your Raspberry Pi. In the figure shown below showing connecting USB keyboard to your Raspberry Pi. Inserting the USB Keyboard Connecting a display The Raspberry Pi can be connected by HDMI or composite video directly. With the use of an adapter you can connect it by DVI or VGA. You should use HDMI or DVI whenever possible because they give a better picture. Look at the sockets on your display to determine how to connect your Raspberry Pi. Connecting via HDMI If your display has an HDMI input, as shown below, then connect your Pi with an HDMI-HDMI cable. This is the only type of video connection that can also be used

AVR data format and directives

In this section we look at some widely used data formats and directives supported by the AVR assembler. AVR data type The AVR microcontroller has only one data type. It is 8 bits, and the size of each register is also 8 bits. It is the job of the programmer to break down data larger than 8 bits (00 to OxFF, or 0 to 255 in decimal) to be processed by the CPU. The data types used by the AVR can be positive or negative. The bit-addressable data is discussed in later. Data format representation There are four ways to represent a byte of data in the AVR assembler. The numbers can be in hex, binary', decimal, or ASCII formats. The following are examples of how each works. Hex numbers There are two ways to show hex numbers: 1. Put Ox (or OX) in front of the number like this: LDI RI 6, ox99 2. Put S in front of the number, like this: R22, $99. We use both Of these methods in this book, because many application notes out there use one of them and we need to get used to them.

Power up Raspberry Pi

We discussed how to flash OS on SD card from different operating system like Windows, Linux or Ubuntu and MAC. Now we want to insert SD card on Raspberry Pi and give proper power supply for Raspberry Pi. This is discussed in this session. Inserting SD card on Raspberry Pi One of the most frequently neglected parts of a system tends to be the power supply—at least when everything is working. Only when things get weird does the power supply begin to get some scrutiny. The Raspberry Pi owner needs to give the power supply extra respect. Unlike many AVR class boards, where the raw input voltage is followed by an onboard 5 V regulator, the Pi expects its power to be regulated at the input. The Pi does include onboard regulators, but these regulate to lower voltages (3.3 V and lower). Figure shown below  illustrates the rather fragile Micro-USB power input connector. There is a large round capacitor directly behind the connector that people often grab for leverage. It is a mistake

When want to go for RasPi?

Who Should Use the RasPi Anybody who wants to transform an engineering concept into a real interactive electronics project, prototype, or work of art should consider using the RasPi. That said, integrating high-level software and low-level electronics is not an easy task. However, the diffi culty involved in an implementation depends on the level of sophistication that the project demands. The RasPi community is working hard to ensure that the platform is accessible by everyone who is interested in integrating it into their projects, whether they are students, makers, artists, or hobbyists. For example, the availability of the Scratch visual programming tool on the RasPi (tiny.cc/erpi101) is an excellent way to engage children with both computer programming and the RasPi. For more advanced users with electronics or computing knowledge, the RasPi platform enables additional development and customization to meet specific project needs. Again, such customization is not trivial:

Features of Python

a) Simple and easy-to-learn: Python is a Simple language with few keywords, simple structure and it's syntax is also clearly defined. This makes Python a beginner's language. b) Interpreted and Interactive:  Python is processed at runtime by the interpreter. We need not compile the Program before executing it. The Python prompt Interact with the interpreter to interpret the Programs that you have written. Python has an option namely interactive mode which allows interactive testing and debugging of code. c) Object-Oriented: Python supports Object Oriented Programming (OOP) concepts that encapsulate code within objects. All concepts in OOPs like data hiding, operator overloading, inheritance etc. can be well written in Python. It supports functional as well as structured Programming. d) Portable: Python can run on a wide variety of hardware and software platforms and has the same interface on all platforms. All variants of Windows, Unix, Linux and Macintosh are to nam

More about Installing Raspbian

Now that you know a bit more about Raspbian, it is time to get started. The first thing that you need to do is plug in your Raspberry Pi and then install Raspbian onto an SD card. This process is different from installing software onto your Windows PC or Mac. In this post, we will cover the following topics: • SD card specifications • Downloading Raspbian • Imaging Raspbian onto your SD card SD card specifications It is recommended that your SD card has the following specifications: Capacity: At least 8 GB Class       : Class 4 is minimum but class 10 is recommended Make sure that you get the correct SD card. Raspberry Pi A and Raspberry Pi B both use a full-sized SD card. Raspberry Pi B+ uses a mini SD card. It is highly recommended that you don't run your Raspberry Pi without an SD card. This is because all the hardware on your Raspberry Pi will not be set up correctly. This might lead to the damage of your Raspberry Pi hardware. Downloading Raspbian