Skip to main content

Posts

Showing posts with the label raspberry pi

Controlling 'junk' robot - three options

Three approaches to control it will be considered here: - via Raspberry Pi; - via Micro:Bit -via Crumble controller 1. Raspberry Pi based In this Raspberry Pi based Junkbot design a combination of Python and Pimoroni's  Explorer HAT PRO  are used to control it. Explorer HAT Pro is a good choice, it can control two motors with a library provided to simplify the programming. For this the Junkbot was the one shown above: a drinks can, pen, LEGO bits, motor and broken propellor. Before the Explorer HAT can be used the library needs to be installed via the Terminal and the instructions below curl get.pimoroni.com/explorerhat | bash Python code to control the junkbot is shown below. import explorerhat from time import sleep def spin1(duration):     explorerhat.motor.one.forward(100)     sleep(duration)     explorerhat.motor.one.stop() def spin2(duration):    ...

Junkbot Poster - PyCon UK 2016, 17th September 2016

Poster presented at PyCon UK 2016, 17th September 2016. Pyconuk16  junkbots   from  Scott Turner DOI:  10.13140/RG.2.2.28682.67520 For more details on the three builds: Raspberry Pi based:  http:// bit.ly /2c87qex Basic Micro:Bit build:  http:// bit.ly /2cmJo0B Radio Control Micro:Bit  Junkbot :  http:// bit.ly /2cMHpDa All opinions in this blog are the Author's and should not in any way be seen as reflecting the views of any organisation the Author has any association with. Twitter  @scottturneruon If you would like to know more about the Junkbots project contact scott.turner@northampton.ac.uk

Raspberry Pi - Python Junkbot using ExplorerHat Pro

Junkbots ( http://junkbots.blogspot.co.uk/ ) are based around using  materials such as drink's cans, broken propellors and motors to produce something that moves by vibration. Previous designs be found at: Raspberry Pi Controlled Junkbots Junkbots blog The latest tweak to the Raspberry Pi based Junkbot design is to use the combination of Python and Pimoroni's  Explorer HAT PRO  to control it. Explorer HAT Pro is a good choice, it can control two motors with a library provided to simplify the programming. For this the Junkbot was the one shown above: a drinks can, pen, LEGO bits, motor and broken propellor. Before the Explorer HAT can be used the library needs to be installed via the Terminal and the instructions below curl get.pimoroni.com/explorerhat | bash Python code to control the junkbot is shown below. import explorerhat from time import sleep def spin1(duration):     explorerhat.motor.one.forward(100)     sleep(durati...

Computing at School: Raspberry Pi Junkbot

Details of the Raspberry Pi Junkbot are now available as resource on the Computing at Schools site. Link:  http://community.computingatschool.org.uk/resources/3390 If you would like to know more about the Junkbots project contact scott.turner@northampton.ac.uk

Video: Raspberry Pi Junkbot

If you would like to know more about the Junkbots project contact scott.turner@northampton.ac.uk

Raspberry Pi Junkbot - Home

Raspberry Pi Junkbot - Home : A new website providing more information of the Raspberry Pi Junkbot project (combining Raspberry Pi, Scratch programming and junk). This will be added to as the  project develops. At the moment it includes - Introduction -Discussion about the robot controller card -ScratchGPIO - Example of the drawing bot. 'via Blog this'

Junkbot Raspberry Pi: 3 How to do it

Figure 1 In previous posts I start looked at using ScratchGPIO to control a junkbot  ( http://junkbots.blogspot.com/2014/08/junkbot-pi-1-scratchgpio.html ) and showed a Pi controlled junkbot briefly in action ( http://junkbots.blogspot.co.uk/2014/08/junkbot-raspberry-pi-2-raspberry-pi.html ). In this post I aim to discuss - Choice of motor controller card - Provide an example of a drawing junkbot controlled through Scratch and Raspberrry Pi Choice of interface/Controller card The card choosen was the 4Tronix PiRoCon card  ( http://4tronix.co.uk/store/index.php?rt=product/product&product_id=182 ). Selected for four reasons - Price is reasonable (in my opinion). - Fits straight onto the Pi through the GPIO - no extra cables needed. - ScratchGPIO has it as an addon so it makes programming it even easier (see http://cymplecy.wordpress.com/2013/10/31/pirocon-from-4tronix/ ). - Others are using it for robot projects. Use it is quite easy plug the board directl...

Junkbot Raspberry Pi: 2 Raspberry Pi Junkbot in action

First video of a junkbot being controlled by a Raspberry Pi. The bot was developed by Hayden Tetley and Scott Turner. Hayden's time was paid  for through the Nuffield Research Placements  Scheme ( http://www.nuffieldfoundation.org/nuffield-research-placements ). Next post will provide further details on how this was done. If you would like to know more about the Junkbots project contact scott.turner@northampton.ac.uk

Junkbot Raspberry Pi: 1 ScratchGPIO

A development I have being wanting to develop for a while is the combine the Raspberry Pi with a Junkbot to add some control.  This the first of postings about these experiments. All the development will be around ScratchGPIO ( http://cymplecy.wordpress.com/scratchgpio/ ) so this posting will look into its use . Why ScratchGPIO? Short answer - simplicity. It is designed to look and work like Scratch ( http://scratch.mit.edu/ ) but allowing access to board that can drive motors. Installing ScratchGPIO? As a suggest use as lastest as possible version of the operating system as you can on your SD card. Initially we had trouble with missing Python files that was resolved when using an updated version of the operating system. In the LXTerminal Type in: sudo wget http://goo.gl/Pthh62 -O isgh5.sh then type in sudo bash isgh5.sh You should get to new icons for ScratchGPIO5 and ScratchGPIO5Plus Now use these instead of the Scratch that came with the operating...

Junkbot project evolves:1. The idea

Taken from:  http://computingnorthampton.blogspot.co.uk/2014/07/physical-computing-junkbots-with-brain.html Figure 1 A new stage for the Junkbots project ( http://junkbots.blogspot.co.uk/  ) starts this week. Up to this point the junk bot building has largely being about building a moving (or drawing) 'bot' moved by vibration - limited control, but fun. This week, A  Nuffield funded bursary studen t starts working on investigating whether LEGO NXT or Raspberry Pi based solutions can be incorporated with the bot to add some control of the movement (still by vibration). Idea One  Is to add a LEGO NXT brick, plus motors that are made to vibrate, to a junkbot similar to one shown in figure 1. The motor and broken propeller combination being replaced with the NXT brick and LEGO motor. A good potential feature is it a self-contained unit with power and control together, as well as being potentially fairly simple to set-up. Idea Two Is to do a similar approach as...