The MagPi - February 2020
If you have a BlocksCAD account and you’re logged in, then you can click on Project in the menu bar and select Save. This saves ...
Pi. As a small buzzer may not be particularly deterring to a would-be room invader, we’ve chosen a 120 dB siren that requires mo ...
curl https://get.pimoroni.com/automationhat | bash This will guide through setting up for driver software and examples. You may ...
07 This might get loud The siren is capable of an ear-splitting 120 dB. Always wear ear defenders in case you accidentally set t ...
python3 roomguard.py Try moving about! 10 Add notifications We now have a working motion-detection alarm, but this is meant to b ...
...
A stylish, capacitive touch sensor that can be used to trigger sounds, and record and replay loops, direct from Raspberry Pi A s ...
04 Making the sides To complete the box, cut out the six sides. You will notice that one side has a very small slot in it: this ...
06 Making the brass inserts The brass strip proved quite tough to work. If we had the tools, we would have annealed it to make i ...
09 Polish the brass First, the brass inserts need filing and sanding to remove sharp edges and corners. Run your finger over the ...
#!/usr/bin/env python3 # Test the Hex-A-Pad touch sensors and LEDs # with simple sounds # By Mike Cook January 2020 import sys i ...
the connections to the ribbon cable were made – shown in Figure 11, along with where they connect to a 20-pin header which fits ...
3 ISSUES FOR £5 Email:
[email protected]
Subscribe online: magpi.cc/subscribe Subscribe by phone: 01293 312193 ...
so you need to use the correct one. The version to create GTK 3 applications is called ‘glade’. And, just to be perverse, the ve ...
Let’s add a VBox to put some widgets in. The widget palette has a section labelled ‘Containers’, in which the first two entries ...
(You can select one of two different formats on the save window – use the default GtkBuilder option.) Make sure you save the fil ...
void end_program (GtkWidget *wid, gpointer ptr) { gtk_main_quit (); } void main (int argc, char *argv[]) { gtk_init (&argc, ...
Get inspired to make something in 2020 A new year means new plans. Sometimes it’s not easy to come up with a big cool thing to w ...
FUN PYTHON PROJECTS Improve your coding skills Automate your tweets with Python Working with Python is fairly easy as programmin ...
GPIO MUSIC BOX Build a very custom button to prank your friends We could very easily lie here, without any reservations, that th ...
«
1
2
3
4
5
»
Free download pdf