tag:blogger.com,1999:blog-68321704105285665532024-03-13T18:52:09.003+00:00David BriddockDavid Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.comBlogger328125tag:blogger.com,1999:blog-6832170410528566553.post-50996313049894628282024-03-01T10:50:00.000+00:002024-03-01T10:50:48.955+00:00Home400,000 Pageviews
As my pageview count passes the 400,000 mark I feel blessed to know the information, turorials and code examples continue to inform, inspire and educate people of all ages in homes, coding clubs and teaching establishments all around the globe.
Raspberry Pi Python Coding Tutorials
If you are the proud owner of a Raspberry Pi why not begin your Python 3 coding journey be David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.comtag:blogger.com,1999:blog-6832170410528566553.post-90522064293494567622023-12-01T11:11:00.000+00:002023-12-01T11:44:14.936+00:00Learn Python on the Raspberry PiA Gentle Introduction to Python Coding on the Raspberry Pi
The Raspberry Pi is a low cost educational computing platform specifically aimed at hardware and software experimentation.
This interactive tutorial is based around my multi-part Micro Mart magazine series Learn Python on the Raspberry Pi.
Learn Python by experimentation, typing in the fully documented code to discover how to David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-13274961881768820022023-11-20T20:23:00.012+00:002023-11-23T21:30:31.561+00:00Raspberry Pi 5
The powerful new Raspberry Pi 5 is available to pre-order right now.
Although similar in looks to its predecessors there is an in-house designed RP1 I/O controller chip.
This silicon supports USB 3 for more total bandwidth and much faster transfer speeds. Plus the Camera and DSI display connectors are interchangeable, so you can have one of each, or two the same.
Of course, there is also a David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-86401118375442536952023-08-23T19:19:00.023+01:002023-08-23T19:44:52.013+01:00Pi Code Editor now Open SourceThe Raspberry Pi Foundation showcased its " target="_blank">Online Code Editor back in April 2023.
This lightweight browser-hosted editor, which works well even on low-power low-bandwidth devices, is ideal for anyone using coding tutorials, such as my Free Python Coding Tutorials.
Now, in August 2023, Pi Foundation has decided to open source the Code Editor project and encourages submissionsDavid Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-23496789576453686602022-12-08T11:11:00.006+00:002022-12-08T13:10:51.691+00:00Future of Python
Follow the links below to hear Guido van Rossum - the creator of Python programming language - talk to Lex Fridman about the future of the language.
• Lex Fridman Podcast
• #341 on Apple Podcasts
• #341 on Spotify
Topics discussed include...
• CPython
• Code readability
• Indentation
• Bugs
• Python 3.11 Speed
• Type hinting with mypy (and other similar tools)
• Best IDE for Python
• Python David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-42436356403514875242022-06-30T16:16:00.004+01:002022-12-08T13:04:24.154+00:00Raspberry Pi Pico WToday the Raspberry Pi Foundation launched an updated Pico board called the Pico W.
As the name suggests the new $6 Pico product has wireless caabilities, specifically 802.11n wireless networking based on the CYW43439 wireless chip and encapsulated in a metal shield can.
The Pico W is powered by 40nm low-power RP2040 microcontroller, with two 133MHz Arm Cortex-M0+ cores, 264kB of on-chipDavid Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-61748661703048596332022-02-17T00:02:00.005+00:002022-08-23T21:59:51.073+01:00New Raspberry Pi OS and the Model 5Does the latest official operating system release from the Raspberry Pi Foundation hint it is preparing the way for a new and even more powerful Raspberry Pi?
To take full advantage of this new Debian 11 ‘Bullseye’ based OS, and access its ’Mutter’ windows manager, you’ll need a Raspberry Pi Model 4 board or Raspberry Pi 400 desktop PC.
To satisfy users with older Raspberry Pi models with less David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-12379873931988298192021-11-27T12:12:00.013+00:002023-08-23T19:37:32.712+01:00Raspberry Pi (LEGO®) Build HatCombine a LEGO® kit with the power and flexibility of a Raspberry Pi computer and you’ll open up endless possibilities for design, engineering and construction. However, there are a few challenges involved in interfacing LEGO® components to the Raspberry Pi board's ports.
But now this challenge has been greatly simplified by the release of the Official Raspberry Pi Build Hat and three other David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-2000103928801682352021-11-01T12:12:00.003+00:002021-11-01T18:41:44.113+00:00Raspberry Pi Zero 2 WThe popular low cost Raspberry Pi Zero has been upgraded to the Raspberry Pi Zero 2 W.
You can now take advantage of a new processor with 5x faster performance and improved connectivity thanks to WiFi and Bluetooth for the bargain price of £13.50 or $15.
Specifications are as shown below...
• 1GHz quad-core 64-bit Arm Cortex-A53 CPU
• 512MB SDRAM
• 2.4GHz 802.11 b/g/n wireless LAN
• Bluetooth David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-34769741202541958172021-02-06T12:12:00.001+00:002023-08-23T19:37:57.984+01:00Wireframe Python Game Coding Series
Published by Raspberry Pi Press the Wireframe magazine is aimed at the gaming enthusiast with news, reviews, insights and coding tutorials.
There's a free to download digital edition and a paper version available from high street outlets such as WH Smiths and a number of supermarkets.
Below I provide an issue-by-issue list of the Toolbox section's Source Code articles on game simulation David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-55348907235125460612020-12-01T11:11:00.000+00:002020-12-01T18:59:53.459+00:00New Micro:bit Version 2 - Out NowThe new Micro:bit version 2 is now on sale.
While this Version 2 board is backwardly compatible with the previous Micro:bit board there are many new features and capabilities to help us create a wider range of software and hardware projects.
Here's a list of the Version 2 changes and additions:
• 4x Faster 64MHz Arm Cortex-M4 + FPU processor
• Larger 512KB Flash storage on board
• Larger 128KBDavid Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-18572087347215080392020-11-02T02:11:00.003+00:002022-02-17T00:01:28.413+00:00The new Raspberry Pi 400
As of today there's a new and simpler way to join the Pi clan with the Raspberry Pi 400.
All the elements of a Raspberry Pi 4 are neatly embedded in a Pi-branded keyboard unit, namely a quad-core 64-bit processor, 4GB of RAM, wireless networking, dual-display HDMI output with 4K video playback and that classic 40-pin GPIO port.
Even better it comes complete with an SD-Card preloaded with the David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-4909749816425676182020-11-01T00:11:00.002+00:002020-11-01T01:02:36.321+00:00LEGO® and micro:bit with Brown Dog Projects
I recently came across the Brown Dog Projects website and its selection of simple-to-build, easy-to-code LEGO® themed projects using low-price microprocessor boards like the popular micro:bit.
You can also buy a number of kits, including a micro:bit board kit.
This kit has a Crazy Circuits Bit Board to simplify LEGO® brick and micro:bit board connectivity, plus many other items including a David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-57636194616246085622020-10-15T15:15:00.042+01:002020-10-15T19:53:47.901+01:00Anton's LEGO® Construction Projects
The web contains many sources of information on LEGO® programmable hub/brick technologies and the associated construction kits. One of these is from a guy called Anton.
Anton has a blog containing How-To tutorials which explain the steps required construct and program LEGO® robot projects, like the ones show in his videos.
For example, Anton has a Bluetooth wireless remote control of David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-20242602088114463702020-10-10T10:10:00.008+01:002020-10-15T19:45:55.279+01:00LEGO® and Python and PyBricks
<!--example code image >>> https://pybricks.com/news/pybricks-now-in-beta/-->
Over the 20 years LEGO® have created a number of intelligent programmable hub/brick technologies for LEGO® MINDSTORMS, LEGO® TECHNIC, LEGO® CITY, LEGO® BOOST and most recently LEGO® SPIKE.
However, the ability to use the Python programming language for coding LEGO® hub/bricks is a more recent innovation. One of David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-47302912773850550312020-10-04T12:12:00.015+01:002020-10-06T18:59:09.705+01:00LEGO® SPIKE™ and MicroPython
LEGO® SPIKE™ is an education-level product from the LEGO® intelligent programmable hub/brick family.
LEGO® SPIKE™ simplifies the connection of motors and sensors - such as touch, distance-ultrasonic, and color/light - and provides a programming interface via the popular Scratch coding language.
LEGO® SPIKE™ brick/hub has six ports, a speaker, a 5x5 light matrix, a 6-axis gyroscope, David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-90845508251434750242020-10-04T04:04:00.001+01:002020-10-13T16:46:34.198+01:00Python Math - SageMath
SageMath is a free open-source mathematics software system licensed under the GPL. Released in January 2020, SageMath 9.0 now runs on top of Python 3.0 programming langauge.
SageMath builds on top of many existing open-source packages, such as NumPy, SciPy, matplotlib, Sympy and many others. This powerful functionality is accessed through either a Python-based language or more directly using David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-3435191037659074422020-10-01T09:09:00.006+01:002020-10-01T19:59:03.756+01:00Python Math - Function Plotting
Python benefits from an impressive set of graphing packages. However, many of the most popular ones tend to be focussed on the data visualisation side of things rather than mathematics.
When it comes to plotting math functions consider an exploraion of the functionality provided by the matplotlib package. This mature package works runs on a wide range of operating systems and has some David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-82185615471580693272020-09-20T20:09:00.004+01:002020-10-01T19:58:44.411+01:00Python Math - Complex Numbers
<!-- CREATE PyMath icon?? -->
Imaginary Numbers and Complex Numbers are vital to solving many mathematical problems - including the study of waves, electric motor efficency and fractals.
Python uses the j symbol to represent the imaginary part of a Complex Numbers.
An example of how this is done is shown in the Python Interactive Mode session below...
>>> a = 4 + 3j
>>> print(a)
(4+3j)
David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-10623878066442494422020-09-15T12:12:00.005+01:002020-10-01T19:58:30.436+01:00Python Math - math module<!-- CREATE PyMath icon?? -->
The Python language math module has a good collection of functionallity. Here are a few highlights to help with solving common math problems.
Constants
There are a number of useful constants in the math module:
#Import math module
import math
math.e
math.pi
math.tau
Factorials
There is a useful factorial() function:
#Import math module
import math
num David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-89050132971969897882020-09-01T09:09:00.049+01:002020-09-19T19:02:52.858+01:00Game of Life in Python Turtle Graphics
In the September 2020 issue of the Linux Format magazine (LXF) you'll find a Calvin Robinson article on how to code the classic Game of Life simulation, as invented by mathematician John Horton Conway.
The source code examples for this article are in the Python language and use its Turtle Graphics capabilties.
Creating a Turtle Graphics program is fun. But if you'd prefer a more efficient David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-48065815282987942662020-08-07T16:41:00.011+01:002020-09-15T12:48:51.080+01:00Self-Replicating Python Code - Quines and Introns
Lex Fridman is well known for his in-depth AI-focussed interviews with some of the key people in artificial intelligence machine learning, software development and technology in general.
In a recent YouTube video post Lex explains how to write self-replicating Python code in the form of Quines and Introns.
Try My Free Python Coding Tutorials
David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-83313751981326685492020-08-01T11:11:00.011+01:002023-08-23T19:38:32.900+01:00Mars Rover for Micro:bit or Raspberry Pi Zero
With all the excitement of the NASA Mars 2020 Mission launch on 30th July, maybe you fancy building your own Mars Rover vehicle.
Then take a look at the 4tronix MARS Rover Robot Kit.
The self-assembly kit is loosely based on the NASA/JPL Curiosity and Mars 2020 rover designand uses a similar rocker arm, bogey and differential arm mechanism.
It can be controlled with either a Micro:bit or David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0tag:blogger.com,1999:blog-6832170410528566553.post-59590885460898201892020-07-19T10:10:00.000+01:002023-08-23T19:39:03.060+01:00JavaFX Coding on Raspberry Pi
In the July Java Magazine there's a tutorial-style article on JavaFX programming with the Raspberry Pi.
In this tutorial Frank Delporte explores a maker-style project and explains everything from first principles including Java installation, multiple code listings, GPIO introduction, the electronic components inventory list, circuit diagrams and much more.
If this article make you hungry for David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com1tag:blogger.com,1999:blog-6832170410528566553.post-46800510807693855012020-07-17T12:12:00.002+01:002023-08-23T19:39:18.108+01:00Adafruit's PyPortal for Raspberry Pi
In the recent Linux Magazine there's an article about the PyPortal from Adafruit
While relatively expensive this product is a very flexible enhancement to your Raspberry Pi, with a touch-screen plus it's own microprocessor, sound output and WiFi connection.
The product's potential can be glimpsed with a quick web search, which will uncover plenty of powerful maker-style projects.
Discover David Briddockhttp://www.blogger.com/profile/13970086299193069946noreply@blogger.com0