background preloader

Using a camera with Scratch on the Raspberry Pi

Using a camera with Scratch on the Raspberry Pi
I needed camera control with Scratch on the Raspberry Pi for a primary school aerial photography project. I added a new python extension for Simon’s ScratchGPIO that allows either the Raspberry Pi camera or a regular USB webcam to be used with Scratch. Follow Simon’s instructions for installing over on his site. Add your camera – if you’re using the Raspberry Pi camera, follow their instructions here. If it’s a USB camera then just plug it in. After you’ve started scratch, all you need is to make a broadcast block and set it’s message to ‘photo’. This program starts automatically, then in a loop flashes an LED on pin 8 and takes a photo. Photos are stored in /home/pi/photos, each photo has a number that increases as the photos are taken. Make sure you delete/backup your photos regularly or you’ll run out of space fairly fast!

Related:  Raspberry Pi + ScratchRaspberry PiScratch

Building a Raspberry Pi Robot and Controlling it with Scratch Happy New Year everyone! Things have been a bit quiet on this blog due to the Christmas rush, and the fact that we’ve been spending time on product development (more on that in a future post). But here at last is the 3rd and final post in our series on the Raspberry Pi robot we […] Control your home appliances from the web – using a Raspberry pi Prologue I recently moved in a new apartment in which the living room lights could be controlled with a remote. Having already played with IR signals in order to incorporate remote control to some of my projects I knew that I would probably be able to emulate the signals sent by the original remote and thus operate the lights of my living room from a web based application.

Raspberry Pi Scratch Robot I found an application for the Raspberry in my classroom! With the endless possibilities of the Raspberry Pi in education, it is difficult to focus on one application. This is my attempt to document a focused application. I am sure this idea will branch out into other ideas or supplemental ideas will follow. Goal: The students are presented with an easy to develop hardware system on top of the robot chassis consisting of the Raspberry Pi, Pi Cobbler, Battery pack, H-bridge motor controller, and a Breadboard.

Raspberry Pi Bluetooth LE Controller for WS2812B (NeoPixels) - All Bluetooth Low Energy (aka BLE/Bluetooth 4.0/Bluetooth Smart) is the most recent incarnation of Bluetooth technology developed by the Bluetooth SIG (the organization that maintains the specification). This communication protocol is designed for applications where data needs to be transferred in small amounts at relatively low speed while consuming low amounts of power (e.g., heart rate monitor, step counter, wireless keyboard). This latest version of the protocol is not compatible with its predecessor (Bluetooth classic), as an upside, long gone are the days where pairing devices was necessary! The goal of this Instructable is to demonstrate how you can setup your Raspberry Pi to control RGB LEDs from a Bluetooth Low Energy (BLE) device nearby.

Hardware That Can Connect to Scratch Scratch can connect to some real world hardware. Some of the features are natively built in, while some are added through an extension or modification. Hardware Scratch can Connect to Below is a list of hardware that Scratch can connect to: PicoBoard Amazon Dash Button Lamp Control - All Material List: 1.Raspberry Pi-I would recommend using the new Raspberry Pi 2 or you could use the B/B+.You will also need the basics for it such as a mouse,keyboard, power supply, and display. 2.Amazon Dash Button-Any product button will do, just make sure to not set it up when you get it. 3.PowerSwitch Tail II-This is used by the Raspberry Pi to turn on and off any AC electronic device. Running Minecraft on a Raspberry Pi Minecraft is a hugely popular game that runs on PC, Xbox, PlayStation, and even smartphones. It's the best-selling PC game of all time and has become a worldwide sensation with obsessive players around the world, a large online community, and a vast array of merchandise. Many people enjoy building complicated structures and even creating their own interactive systems using only the mechanics of the game.

Raspberry juice and Mathematics Did you ever consider that Rasperry Pi and Mathematica could work together? I recently wrote an article on the site electroYou about this topic, and I was asked to propose it to the Meccanismo Complesso community . I hope that this article will spark interest for all those who are interested in the world of modeling or even for those who are approaching to the world of Raspberry Pi for the first time.

Building a Raspberry Pi Robot and Controlling it with Scratch - Part 1 Last weekend we ran a workshop at the Digimakers event at @Bristol where we taught people how to program a Raspberry Pi robot with the Scratch programming language. It went really well, and it was amazing to see kids as young as 7 grasp the basics of robot control, and produce some really good control programs. Quite frankly, our careers are obviously in jeopardy once they reach the jobs market. This is the first in a series of posts where we describe the basics of how we built the robot, programmed it and put on the workshop. All of the workshop code, and the workshop worksheet can be found here if people are interested in recreating our work. Aim of the Workshop Raspberry Pi Table of Contents: The Raspberry Pi is a credit card-sized computer that plugs into your TV and a keyboard. It is a capable little computer which can be used in electronics projects, and for many of the things that your desktop PC does, like spreadsheets, word processing, browsing the internet, and playing games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming. You can read more about the Raspberry Pi here.