Smart Shipment Box is a project about home automation. that designed to facilitate the user to takes or keeps an item. the box can be controlled by smartphone via bluetooth.
This document provides a technical report for a robotic follower project. It includes an introduction describing the goal of creating a robot that can follow a person carrying a tracking device. It then describes the functional specification of following the tracking device. The report outlines the design and implementation including the components used, software code, and how it operates to follow the tracking device using ultrasonic sensors and RF communication. It concludes by discussing maintenance requirements and potential for further development to improve the robot's capabilities.
Arduino Workshop Day 1 Slides
Basics of Arduino - Introduction, Basics of Circuits, Signals & Electronics, LED Interfacing, Switch, Buzzer, LCD & Bluetooth Communication.
The document describes an object follower robot project created by four students. The robot uses infrared sensors and a microcontroller to detect and avoid obstacles. It has two motors connected to an L293D driver IC to control movement. The project involves designing printed circuit boards for the sensor and controller circuits and integrating the components. The robot is able to autonomously navigate an area while following and avoiding objects.
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNOSanjay Kumar
This document describes how to build an obstacle detection robot using an Arduino UNO, ultrasonic sensor, and motor driver module. It explains the components used, including the Arduino, ultrasonic sensor to detect obstacles from 2-400cm away, and an L298N motor driver module to control DC motors. It provides details on connecting the components, programming the ultrasonic sensor to trigger and receive echo signals to determine distances, and controlling the motor's direction depending on detected obstacles to help the robot navigate. Code and more details are available at the provided GitHub link.
The document provides an outline for a course on learning Internet of Things (IoT) using Raspberry Pi, covering topics such as connecting and setting up the Raspberry Pi, programming with Python, building circuits, and creating basic IoT projects involving home automation, security monitoring, and remote control. The course structure includes introducing Raspberry Pi hardware and software, Python programming, connecting electronic components, and applying the skills learned to build a digital making project.
This Slide Show contains info on using Scratch on Raspberry Pi and Berry Clip. The Case Study video explains the project:
https://youtu.be/RshEjqaK4gQ
The presentation contains lots of useful scripts and tips on getting things working.
This document summarizes a presentation on using Raspberry Pi with Java 8. It discusses using Pi4J to access GPIO pins and I2C on the Raspberry Pi to control hardware components like LEDs, switches, and sensors. Example code is provided to toggle an LED using a button press via GPIO interrupts. Attendees will learn how to interface with common sensors like temperature, pressure and more to build a prototype shipping container monitoring device.
Smart Shipment Box is a project about home automation. that designed to facilitate the user to takes or keeps an item. the box can be controlled by smartphone via bluetooth.
This document provides a technical report for a robotic follower project. It includes an introduction describing the goal of creating a robot that can follow a person carrying a tracking device. It then describes the functional specification of following the tracking device. The report outlines the design and implementation including the components used, software code, and how it operates to follow the tracking device using ultrasonic sensors and RF communication. It concludes by discussing maintenance requirements and potential for further development to improve the robot's capabilities.
Arduino Workshop Day 1 Slides
Basics of Arduino - Introduction, Basics of Circuits, Signals & Electronics, LED Interfacing, Switch, Buzzer, LCD & Bluetooth Communication.
The document describes an object follower robot project created by four students. The robot uses infrared sensors and a microcontroller to detect and avoid obstacles. It has two motors connected to an L293D driver IC to control movement. The project involves designing printed circuit boards for the sensor and controller circuits and integrating the components. The robot is able to autonomously navigate an area while following and avoiding objects.
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNOSanjay Kumar
This document describes how to build an obstacle detection robot using an Arduino UNO, ultrasonic sensor, and motor driver module. It explains the components used, including the Arduino, ultrasonic sensor to detect obstacles from 2-400cm away, and an L298N motor driver module to control DC motors. It provides details on connecting the components, programming the ultrasonic sensor to trigger and receive echo signals to determine distances, and controlling the motor's direction depending on detected obstacles to help the robot navigate. Code and more details are available at the provided GitHub link.
The document provides an outline for a course on learning Internet of Things (IoT) using Raspberry Pi, covering topics such as connecting and setting up the Raspberry Pi, programming with Python, building circuits, and creating basic IoT projects involving home automation, security monitoring, and remote control. The course structure includes introducing Raspberry Pi hardware and software, Python programming, connecting electronic components, and applying the skills learned to build a digital making project.
This Slide Show contains info on using Scratch on Raspberry Pi and Berry Clip. The Case Study video explains the project:
https://youtu.be/RshEjqaK4gQ
The presentation contains lots of useful scripts and tips on getting things working.
This document summarizes a presentation on using Raspberry Pi with Java 8. It discusses using Pi4J to access GPIO pins and I2C on the Raspberry Pi to control hardware components like LEDs, switches, and sensors. Example code is provided to toggle an LED using a button press via GPIO interrupts. Attendees will learn how to interface with common sensors like temperature, pressure and more to build a prototype shipping container monitoring device.
IoT Physical Devices and End Points.pdfGVNSK Sravya
Basic building blocks of an IoT Device
• Exemplary Device: Raspberry Pi
• Raspberry Pi interfaces
• Programming Raspberry Pi with Python
• Other IoT devices
This document provides an overview of using Python for embedded systems development on the Raspberry Pi and ESP32 microcontrollers. It discusses why Python is suitable, how to set up the Raspberry Pi and install an operating system. It also covers GPIO pin layout and functions, pulse width modulation (PWM), and installing MicroPython on the ESP32. The document recommends books and online courses for further learning about Python for embedded systems and microcontrollers.
This document summarizes a major project for developing a quiz master system. The system consists of a microcontroller that displays questions and options on an LCD screen. Players can select options using a remote with buttons. If the answer is correct a green LED lights, otherwise a red LED lights. The level increases for correct answers. Players can quit using another button. The system is designed to determine responses in quick succession and could be used for quiz shows or online tests. It aims to provide an easy to use, low-cost quiz game.
This document is a syllabus for an embedded systems course that covers topics like Internet of Things (IoT), Raspberry Pi, Python, communication protocols, sensors, displays, and web servers over 12 weeks. Week 6 focuses on connecting external sensors and actuators to a Raspberry Pi using GPIO pins and programming them with Python. It discusses identifying the correct GPIO pins to use, wiring the sensor circuit, and writing code to read sensor values. An example temperature monitoring IoT system is provided. The objectives are to understand GPIO, apply sensors to solve problems with IoT, and implement an external sensor circuit on Raspberry Pi for an assignment.
This document provides an overview of Arduino programming and the Arduino platform. It discusses what Arduino is, what types of projects can be built with Arduino, and covers the basics of getting started, digital and analog inputs/outputs, Neopixels, and putting projects together. It also includes an agenda and summaries of the Arduino UNO board and common sensors that can be used.
This document is a project report for an embedded systems and advanced robotics project completed to earn a B.Tech degree in Electronics and Instrumentation Engineering. It includes an acknowledgments section thanking project mentors. The contents section lists chapters on interfacing Arduino with components like LEDs, sensors, motors and using Arduino to build an autonomous line follower robot. It provides introductions to embedded systems, Arduino, the Arduino UNO microcontroller and IDE. Circuit diagrams and code are given for sensor interfacing examples.
The document provides an introduction to the Raspberry Pi board. It discusses the history and creation of the Raspberry Pi to inspire children to learn programming. It then describes the specifications of the Model A and Model B boards, including the processor, RAM, ports, and price. Finally, it outlines some of the things the Raspberry Pi can be used for, such as playing videos, serving as a desktop or server, and interfacing with electronics, as well as development options and related projects.
17.11.2012 Codemotion Venezia.
La casa aperta: domotica Open Source dal'hardware al software.
In questo talk racconteremo l'esperienza di realizzazione di un impianto di domotica interamente basato su tecnologie Open Source. L'impianto realizzato comprende il controllo di un impianto di riscaldamento a zone di temperatura, luci, finestre motorizzate e un sistema di rilevazione di presenza. Racconteremo come siamo partiti dall'hardware realizzato con Arduino fino ad arrivare alla piattaforma software basata su OSGI (openhab).
This Project worked if someone pass in front of the trash bin,ultrasonic sensor will detect the distance,we set the distance in less 10cm so if someone pass less 10 cm from the trashbin,ultrasonic sensor will work and moved the servo motor, so that the trash bin will be open,and the Green LED will On,and if the distance more that 10cm the trashbin will keep closed and the Red LED will On.
project instrumentasi smart house (smart trash bin)Mimi Chinho
This document describes a smart trash bin project created by a group of 3 students. The smart trash bin uses an ultrasonic sensor to detect when someone passes within 10cm of the bin, which causes a servo motor to open the bin lid and light an LED. The bin also has an LCD display, buzzer, and LED lights to indicate the trash level and whether the bin is full. The project aims to promote proper trash disposal and make trash bins more automated using technology.
Linux Format was the UK's first Linux-specific magazine, and as of 2013 was the best-selling Linux title in the UK. It is also exported to many countries worldwide. It is published by Future plc.
Instrumentasi project smart house (Smart Trashbin)risanads97
The document describes a smart trash bin project created by a group of 3 students. The smart trash bin uses an ultrasonic sensor to detect when someone passes within 10cm of the bin, which triggers a servo motor to open the bin lid. LED lights and an LCD display indicate the bin status and prompt users to dispose of trash. The project aims to promote proper trash disposal and a clean environment.
The Raspberry Pi is a series of credit card–sized single-board computers developed in the UK by the Raspberry Pi Foundation with the intention of promoting the teaching of basic computer science in schools.
The original Raspberry Pi and Raspberry Pi 2 are manufactured in several board configurations through licensed manufacturing agreements with Newark element14 (Premier Farnell), RS Components and Egoman. These companies sell the Raspberry Pi online. Egoman produces a version for distribution solely in China and Taiwan, which can be distinguished from other Pis by their red colouring and lack of FCC/CE marks. The hardware is the same across all manufacturers.
The original Raspberry Pi is based on the Broadcom BCM2835 system on a chip (SoC), which includes an ARM1176JZF-S 700 MHz processor, VideoCore IV GPU, and was originally shipped with 256 megabytes of RAM, later upgraded (models B and B+) to 512 MB. The system has Secure Digital (SD) (models A and B) or MicroSD (models A+ and B+) sockets for boot media and persistent storage.
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
IoT Physical Devices and End Points.pdfGVNSK Sravya
Basic building blocks of an IoT Device
• Exemplary Device: Raspberry Pi
• Raspberry Pi interfaces
• Programming Raspberry Pi with Python
• Other IoT devices
This document provides an overview of using Python for embedded systems development on the Raspberry Pi and ESP32 microcontrollers. It discusses why Python is suitable, how to set up the Raspberry Pi and install an operating system. It also covers GPIO pin layout and functions, pulse width modulation (PWM), and installing MicroPython on the ESP32. The document recommends books and online courses for further learning about Python for embedded systems and microcontrollers.
This document summarizes a major project for developing a quiz master system. The system consists of a microcontroller that displays questions and options on an LCD screen. Players can select options using a remote with buttons. If the answer is correct a green LED lights, otherwise a red LED lights. The level increases for correct answers. Players can quit using another button. The system is designed to determine responses in quick succession and could be used for quiz shows or online tests. It aims to provide an easy to use, low-cost quiz game.
This document is a syllabus for an embedded systems course that covers topics like Internet of Things (IoT), Raspberry Pi, Python, communication protocols, sensors, displays, and web servers over 12 weeks. Week 6 focuses on connecting external sensors and actuators to a Raspberry Pi using GPIO pins and programming them with Python. It discusses identifying the correct GPIO pins to use, wiring the sensor circuit, and writing code to read sensor values. An example temperature monitoring IoT system is provided. The objectives are to understand GPIO, apply sensors to solve problems with IoT, and implement an external sensor circuit on Raspberry Pi for an assignment.
This document provides an overview of Arduino programming and the Arduino platform. It discusses what Arduino is, what types of projects can be built with Arduino, and covers the basics of getting started, digital and analog inputs/outputs, Neopixels, and putting projects together. It also includes an agenda and summaries of the Arduino UNO board and common sensors that can be used.
This document is a project report for an embedded systems and advanced robotics project completed to earn a B.Tech degree in Electronics and Instrumentation Engineering. It includes an acknowledgments section thanking project mentors. The contents section lists chapters on interfacing Arduino with components like LEDs, sensors, motors and using Arduino to build an autonomous line follower robot. It provides introductions to embedded systems, Arduino, the Arduino UNO microcontroller and IDE. Circuit diagrams and code are given for sensor interfacing examples.
The document provides an introduction to the Raspberry Pi board. It discusses the history and creation of the Raspberry Pi to inspire children to learn programming. It then describes the specifications of the Model A and Model B boards, including the processor, RAM, ports, and price. Finally, it outlines some of the things the Raspberry Pi can be used for, such as playing videos, serving as a desktop or server, and interfacing with electronics, as well as development options and related projects.
17.11.2012 Codemotion Venezia.
La casa aperta: domotica Open Source dal'hardware al software.
In questo talk racconteremo l'esperienza di realizzazione di un impianto di domotica interamente basato su tecnologie Open Source. L'impianto realizzato comprende il controllo di un impianto di riscaldamento a zone di temperatura, luci, finestre motorizzate e un sistema di rilevazione di presenza. Racconteremo come siamo partiti dall'hardware realizzato con Arduino fino ad arrivare alla piattaforma software basata su OSGI (openhab).
This Project worked if someone pass in front of the trash bin,ultrasonic sensor will detect the distance,we set the distance in less 10cm so if someone pass less 10 cm from the trashbin,ultrasonic sensor will work and moved the servo motor, so that the trash bin will be open,and the Green LED will On,and if the distance more that 10cm the trashbin will keep closed and the Red LED will On.
project instrumentasi smart house (smart trash bin)Mimi Chinho
This document describes a smart trash bin project created by a group of 3 students. The smart trash bin uses an ultrasonic sensor to detect when someone passes within 10cm of the bin, which causes a servo motor to open the bin lid and light an LED. The bin also has an LCD display, buzzer, and LED lights to indicate the trash level and whether the bin is full. The project aims to promote proper trash disposal and make trash bins more automated using technology.
Linux Format was the UK's first Linux-specific magazine, and as of 2013 was the best-selling Linux title in the UK. It is also exported to many countries worldwide. It is published by Future plc.
Instrumentasi project smart house (Smart Trashbin)risanads97
The document describes a smart trash bin project created by a group of 3 students. The smart trash bin uses an ultrasonic sensor to detect when someone passes within 10cm of the bin, which triggers a servo motor to open the bin lid. LED lights and an LCD display indicate the bin status and prompt users to dispose of trash. The project aims to promote proper trash disposal and a clean environment.
The Raspberry Pi is a series of credit card–sized single-board computers developed in the UK by the Raspberry Pi Foundation with the intention of promoting the teaching of basic computer science in schools.
The original Raspberry Pi and Raspberry Pi 2 are manufactured in several board configurations through licensed manufacturing agreements with Newark element14 (Premier Farnell), RS Components and Egoman. These companies sell the Raspberry Pi online. Egoman produces a version for distribution solely in China and Taiwan, which can be distinguished from other Pis by their red colouring and lack of FCC/CE marks. The hardware is the same across all manufacturers.
The original Raspberry Pi is based on the Broadcom BCM2835 system on a chip (SoC), which includes an ARM1176JZF-S 700 MHz processor, VideoCore IV GPU, and was originally shipped with 256 megabytes of RAM, later upgraded (models B and B+) to 512 MB. The system has Secure Digital (SD) (models A and B) or MicroSD (models A+ and B+) sockets for boot media and persistent storage.
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Dr. Vinod Kumar Kanvaria
Exploiting Artificial Intelligence for Empowering Researchers and Faculty,
International FDP on Fundamentals of Research in Social Sciences
at Integral University, Lucknow, 06.06.2024
By Dr. Vinod Kumar Kanvaria
How to Fix the Import Error in the Odoo 17Celine George
An import error occurs when a program fails to import a module or library, disrupting its execution. In languages like Python, this issue arises when the specified module cannot be found or accessed, hindering the program's functionality. Resolving import errors is crucial for maintaining smooth software operation and uninterrupted development processes.
The simplified electron and muon model, Oscillating Spacetime: The Foundation...RitikBhardwaj56
Discover the Simplified Electron and Muon Model: A New Wave-Based Approach to Understanding Particles delves into a groundbreaking theory that presents electrons and muons as rotating soliton waves within oscillating spacetime. Geared towards students, researchers, and science buffs, this book breaks down complex ideas into simple explanations. It covers topics such as electron waves, temporal dynamics, and the implications of this model on particle physics. With clear illustrations and easy-to-follow explanations, readers will gain a new outlook on the universe's fundamental nature.
বাংলাদেশের অর্থনৈতিক সমীক্ষা ২০২৪ [Bangladesh Economic Review 2024 Bangla.pdf] কম্পিউটার , ট্যাব ও স্মার্ট ফোন ভার্সন সহ সম্পূর্ণ বাংলা ই-বুক বা pdf বই " সুচিপত্র ...বুকমার্ক মেনু 🔖 ও হাইপার লিংক মেনু 📝👆 যুক্ত ..
আমাদের সবার জন্য খুব খুব গুরুত্বপূর্ণ একটি বই ..বিসিএস, ব্যাংক, ইউনিভার্সিটি ভর্তি ও যে কোন প্রতিযোগিতা মূলক পরীক্ষার জন্য এর খুব ইম্পরট্যান্ট একটি বিষয় ...তাছাড়া বাংলাদেশের সাম্প্রতিক যে কোন ডাটা বা তথ্য এই বইতে পাবেন ...
তাই একজন নাগরিক হিসাবে এই তথ্য গুলো আপনার জানা প্রয়োজন ...।
বিসিএস ও ব্যাংক এর লিখিত পরীক্ষা ...+এছাড়া মাধ্যমিক ও উচ্চমাধ্যমিকের স্টুডেন্টদের জন্য অনেক কাজে আসবে ...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...PECB
Denis is a dynamic and results-driven Chief Information Officer (CIO) with a distinguished career spanning information systems analysis and technical project management. With a proven track record of spearheading the design and delivery of cutting-edge Information Management solutions, he has consistently elevated business operations, streamlined reporting functions, and maximized process efficiency.
Certified as an ISO/IEC 27001: Information Security Management Systems (ISMS) Lead Implementer, Data Protection Officer, and Cyber Risks Analyst, Denis brings a heightened focus on data security, privacy, and cyber resilience to every endeavor.
His expertise extends across a diverse spectrum of reporting, database, and web development applications, underpinned by an exceptional grasp of data storage and virtualization technologies. His proficiency in application testing, database administration, and data cleansing ensures seamless execution of complex projects.
What sets Denis apart is his comprehensive understanding of Business and Systems Analysis technologies, honed through involvement in all phases of the Software Development Lifecycle (SDLC). From meticulous requirements gathering to precise analysis, innovative design, rigorous development, thorough testing, and successful implementation, he has consistently delivered exceptional results.
Throughout his career, he has taken on multifaceted roles, from leading technical project management teams to owning solutions that drive operational excellence. His conscientious and proactive approach is unwavering, whether he is working independently or collaboratively within a team. His ability to connect with colleagues on a personal level underscores his commitment to fostering a harmonious and productive workplace environment.
Date: May 29, 2024
Tags: Information Security, ISO/IEC 27001, ISO/IEC 42001, Artificial Intelligence, GDPR
-------------------------------------------------------------------------------
Find out more about ISO training and certification services
Training: ISO/IEC 27001 Information Security Management System - EN | PECB
ISO/IEC 42001 Artificial Intelligence Management System - EN | PECB
General Data Protection Regulation (GDPR) - Training Courses - EN | PECB
Webinars: https://pecb.com/webinars
Article: https://pecb.com/article
-------------------------------------------------------------------------------
For more information about PECB:
Website: https://pecb.com/
LinkedIn: https://www.linkedin.com/company/pecb/
Facebook: https://www.facebook.com/PECBInternational/
Slideshare: http://www.slideshare.net/PECBCERTIFICATION
This presentation was provided by Steph Pollock of The American Psychological Association’s Journals Program, and Damita Snow, of The American Society of Civil Engineers (ASCE), for the initial session of NISO's 2024 Training Series "DEIA in the Scholarly Landscape." Session One: 'Setting Expectations: a DEIA Primer,' was held June 6, 2024.
How to Add Chatter in the odoo 17 ERP ModuleCeline George
In Odoo, the chatter is like a chat tool that helps you work together on records. You can leave notes and track things, making it easier to talk with your team and partners. Inside chatter, all communication history, activity, and changes will be displayed.
A workshop hosted by the South African Journal of Science aimed at postgraduate students and early career researchers with little or no experience in writing and publishing journal articles.
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
1. ulster.ac.uk
Not so hard “hardware”
-Using Raspberry Pi GPIO pins with Scratch
Richard Gault
PhD Researcher in Computational Neuroscience
Intelligent Systems Research Centre
Ulster University, Magee
2. Not so hard “hardware”
Contents
- Teaching through context and effective use of language
- Evolving an open ended problem
- Using the Raspberry Pi GPIO pins from Scratch
- First Project:
- Belisha Beacon
- Extending knowledge:
- Traffic Lights
- Introducing Inputs:
- Pedestrian Crossing (Pelican Crossing/Toucan Crossing)
- Extending knowledge and introducing sensors:
- Puffin Crossing
3. Teaching through Context and effective use of language
Benefits of Teaching through Context:
- Bringing learning beyond the classroom
- Encourages deeper thinking in the world around
- Develops thinking from different perspectives
Effective use of Language:
- Closes the gap between problem solving and coding
- Provides a more structured discussion for problem
solving.
- Helps to put students in the computer perspective
4. Evolving an open ended problem
All aboard ‘computing sight seeing tours’
1
2
3
4
On the tour we will have:
- Raspberry Pi/Scratch/GPIO
- Electronics/Physics/Circuit Diagrams
- Controlling Outputs using Scratch
- Sequences
- Loops: Both finite and infinite
- States and state transition
- Handling inputs using Scratch
- Modifying behaviour to evaluate understanding of concepts
- A brief glimpse at sensors
5. Getting Started
Main components
- Raspberry Pi (RPi)
(These slides are based on (RPi 1), B+ V1.2)
Setting up the RPi
Also see Chapter 1: Adventures in Raspberry Pi, Carrie Anne Philbin (Wiley
2014)
- Students should have basic experience of using Scratch
RPi 2 Model B
6. GPIO pins
- General purpose input/output (GPIO) pins can be used to
interact with the real world.
- Using these pins is completely safe, however, you
should take great care when connecting cables to the
GPIO pins on your Raspberry Pi (to protect you and the
device).
Some pins are designated as power
supply (red) and others as ground
(black). The rest can either be for an
input or an output.
Input Output
7. GPIO Pins
How do they work?
Output:
The RPi acts as both a power supply and a switch. So
when we turn a particular pin on (or set it high, or to 1) in
our code, we are turning on a switch. It will remain on until
we set the pin to be off (or set it low, or 0).
8. GPIO Pins
How do they work?
Inputs:
Inputs are a little more tricky. For our work, if enough ‘input’
(voltage) comes in then the RPi will register that there is an
input, i.e. Yes = 1, or there isn’t, i.e. No = 0.
9. Using the GPIO pins from Scratch
You cannot automatically control the GPIO pins from
Scratch.
Option 1: Pi_Scratch(Pridopia)
Option 2: ScratchGPIO
Option 3: ???
If you find other alternatives please share them with the
CAS community!
10. Getting Started with ScratchGPIO
Select the right version for you:
- For RPi 1, model B+ V1.2, I recommend using
ScratchGPIO5
- For RPi 1 models before B+ you may need to
use an earlier version
- For RPi 2 with Scratch 2.0, I recommend using
ScratchGPIO7
You can download and install the right version for
you either straight from the internet to the RPi or
first downloaded on to a memory stick and
complete installation from the memory stick onto
the RPi.
Word of Caution!
Input and Output pins are pre assigned when
starting up ScratchGPIO – You can change
inputs to outputs (and vice versa) later if
needed.
Pin naming convention ->
pin11on
pin11high
GPIO17on
GPIO17high
11. Know your pin layout!
RPi 2
also
* You can damage the RPi by plugging components in to
the wrong pins.
12. Getting started with ScratchGPIO
What’s going on?
Once you have successfully installed ScratchGPIO:
Use ScratchGPIOX …without the ‘plus’
When you open up:
From ScratchGPIO we will broadcast specific messages
that the scratch gpio handler will understand and execute
the appropriate commands.
13. Stop 1: Belisha Beacon
Zebra Crossing
Lesson based upon road safety and different types of
crossings.
What exactly is a Belisha beacon?
- “It is a flashing light”
- “The light turns on and then off”
- “The light turns on, then after a second or two it turns off”
Recipe for Belisha beacon:
Ingredients will include: A light, RPi
Instructions will include: Turn light on
Wait 1 second
Turn light off
Wait 1 second
15. Stop 1:Belisha Beacon
Set up: Hardware
Connect the positive side of the LED to a resistor, and
connect the resistor to pin 11 of the RPi. Connect the
negative leg of the LED to any of the ground pins of the
RPi. (see OCR Traffic Lights Recipe)
Without Breadboard With Breadboard
16. Stop 1: Belisha Beacon
Set up: Software
Start ScratchGPIO5->Go to the control tab->Use the
‘broadcast’ blocks to communicate with GPIO pins
18. Stop 1: What can we really do?
Also at this stop:
Electronics->flow of electricity->voltage and current
Resistance-> Actually calculating the voltage and current->V=IR calculations
Reading resistor values->Significant figures and multiplication by 10.
1
2
3
4
Continually turn a light on and off…
-Lights on an emergency vehicle
-Notification light
-School warning sign/train crossing
-Road bollard ->Translucent/transparent/opaque materials
-Traffic lights -> more complex sequences
19. Stop 2: Traffic Lights
The problem
- First work out the traffic light sequence:
- Traffic lights recipe:
Ingredients will include 3 LEDs
(one red, one amber/yellow, one
green) and 3 resistors, jumper
cables to connect RPi to components
4.
1.
2.
3.
20. Stop 2: Traffic Lights
Set up: Hardware
See OCR traffic light recipe for set up without breadboard
22. Stop 2: What do we really know?
- At this stage we can still only control outputs (LEDs)
- The traffic lights can be used to assess the degree of
understanding students have on circuits, using GPIO
pins and algorithmic design.
Also at this stop:
-States and state transitions.
-Repeating sequences.
-2 or more traffic lights
1
2
3
4
24. Stop 3: Pedestrian Crossing
Introducing inputs
- Now we will introduce a new element to the problem:
input!
- A button will be used to signal to the system there is a
pedestrian ready to cross
- High or low?
- Let us see what happens
when the button is pressed
25. What does your input do?
Depending on the type of switch/button and the way you
construct your circuit will dictate what your system will do
when the button is pushed.
The state of the pin will either be of value 1, or value 0.
Push
button
26. Stop 3: Pedestrian crossing
Implementation
Identifying the correct code to modify
We also need red and
green LEDs for the
pedestrians!
pin26
31. Step 3: What do we really know?
Inputs and Outputs
Switch
Button
Microphone
LED
Buzzer
Heater
Speaker
Also at this stop:
-Toucan crossing
- Inputs vs outputs exercise (telephone)
- Pull up and pull down resistor circuits
1
2
3
4
Input
Output
Why not use the button as an input to a Scratch game – 4
buttons to move a character up/down/left/right.
Revisit the emergency vehicle -> start flashing lights with
the push of a button -> introduce sound(?)
33. Stop 4: Puffin Crossing
Introduction to sensors
- Sensors are used to measure physical quantities such as
temperature, light, pressure, sound and movement.
- We will be using a passive infra-red sensor which will
detect a change in motion.
- If there is a change in motion, the internal properties of
the sensor will change and thus the information being
sent to the RPi will be different than before.
- So our sensor will provide information in to our system.
- We need to test our sensor value like we did with the
button.
35. pin26
Stop 4: Puffin Crossing
Implementation (same hardware set up as Pelican crossing)
pin26
pin7
36. Stop 4: Puffin Crossing
Looking at a problem from different angles
Traffic lights and pedestrian crossings must account for every eventuality
…as do good computer programs.
This often requires you to look at a problem from various perspectives.
Therefore empathy is in an important attribute to develop to become strong
at problem solving and computing.
39. Acknowledgements: Ann O’Neill (Stranmillis University
College)
Web:
http://isrc.ulster.ac.uk/rgault/research.html
Email:
gault-r2@email.ulster.ac.uk
CAS:
Richard Gault (email as above)
Thank you for listening!
Editor's Notes
Voltage is directly proportional to energy so it can be used without loss of generality as charge will remain constant here.