Kategorie: Linux

  • How to use an LED with Raspberry Pi

    How to use an LED with Raspberry Pi

    Reading Time: 2 minutes

    Learn how to use an LED with Raspberry Pi in our latest How to use video on YouTube.

    HOW TO USE an LED with Raspberry Pi

    Subscribe to our YouTube channel: http://rpf.io/ytsub Help us reach a wider audience by translating our video content: http://rpf.io/yttranslate Buy a Raspberry Pi from one of our Approved Resellers: http://rpf.io/ytproducts Find out more about the #RaspberryPi Foundation: Raspberry Pi http://rpf.io/ytrpi Code Club UK http://rpf.io/ytccuk Code Club International http://rpf.io/ytcci CoderDojo http://rpf.io/ytcd Check out our free online training courses: http://rpf.io/ytfl Find your local Raspberry Jam event: http://rpf.io/ytjam Work through our free online projects: http://rpf.io/ytprojects Do you have a question about your Raspberry Pi?

    Using LEDs

    LEDs (light-emitting diodes) are incredibly useful in digital making projects. You can use one to indicate whether a script is running or when an action can take place, or as decoration, and for so much more besides.

    Blinking an LED with the help of Raspberry Pi has become a rite of passage for new digital makers: it’s the physical equivalent of the ‘hello world’ program! Therefore, it’s the first thing that the participants in our Picademy training, and many young people in physical computing sessions at coding clubs in our networks, learn how to do.

    Follow the steps in our latest How to use video to learn how to control an LED with your Raspberry Pi, and go get making.

    More Raspberry Pi videos

    You can find the How to use YouTube playlist here, and you can subscribe to our channel and never miss a video!

    And, while you’re in a subscribe-y mood, also subscribe to the Raspberry Pi Press YouTube channel, the home of all content from The MagPi, HackSpace magazine, WireFrame, Custom PC, and more.

    Website: LINK

  • arduino-cli 0.8.0 is here!

    arduino-cli 0.8.0 is here!

    Reading Time: < 1 minute

    arduino-cli 0.8.0 is here!

    Arduino TeamFebruary 14th, 2020

    Our dev team is grateful for the high quality contributions that the project is receiving, and is working hard to collect all the lovely feedback we have received to shape the Arduino CLI into the best tool possible for the community!

    Highlights of our latest release include:

    • Resource usage improvements
    • Better libraries handling
    • Bug fixing

    You can see the full list of changes here.

    Website: LINK

  • RetroFlag GPi Case

    RetroFlag GPi Case

    Reading Time: 2 minutes

    More than a simple enclosure for the Raspberry Pi Zero, this rather familiar-looking unit is a full-blown battery-powered gaming console that (just about) fits in the palm of your hand.

    The RetroFlag GPi Raspberry Pi Case is an ideal size and has a fab IPS screen

    Game on

    The clever design of the RetroFlag GPi case replicates that of eighties handheld consoles, including a cartridge-like unit that slides out of the rear and is quickly disassembled to reveal space for a Raspberry Pi Zero. A very neat ‘pogo’ mounting system means no header or soldering is required: a Raspberry Pi Zero just slots in and pressure maintains the contacts. The reassembled unit then slots into the main body and you’re ready to go. You can even access the microSD card without removing the ‘cartridge’. Power is supplied by three AA batteries or a supplied USB cable.

    A Raspberry Pi Zero or Zero W fits snugly inside the RetroFlag GPi Case

    Full and clear instructions are provided to install support for the gamepad buttons and also the on/off switch that provides easy and safe shutdown. We found the unit easy to assemble and had the retro games simulator RetroPie running in no time at all.

    We were particularly impressed by the RetroFlag’s screen, which uses IPS rather than TFT to give a razor-sharp display from any angle without any of the common side-lighting issues. A small audio speaker is built-in, with the option of headphones. The case itself is injection-moulded, solid and beautifully made.

    Specifications

    • Dimensions: 
138×81×32 mm

    • Weight: 
138 g

    • Display:
 2.8-inch IPS

    • Powered by:
 3 AA batteries or USB

    • Compatibility:
 Raspberry Pi Zero or Zero W (not Zero WH)

    Verdict

    Pi Hut’s RetroFlag GPi is one of the best gaming cases we’ve seen. A great design, easy assembly and, most of all, great fun to use. An essential 
