Raspberry Pi Documentation

~Saranya

The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse. It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Scratch and Python.

What you will need

The Raspberry Pi ships as just the single-board minicomputer. There are a few additional components you will need before you can get started. So, when making your purchase, keep in mind that you’ll need the following extras.

  • Raspberry Pi zero
  • 5V micro-USB power supply
  • USB keyboard
  • USB mouse
  • microSD card(8GB or 16GB)
  • A monitor that supports HDMI
  • An HDMI cable
  • Wi-Fi dongle

Step 1: Reformat your microSD card

When the reformat is complete, you will get a notification window. Select OK to close the window.

Step 2: Download the Raspberry pi 

There is two different version that we learnt one is Terminal version another one is Desktop version. Here is the link to download Terminal version and Desktop version:  https://www.balena.io/etcher/      and  https://www.raspberrypi.org/downloads/

Here is the image for the page to download the Raspberry pi.

Terminal Version:

After installing it will ask your username and password. Then check your IP Address by typing this command if config ……

Step 3: Set up your Raspberry Pi

  • Insert the microSD card into the card slot on the underside of the Raspberry Pi.
  • Plug the USB keyboard into one of the USB ports.
  • Plug the USB mouse into one of the USB ports.

  • Turn on your monitor.
  • Plug the HDMI into the monitor.
  • Connect the other end of the cable into the Raspberry Pi.
  • Connect the power supply to the Raspberry Pi.

Once the installation process is finished, Raspbian will automatically begin to boot(Desktop version).

Step 5: Configure your Raspberry Pi

When Raspbian begins to load a bunch of lines of code will appear. This will continue until the boot process has completed. Then, the Raspbian Home screen will appear. You will need to configure your Raspberry Pi system in order to add your location, date, and time.

  • Click Menu in the upper left corner of the screen.
  • Select Preferences in the dropdown menu.
  • Select Raspberry Pi Configuration under Preferences.
  • When the configuration window appears, click on the Localisation tab.
  • Click on Set Locale… to set your location.
  • Click on Set timezone… to set your local time.
  • Click on Set Keyboard… to set your keyboard language.

  • Reconfiguring your Raspberry Pi will require a reboot. When the reboot window appears, click Yes to continue.

 

We did LED blink by connecting IP address. We accessed that LED in remote location it was like if we forgot to turn off the A/C. Wherevr we are by using raspberry pi we can turn it off the A/C. Here is the code for turn on and turn off the LED.

Once the terminal version installation process is finished, Raspbian will automatically ask username and password(Terminal version). Remining process please follow this video.

 

 

 

 

Learning scratch

The 7th graders (2018-2019 batch) had stepped in for their Mathematics class for the first time in STEMland this year.  They took their own time and became familiar with filling their weekly plan and updates on the laptops. They saw their seniors work on projects and were eager to learn, some of them took the courage to approach and did learn a few blocks in scratch and got the feel of it, but had a little hard time on expanding their code. They often started to play around with the back ground painting and changing colors of sprites, but the coding part was still a little confusing.

The previous batches had a guidance course into scratch and that had kicked started their projects.  I had thought to do something of this type and get the current batch flexible with programming too. Then as a team we decided to create diversity in the class and put up an announcement for all those who were interested in attending the course to sign up. 5th graders from Isaimambalam had shown interest and 8th graders from Udavi along with the interns in STEMLand the course began.

All the participants were eager to code and make the computer do what they want rather the vice versa. Pairs were made on a mix up of boys and girls, young ones and elders, interns and students. Each day started with a focused goal and how to broaden it when attained and make the program more flexible. Girls were eager in writing their scripts and explaining their program at the end of day or beginning of the next session on the main screen. Some children did not want to move on to the next task unless they had completed the current one to their satisfaction, and took extra time and involved in making their program more stable.

Through the course the children had learnt to use the pen function and through this draw regular shapes. Once they knew the basics they made the same program dynamic and used ‘for loops’ to show all the shapes starting from an equilateral triangle to square, pentagon, hexagon, heptagon, octagon, nonagon, and decagon.

The children had learnt importing and exporting of sprites (arc function to draw arcs in practical geometry, writing sprites to print on the screen)

Then they were divided into teams and created a game based on sensing objects or colors (similar to a maze game but when sprite touches a wall or unwanted object the game resets)

The children were given feedback forms, and the reflections were showing that they all are more confident now than before in doing projects with scratch. They also mentioned as teams they were able to learn and help each other more.

Towards the end all children had made a number of projects to show what they had learned through the course. This was a stepping stone for them to continue and make projects based on their curriculum to project their mastery over a concept.

At present the children have come up with new projects, e.g. Abinash, Shakthikannan have created projects in measurements. While Murali took it to the next level and is doing a project from out of his syllabus (a+b+c)^2. This has inspired others and Guna sundari, Yuvan, Jeeva, Jannani, Anisha have started to expand from (a+b)^2

WordPress course

Day 1

# What is WordPress

WordPress is an open source, free to use Content Management System. It was initially designed and build to support emerging bloggers to
effectively communicate the message to larger audience by focusing more on the content and reduce the time investment required to code a new page for every single post.

# What is a domain & a server

A web domain is an ip address with human readable name mask that points to your website when a user types it in the web browser.
A domain is just a name available on the web to point to the directory where you keep your website, to build that directory you need a web server.

# Download and install Local server –

– Xampp – https://www.apachefriends.org/download.html
– Wamp – http://www.wampserver.com/en/

# Setting up database and db_user

Once we download and install Xampp/Wampp server, we need to create a new database. To do it easily, we run the xampp/wampp server, then in the web browser we type – localhost/phpmyadmin or localhost:8080/phpmyadmin

In phymyadmin look for the option create database. Give it a unique name and for language, select collection and hit the create database button.

# Installing WordPress

– Go to – https://wordpress.org and download the latest available version of the WordPress.
– Unzip the files into your htdocs folder

# WordPress folder hierarchy

———————–
| htdocs/www | ————- This is your web server’s root directory.
———————–
|
|
|
———————
|WordPress/public_html| ————- This is your web site’s home directory.
———————
| \
| \
| \
| \
| \
| —-=> This is where all your need to Extract all data
| from the .zip file we downloaded from wordpress.org

Day 2

Go to your home page

Appearance → Themes

Download themes from online.

Plugins →support theme to avoid spam activate it.

Search for install plugin

setup mail → install and activate sends email

For page builder

search for elementor pro. Download and extract it under

Xampp/ htdocs/wordpress/ wp-content/ plugins

Day 3

Download Oceanwp

Themes-→Addnew → upload themes

Check if you have style.css in your extracted oceanwp

If you have it compress oceanwp to zip file and upload it

If you get an error php.ini

Go to xampp/htdocs/wordpress/wp_config

Add a line Define(‘WP_MEMORY_LIMIT’,’256M’);

Above /* That’s all, stop editing! Happy blogging.*/

Stop Apache and start it again

If you get the same error again

Go to xampp/php/php.ini

Find

1) memory_limit set it to 512M

2) max_input_time set it to -1

3) max_execution_time set it to 30

4) upload_max_filesize set it to 512M

Stop Apache and start again

choose file → oceanwp1.15.zip → install now

Activate the theme and bigin installing plugins

Click install on ocean extra

Download and extract wptest.io . It is a demo data for wordpress

Dashboard → tools → import→ wordpress → install now → Run importer → choose file → wptest_master → wptest.XML doc → open upload file and import → select all as admin

select download and import file attachments and submit

Dahboard → appearance → menus

Theme panel select themes and save changes.

To set Logo

Browse online for freepick or freelogo and download

To change font and style

Typography → choose options