Code Tutorials for the Raspberry Pi, Python and Microsoft Small Basic

Raspberry Pi

Articles and tutorials



Raspberry Pi on a PC

You can download Raspian and PIXEL and run it on your old PC, Mac or laptop. It looks just like a Raspberry Pi

Which programming language for the Raspberry Pi

Should you use Python, C, C++, Java, Julia, Scratch...? This article briefly introduces some alternative languages and demonstrates them with some simple programs.

 

Learning to program in C

C is the world's most popular language, according to Simon Long. 

Weather According to Raspberry Pi

Here is a small software project that lets you see the atmospheric data from a SenseHAT (or emulator) on your laptop or phone. You can download the the software for free! (If I were in marketing, I'd probably say "for FREE".)

WARP - how it works, part 1 

Using Flask as a Python web server.
  

Run PIXEL from a hard drive


You can now try out a hard drive install with this unofficial version of Debian PIXEL.

Run PIXEL in a virtual machine on a PC

If you are nervous about installing PIXEL on a hard drive then why not use a VM. It's quite straightforward. Here's how.


Python tutorials 


Just enough Python

This is a series of tutorials to get you going with Python on your Raspberry Pi. It is NOT a comprehensive guide to Python but  teaches you enough to be able to give you a flavour of the language and to produce useful programs.

Introduction to programming with Python

A free ebook or a very reasonably priced paperback that provides a very broad coverage of the Python language.

Intermediate level Python tutorials

For these tutorials we assume some familiarity with Python and the Raspian operating system

Flask

Flask is a framework that lets you create dynamic web pages using HTML and Python. While these tutorials are aimed at Raspberry Pi users they are also applicable to Python users on almost any Linux  platform.

Use Flask to put your Pi sensor data on the net - part 1
This tutorial introduces Flask and shows how to create a simple Flask program in Python.

The second part of the tutorial introduces Flask templates and shows how to create a dynamic web page- The example given can be used to display images from a webcam.



Microsoft Small Basic

Small Basic is a simple language for beginners and for having fun. Its official site is here http://smallbasic.com  You can download it here and there are tutorial and lots of other resources, too.

The following tutorials are for programmers who are familiar with Small Basic but now want to move on to a more professional language.

These tutorials show how the Small Basic library (Graphics Window, etc.) can be used in C# and VB.NET thus building on the experience that Small Basic programmers have gained whilst utilizing the power of  a modern object-oriented language.

The tutorials assume that you have worked through the Small Basic tutorial.

Which Language next?

Moving on to C# 1 (with SharpDevelop)
Moving on to C# 1
Moving on to C# 2: variables
Moving on to C# 3: conditions
Moving on to C# 4. Loops
Moving on to C# 5. Functions
Moving on to C# 6: Spirograph

Moving on to VB.NET 1: Creating a template

Moving on to Javascript

Local variables, parameters and return values in Small Basic

Most modern languages allow the use of local variables in subroutines and provide the ability to pass values into a subroutine using parameters and out again with a return value. SB doesn't have this capability but this tutorial demonstrates a technique that mimics their use in Small Basic.

General Tutorials


AJAX



Comments

Popular posts from this blog

Just Enough Python

Learn to code with C

Introduction to Python by Andrew Ng