purchase for any retro gamer.
    10/10

  • Arduino 1.8.12 is out!

    Arduino 1.8.12 is out!

    Reading Time: < 1 minute

    Arduino 1.8.12 is out!

    Arduino TeamFebruary 13th, 2020

    Today, we are excited to announce the arrival of the Arduino IDE 1.8.12.

    Wow! Another release just after two weeks, you ask?

    Well, we fixed some serious bugs related to the compiler, and more importantly, we had to take a step back with respect to the transition to the new Java Virtual Machine from OpenJDK. Since we had received so many reports from our users, we decided to do a release with the old JVM in order to have a bit more time to properly handle those issues and at the same time guarantee a better experience to our users.

    As usual, if you are curious, you can find the full changelog and contributors in the release notes here.

    Website: LINK

  • This retro-looking rotary cellphone is free of modern-day distractions

    This retro-looking rotary cellphone is free of modern-day distractions

    Reading Time: 2 minutes

    This retro-looking rotary cellphone is free of modern-day distractions

    Arduino TeamFebruary 13th, 2020

    What we carry today in our pockets is nominally called a “phone,” but more often than not we’re using it to do various other computing tasks. Justine Haupt, however, wanted an actual phone that “goes as far from having a touchscreen as [she could] imagine.”

    What she came up with is a rotary cellphone that’s not just a show-and-tell piece, but is intended to be her primary mobile device. It’s reasonably portable, has a removable antenna for excellent reception, a 10-increment signal meter, and, perhaps most importantly, doesn’t make her go through a bunch of menus to actually use it as a phone. Other features include number storage for those she calls most often and a curved ePaper display that naturally doesn’t use any power when revealing a fixed message.

    The project was prototyped using an Arduino Micro. It was then laid out of a PCB with an an Adafruit FONA 3G board and an ATmega2560V, programmed in the Arduino IDE.

    Haupt has published a detailed look at the build process here.

    Website: LINK

  • Pi Wars 2020 robots raring to go

    Pi Wars 2020 robots raring to go

    Reading Time: 2 minutes

    Pi Wars 2020 is going to be an absolute train wreck – at least that’s the hope of its organisers, Mike Horne and Tim Richardson. With a somewhat apocalyptic atmosphere swirling when it came time to choose a theme, Pi Wars organisers declared the 2020 event – the sixth Raspberry Pi robot battle weekend – would have a Disaster Zone theme.  

    Fans of zombie films, dystopia, and event horizons rubbed their hands in glee. The most switched-on 76 teams (of the 128 that applied) nabbed a place in the three-day competition which sees competitor Raspberry Pi-controlled robots pit their skills against each other in a range of non-destructive battles and challenges. Both autonomous and remote-controlled robots jostle for victory by completing up to seven fiendishly complex tasks. 

    Forest Fighters Shrub Bug robot at Pi Wars 2019. Photo by Mark Mellors (https://www.flickr.com/photos/7205519@N08/albums/72157679663827238)

    Catastrophic courses

    In previous years almost all the courses have been built by co-organiser Tim Richardson. This year sees several other course builders get in on the act, including Phil Hall with his Eco Disaster challenge [pictured]. Here, robots must navigate a course away from the toxic sludge spilled by an overturned tanker and reach the safe zone.

    Catastrophe and chaos will proliferate at this year’s Disaster Zone-themed Pi Wars. This is the new Eco Disaster course

    Robots vying for victory at Pi Wars 2020 will also have to face the ‚blind maze‘ of the Escape Route challenge and a bomb defusing Minesweeper course. Autonomous robots will encounter Lava Palava while robots that are remotely controlled face Zombie apocalypse, The Temple of Doom obstacle course and a Hindenburg Disaster version of the fiercely competitive Pi Noon balloon-popping head to head encounter.

    Rival robots circle each other in the Pi Noon ring at Pi Wars 2019

    DIY designs

    Newbies, veterans, and school teams each have dedicated competition days, helping ensure everyone has a fair shot of victory. Teams from 17 countries are taking part. Unlike TV’s Robot Wars (the original inspiration for Pi Wars), there’s no celebrity version – and each team is expected to design, build, and test their own robot.

    Pi Wars 2019 competitor Diddybot (photo by Mark Mellors) https://www.flickr.com/photos/7205519@N08/albums/72157679663827238

    Competitor entries to this year’s event, held over the final weekend of March at the University of Cambridge Computer Laboratory, filled up months ago and many teams have been blogging and tweeting about their robot’s build progress

    Spectator tickets are available here. Volunteers and under 16s get in free.

  • Code a Kung-Fu Master style beat-’em-up | Wireframe #32

    Code a Kung-Fu Master style beat-’em-up | Wireframe #32

    Reading Time: 4 minutes

    Punch and kick your way through a rabble of bad dudes in a simple scrolling beat-’em-up. Mark Vanstone shows you how

    Although released to tie in with Jackie Chan’s Spartan X, Kung-Fu Master was originally inspired by the Bruce Lee film, Game of Death.

    Kung-Fu Master

    Kung-Fu Master hit arcades in 1984. Its side-scrolling action, punching and kicking through an army of knife-throwing goons, helped create the beat-’em-up genre. In fact, its designer, Takashi Nishiyama, would go on to kickstart the Street Fighter series at Capcom, and later start up the Fatal Fury franchise at SNK.

    In true eighties arcade style, Kung-Fu Master distils the elements of a chop-socky action film to its essentials. Hero Thomas and his girlfriend are attacked, she’s kidnapped, and Thomas fights his way through successive levels of bad guys to rescue her. The screen scrolls from side to side, and Thomas must use his kicks and punches to get from one side of the level to the other and climb the stairs to the next floor of the building.

    Our Kung-Fu Master homage features punches, kicks, and a host of goons to use them on.

    Making our brawler

    To recreate this classic with Pygame Zero, we’ll need quite a few frames of animation, both for the hero character and the enemies he’ll battle. For a reasonable walk cycle, we’ll need at least six frames in each direction. Any fewer than six won’t look convincing, but more frames can achieve a smoother effect. For this example, I’ve used the 3D package Poser, since it has a handy walk designer which makes generating sequences of animation much easier.

    Once we have the animation frames for our characters, including a punch, kick, and any others you want to add, we need a background for the characters to walk along. The image we’re using is 2000×400 pixels, and we start the game by displaying the central part so our hero can walk either way. By detecting arrow key presses, the hero can ‘walk’ one way or the other by moving the background left and right, while cycling through the walk animation frames. Then if we detect a Q key press, we change the action string to kick; if it’s A, it’s punch. Then in our update() function, we use that action to set the Actor’s image to the indicated action frame.

    Our enemy Actors will constantly walk towards the centre of the screen, and we can cycle through their walking frames the same way we do with the main hero. To give kicks and punches an effect, we put in collision checks. If the hero strikes while an enemy collides with him, we register a hit. This could be made more precise to require more skill, but once a strike’s registered, we can switch the enemy to a different status that will cause them to fall downwards and off the screen.

    This sample is a starting point to demonstrate the basics of the beat-’em-up genre. With the addition of flying daggers, several levels, and a variety of bad guys, you’ll be on your way to creating a Pygame Zero version of this classic game.

    The generation game

    Because we’re moving the background when our hero walks left and right, we need to make sure we move our enemies with the background, otherwise they’ll look as though they’re sliding in mid-air – this also applies to any other objects that aren’t part of the background. The number of enemies can be governed in several ways: in our code, we just have a random number deciding if a new enemy will appear during each update, but we could use a predefined pattern for the enemy generation to make it a bit less random, or we use a combination of patterns and random numbers.

    Here’s Mark’s code snippet, which creates a side-scrolling beat-’em-up in Python. To get it working on your system, you’ll need to install Pygame Zero. And to download the full code, go here.

    Get your copy of Wireframe issue 32

    You can read more features like this one in Wireframe issue 32, available now at Tesco, WHSmith, all good independent UK newsagents, and the Raspberry Pi Store, Cambridge.

    Or you can buy Wireframe directly from Raspberry Pi Press — delivery is available worldwide. And if you’d like a handy digital version of the magazine, you can also download issue 32 for free in PDF format.

    Look how lovely and glowy it is.

    Make sure to follow Wireframe on Twitter and Facebook for updates and exclusive offers and giveaways. Subscribe on the Wireframe website to save up to 49% compared to newsstand pricing!

    Website: LINK

  • Mechanical 7-segment display made with micro servos and an Arduino Mega

    Mechanical 7-segment display made with micro servos and an Arduino Mega

    Reading Time: < 1 minute

    Mechanical 7-segment display made with micro servos and an Arduino Mega

    Arduino TeamFebruary 12th, 2020

    Flip displays are an interesting piece of technology, physically moving segments into place that stay put until other information is needed. Michael Klements has been especially fascinated by these devices, and after inspiration from another project, he decided to craft his own.

    His version utilizes 14 micro servos to flip segments into a visible position, then rotate them to 90° when no longer needed. This “off” mode displays a slimmer profile, and the sides and back are painted black, making them much less visible.

    An Arduino Mega, with 15 possible PWM outputs, is used to control the servos, while a hobby RC-style battery eliminator circuit provides power to the motors. 

    Be sure to check out the build process and in-action shots below! 

    [youtube https://www.youtube.com/watch?v=QMtNqJvMyzU?feature=oembed&w=500&h=281]

    Website: LINK

  • 50 Raspberry Pi 4 Tips and Tools: pt 2

    50 Raspberry Pi 4 Tips and Tools: pt 2

    Reading Time: 6 minutes

    For part I of this guide to tools every maker should have, see here.

    Warning

    Some of these tools use mains electricity and heated parts. Always follow connection instructions and never leave heated elements unattended.

    Cutting, trimming and coverings

    26. Card trimmer

    A card trimmer will enable you to cut crisp straight lines in paper or thin card. It’s much quicker than a ruler and craft knife. Small ones are good for trimming photos, and a good-quality trimmer will last for years.

    27. Robotic craft cutter

    A robotic craft cutter is very much like a plotter, but has a knife instead of a pen. They can cut very intricate designs out of paper and fairly thick card. They can be a bit temperamental and often need a sticky carrier sheet to work well.

    Equipped with a knife for precision cutting, a robotic craft cutter can cut intricate designs out of paper or card

    28. Laser cutter or engraver

    Laser cutters and engravers fire a laser at a material to either cut through it or to leave a mark or indent on the surface, depending on the intensity of the laser. Very effective for cutting irregular wooden shapes.

    29. Laminator

    Lamination is the process of coating a material with a plastic film. This protects the material from moisture and other damage. It also makes the material thicker. Plastic laminate comes in various thicknesses and surface finishes.

    Laminate your prototype model to protect it from moisture and general wear and tear

    30. Conductive paint

    Generally coloured black and supplied in a tube, conductive paint can be used to draw electrical circuits on paper or card, or to improve poor connections between components and even to create touch-sensitive areas on materials. Dries in a few minutes.

    Use conductive paint to draw electrical circuits or to improve connections between components

    31. Acrylic and thermoplastic sheet

    Acrylic plastic sheeting is very tough and can be cut using a saw or CNC router, whereas thermoplastic sheets are malleable when heated with a heat gun. Once cool again, thermoplastic retains its new shape.

    32. Polymorphic plastic

    This material is usually supplied as granules or beads. You can heat them up in boiling water and they will clump together in a mass. While still warm, you can mould the plastic before it sets hard in ten minutes or so.

    Polymorphic plastic beads can be moulded or shaped anyway you like and, once wet, will set hard in 10 minutes

    33. Aluminium foil

    Available from convenience stores and supermarkets, aluminium foil can be used as a conductor in a circuit, as shielding to reduce electromagnetic interference, and also to reflect light and heat either away from or towards an area.

    Tools for connecting electronics

    34. GPIO ruler/chart

    GPIO (general-purpose input/output) pins are the interface between your Raspberry Pi and electronic components. Until you learn which pin is which, you’ll need a guide. There are several GPIO rulers and guides available to make life easier.

    A GPIO ruler provides a handy reference guide to which coloured pin does what

    35. Header connector

    For some projects, you may want to connect a HAT or pHAT to your Raspberry Pi, but not place it right on top of the board. In this case, a female-to-male 40-way ribbon connector enables you to extend the reach of the GPIO pins.

    36. Jumper wires

    Jumper wires connect Raspberry Pi GPIO pins to electronic components. Use them with a breadboard to prototype your circuit, or solder them directly to components. Be sure to get a variety of different colours to make your project easier to understand.

    Jumper wires connect components on a breadboard or can be soldered directly to it

    Tools for soldering

    37. Desoldering kit

    This equipment enables you to clean melted solder from components on a printed circuit board, allowing their removal or replacement.

    If you're doing anything with electronics, a soldering kit is pretty much essential

    38. Soldering station

    A handy stand to place a soldering iron while it is still plugged in and hot. The sponge should be wet to clean the end of the iron.

    39. Soldering iron

    An absolute necessity for soldering or desoldering components onto printed circuit boards. For detailed work, an iron with a pointed end is best.

    40. Third hand tool

    Usually has a solid, heavy base with jointed arms with clips or holders at the end, and a magnifying glass for working on small components.

    41. Multimeter

    You need to be able to measure current, resistance, and voltage in your circuits. Digital multimeters can cost as little as £10.

    Measure voltage, resistance and current using a multimeter

    42. Gorilla Glue

    Similar to superglue, but supplied with a brush to apply it, Gorilla Glue sticks most materials and very good for 3D-printed parts. Usually takes around half an hour to dry.

    Ideal for sticking together 3D parts - or almost anything else - Gorilla Glue is easier to apply than superglue because it comes with an applicator brush

    43. Nuts, bolts & screws

    Having a good range of sizes and shapes of nuts, bolts, and screws is absolutely necessary for making anything that you are not going to glue. Keep a jar full of spares.

    We recommend you have an abundant supply of nuts, bolts and screws

    44. Sticky tape

    For temporarily holding things in place or insulating wires. You can also use tape for wrapping handles of tools. Also good for removing cat fur from jumpers.

    Sticky tape is great for quick fixes and adding grip to tool handles

    45. Blu Tack

    Usually used for keeping posters on walls, but can also be used for holding components in place while soldering. It also rubs out pencil marks if you don’t have an eraser.

    46. Power bank/batteries

    Most maker projects need power, so it is a good idea to have a range of battery holders. Power banks for recharging phones can also be used for 5V supplies.

    Many maker projects depend on a steady supply of batteries

    47. 3D creation software

    You may want to visualise your build before starting, and there are many 3D software packages to help you for free, like Blender; or with free trial versions, such as SketchUp.

    3D creation software such as Blender and SketchUp help you visualise and plan your project

    48. Fritzing

    When you have completed your project, you may want to document how you did it. Fritzing is a great program for laying out circuit diagrams.

    Use Fritzing to document your completed project

    49. Paper clips

    Can be used to connect components, clean out small nooks and crannies, or hold materials in place. Apparently, you can pick locks with them too!

    50. Documentation

    One of the most important tools you will use for just about any maker project is reference material. Your Raspberry Pi may have come with some tips and hints about making, and many kits have worksheets and Frequently Asked Questions sections with them.

    Also, make best use of the online resources that detail other people’s experiences: like Stack Overflow for information about any technical subject; blogs such as modmypi.com, recantha.co.uk, and blog.pimoroni.com; and of course the Raspberry Pi site and magazines. If you’re stuck getting something to work, it’s likely someone else has had the same problem!

    Get advice and how-to guides from invaluable online sites and component maker's blogs

  • Attend our Cambridge Computing Education Research Symposium

    Attend our Cambridge Computing Education Research Symposium

    Reading Time: 3 minutes

    Are you an academic, researcher, student, or educator who is interested in computing education research? Then come and join us in Cambridge, UK on 1 April 2020 for discussion and networking at our first-ever research symposium.

    Dr Natalie Rusk from the MIT Media Lab is our keynote speaker

    Dr Natalie Rusk from the MIT Media Lab is our keynote speaker

    Join our symposium

    At the Raspberry Pi Foundation, we carry out research that deepens our understanding of how young people learn about computing and digital making and helps to increase the impact of our work and advance the field of computing education.

    As part of our research work, we are launching the Cambridge Computing Education Research Symposium, a new one-day symposium hosted jointly by us and the University of Cambridge.

    The theme of the symposium is school-level computing education, both formal and non-formal. The symposium will offer an opportunity for researchers and educators to share their work, meet others with similar interests, and build collaborative projects and networks.

    University of Cambridge Computer Laboratory

    The William Gates Building in Cambridge houses the Department of Computer Science and Technology (Computer Laboratory) and will be the symposium venue

    The symposium will take place on 1 April 2020 at the Department of Computer Science and Technology. The day will include a range of talks and a poster session, as well as a keynote speech from Dr Natalie Rusk, Research Scientist at the MIT Media Laboratory and one of the creators of the Scratch programming language.

    Registration for the symposium is now open: book your place today!

    Pre-symposium workshops and networking

    When you register to attend, you’ll also have the chance to sign up for one of two parallel workshops taking place on 31 March 2020 at the Raspberry Pi Foundation office in Cambridge.

    Workshop 1 concerns the topic of gender balance in computing, while in workshop 2, we’ll consider what research-in-practice looks like in the computing classroom.

    The workshops will draw on the experiences of everyone who is participating, and they’ll provide a forum for innovative ideas and new opportunities for collaboration to emerge.

    You’re also invited to join us on the evening of 31 March for an informal networking event over food and drink at the Raspberry Pi Foundation office — a great chance to meet, mingle, and make connections ahead of the symposium day.

    Register for the symposium to secure your place at these events! We look forward to meeting you there.

    Website: LINK

  • The ZT-2020 is a portable SunVox synth

    The ZT-2020 is a portable SunVox synth

    Reading Time: < 1 minute

    The ZT-2020 is a portable SunVox synth

    Arduino TeamFebruary 11th, 2020

    SunVox synth software allows you to create electronic music on a wide variety of platforms. Now, with his ZT-2020 project — which resembles a miniature arcade game — YouTuber “fascinating earthbound objects” has a dedicated input scheme.

    This cabinet prominently features a wide array of buttons, a directional input from a PlayStation controller, and 16 potentiometer knobs. There’s also a screen on top for video output. 

    Inside a Raspberry Pi runs SunVox, while most of the buttons and all of the input knobs are connected to an Arduino Mega. The Mega plays the role of MIDI controller as well, passing digital music info along to produce beautiful electronic music!

    [youtube https://www.youtube.com/watch?v=7rnk2qte4-I?feature=oembed&w=500&h=281]

    Website: LINK

  • USA magazine subscriptions offer: 48% off standard prices

    USA magazine subscriptions offer: 48% off standard prices

    Reading Time: 2 minutes

    Today we’re launching a time-limited special offer on subscriptions to HackSpace magazine and The MagPi magazine for readers in the USA, saving you a whopping 48% compared to standard overseas subscriptions. We want to help as many people as possible get their hands on our fantastic publications.

    Starting today, you can subscribe to these magazines for the discounted price of $60 a year – just $5 per issue. Not only will you receive twelve issues direct to your door, but you’ll also receive a free gift and save up to 35% compared with newsstand prices!

    You’ll need to be quick – this discounted offer is only running until 31 March 2020.

    HackSpace magazine

    HackSpace magazine is packed with projects for fixers and tinkerers of all abilities. We’ll teach you new techniques and give you refreshers on familiar ones, from 3D printing, laser cutting, and woodworking to electronics and the Internet of Things. HackSpace magazine will inspire you to dream bigger and build better.

    Your $60 subscription will get you twelve issues per year and a free Adafruit Circuit Playground Express, worth $25. Click here to subscribe today!

    The MagPi magazine

    The MagPi is the official Raspberry Pi magazine. Written by and for the community, it’s packed with Raspberry Pi-themed projects, computing and electronics tutorials, how-to guides, and the latest news and reviews.

    Your $60 subscription will get you twelve issues per year and a free Raspberry Pi Zero W with accessories. Click here to subscribe today!

    Website: LINK

  • Raspberry Pi Recovery Kit project showcase

    Raspberry Pi Recovery Kit project showcase

    Reading Time: 3 minutes

    Should the world ever be plunged into an apocalypse, then Jay Doscher should do just fine. He’s created a rugged-looking laptop using a Raspberry Pi 4 computer and placed it within a small, air- and watertight Pelican case. Aimed at getting technology up and running in the event of a disaster, it should see him through the most testing of times.

    “Most people prioritise food and shelter in the event of a disaster, but what do you do when those are resolved – how do you get technology working again?” asks Jay, an IT professional and technology enthusiast based in the San Diego area.

    “The apocalypse is more of a thought exercise for me, but I’ve certainly created a very useful computer that is much easier to work on or modify than a regular laptop.” Jay likes to focus on open-source projects, as his Twitter and Instagram feeds reveal.

    Jay Doscher is an IT professional and tech enthusiast to enjoys making open-source projects

    Past lessons

    Jay has been here before. In 2015, he popped a Raspberry Pi 2 into a weather-resistant enclosure and created the Raspberry Pi Field Unit that could run off a 12 V or higher power source, in this case a solar panel. Perfect for outdoor use, it also utilised an Adafruit real-time clock to retain accuracy when off the network. But it was far from perfect.

    “The Raspberry Pi Recovery Kit is an evolution of that previous build,” he says. “Although each has different goals, I wanted a Raspberry Pi setup that could be rugged and work in a more hostile environment. I also wanted a system that could serve more than one purpose, since the Raspberry Pi platform is so flexible.”

    One of the first issues he looked to address was the original lack of a keyboard. This time around, he bought a Plaid keyboard kit and, to his delight, noted that it was a perfect fit for his Pelican 1300 case. Jay also chose to use the official 7-inch Raspberry Pi touchscreen. This did away with the need for a mouse, while freeing up a much-needed USB port on Raspberry Pi 4.

    The Plaid ortholinear (grid layout) keyboard was a perfect fit for the Pelican 1300 ruggedised case

    With attention paid to tight wiring and realising that he could get away with powering the unit using 5 V, thereby reducing the need for 12 V circuitry, it wasn’t long before the project began coming together. “A Raspberry Pi computer is perfect for this project because it’s small, flexible on GPIO, and has great support for third-party add-ons like the GPIO breakout HAT I used,” Jay says.

    Future-proofing

    For a neat interior and to ensure all of the components could be easily held in place, internal parts were printed on a Prusa i3 MK3S 3D printer. For the host of connectors, a panel was produced with locking switches that could turn individual components on and off. These allowed control over Raspberry Pi 4, display, and Netgear five-port Ethernet network, saving power in a potential emergency. A switch also allows toggling between an internal and external battery.

    The Raspberry Pi Recovery Kit laptop is based around a Raspberry Pi 4 and has a Netgear network switch mounted on the rear of its 7in touschscreen

    “The internal battery has been the most difficult part, and I am still working on that,” Jay says. “There are no real considerations on the Raspberry Pi board itself for battery management, and Raspberry Pi 4 was pretty power-hungry when I built this kit.”

    Thankfully, coding proved easier. “It’s a regular Raspberry Pi laptop in many ways, but I am working on scripts to mirror my GitHub projects, Wikipedia and Raspbian APT libraries while following their guidelines on proper mirroring,” he reveals.

    The result is a cyberdeck that can work as a portable standalone network core if needed. “It’s a great system to keep air-gapped from the rest of the network when not in use,” Jay concludes. The battle for survival starts here.

    Quick facts

    • No holes were drilled into the Pelican case

    • The entire device is kept watertight

    • The main frame took 24 hours to 3D-print

    • It can be powered internally and externally

    • It’s stored in an electromagnetic pulse shielding box

  • This joystick-controlled machine draws light trails using a laser

    This joystick-controlled machine draws light trails using a laser

    Reading Time: 2 minutes

    This joystick-controlled machine draws light trails using a laser

    Arduino TeamFebruary 10th, 2020

    Lasers are awesome. Glow-in-the-dark surfaces are, too. As seen here, Justin and Brett were able to combine the two into an excellent drawing machine made from scrap materials and discarded wood.

    Their device uses a pair of gearmotors under Arduino control to actuate a rack-and-pinion gantry system over a canvas painted with phosphorescent powder. A laser is mounted at the end of this setup, which traces luminescent patterns on the surface as it moves. 

    User interface is via a simple joystick arrangement, with a housing 3D-printed in PLA that’s reminiscent of a Nintendo Wii Nunchuk. 

    Check out the demo in the video below and read more about the project in the duo’s write-up.

    [youtube https://www.youtube.com/watch?v=bYKirdPb8-o?feature=oembed&w=500&h=281]

    Website: LINK

  • 3D printing infill patterns — what, why, and why not!

    3D printing infill patterns — what, why, and why not!

    Reading Time: < 1 minute

    How many types of infill pattern have you tried? The latest video from Raspberry Pi Press takes a closer look at 3D printing infill patterns, and why you may want to use a certain pattern over another.

    3D PRINTING INFILL PATTERNS – What, why, and why not! || HackSpace magazine

    There’s more than one option when it comes to selecting infill patters for your 3D prints. But what are the differences, and why should you use one over the other? #HackSpacemagazine is the monthly magazine for people who love to make things and those who want to learn.

    Raspberry Pi Press publishes a variety of magazines and books, and the Raspberry Pi Press YouTube channel covers them all. Subscribe today to keep up to date with all new video releases, and let us know in the video comments what other content you’d like to see.

    Website: LINK

  • Carve 2.5D shapes out of foam with this Arduino-controlled hot wire cutter

    Carve 2.5D shapes out of foam with this Arduino-controlled hot wire cutter

    Reading Time: 2 minutes

    Carve 2.5D shapes out of foam with this Arduino-controlled hot wire cutter

    Arduino TeamFebruary 8th, 2020

    You may have a 3D printer or other “digital” tools like a laser engraver or CNC router, but what if you want to work with Styrofoam? As How To Mechatronics demonstrates in his latest project, many of the same techniques used there can be implemented to make your own Arduino-powered hot wire cutter.

    This build is constructed with 20x20mm aluminum extrusion and 3D-printed parts, and uses an Uno board and CNC shield to drive three stepper motors. Two of these motors manipulate the wire in the horizontal and vertical directions, while the third controls a turntable that rotates the foam as needed.

    As seen in the video below, it’s a brilliant design. Written instructions can be found in How To Mechatronics’ blog post, which walks you through the entire process from assembling the machine and connecting its components to preparing shapes and generate the G-code.  

    [youtube https://www.youtube.com/watch?v=oIKEYM-lMWQ?feature=oembed&w=500&h=281]

    Website: LINK

  • Save the date: Arduino Day 2020 is Saturday, March 21st!

    Save the date: Arduino Day 2020 is Saturday, March 21st!

    Reading Time: 2 minutes

    Save the date: Arduino Day 2020 is Saturday, March 21st!

    Arduino TeamFebruary 7th, 2020

    It’s Arduino’s 15th birthday! We are inviting the whole community to join Arduino Day 2020 on Saturday, March 21st.

    Arduino Day is a 24-hour-long celebration around the globe, organized by the community for the community — where those interested in Arduino get together, share their experiences, and learn more about the platform. Participation is open to anyone, either as an organizer or participant, from makers and students to professional developers and educators. 

    In 2019, we had a record 659 events held in more than 100 countries — full of activities, workshops, talks, and project exhibitions for a wide range of audiences and skill sets. 

    If you would like to organize an event, please fill out this online form and submit your proposal by March 6th. 

    Let’s join together and make 2020 another record-breaking year! 

    Over the next few weeks, make sure to visit the Arduino Day website to learn more or locate an event in your area. Moreover, don’t forget to spread the word on social media using the hashtag #ArduinoD20! 

    For more information, please visit day.arduino.cc.

    Website: LINK

  • Group test: Best Raspberry Pi 4 thermal cases tested and ranked

    Group test: Best Raspberry Pi 4 thermal cases tested and ranked

    Reading Time: 9 minutes

    Raspberry Pi 4 – like all the other members of the ever-growing Raspberry Pi family – is entirely usable as is, and plenty of people appreciate the aesthetic of a bare board on a desk.

    For those who don’t, there are a wealth of cases – both first- and third-party – available. You’ll find one, the Raspberry Pi 4 Stand, mounted on the cover of this magazine, while the others in this group test can be found at all major retailers.

    Each case here has been tested for aesthetics, complexity of assembly, and its performance in keeping Raspberry Pi 4 running cool.

    How we tested

    Each case was given a heavy synthetic workload to represent a worst-case scenario. This workload, which stresses both the central and graphics processors, runs for ten minutes followed by a five-minute cooldown period. Full details of the workload can be found in The MagPi issue 88.

    Raspberry Pi 4 Stand

    Made by Pimoroni from a single piece of acrylic, the Raspberry Pi 4 Stand is as pure as it gets (and comes free with issue 90 of The MagPi magazine)

    Specifications

    • Dimensions: 120×20×2.8 mm

    • Material: acrylic

    • Weight (including one Raspberry Pi 4): 54 g

    • Number of boards supported: up to 3

    • Cooling method: vertical alignment

    The Raspberry Pi 4 Stand is about as simple as a case could possibly be. Laser-cut from a single piece of acrylic, there’s no complex assembly required: simply slot the stand between the Power over Ethernet (PoE) header and Ethernet port of Raspberry Pi 4 and pop it on your desk.

    The stand is designed to improve cooling by aligning Raspberry Pi 4 vertically, rather than flat on a desk. Previous thermal testing in issue 88 showed this is surprisingly effective, and the Raspberry Pi 4 Stand solves the stability issue which comes from balancing the board on its edge.

    There’s a bonus trick up the Raspberry Pi 4 Stand’s sleeve, too: it holds up to three Raspberry Pi 4 boards side-by-side, making a very cost-effective computing cluster. Whether you install one, two, or three boards, the Raspberry Pi 4 Stand is surprisingly stable and not unattractive – and it retains access to all ports and headers.

    The Raspberry Pi 4 Stand holds up to three boards side-by-side, making a very cost-effective cluster

    Thermal imaging

    The Raspberry Pi 4 Stand improves the bare performance, but Raspberry Pi 4 still gets hot under sustained synthetic load.

    The Raspberry Pi 4 Stand improves base performance but is less effective at dissipating heat under sustained synthetic load

    Thermal load

    Without additional cooling, the Raspberry Pi 4 Stand can’t prevent Raspberry Pi 4 from hitting its throttle point during testing.

    Verdict

    The Raspberry Pi 4 Stand is smart, free, and the only case on test to support more than a single board. Its cooling performance, though, is the weakest.

    Note: We don’t score our own products. [We think our Raspberry Pi 4 Stand is perfect – Ed.]

    Designed to blend in with home theatre products, the Flirc case is undeniably attractive

    Specifications

    • Dimensions: 93.7×66×26.5 mm

    • Material: aluminium

    • Weight (including one Raspberry Pi 4): 134 g

    • Number of boards supported: 1

    • Cooling method: passive heatsink (SoC only)

    • Extras: thermal transfer material pad

    Created as a means of drawing attention away from Raspberry Pi 4 when used as part of a home theatre installation, the £16/$16 Flirc combines a matte-finish silver aluminium housing with soft-touch black plastic to the top and underside. It’s an understated design, but one which does compromise efficacy: the plastic lid covers much of the surface area of the aluminium case, reducing its ability to bleed off heat.

    The case itself makes contact with Raspberry Pi 4’s system-on-chip (SoC) via a single hollow pillar and a bundled thermal interface material pad. Installation is simple, requiring only two protective sheets to be removed from the pad, and four screws to hold the case together.

    For those not interested in attractive home theatre setups, though, the Flirc comes with a major drawback: it offers no ready access to the GPIO, CSI, or DSI headers, though all external ports are easily reached.

    Flirc Raspberry Pi 4 Case is a good choice as part of a home theatre setup

    Thermal imaging

    The plastic lid prevents the Flirc from cooling entirely efficiently, while the hollow pillar can be seen as a cooler spot to the centre-left.

    Flirc's case cools Raspberry Pi 4 effectively but its efficiency is hampered by the plastic lid

    Thermal load

    Even with the lid in place, the Flirc case easily cools Raspberry Pi 4 during the synthetic workload run.

    Verdict

    Unless you need the GPIO, CSI, or DSI headers, the Flirc’s few design flaws are unlikely to matter: the case keeps Raspberry Pi 4 well clear of its thermal throttle point. 8/10

    Impressively feature-packed, the Argon One offers a lot for your money – including temperature-controlled active cooling

    Specifications

    • Dimensions: 105×95.6×35 mm

    • Material: aluminium

    • Weight (including one Raspberry Pi 4): 230 g

    • Number of boards supported: 1


    • Cooling method:
      passive heatsink (SoC, RAM), PWM fan

    • Extras: thermal transfer material pads, AV daughterboard, fan, labelled GPIO header with magnetic cover, smart power board

    The £19/$25 Argon One case packs a whole lot of functionality into a surprisingly small footprint. A daughterboard connects to Raspberry Pi 4’s AV and HDMI ports to re-route these to the rear of the case, alongside Ethernet and USB, while a second board pulls the GPIO header out to a colour-coded and silk-screen labelled header hidden under a magnetic cover on the top.

    The same board powers a fan, which is active when the temperature exceeds a user-configurable limit, and includes a smart power button which can safely turn Raspberry Pi 4 on and off with a press. There’s even space to route out CSI and DSI cables for a camera or display.

    Cooling performance is impressive. The Argon One prevented Raspberry Pi 4 from throttling without even needing to activate the fan – aided by the entire aluminium surface acting as a heatsink for the SoC and RAM chips.

    Argon One for Raspberry Pi 4 offers temperature-controlled active cooling

    Thermal imaging

    There’s enough metal in the Argon One’s aluminium upper shell to keep Raspberry Pi 4 cool even under sustained load.

    Thermal load

    After ten minutes of heavy load, the Argon One didn’t even need to use its temperature-controlled fan once.

    Argon One's aluminium upper shell helps it be the second-most effective case here at keeping Raspberry Pi 4 cool

    Verdict

    There’s little to fault with the Argon One’s design. Cabling is tidied, the GPIO header made more readily accessible, and there’s more than enough aluminium to keep Raspberry Pi 4 cool.
    10/10

    Featuring an open-source housing for a custom-milled heatsink, CooliPi is impressively extensible

    Specifications

    • Dimensions: 92.4×86×54.3 mm

    • Material: aluminium


    • Weight (including one Raspberry Pi 4):
      320 g

    • Number of boards supported: 1

    • Cooling method: passive heatsink (SoC, RAM, USB 3.0 controller), optional fan

    • Extras: case 3D print files supplied

    The CooliPi stands out from the competition not just owing to its size and weight – it’s by far the heaviest case on test – but also by being at least partially open-source: while the custom-milled heatsink is available exclusively from Sensoreq, the plastic lower section can be printed on any 3D printer.

    That’s only part of the story. CooliPi is a family of products, not just a case, and optional extras – some of which are also 3D printable – include a 90-degree adapter for Raspberry Pi 4’s GPIO header, a HAT mount, and even a housing for an optional 5V fan.

    The latter shouldn’t be necessary outside the most extreme environments: in testing, the heavy heatsink of the CooliPi – which contacts the SoC, RAM, and USB 3.0 controller chips, with an optional copper shim available to cool the power management IC (PMIC) – was more than up to the job of cooling Raspberry Pi 4.

    Thermal imaging

    Having a very heavy aluminium heatsink lets the CooliPi absorb more heat than the competition.

    Thermal load

    The CooliPi’s large heatsink made it by far the best-performing cooler in the group.

    The CooliPi has a very heavy aluminium heatsink and proved the most effective cooler in our group test

    Verdict

    The CooliPi can’t be faulted on performance. Its price, however, is an issue: starting at £39/$52 for just the heatsink and case, it’s the most expensive product on test.
    8/10

    A compact two-part design, a few flaws don’t stop this case performing well

    Specifications

    • Dimensions: 88×56×22.4 mm

    • Material: aluminium

    • Weight (including one Raspberry Pi 4): 149 g

    • Number of boards supported: 1

    • Cooling method: passive heatsink (SoC only, RAM and USB 3.0 controller optional)


    • Extras:
      thermal transfer material pads, hex key

    A relatively straightforward two-part design, this all-aluminium affair aims to provide cooling and protection without taking up too much space – its overall footprint is only marginally larger than Raspberry Pi 4 on its own.

    There are a few issues, though, starting with its design. Like all aluminium cases, Pimoroni’s £12 ($13.20) heatsink case includes pillars designed to contact hot-running chips and transfer the heat to the outside of the case. The installation instructions, however, tell you to only add a thermal transfer pad to the one in contact with the central SoC. It turns out that this is because the RAM pillar targets a chip which doesn’t get hot, while the pillar for the USB controller is both too small and in the wrong place.

    This, and a patchy anodised finish, aside, the case does as promised: it prevents Raspberry Pi 4 from throttling, and keeps all ports and headers – including GPIO, DSI, and CSI – readily accessible.

    Thermal imaging

    With so little metal to play with, the Pimoroni heatsink case gets noticeably warmer than the competition.

    Pimoroni Aluminium Heatsink Case for Raspberry Pi 4 is a decent compact option

    Thermal load

    Even contacting only the SoC, the case keeps Raspberry Pi 4 well below its throttle point.

    The Pimoroni Aluminium Heatsink Case becomes noticeably warm in use

    Verdict

    The Pimoroni Heatsink Case does an acceptable job of cooling Raspberry Pi 4, but feels like a missed opportunity. Fixing the USB pillar and adding one for the PMIC (power management integrated controller) would have been welcomed.
    6/10

    A wholly acrylic creation, The Pi Hut’s case relies on a small always-on fan to keep Raspberry Pi 4 cool

    Specifications

    • Dimensions: 97.7×69.7×36.3 mm

    • Material: acrylic

    • Weight (including one Raspberry Pi 4): 125 g

    • Number of boards supported: 1


    • Cooling method:
      fan

    The Pi Hut’s £10 ($11) custom-designed Raspberry Pi 4 case comes in sheet form, laser-cut from a mixture of coloured and transparent acrylic. Assembly is relatively straightforward, though the plastic mounting pillars and screws provided can’t withstand repeated assembly and disassembly, and there are no thermal interface pads required.

    Instead, cooling is provided by a single 5V cooling fan installed beneath vents in the transparent lid. By default, this is set to suck air out of the case and away; flipping it around to blow offers a minor improvement in cooling performance at the cost of a dramatic increase in noise.

    There’s no software or speed control for the fan, and it ties up the 5V and GND pins on the GPIO header – which is inaccessible once assembled. The CSI and DSI headers are likewise locked away, though cables for these can at least be routed between the walls and the case lid.

    The Pi Hut Raspberry Pi 4 Case 2.0 comes as a self-assembly kit

    Thermal imaging

    The acrylic lid effectively insulates Raspberry Pi 4, leaving the fan vent as the only place for heat to escape.

    Thermal load

    Despite its fan, The Pi Hut case’s cooling performance is the second-worst on test – behind only the Raspberry Pi 4 Stand.

    The cooling fan on The Pi Hut's Raspberry Pi 4 Case 2.0's is counteracted by the insulating effect of its acrylic lid

    Verdict

    The Pi Hut case is a cheap option. Despite including active cooling, it fails to outperform any of the passive options on test – bar only the in effect uncooled Raspberry Pi 4 Stand.
    4/10

    And The Winner Is…

    Thermal performance isn’t the be-all and end-all of choosing a case for Raspberry Pi 4 – in fact, as our testing in issue 88 proved, under most real-world workloads Raspberry Pi 4 is more than capable of handling itself. It’s little surprise, then, to find every case on test – except the Raspberry Pi 4 Stand – passed the demanding thermal throttle benchmark with flying colours.

    Heat cooling effectiveness of cases in this group test

    What is perhaps surprising is the variance within the tests. The Pi Hut case’s fan isn’t as effective as passive options like the Pimoroni Heatsink Case and the Flirc – and while the CooliPi is the best performer overall, its high price and bulk make for a difficult case to recommend for most use-cases.

    Under real-world conditions, any of the cases – including the Raspberry Pi 4 Stand – should prove more than adequate to prevent thermal throttling. Only those operating Raspberry Pi 4 in relatively extreme environments need worry about cooling – and there’s nothing wrong with picking your case based on features, accessibility, price or aesthetics instead, opening up the whole group as potential winners depending on personal taste and budget.

    Winner: Argon One

    The Argon One ticks almost every box: it’s attractive, includes a wealth of features, cools well, and won’t break the bank.

  • A new Raspbian update

    A new Raspbian update

    Reading Time: 7 minutes

    The last major release of Raspbian was the Buster version we launched alongside Raspberry Pi 4 last year. There was a minor release a couple of months later, which was mostly just bug-fixes for the first release (hence no blog post), but today’s release has a few changes that we thought it was worth bringing to your attention.

    File manager changes

    We previously made some significant changes to the PCmanFM file manager included as part of the Raspberry Pi Desktop; we added a cutdown mode which excludes a lot of the less commonly used functionalities, and we set this as the default mode.

    One of the things we removed for this mode is the Places view, an optional view for the left-hand pane of the window which provides direct access to a few specific locations in the file system. We felt that the directory browser was more useful, so we chose to show that instead. But one useful feature of Places is that it displays external devices, such as USB drives, and these are somewhat awkward to find in the file manager otherwise.

    So for this release, the Places view has been reinstated, but rather than being a separate switchable view, it is a small panel at the top of the directory browser. This hopefully gives the best of both worlds: easy access to USB drives, and a directory view. You can customise what is shown in the Places view on the Layout page of the file manager Preferences dialogue, or you can turn it off completely if you’d rather just have the directory browser.

    PCmanFM file manager on Raspbian

    There are a few other small changes to the file manager: there is now a new folder icon on the taskbar, and the expanders in the directory browser (the little triangles next to directory names) are now only shown when a directory has subdirectories.

    Finally, the folder and file icons used in the file manager have been replaced with some new, cleaner designs. These are designed to make it more obvious at a glance what sort of file an icon represents, and also to fit better with the slightly flatter GUI appearance we moved to for Buster.

    Orca screen reader

    One area of the desktop which we have been wanting to improve for some time is accessibility, particularly for those with visual impairments. To this end, we asked the accessibility charity AbilityNet to assess the Raspberry Pi Desktop to see how usable it was for those with disabilities, and where we could make improvements.

    They gave us a lot of very helpful feedback, and their number one suggestion was that we needed to make the Orca screen reader work with the desktop.

    Orca is an application which uses synthesised speech to read out menus, window titles, button labels, and the like. It’s a standard Linux application, but people who have tried it on Raspberry Pi found that it didn’t actually work with Raspbian. (When I first installed it, all it did was to make slightly alarming growling noises instead of speaking!)

    After quite a bit of fiddling and head-scratching, Orca now works as intended. It will read out many of the pre-installed applications, and should work with a lot of other Linux software packages as well.

    Unfortunately, there are a few areas where it won’t work. Orca hooks into various user interface toolkits — the software which is used to draw buttons, menus, etc. on the screen. It is fully compatible with the GTK toolkit (which is used for most of the desktop) and Qt (which is used for the VLC media player and the qpdfview PDF viewer). But many applications (such as Thonny, Sonic Pi, and Scratch) are built on toolkits which are not compatible with the screen reader. Also, the current release of Chromium is not compatible with Orca, but the forthcoming version 80 release, which should be available in a few months, will be Orca-compatible. In the meantime, if you want an Orca-compatible browser, you can install Firefox by entering the following into a terminal window:

    sudo apt install firefox-esr

    (Please note that we do not recommend using Firefox on Raspbian unless you need Orca compatibility, as it is not optimised for video playback on the Pi in the same way as Chromium.)

    Orca screen reader settings dialogue

    Orca doesn’t have a menu entry — the settings dialog shown above can be opened by holding down the Insert key and then pressing the space bar, or by typing orca -s into a terminal window.

    Please note that Orca currently doesn’t work with Bluetooth audio devices, so we recommend using it with either the Pi’s own HDMI output or headphone socket, or with a USB or HAT external audio device.

    Orca can either be installed from Recommended Software, in the Universal Access category, or by entering the following into a terminal window:

    sudo apt install orca

    This is hopefully just the start of making the Raspberry Pi Desktop more accessible for those with disabilities, as we are planning to do more work in this area in the future.

    New Scratch blocks

    Scratch 3 has added the ability to load a project from the command line at launch (scratch3 filename.sb3).

    There are also two new blocks in the Sense HAT extension, ‘display stage’ and ‘display sprite’. The first of these shows the current stage on the SenseHAT LED array; the second shows the current sprite on the LEDs.

    Example output of Sense HAT Scratch extension

    Thonny improvements

    A lot of work has been done on Thonny to improve performance, particularly when debugging. In previous releases, setting breakpoints caused performance to slow down significantly — this was particularly obvious when running PyGame Zero games, where the frame rate was very slow. The new version is substantially faster, as you can see if you set breakpoints in any of…

    Code the Classics

    …the Python games from Eben’s book Code the Classics – Volume 1, which are now installable from Recommended Software, and can be found in the Games menu.

    Example of Mynapod video game

    If you want to look at the code for the games, this can be found in /usr/share/code-the-classics.

    Volume control / mixer

    In previous releases, there was an Audio Device Preferences application in the main menu to enable device-specific settings to be made for external audio devices. This has now been removed; all these settings are now available directly from the volume plugin on the taskbar: with an external device selected as the output or input device, right-click the volume icon and choose the Output Device Settings… or Input Device Settings… option to open the configuration dialog.

    Example of Output Device Settings menu of Raspberry Pi Desktop

    Screen blanking

    The option to disable the timeout which blanks the screen after a few minutes has been added to Raspberry Pi Configuration. To try and reduce clutter in this application, the options from the System tab are now split across two tabs; all display-related options, including screen blanking, are now on the new Display tab.

    Example of Raspberry Pi Configuration menu of Raspberry Pi Desktop

    We’ve also been able to reinstate the pixel doubling option for Raspberry Pi 4; this was originally implemented in a manner incompatible with the KMS video driver used on Raspberry Pi 4, but we’ve now found a way to make it work with KMS. (The pixel doubling option is designed to make the Raspberry Pi’s screen easier to use for people with visual disabilities — it doubles the size of every pixel, scaling the entire screen by a factor of two.)

    We’ve made one minor change to key shortcuts: in previous versions of Raspbian, the combination Ctrl-Alt-Delete launched the task manager. We felt it might be better to be consistent with the behaviour of Windows PCs since the dawn of time, so now Ctrl-Alt-Delete launches the shutdown options dialog. If you want to access the task manager with a key shortcut, you can now do so using Ctrl-Shift-Escape — also consistent with the behaviour of Windows.

    There are also numerous other small bug fixes and robustness improvements across the board.

    How do I get it?

    The new image is available for download from the usual place: our Downloads page.

    To update an existing image, use the usual terminal command:

    sudo apt update sudo apt full-upgrade

    We hope you like the changes — as ever, all feedback is welcome, so please leave a comment below!

    Website: LINK

  • Cats and lasers and (Raspberry) Pi, OH MY!

    Cats and lasers and (Raspberry) Pi, OH MY!

    Reading Time: 4 minutes

    Keeping a modern cat entertained requires something more high-tech than a ball of yarn. The MagPi’s Phil King wonders if this is a purr-fect project…

    WARNING! LASER EYE! Don’t look into a laser beam, and don’t point a laser beam at a somebody’s head. For more on things you SHOULDN’T do with a laser, visit magpi.cc/lasersafety.

    Xander the cat is a much-loved family pet, but as his owners live in a flat, he can get a little bored staying indoors when they’re out at work. Seeking a way to keep his cat entertained, Enzo Calogero came up with an ingenious Raspberry Pi–powered project. “We noticed that he loves to chase a laser light, so we decided to create a device to make laser games for him,” explains Enzo.

    The result is the Tri-Lasers for Felines device which, when the cat’s presence is detected by a PIR motion sensor, beams a laser dot around the room for Xander to chase between randomly generated points. Judging by the video on the project’s Hackster tutorial page, he seems to love it.

    trilaser

    This video is about trilaser

    Pan and tilt

    The laser’s main movement trajectory is handled by mounting it on a Pan-Tilt HAT, which has vertical and horizontal servo motors. “A pair of coordinates (x, y) is generated randomly,” explains Enzo. “The laser point moves from the current point to a new coordinate, following the segment that connects the two points, at a speed defined by a status variable. Once the new coordinates are reached, we loop back to point one.”

    To add extra interest for Xander, its movement is randomised further by switching between three laser diodes to perform micro random movements very quickly. “Switching the active laser among the three allows extremely rapid movements of the laser dot, to create an extra variability of the light trajectories which seems more enjoyable for the cat,” says Enzo.

    While the laser point is visible in daylight, it shows up better when there’s less light: “Xander prefers it when the room is completely dark.”

    The device’s three laser diodes are set into a 3D-printed triangular holder that sits atop the Pan-Tilt HAT’s acrylic mount — which would normally be used to hold a Camera Module. Enzo also designed and 3D-printed a case for the PIR sensor.

    Cat-a-log

    In addition to handling laser movement, the Python script saves a log of Xander’s activity: “We check it now and then out for curiosity,” says Enzo. “When Xander was a kitten, he was playing with it very often. Now he is a bit older and much more prone to sleep rather than play, we switch it on when we are out in the evening to keep him busy during our prolonged absence.”

    One issue that came up is that, being naturally curious animals, cats are prone to investigate any new objects. “We try to put it as high and unreachable as possible, but cats are extremely skilled,” says Enzo. “So, he was able to reach the device few times. And the best way to save the device from cat attacks is to make it as still as possible, so the cat loses interest.”

    Therefore a tilt sensor was added to the device, to cause it to shut down if triggered by an inquisitive Xander, thus reducing the risk of damage.

    This isn’t the only feline-focused project from Enzo, who has also built an IoT food scale to monitor when and how much Xander eats, sending the data to a Google Cloud online dashboard. He’s now working on a wheeled robot to track the cat with a camera and perform a few interactions — we wonder what Xander will make of that.

    More from The MagPi

    The MagPi magazine is available from newsagents in the UK, Barnes & Noble in the US, the Raspberry Pi Store here in Cambridge, and online in the Raspberry Pi Press store.

    This month’s issue comes with a free stand for your Raspberry Pi 4. Yay!

    A note from Alex regarding cats and lasers

    Some cats don’t like lasers. They find it far too upsetting when they can’t catch what it is they’re chasing. If your cat starts to pant while chasing lasers, don’t assume it’s just exhausted. Panting can be a sign of stress in cats, and stressed is something your cat shouldn’t be. Exercise caution when playing with your cat and laser toys, and consult a vet if you’re unsure whether their behaviour is normal.

    Signed,

    The owner of a cat who doesn’t like laser toys

    Website: LINK

  • Interview with Pi Jam Foundation community support lead Pranjali Pathak

    Interview with Pi Jam Foundation community support lead Pranjali Pathak

    Reading Time: 4 minutes

    Like a few educators in the Raspberry Pi and digital making community, Pranjali Pathak of The Pi Jam Foundation started out life as an engineer before becoming a teacher. She’s been a fellow for Teach for India, where she taught students from grade 3, and brought that experience to the Pi Jam Foundation as a program lead, making sure educators are supported when teaching computing.

    Pranjali Pathak is an engineer turned educator at The Pi Jam Foundation

    “Pi Jam Foundation is a Section 8 (not-for-profit) organisation,” Pranjali tells us. “The organisation is entirely impact driven and aims to provide all students from under-resourced schools [with] computing and problem-solving skills, which are essential for them to succeed in the 21st century workplace.

    “Using low-cost, open-source technology, Raspberry Pi and a contextual research-based curriculum coupled with innovative pedagogy, Pi Jam Foundation aims to provide quality computer education to over 100,000 students across India by 2022″, Pranjali explains.

    “We have successfully brought a globally relevant, yet contextual computer science education to 8000+ students across under-resourced schools across urban, suburban, and rural geographies of the country.”

    What are your links to Raspberry Pi?

    We work extensively on Raspberry Pi [computers] across all our Pi Lab programs and feel the Code Clubs would enable us to enhance our curriculum and provide students from different grades and diverse economic backgrounds access to knowledge at par with global standards. Also, being [more] affordable than existing PCs in the market lends itself to use in the context we operate in, i.e. under-resourced public schools.

    What kind of events have you put on or supported?

    Pi Lab is an award-winning flagship programme that enables a complete computer science ecosystem (Raspberry Pi, best of open-source tools, and highly contextualised curriculum and teacher training programmes) that ensures year-long learning and allows kids to explore, tinker, and create. Currently, Pi Jam is impacting 8000+ number of students through 40 Pi Labs across […] the country.

    The Pi Labs, especially the ones in under-resourced schools, have been places of immense transformation of thought and possibility for our students. They have seen technology and computer science as something the more privileged classes had access to, and using Raspberry Pi [computers] has helped us give them the same (if not a more focused and holistic) access.

    We see career possibilities change as they experience the true creativity behind technology, and have even encountered them sharing with us that they always assumed technology to be boring, but the Code Clubs were very exciting for them to be a part of.

    Every February Pi Jam holds an annual showcase known as Makers Factory. Our students are provided with a platform to present their solutions in the form of technology prototypes to problems identified by them.

    We also hold hackathons for students, members of the community, mothers of the Pi Lab students, [and] individuals from corporates.

    Attendees at Pi Jam Foundation sessions come from all backgrounds

    Who attends these events?

    The students hail from communities that have a rich mix of people from different cultures, beliefs, and languages. A lack of resources and rampant poverty unite residents of this locality. Most of the communities are home to tens of thousands of children, many of whom lack access to good quality education.

    All the students come from low income households, and a majority of their parents are first-generation migrants from other states. Additionally, most of the students do not have any formal knowledge or prior experience to computers across these schools.

    Pi Jam projects

    Rotten fruit detector

    Rukaiya’s parents were fruit and veg sellers; however, a problem with the vendor meant some fruit was rotting and affecting the rest of the supply. Unable to inspect the boxes by eye, Rukaiya created a rotten fruit detector using a stick with an MQ3 sensor (which detects alcohol gas) on the end. This would smell any rotting fruit in the box.

    Open manhole alert

    During the monsoon season it’s not uncommon for autos (motorised rickshaws) to get stuck in manholes. Several students had to abandon a taxi auto at the urge of their driver and felt bad for him, so decided to create a system that warned the driver in the future of open manholes in the road ahead. It’s incredibly accurate and can even detect a manhole that is slightly tilted open.

    Students at The Pi Jam Foundation show off their rotting fruit detector

  • How to use a servo motor with Raspberry Pi

    How to use a servo motor with Raspberry Pi

    Reading Time: 2 minutes

    Learn how to use a servo motor with Raspberry Pi in our latest How to use video on YouTube.

    HOW TO USE a servo motor with Raspberry Pi

    Subscribe to our YouTube channel: http://rpf.io/ytsub Help us reach a wider audience by translating our video content: http://rpf.io/yttranslate Buy a Raspberry Pi from one of our Approved Resellers: http://rpf.io/ytproducts Find out more about the #RaspberryPi Foundation: Raspberry Pi http://rpf.io/ytrpi Code Club UK http://rpf.io/ytccuk Code Club International http://rpf.io/ytcci CoderDojo http://rpf.io/ytcd Check out our free online training courses: http://rpf.io/ytfl Find your local Raspberry Jam event: http://rpf.io/ytjam Work through our free online projects: http://rpf.io/ytprojects Do you have a question about your Raspberry Pi?

    Over the next few months, we’ll be releasing more videos in our How to use series, including guides on the use of LEDs, buzzers, and sensors with your Raspberry Pi.

    What other components do you think we should cover? While we can’t make videos for every available component on the market, we’d love to hear what you, our community, believe to be integral to the maker toolkit.

    You can find the How to use YouTube playlist here, and you can subscribe to our channel and never miss a video!

    And, while you’re in a subscribe-y mood, also subscribe to the Raspberry Pi Press YouTube channel, the home of all content from The MagPi, HackSpace magazine, WireFrame, Custom PC, and more.

    Website: LINK