Skip to main content

Posts

Showing posts with the label junk bot

Raspberry Pi - Python Junkbot

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(duration)...

Raspberry Pi Controlled robot from junk

In previous posts I start looked at using ScratchGPIO to control a junkbot - more about junkbots can be found at: http://junkbots.blogspot.com Previous Posts:  ( 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 chosen 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/ ). - Ot...